aws webcast - amazon rds for oracle: best practices and migration

33
Amazon RDS Oracle Best Practices

Upload: amazon-web-services

Post on 10-May-2015

1.921 views

Category:

Technology


13 download

DESCRIPTION

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. With Amazon RDS, you can deploy multiple editions of Oracle Database 11g in minutes with cost-efficient and re-sizable hardware capacity. In this webinar, we'll discuss how to get the most out of the service, including techniques for migrating data in and out.

TRANSCRIPT

Page 1: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Amazon RDS Oracle Best Practices

Page 2: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Agenda

• Quick introduction to Amazon RDS for Oracle

• RDS Oracle Licensing

• RDS Oracle Use Cases

• RDS Oracle Security Best Practices

• RDS Oracle Performance Best Practices

• RDS Oracle Management Best Practices

• RDS Oracle Data Migration Best Practices

Page 3: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Power, HVAC, net

Rack & stack

Server maintenance

OS patches

DB s/w patches

Database backups

Scaling

High availability

DB s/w installs

OS installation

you

App optimization

What is Amazon RDS?

Page 4: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

What is Amazon RDS?

Power, HVAC, net

Rack & stack

Server maintenance

OS patches

DB s/w patches

Database backups

Scaling

High availability

DB s/w installs

OS installation

you

App optimization

Page 5: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

What is Amazon RDS?

Power, HVAC, net

Rack & stack

Server maintenance

OS patches

DB s/w patches

Database backups

App optimization

High availability

DB s/w installs

OS installation

you

Scaling

Page 6: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Why Amazon RDS for Oracle?

• Deploy multiple editions of Oracle 11g in minutes

• Realize up to 25,000 IOPS

• Get a high-availability Oracle solution without Enterprise Edition

• Choice of Pay-as-You-Go or License Included model brings

flexibility

• Use AWS Enterprise Support or Oracle support

• Support for Oracle GoldenGate enables multi-master configurations

Page 7: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Oracle

Licensing and Support

Processor & socket licensing

0.25 core multiplier for standard

licenses (sockets)

0.5 core multiplier for

enterprise licenses (processor)

BYOL

• Enterprise license agreement

• Unlimited license agreement

• Oracle partner network

• BPO license

• Oracle Technology Network

Pay-as-you-go

• RDS for Oracle SE One

Page 8: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Oracle Licensing Options License Included Bring-Your-Own-License

Standard Edition One

Standard Edition

Enterprise Edition

Amazon RDS Oracle – Licensing & Pricing Options

Oracle Pricing Options Contract Pay Per Hour License

Included Bring Your

Own License Multi AZ

On-Demand No contract

Reserved Instances 1 year or 3 year

options

Licensing Options:

Pricing Options:

Page 9: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Production Instances of

Enterprise Applications

Development and Test

Instances for Enterprise and

custom applications

Replica of Production for

reporting and BI/DW feed.

Training, POC, Sandbox,

Patch Testing and

debugging instances

Disaster Recovery Site on

AWS

Custom Developed

Applications

Customer use cases for RDS Oracle

Page 10: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Amazon RDS - Great fit for Enterprise Application

Delivers Enterprise Application needs and wants

• Fully managed database engines that are commonly used for

Enterprise Applications.

• High-Availability and transparent failover

• Enterprise class performance and easy scalability

• Automated backups and easy replication

• Rapid provisioning and deployment

• Automation support with APIs and CloudFormation scripts

• Low-touch management/administration

Page 11: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Enterprise Application AWS customers use with RDS

• PeopleSoft

• JD Edwards

• Siebel

• ATG Web Commerce

• Jaspersoft

• SugarCRM

• Alfresco

Page 12: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Enterprise Application HA Architecture

Page 13: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Oracle Best Practices

Page 14: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Oracle Security Best Practices

• Individual IAM account to each person who manages RDS

resources. Do not use AWS root credentials.

• Do not use master user for application db access, create

separate accounts

• Put your RDS Database instance in a private subnet of a VPC

• Be careful with Security Group setting, never use 0.0.0.0/0

Page 15: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Performance Best Practices

• Choose the right size instance for your workload

• Always go with PIOPS

• Monitor database alert logs for critical issues

• Don’t leave invalid database objects in the database

• Provision enough storage to host archive logs before they are

backed up and deleted.

• Scaling storage and PIOPS are time consuming so plan

accordingly.

• Scaling instance requires outage (if not using Multi-AZ)

Page 16: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Management Best Practices

• Always schedule backups

• Create snapshots on a regular basis

• Use the familiar Oracle EM DB Console at :1158/em

• Use CloudWatch alerts to always keep an eye on the instance

with alerts

• If you need to use third party monitoring tools use agentless tools

Page 17: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Data Migration to RDS Oracle

Page 18: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

General Considerations

• Number of databases, data sizes

• Data types, character sets

• Data transfer mechanism

• Connected Apps, DB links

• Network accessibility, bandwidth, latency

• Acceptable downtime

Page 19: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

One-Time Migration

• Copy entire database to Amazon RDS

Use cases

– Migrate prod to Amazon RDS

– Build POCs, pilots

– First step before replicating databases

Page 20: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Pre-Migration Steps

• Stop applications accessing the DB

• Take a snapshot

• Disable backups

• Use Single-AZ instances

• Optimum instance for load performance

• Configure security for cross-DB traffic

Page 21: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

For Small Dataset, one time load

• Oracle Import/Export

• Oracle Data Pump network mode

• Oracle SQL*Loader

• Oracle materialized views

Page 22: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

For Large Dataset, one time load

• Oracle Data Pump Export and Import

Page 23: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Migration Process

Page 24: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Data Pump Export

• Reduce the data set to optimal size, avoid indexes

• Use compression and parallel processing

• Use multiple disks with independent I/O

Page 25: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Optimize Data Upload

• Use Tsunami for UDP-based file transfer

• Use large Amazon EC2 instance with SSD or PIOPS volume

• Use multiple disks with independent I/O

• You could use multiple Amazon EC2 instances for parallel upload

Page 26: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Data File Upload to RDS

• RDS DB instance has an externally accessible Oracle Directory Object

DATA_PUMP_DIR

• Use a script to move data files to Amazon RDS DATA_PUMP_DIR

• Use the largest Amazon RDS DB instance possible during the import

process

• Avoid using Amazon RDS DB instance for any other load during this

time

• Provision enough storage in the Amazon RDS DB instance for the

uploaded files and imported data

Page 27: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Import data into the RDS

• Import from within Amazon RDS instance using

DBMS_DATAPUMP package

• Submit a job using PL/SQL script

Page 28: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Periodic Migration

• Copy changes to Amazon RDS

• Use cases – Delta refresh for prod migration

– Daily refresh for non-prod, reporting

Page 29: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Ongoing Replication

• Log shipping

• Transactional replication

• Use cases – Near-zero downtime migrations

– Query offloading, BI/reporting

– Data protection, disaster recovery

Page 30: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Oracle GoldenGate

• Oracle product for real-time data integration and

replication

– Log-based change data capture

– Transaction-safe bidirectional replication

• Works with Amazon RDS for Oracle

– Migration into and out of RDS Oracle

– Providing a readable secondary for read offloading

– Master-master replication

Page 31: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

GoldenGate Replication with RDS Oracle

GoldenGate Oracle

GoldenGate Oracle

GoldenGate GoldenGate

On-premises Oracle to RDS/Oracle Oracle in EC2 to RDS/Oracle

RDS/Oracle to RDS/Oracle

(same AWS Region)

RDS/Oracle to RDS/Oracle

(different AWS Region)

Page 32: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

Getting started with GoldenGate

• Obtain license from Oracle – “Bring-Your-Own-License” model only

• Run the GoldenGate Hub on a correctly sized EC2

Instance

• Enable supplemental logging on source database

• Configure source to retain redo logs

• Use the Extract and Replicat utilities provided by Oracle

GoldenGate

Page 33: AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration

RDS Post-migration Steps

• Turn on backups

• Turn on multi-az

• Create read replicas

• Tighten down security

• Notifications via Amazon CloudWatch, DBEvents