Using Oracle Database with Amazon Web Services

Post on 06-May-2015

16.685 views 7 download

Transcript of Using Oracle Database with Amazon Web Services

<Insert Picture Here>

Using Oracle Database with Amazon Web Services Oracle Open World -

November 2007

Bill HodakSr. Product ManagerOracle Corporation

Jinesh VariaWeb Services EvangelistAmazon

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 Oracle’s products remain at the sole discretion of Oracle.

Introduction

Web Services: Self-contained functions that can be published and invoked across the web using XML-

based protocols.

Amazon Web Services (AWS): ‘Web Services’ for directly accessing Amazon's technology platform and product data, ranging from retrieving product information to leveraging Amazon’s 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 Amazon’s 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)

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

Small Instance32-Bit

Large Instance64-Bit

Extra Large Instance64-Bit

EC2 Compute Units 1 4 8

Virtual Cores 1 2 4

Memory 1.7 GB 7.5 GB 15 GB

Instance Storage 160 GB 850 GB 1.7 TB

Cost $0.10 / Hour $0.40 / Hour $0.80 / Hour

EC2 Instance Types

Amazon Simple Storage Service (S3)

S3 is an Amazon Web Service offering that enables customers to leverage Amazon’s 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 Computingin 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 API’s 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 StepLogin as root:

Oracle XE-AMI: Step by StepLogin as root:

Oracle XE-AMI: Step by StepReview the ‘readme’

files:

Oracle XE-AMI: Step by StepReview the ‘readme’

files:

Oracle XE-AMI: Step by StepRun the first_login.sh

script:

Oracle XE-AMI: Step by StepLogin to the database:

Oracle XE-AMI: Step by StepLogin to the database:

Oracle XE-AMI: Step by StepLogin to the database:

Oracle XE-AMI: Step by StepLogin to the APEX:

Oracle XE-AMI: Step by StepLogin to the APEX:

Database Storage

in the Cloud

Oracle Recovery Manager

Database FilesDatabase Files RMAN BackupRMAN Backup Flash Recovery AreaFlash Recovery Area

RMAN Tape Interface

Offsite Tape Storage

RMAN Backup Best Practices•

Backup to Flash Recovery Area (FRA)•

Migrate backups from FRA to tape•

Move tapes to off-site location

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

Oracle Recovery Manager + S3

Database FilesDatabase Files Flash Recovery AreaFlash Recovery Area

RMAN S3 Interface

RMAN BackupRMAN Backup

Amazon S3Amazon S3

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

Oracle Recovery Manager + S3

Database FilesDatabase Files Flash Recovery AreaFlash Recovery Area

RMAN S3 Interface

RMAN BackupRMAN Backup

No Longer Necessary

Amazon S3Amazon S3

Oracle Recovery Manager + S3

Database FilesDatabase Files

RMAN S3 Interface

RMAN BackupRMAN Backup

…or backup directly to S3Amazon S3Amazon 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

SQLAmazon S3Amazon S3

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

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

EC2

Contact Information:

Bill Hodakbill.hodak@oracle.com

Beta Participation