AGuidedTourof
Alexandria
Jeffrey Kemp
AUSOUG Perth Conference, October 2012
About Me
• Oracle Developer since 2000
• SQL, PL/SQL, Apex
http://jeffkemponoracle.com
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
Alexandria
• Open Source
Author
• Morten Braten "Chief Scribe of the Library"
http://ora-00001.blogspot.com
http://code.google.com/p/plsql-utils/
Free Download
Alexandria Packages
• PDF, RTF, Excel, Office 2007
• Zip and unzip
• RSS feeds
• JSON
• FTP
• MS Exchange
• Google Maps
• Amazon S3 Simple Storage API
• SOAP or REST
• … plus some others
• … and more to come
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
Basic Utilities
• Logging and Debug
• Dates
• Strings
• Files
…
Other Utilities
• Math & GIS
• Apex
• RAW (bitwise ops)
• Regular Expressions
• SQL (SQL_BUILDER_PKG)
• CLOB to BLOB & vice versa (SQL_UTIL_PKG)
• Generate Random and Test data
…
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
File Formats
• Generate PDF files
• Generate RTF files
• Zip and Unzip
…
Work with Office 2007 Files
• Read document properties (Word, Excel, Powerpoint)
• Extract text (Word, Powerpoint)
• Read cell contents (Excel)
• Write file from template (Word, Excel, Powerpoint)
• Generate Excel files from scratch
See also: http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
xls_demo.sql
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
Data Interchange
• Generate JSON
• XML
• CLOB to CSV
…
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
Encryption & Security
• CRYPTO_UTIL_PKG (wrapper for DBMS_CRYPTO)
• NTLM
http://en.wikipedia.org/wiki/Integrated_Windows_Authentication
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
Internet and WWW
• HTTP
• HTML
• Generate RSS Feed
• Parse RSS Feed
• Transfer Files by FTP
• Google Maps
• Amazon Web Services – S3 API
• Web Service APIs (SOAP / REST)
…
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
alex-demo.sql
Intro
General Utilities
• Demo #1File Formats
Data Interchange
Encryption & Security
• Demo #2Internet & WWW
Conclusion
In the Pipeline?
• POP3
• Paypal
• Google Calendar
http://code.google.com/p/plsql-utils/issues/list
“when you have a golden hammer, everything looks like a nail”
Deployment Requirements
• CREATE SESSION
• CREATE PROCEDURE
• CREATE TYPE
• EXECUTE on:
• DBMS_CRYPTO
• UTL_FILE
• UTL_HTTP
• UTL_TCP
Links
Download
Alexandria
bit.ly/dMWOli code.google.com/p/plsql-utils/
Morten Braten bit.ly/USyXTQ ora-00001.blogspot.com
http://jeffkemponoracle.com
Image Sources
http://lucasjalyl.wordpress.com/libraryofalexandria/
http://www.farmersunion.com.au/
http://notv.posterous.com/
http://myhealthygreenfamily.com/blog/wordpress/sugar-sugar-how-
to-avoid-gmo-this-halloween/
Thank you
http://jeffkemponoracle.com

Guided Tour of Alexandria (PL/SQL Library)