Using Oracle Database with Amazon Web Services

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

Transcript of Using Oracle Database with Amazon Web Services

Page 1: 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

Page 2: Using Oracle Database with Amazon Web Services

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.

Page 3: Using Oracle Database with Amazon Web Services

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…

Page 4: Using Oracle Database with Amazon Web Services

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.

Page 5: Using Oracle Database with Amazon Web Services

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

Page 6: Using Oracle Database with Amazon Web Services

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

Page 7: Using Oracle Database with Amazon Web Services

Database Computingin the Cloud

Page 8: Using Oracle Database with Amazon Web Services

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)

Page 9: Using Oracle Database with Amazon Web Services

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

Page 10: Using Oracle Database with Amazon Web Services

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

Page 11: Using Oracle Database with Amazon Web Services

Demo

Oracle Database on EC2

Page 12: Using Oracle Database with Amazon Web Services

Oracle XE on EC2: Step by Step

Page 13: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Set Environment Variables:

Page 14: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Set Environment Variables:

Page 15: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Find the AMI we want to start:

Page 16: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Find the AMI we want to start:

Page 17: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Start an instance of the AMI:

Page 18: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Start an instance of the AMI:

Page 19: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

See if the instance has started:

Page 20: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

See if the instance has started:

Page 21: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

See if the instance has started:

Page 22: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

Get the host/DNS details:

Page 23: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

SSH to the host:

Page 24: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

SSH to the host:

Page 25: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by Step

SSH to the host:

Page 26: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by StepLogin as root:

Page 27: Using Oracle Database with Amazon Web Services

Oracle XE-AMI: Step by StepLogin as root:

Page 28: Using Oracle Database with Amazon Web Services

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

files:

Page 29: Using Oracle Database with Amazon Web Services

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

files:

Page 30: Using Oracle Database with Amazon Web Services

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

script:

Page 31: Using Oracle Database with Amazon Web Services

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

Page 32: Using Oracle Database with Amazon Web Services

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

Page 33: Using Oracle Database with Amazon Web Services

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

Page 34: Using Oracle Database with Amazon Web Services

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

Page 35: Using Oracle Database with Amazon Web Services

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

Page 36: Using Oracle Database with Amazon Web Services

Database Storage

in the Cloud

Page 37: Using Oracle Database with Amazon Web Services

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

Page 38: Using Oracle Database with Amazon Web Services

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

Page 39: Using Oracle Database with Amazon Web Services

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

Page 40: Using Oracle Database with Amazon Web Services

Oracle Recovery Manager + S3

Database FilesDatabase Files

RMAN S3 Interface

RMAN BackupRMAN Backup

…or backup directly to S3Amazon S3Amazon S3

Page 41: Using Oracle Database with Amazon Web Services

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

Page 42: Using Oracle Database with Amazon Web Services

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

Page 43: Using Oracle Database with Amazon Web Services

Demo

Oracle Database Recovery Manager and S3

Page 44: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Configure sbt_pfile.ora

Page 45: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Configure RMAN Channel

Page 46: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Check you S3 Bucket

Page 47: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 48: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 49: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 50: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 51: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 52: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 53: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 54: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 55: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 56: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Schedule an RMAN Backup

Page 57: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Monitor your RMAN Backup

Page 58: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Monitor your RMAN Backup

Page 59: Using Oracle Database with Amazon Web Services

Oracle RMAN and S3: Step by Step

Check you S3 Bucket

Page 60: Using Oracle Database with Amazon Web Services

Demo

Oracle Database SecureFiles

and S3

Page 61: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check you S3 Bucket

Page 62: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check you S3 Bucket

Page 63: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check you S3 Bucket

Page 64: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Create a Table with a LOB Column

Page 65: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Insert Data into the Table

Page 66: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 67: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 68: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 69: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Review PL/SQL Block

Page 70: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Review PL/SQL Block

Page 71: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Load S3 Object into LOB Column

Page 72: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 73: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 74: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Check the Size of the LOB Column

Page 75: Using Oracle Database with Amazon Web Services

Oracle SecureFiles and S3: Step by Step

Page 76: Using Oracle Database with Amazon Web Services

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

Page 77: Using Oracle Database with Amazon Web Services

Contact Information:

Bill [email protected]

Beta Participation

Page 78: Using Oracle Database with Amazon Web Services
Page 79: Using Oracle Database with Amazon Web Services