Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Guided Tour of Alexandria (PL/SQL Library)

5,397 views

Published on

Presented at AUSOUG Perth Conference, October 2012

Published in: Technology
  • Be the first to comment

Guided Tour of Alexandria (PL/SQL Library)

  1. 1. AGuidedTourof Alexandria Jeffrey Kemp AUSOUG Perth Conference, October 2012
  2. 2. About Me • Oracle Developer since 2000 • SQL, PL/SQL, Apex http://jeffkemponoracle.com
  3. 3. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  4. 4. Alexandria • Open Source
  5. 5. Author • Morten Braten "Chief Scribe of the Library" http://ora-00001.blogspot.com
  6. 6. http://code.google.com/p/plsql-utils/ Free Download
  7. 7. 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
  8. 8. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  9. 9. Basic Utilities • Logging and Debug • Dates • Strings • Files …
  10. 10. 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 …
  11. 11. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  12. 12. File Formats • Generate PDF files • Generate RTF files • Zip and Unzip …
  13. 13. 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/
  14. 14. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion xls_demo.sql
  15. 15. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  16. 16. Data Interchange • Generate JSON • XML • CLOB to CSV …
  17. 17. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  18. 18. Encryption & Security • CRYPTO_UTIL_PKG (wrapper for DBMS_CRYPTO) • NTLM http://en.wikipedia.org/wiki/Integrated_Windows_Authentication
  19. 19. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  20. 20. 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) …
  21. 21. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion alex-demo.sql
  22. 22. Intro General Utilities • Demo #1File Formats Data Interchange Encryption & Security • Demo #2Internet & WWW Conclusion
  23. 23. In the Pipeline? • POP3 • Paypal • Google Calendar http://code.google.com/p/plsql-utils/issues/list
  24. 24. “when you have a golden hammer, everything looks like a nail”
  25. 25. Deployment Requirements • CREATE SESSION • CREATE PROCEDURE • CREATE TYPE • EXECUTE on: • DBMS_CRYPTO • UTL_FILE • UTL_HTTP • UTL_TCP
  26. 26. Links Download Alexandria bit.ly/dMWOli code.google.com/p/plsql-utils/ Morten Braten bit.ly/USyXTQ ora-00001.blogspot.com http://jeffkemponoracle.com
  27. 27. 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/
  28. 28. Thank you http://jeffkemponoracle.com

×