SlideShare a Scribd company logo
Greg Khairallah | gregkh@amazon.comGeorge Loyer 
Business Development Manager –Database ServicesMarketLive, VP of Managed Services 
Migrating Applications to Amazon RDS for OracleAmazon RDS
Agenda 
•Amazon Relational Database Service Review 
•Planning your migration 
•Migration tools 
•Recommendations 
•Case Study -MarketLive
Amazon RDS 
Amazon 
DynamoDB 
Amazon Redshift 
Amazon 
ElastiCache 
Compute Storage 
AWS Global Infrastructure 
Database 
Application Services 
Deployment & Administration 
Networking 
AWS Database 
Services 
Scalable High Performance 
Application Storage in the Cloud
Amazon RDS is a fully managed SQL database service 
Simple to deploy and scale 
Without any operational burden 
Reliable and cost effective 
Choice of Database engines
If you host your databases on-premises 
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
If you host your databases on-premises 
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
If you host your databases in EC2 
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
If you host your databases in EC2 
OS patches 
DB s/w patches 
Database backups 
Scaling 
High availability 
DB s/w installs 
you 
App optimization 
Power, HVAC, net 
Rack & stack 
Server maintenance 
OS installation
If you choose a managed DB service like 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
A resilient, durable, simple application architecture 
RDS database instances: Master and Multi-AZ standby 
Application, in Amazon EC2 instances (Multi-AZ) 
Elastic Load Balancer instance 
DB snapshots in Amazon S3
Migration –RDS Planning 
•Which Oracle edition should I choose? 
•Enterprise Edition, Standard Edition or SE1 (BYOL) 
•Optimize cost with Oracle SE1 with license included 
•Review RDS Oracle documentation 
•User Guide http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html 
•Common tasks DBA tasks for the Oracle 
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.CommonDBATasks.html
Instance Selection 
•RDS offers a wide range of instance classes 
•Instance types differ on CPU, RAM, network performance, EBS Optimized 
•Base selection on 
•Performance 
•Cost (will differ based on type and region) 
•Region (not all instance types available in all regions) 
•Elastically scale instance size up/down
Oracle SQL Developer 
On-Premises 
Developer 
workstation with SQL 
Developer 
Oracle Database 
Server 
VPN Connection 
Availability Zone 
VPC Private Subnet 
Virtual Private Cloud 
Schema level 
export Amazon RDS 
Import into RDS 
over VPN
Oracle SQL*Loader 
On-Premises 
Oracle Database 
Server 
VPN Connection 
Availability Zone 
VPC Private Subnet 
Virtual Private Cloud 
Amazon RDS 
Copy 
SQL*Loader text 
files to EC2 
Oracle instance 
Oracle Database 
Server 
Load into RDS 
(over the network) 
Export 
SQL*Loader text 
file to local 
database server
Oracle Data Pump 
On-Premises 
Oracle Database 
Server 
VPN Connection 
Availability Zone 
VPC Private Subnet 
Virtual Private Cloud 
Amazon RDS 
Copy dmp files to 
EC2 Oracle 
instance 
Oracle Database 
Server 
Copy expdp file 
into 
data_pump_dir 
Direct Connect 
preferable
Oracle Golden Gate 
On-Premises 
Golden Gate Hub 
Oracle Database 
Server 
VPN Connection 
Availability Zone 
VPC Private Subnet 
Virtual Private Cloud 
Amazon RDS 
Direct Connect 
preferable
Partner Solutions 
http://www.dbvisit.com/solutions/disaster_recovery_in_the_cloud/ 
http://www.attunity.com/solutions/cloud/amazon-rds 
Tungsten Replicator
Recommendations 
•Take advantage of Data Pump options 
•Choose the largest RDS instance. Once the import is done change the RDS instance to your preferred type 
•For the import, only choose single AZ. Once the import is done you can enable multi-AZ 
•P-IOPS will improve import performance
Adopting RDS Oracle SE1 
Giving up Oracle Enterprise
Delivering growth in managed e-commerce hosting 
•Party City 
•Customer since April 2006 
•Multichannel, multi-site integration 
•2009-2012 CAGGR: 107% 
•Peruvian Connection 
•Customer since December 2005 
•International site, integrated video 
•2009-2012 CAGGR: 47% 
•Ulla Popken 
•Customer since April 2006 
•Multichannel, multi-site integration 
•2009-2012 CAGGR: 107% 
•Sundance 
•Customer since April 2006 
•Multichannel, multi-site integration 
•2009-2012 CAGGR: 107% 
20
Oracle Enterprise –the data engine for MarketLive sites 
•Oracle Enterprise Clusters 
•Sun SparcClustering 
•Multiple Instances 
•Multiple Schemas 
•Schema per Merchant 
•DataguardStandby 
•Offline reporting 
•Warm Site Standby 
•Disaster Recovery 
•Online indexing 
•OLTP performance 
•Catalog repository 
21
AWS Required Rethinking Deployment of Oracle 
•Discovery 
•Enterprise features in use 
•Alternatives in RDS Oracle SE1 
•Migration gaps to SE1 
•Learning curve for DBAs 
•Deployment changes 
•SE1 for cost + flexibility 
•Management operations 
•Monitoring deployment 
•Sync solution 
22
Comparing Enterprise and Standard Edition 1 
Oracle Enterprise 
•Dataguardreplication 
•Direct access to the OS for scripting, cronjobs 
•Database migration across license types 
•Online indexing 
RDS Oracle SE1 at AWS 
•RDS snapshots 
•Attunityreplication 
•Jumpboxapproach 
•RDS console operations 
•Attunitymoves data from Enterprise to SE1 seamlessly 
•Maintenance required for new indexes 
23
DBA Learning Curve 
•Getting over not being able to log into the RDS instance itself 
•Workaround for lack of EXPDP, still learning the AWS-way to make this a smoother process 
•Changes in naming conventions, operations practices when moving from large cluster instance to instance per merchant deployment 
•Re-implementation of some monitoring scripts that are part of database management practices at MarketLive 
•Re-factoring post stored procedure script execution 
•Maintenance required for new index creation on large tables 
24
Lessons Learned 
•Take advantage of the AWS RDS team! 
•Give DBAs familiar with Enterprise enough time to work through the changes in operation required to downshift to SE1 (but don’t accept that there is a task that “can’t be done”) 
•Dig into the features and functions of the RDS console and practice with it in a test environment so you know what to expect in terms of time and operation 
•Take advantage of RDS Business Support –excellent response and expertise 
25

More Related Content

AWS Webcast - Migrating to RDS Oracle

  • 1. Greg Khairallah | gregkh@amazon.comGeorge Loyer Business Development Manager –Database ServicesMarketLive, VP of Managed Services Migrating Applications to Amazon RDS for OracleAmazon RDS
  • 2. Agenda •Amazon Relational Database Service Review •Planning your migration •Migration tools •Recommendations •Case Study -MarketLive
  • 3. Amazon RDS Amazon DynamoDB Amazon Redshift Amazon ElastiCache Compute Storage AWS Global Infrastructure Database Application Services Deployment & Administration Networking AWS Database Services Scalable High Performance Application Storage in the Cloud
  • 4. Amazon RDS is a fully managed SQL database service Simple to deploy and scale Without any operational burden Reliable and cost effective Choice of Database engines
  • 5. If you host your databases on-premises 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
  • 6. If you host your databases on-premises 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
  • 7. If you host your databases in EC2 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
  • 8. If you host your databases in EC2 OS patches DB s/w patches Database backups Scaling High availability DB s/w installs you App optimization Power, HVAC, net Rack & stack Server maintenance OS installation
  • 9. If you choose a managed DB service like 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
  • 10. A resilient, durable, simple application architecture RDS database instances: Master and Multi-AZ standby Application, in Amazon EC2 instances (Multi-AZ) Elastic Load Balancer instance DB snapshots in Amazon S3
  • 11. Migration –RDS Planning •Which Oracle edition should I choose? •Enterprise Edition, Standard Edition or SE1 (BYOL) •Optimize cost with Oracle SE1 with license included •Review RDS Oracle documentation •User Guide http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html •Common tasks DBA tasks for the Oracle http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.CommonDBATasks.html
  • 12. Instance Selection •RDS offers a wide range of instance classes •Instance types differ on CPU, RAM, network performance, EBS Optimized •Base selection on •Performance •Cost (will differ based on type and region) •Region (not all instance types available in all regions) •Elastically scale instance size up/down
  • 13. Oracle SQL Developer On-Premises Developer workstation with SQL Developer Oracle Database Server VPN Connection Availability Zone VPC Private Subnet Virtual Private Cloud Schema level export Amazon RDS Import into RDS over VPN
  • 14. Oracle SQL*Loader On-Premises Oracle Database Server VPN Connection Availability Zone VPC Private Subnet Virtual Private Cloud Amazon RDS Copy SQL*Loader text files to EC2 Oracle instance Oracle Database Server Load into RDS (over the network) Export SQL*Loader text file to local database server
  • 15. Oracle Data Pump On-Premises Oracle Database Server VPN Connection Availability Zone VPC Private Subnet Virtual Private Cloud Amazon RDS Copy dmp files to EC2 Oracle instance Oracle Database Server Copy expdp file into data_pump_dir Direct Connect preferable
  • 16. Oracle Golden Gate On-Premises Golden Gate Hub Oracle Database Server VPN Connection Availability Zone VPC Private Subnet Virtual Private Cloud Amazon RDS Direct Connect preferable
  • 17. Partner Solutions http://www.dbvisit.com/solutions/disaster_recovery_in_the_cloud/ http://www.attunity.com/solutions/cloud/amazon-rds Tungsten Replicator
  • 18. Recommendations •Take advantage of Data Pump options •Choose the largest RDS instance. Once the import is done change the RDS instance to your preferred type •For the import, only choose single AZ. Once the import is done you can enable multi-AZ •P-IOPS will improve import performance
  • 19. Adopting RDS Oracle SE1 Giving up Oracle Enterprise
  • 20. Delivering growth in managed e-commerce hosting •Party City •Customer since April 2006 •Multichannel, multi-site integration •2009-2012 CAGGR: 107% •Peruvian Connection •Customer since December 2005 •International site, integrated video •2009-2012 CAGGR: 47% •Ulla Popken •Customer since April 2006 •Multichannel, multi-site integration •2009-2012 CAGGR: 107% •Sundance •Customer since April 2006 •Multichannel, multi-site integration •2009-2012 CAGGR: 107% 20
  • 21. Oracle Enterprise –the data engine for MarketLive sites •Oracle Enterprise Clusters •Sun SparcClustering •Multiple Instances •Multiple Schemas •Schema per Merchant •DataguardStandby •Offline reporting •Warm Site Standby •Disaster Recovery •Online indexing •OLTP performance •Catalog repository 21
  • 22. AWS Required Rethinking Deployment of Oracle •Discovery •Enterprise features in use •Alternatives in RDS Oracle SE1 •Migration gaps to SE1 •Learning curve for DBAs •Deployment changes •SE1 for cost + flexibility •Management operations •Monitoring deployment •Sync solution 22
  • 23. Comparing Enterprise and Standard Edition 1 Oracle Enterprise •Dataguardreplication •Direct access to the OS for scripting, cronjobs •Database migration across license types •Online indexing RDS Oracle SE1 at AWS •RDS snapshots •Attunityreplication •Jumpboxapproach •RDS console operations •Attunitymoves data from Enterprise to SE1 seamlessly •Maintenance required for new indexes 23
  • 24. DBA Learning Curve •Getting over not being able to log into the RDS instance itself •Workaround for lack of EXPDP, still learning the AWS-way to make this a smoother process •Changes in naming conventions, operations practices when moving from large cluster instance to instance per merchant deployment •Re-implementation of some monitoring scripts that are part of database management practices at MarketLive •Re-factoring post stored procedure script execution •Maintenance required for new index creation on large tables 24
  • 25. Lessons Learned •Take advantage of the AWS RDS team! •Give DBAs familiar with Enterprise enough time to work through the changes in operation required to downshift to SE1 (but don’t accept that there is a task that “can’t be done”) •Dig into the features and functions of the RDS console and practice with it in a test environment so you know what to expect in terms of time and operation •Take advantage of RDS Business Support –excellent response and expertise 25