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


Published on

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.

Published in: Technology, Business
1 Comment
1 Like
  • It is very effective for staging & development databases during cloning from prod to testing.
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

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

  1. 1. Amazon RDS Oracle Best Practices
  2. 2. 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
  3. 3. 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?
  4. 4. 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
  5. 5. 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
  6. 6. 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
  7. 7. 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
  8. 8. 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:
  9. 9. 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
  10. 10. 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
  11. 11. Enterprise Application AWS customers use with RDS • PeopleSoft • JD Edwards • Siebel • ATG Web Commerce • Jaspersoft • SugarCRM • Alfresco
  12. 12. Enterprise Application HA Architecture
  13. 13. RDS Oracle Best Practices
  14. 14. 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
  15. 15. 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)
  16. 16. 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
  17. 17. Data Migration to RDS Oracle
  18. 18. General Considerations • Number of databases, data sizes • Data types, character sets • Data transfer mechanism • Connected Apps, DB links • Network accessibility, bandwidth, latency • Acceptable downtime
  19. 19. One-Time Migration • Copy entire database to Amazon RDS Use cases – Migrate prod to Amazon RDS – Build POCs, pilots – First step before replicating databases
  20. 20. 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
  21. 21. For Small Dataset, one time load • Oracle Import/Export • Oracle Data Pump network mode • Oracle SQL*Loader • Oracle materialized views
  22. 22. For Large Dataset, one time load • Oracle Data Pump Export and Import
  23. 23. Migration Process
  24. 24. Data Pump Export • Reduce the data set to optimal size, avoid indexes • Use compression and parallel processing • Use multiple disks with independent I/O
  25. 25. 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
  26. 26. 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
  27. 27. Import data into the RDS • Import from within Amazon RDS instance using DBMS_DATAPUMP package • Submit a job using PL/SQL script
  28. 28. Periodic Migration • Copy changes to Amazon RDS • Use cases – Delta refresh for prod migration – Daily refresh for non-prod, reporting
  29. 29. Ongoing Replication • Log shipping • Transactional replication • Use cases – Near-zero downtime migrations – Query offloading, BI/reporting – Data protection, disaster recovery
  30. 30. 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
  31. 31. GoldenGate Replication with RDS Oracle GoldenGate Oracle GoldenGateOracle 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)
  32. 32. 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
  33. 33. RDS Post-migration Steps • Turn on backups • Turn on multi-az • Create read replicas • Tighten down security • Notifications via Amazon CloudWatch, DBEvents
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.