Upload
jeffrey-kemp
View
462
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Presented at the AUSOUG Perth Monthly Meeting, September 2012
Citation preview
Automate Amazon S3
Storage with Alexandria Jeffrey Kemp
AUSOUG Monthly, September 2012
About Me
• Oracle Developer since 2000
• SQL, PL/SQL, Apex
http://jeffkemponoracle.com
1. Amazon Web Services
2. Amazon S3
3. Alexandria
4. Demo
• Cloud services
• Low cost
• OS agnostic
http://aws.amazon.com
AW
S P
roducts
S3 Features
• Storage buckets
• Files and "folders"
• Permissions
• Web interface
• SOAP and REST-style APIs
Advanced Features
• Website
• Versioning
• Lifecycle
• Access logging
• Storage buckets
• Files and "folders"
• Permissions
• Web interface
• SOAP and REST-style APIs
REST-style S3 API
Buckets:
• get (list objects)
• put / delete
• get / put ACL
Objects:
• get
• put / delete
• get / put ACL
• Multipart Upload
• BitTorrent
http://docs.amazonwebservices.com/AmazonS3/latest/API/Welcome.html
Simple Example in Apex
• Jason Straub, Oracle
• Proof of Concept
• Simple
• Minor issues
http://jastraub.blogspot.com.au
http://www.oracle.com/technetwork/developer-tools/apex/ application-express/integration-086636.html
• Morten Braten "Chief Scribe of the Library"
• Open source
http://code.google.com/p/plsql-utils/
http://ora-00001.blogspot.com
Alexandria Packages
• PDF, RTF, Excel, Office 2007
• Zip and unzip
• RSS feeds
• JSON
• FTP, SMTP, POP3, IMAP
• MS Exchange
• Google Maps, Translate, Calendar
• SOAP or REST
• … plus some others • … and more to come
“when you have a golden hammer, everything looks like a nail”
… but it’s fun, all the same
AMAZON_AWS_S3_PKG
• Uses UTL_HTTP
• Requires AMAZON_AWS_AUTH_PKG • which requires execute on DBMS_CRYPTO
AMAZON_AWS_S3_PKG
• get_bucket_list
• get_bucket_tab
• new_bucket
• get_object_list
• get_object_tab
• get_download_url
• new_object
• delete_object
• get_object
1. Amazon Web Services
2. Amazon S3
3. Alexandria
4. Demo alex-demo.sql
Extending the package
• Delete bucket
• Extended object list
• Get or Modify Website for a bucket
• Get or Modify ACL for a bucket or object
• Get BitTorrent URL
• Multipart Upload
Links Amazon Web
Services
bit.ly/KXDk aws.amazon.com
S3 API Docs bit.ly/Ns6Dac docs.amazonwebservices.com/AmazonS3/latest/API/Welcome.html
Jason Straub bit.ly/OnSWVD jastraub.blogspot.com.au
White Paper,
Apex+S3 POC
bit.ly/OnT1bL www.oracle.com/technetwork/developer-tools/apex/application-express/integration-086636.html
Alexandria bit.ly/dMWOli code.google.com/p/plsql-utils/
Morten Braten bit.ly/USyXTQ ora-00001.blogspot.com
Thank you http://jeffkemponoracle.com