You are on page 1of 79

<Insert Picture Here>

Using Oracle Database with Amazon Web Services Oracle Open World - November 2007
Bill Hodak Sr. Product Manager Oracle Corporation Jinesh Varia Web Services Evangelist Amazon

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracles products remain at the sole discretion of Oracle.

Introduction
Web Services: Self-contained functions that can be published and invoked across the web using XMLbased protocols. Amazon Web Services (AWS): Web Services for directly accessing Amazon's technology platform and product data, ranging from retrieving product information to leveraging Amazons vast data center resources:
Amazon Elastic Compute Cloud (EC2) Amazon Simple Storage Service (S3) Amazon E-Commerce Service Amazon Simple Queue Service and many more

Amazon Elastic Compute Cloud (EC2)


EC2 is an Amazon Web Service offering that enables customers to create and provision, within minutes, virtual machines that reside in Amazons data center. The amount of CPU that is allocated to a particular instance is expressed in EC2 Compute Units
An EC2 Compute Unit is equivalent to the CPU capacity of a 1.0 1.2 GHz 2007 Opteron or 2007 Xeon processor

Amazon is responsible for managing the underlying data center and network. EC2 customers can create custom virtual machines, known as Amazon Machine Images (AMI), and publish them for other EC2 customers to use.

Amazon Elastic Compute Cloud (EC2)


EC2 Instance Types
Small Instance 32-Bit EC2 Compute Units Virtual Cores Memory Instance Storage Cost 1 1 1.7 GB 160 GB $0.10 / Hour Large Instance 64-Bit 4 2 7.5 GB 850 GB $0.40 / Hour Extra Large Instance 64-Bit 8 4 15 GB 1.7 TB $0.80 / Hour

Bandwidth Costs
$0.18 per GB Transferred first 10 TB / month $0.16 per GB Transferred next 40 TB / month $0.13 per GB Transferred over 50 TB / month

Amazon Simple Storage Service (S3)


S3 is an Amazon Web Service offering that enables customers to leverage Amazons data storage infrastructure to store and retrieve any amount of data. Amazon is responsible for managing the underlying data center and network. Amazon charges storage, bandwidth, and request rates for using S3 storage:
Storage Cost $0.15 per GB per Month of storage used Bandwidth Costs $0.18 per GB Transferred first 10 TB / month $0.16 per GB Transferred next 40 TB / month $0.13 per GB Transferred over 50 TB / month Request Costs $0.01 per 1,000 PUT or LIST Request $0.01 per 10,000 GET and all other Requests

Database Computing in the Cloud

Database Computing in the Cloud


The Basic Building Blocks Oracle Enterprise Linux Oracle Database Express Edition (XE) Oracle Applications Express (APEX) Amazon Elastic Compute Cloud (EC2) Amazon Simple Storage Service (S3)

Deploying Oracle XE on EC2


Oracle Database Express Edition (XE)
Free Edition of Oracle Database Easy to Install (rpm), Manage, and Develop On

Oracle Applications Express (APEX)


Rapid Web Application Development Tool

A Perfect Solution for


Proof of Concept Software Projects Development Environments Testing / Quality Assurance Environments Sandbox for DBA

Deploying Oracle XE on EC2


Overview of How it Works Sign-up for Amazon Web Services and EC2
(http://aws.amazon.com)

Install EC2 APIs from Amazon.com Install Oracle Enterprise Linux on a root file system Install Oracle Database Express Edition (XE) Install Oracle Applications Express (APEX) Bundle and upload your file system to EC2/S3

Demo Oracle Database on EC2

Oracle XE on EC2: Step by Step

Oracle XE-AMI: Step by Step


Set Environment Variables:

Oracle XE-AMI: Step by Step


Set Environment Variables:

Oracle XE-AMI: Step by Step


Find the AMI we want to start:

Oracle XE-AMI: Step by Step


Find the AMI we want to start:

Oracle XE-AMI: Step by Step


Start an instance of the AMI:

Oracle XE-AMI: Step by Step


Start an instance of the AMI:

Oracle XE-AMI: Step by Step


See if the instance has started:

Oracle XE-AMI: Step by Step


See if the instance has started:

Oracle XE-AMI: Step by Step


See if the instance has started:

Oracle XE-AMI: Step by Step


Get the host/DNS details:

Oracle XE-AMI: Step by Step


SSH to the host:

Oracle XE-AMI: Step by Step


SSH to the host:

Oracle XE-AMI: Step by Step


SSH to the host:

Oracle XE-AMI: Step by Step


Login as root:

Oracle XE-AMI: Step by Step


Login as root:

Oracle XE-AMI: Step by Step


Review the readme files:

Oracle XE-AMI: Step by Step


Review the readme files:

Oracle XE-AMI: Step by Step


Run the first_login.sh script:

Oracle XE-AMI: Step by Step


Login to the database:

Oracle XE-AMI: Step by Step


Login to the database:

Oracle XE-AMI: Step by Step


Login to the database:

Oracle XE-AMI: Step by Step


Login to the APEX:

Oracle XE-AMI: Step by Step


Login to the APEX:

Database Storage in the Cloud

Oracle Recovery Manager


Database Files Database Files RMAN Backup RMAN Backup Flash Recovery Area Flash Recovery Area

RMAN Tape Interface

RMAN Backup Best Practices Backup to Flash Recovery Area (FRA) Migrate backups from FRA to tape Move tapes to off-site location

Offsite Tape Storage

Oracle Recovery Manager + S3


Database Files Database Files RMAN Backup RMAN Backup Flash Recovery Area Flash Recovery Area

RMAN S3 Interface

RMAN Backup Best Practices Backup to Flash Recovery Area (FRA) Migrate Backups to S3 Migrate backups from FRA to tape Move tapes to off-site location

Amazon S3 Amazon S3

Oracle Recovery Manager + S3


Database Files Database Files RMAN Backup RMAN Backup Flash Recovery Area Flash Recovery Area

RMAN S3 Interface

RMAN Backup Best Practices Backup to Flash Recovery Area (FRA) Migrate Backups to S3 Migrate backups from FRA to tape Move tapes to off-site location No Longer Necessary

Amazon S3 Amazon S3

Oracle Recovery Manager + S3


Database Files Database Files RMAN S3 Interface RMAN Backup RMAN Backup

Amazon S3 Amazon S3

or backup directly to S3

Oracle Recovery Manager + S3


Configuring RMAN for S3 Install Oracle Supplied SBT Library Configure sbt_pfile.ora Configure SBT Channel in RMAN Point to SBT Library Point to sbt_pfile.ora

SecureFile Storage on S3
External Storage for SecureFiles (next generation LOB)
SQL and PL/SQL access to SecureFile data stored on S3
Create, Retrieve, Update, Delete

Storage location (internal, S3) transparent to user Enables transactional capabilities within S3 for SecureFiles
(e.g. Rollback / Commit)

SecureFiles Archival Example Store infrequently accessed SecureFiles on S3 Low cost online data archival Reduce high-end storage utilization
Amazon S3 Amazon S3

SQL

Demo Oracle Database Recovery Manager and S3

Oracle RMAN and S3: Step by Step


Configure sbt_pfile.ora

Oracle RMAN and S3: Step by Step


Configure RMAN Channel

Oracle RMAN and S3: Step by Step


Check you S3 Bucket

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Schedule an RMAN Backup

Oracle RMAN and S3: Step by Step


Monitor your RMAN Backup

Oracle RMAN and S3: Step by Step


Monitor your RMAN Backup

Oracle RMAN and S3: Step by Step


Check you S3 Bucket

Demo Oracle Database SecureFiles and S3

Oracle SecureFiles and S3: Step by Step


Check you S3 Bucket

Oracle SecureFiles and S3: Step by Step


Check you S3 Bucket

Oracle SecureFiles and S3: Step by Step


Check you S3 Bucket

Oracle SecureFiles and S3: Step by Step


Create a Table with a LOB Column

Oracle SecureFiles and S3: Step by Step


Insert Data into the Table

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step


Review PL/SQL Block

Oracle SecureFiles and S3: Step by Step


Review PL/SQL Block

Oracle SecureFiles and S3: Step by Step


Load S3 Object into LOB Column

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step


Check the Size of the LOB Column

Oracle SecureFiles and S3: Step by Step

Conclusion EC2
Amazon Web Services provide Oracle customers with a compelling Utility Computing Model:
Pay only for what you use Lowers IT costs (hardware and management) Enables on-demand hardware provisioning

Perfect for Small and Medium Businesses (SMB)


Low costs Minimum IT Administration Highly Scalable Grid Computing

Beta Participation

Contact Information: Bill Hodak bill.hodak@oracle.com

You might also like