Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Moving Your Oracle Databases To The Oracle Cloud

195 views

Published on

Session for OOW 2018

Published in: Technology
  • Be the first to comment

Moving Your Oracle Databases To The Oracle Cloud

  1. 1. MOVING YOUR ORACLE DATABASES TO THE ORACLE CLOUD ALEX ZABALLA
  2. 2. ALEX ZABALLA Copyright © 2018 Accenture. All rights reserved. 2 CHRISTIAN, HUSBAND, FATHER, DBA, ACE DIRECTOR, WRITER AT OTN, SPEAKER AND BLOGGER. 276 – Including OPN http://alexzaballa.blogspot.com/ @alexzaballa https://www.linkedin.com/in/alexzaballa
  3. 3. Copyright © 2018 Accenture. All rights reserved. 3 Worked for 3 years in Brazil as a Clipper/Delphi Developer (15 years old) 1997-1999 Worked for 7 years in Brazil as an Oracle Developer 2000 – 2007 Worked for 8 years in Angola as an Oracle DBA for the Ministry of Finance. 2007 - 2015
  4. 4. ACCENTURE ENKITEC GROUP CAPABILITIES OVERVIEW Copyright © 2018 Accenture. All rights reserved. 4 • Global systems integrator focused on the Oracle platform • Consultants average 15+ years of Oracle experience • Worldwide specialist in Engineered Systems implementations • 14 Oracle ACE members, specialist recognized by Oracle for their technical expertiseELITE Our consultants have been published in multiple subject areas and additional online resources that demonstrate Accenture’s experience and expertise with the OES platformTHOUGHT LEADERSHIP SUCCESS EXPERTISE ORACLE SPECIALIZATIONS* • Oracle Exadata • Oracle Exalogic ORACLE ENGINEERED SYSTEMS NUMBERS • 700+ Oracle Engineered Systems which AEG have configured, patched or supported. • 100+ AEG resources which have an average 15+ years of Oracle experience • AEG Support across 9 countries • 200 Oracle Engineered Systems (Exadata/Exalogic etc) currently under management directly by AEG • 200+ customers in either the AEG Managed Services program or remote DBA program • 50,000 Accenture Oracle IDC resources that can be leveraged for Level 1 & Level 2 support • Oracle Database • Oracle GoldenGate • Oracle Data Integrator • Oracle Database • Oracle Data Warehouse • Oracle Real Application Cluster • Oracle Performance Tuning • Oracle Database Security
  5. 5. 3 MEMBERSHIP TIERS • Oracle ACE Director • Oracle ACE • Oracle ACE Associate bit.ly/OracleACEProgram oracle-ace_ww@oracle.com Facebook.com/oracleaces @oracleace 500+ TECHNICAL EXPERTS HELPING PEERS GLOBALLY CONNECT: Copyright © 2018 Accenture. All rights reserved. 5 Nominate yourself or someone you know: acenomination.oracle.com
  6. 6. Copyright © 2018 Accenture. All rights reserved. 6 AGENDA • Cloud 101 Including Creating Free Account • OCI Concepts • Moving Databases
  7. 7. ORACLE DATABASE CLOUD CLOUD 101 Copyright © 2018 Accenture. All rights reserved. 7 ON PREMISES SAME ARCHITECTURE SAME SOFTWARE SAME SKILLS ORACLE CLOUD
  8. 8. Copyright © 2018 Accenture. All rights reserved. 8 CLOUD Will the Database Cloud “Kill” the DBA?
  9. 9. Copyright © 2018 Accenture. All rights reserved. 9 CLOUD My Opinion is NO The DBA will be more specialized: • Application DBA • Architecture DBA • Performance and Tuning DBA • Big Data DBA
  10. 10. Copyright © 2018 Accenture. All rights reserved. 10
  11. 11. https://oracle-base.com/blog/2018/01/03/oracle-database-18c-is-not-an-autonomous-database/ Copyright © 2018 Accenture. All rights reserved. 11 ORACLE DATABASE 18C IS NOT AN AUTONOMOUS DATABASE Autonomous Database: It’s a cloud service that happens to use the Oracle 18c database. Oracle Database 18c: It’s not autonomous!
  12. 12. Copyright © 2018 Accenture. All rights reserved. 12 Oracle Cloud Infrastructure Classic (OCI-C) (OCI Classic) • Provides only Virtual Machines • Formerly OPC, announced at Oracle Open World 2014 • Renamed to OCI Classic at Oracle Open World 2017 • Based on Xen hypervisor Oracle Cloud Infrastructure (OCI) • Provides Virtual Machines and Bare Metal • Announced at Oracle Open World 2017 • Based on KVM hypervisor Nimbula Acquired by Oracle (2013) Built from scratch TWO MILESTONES - OCI AND OCI CLASSIC
  13. 13. Copyright © 2018 Accenture. All rights reserved. 13 ORACLE DATABASE CLOUD COMMON USE CASES – OCI CLASSIC • Dev/Test/UAT • Backup to the Cloud
  14. 14. Copyright © 2018 Accenture. All rights reserved. 14 ORACLE DATABASE CLOUD COMMON USE CASES - OCI CLASSIC • Disaster Recovery to the Cloud
  15. 15. Copyright © 2018 Accenture. All rights reserved. 15 ORACLE DATABASE CLOUD COMMON USE CASES? • Business Critical Workloads in the Cloud
  16. 16. Yes, if I’m using OCI Copyright © 2018 Accenture. All rights reserved. 16 ORACLE DATABASE CLOUD COMMON USE CASES • Business Critical Workloads in the Cloud
  17. 17. ORACLE DATABASE CLOUD CLOUD 101 Infrastructure as a Service (IaaS) Platform as a Service (PaaS) Software as a Service (SaaS)Database as a Service (Dbaas)
  18. 18. https://cloud.oracle.com/database Copyright © 2018 Accenture. All rights reserved. 18 ORACLE DATABASE CLOUD • Oracle Database Cloud Service • Oracle Database Exadata Cloud Service • Oracle Database Exadata Cloud at Customer • Oracle Database Exadata Express Cloud Service – Managed • Oracle Database Schema Cloud Service - Managed
  19. 19. Copyright © 2018 Accenture. All rights reserved. 19 ORACLE DATABASE CLOUD SERVICE Database Cloud Service provides metered pay-per-use Oracle Database 11g, 12c and 18c database services. Automated provisioning of high availability configurations elevate your SLAs for maintenance or unexpected failure scenarios. Provisioning choices include pre-packaged bundles of Oracle database options for DevOps, Performance, Security, Analytics and Monitoring. The service comes with an integrated Oracle Application Express environment providing even more cloud benefit and simplicity. • VM • Bare Metal https://cloud.oracle.com/database
  20. 20. Oracle Database Exadata Cloud Service provides full Oracle Databases hosted on Oracle Exadata Database Machine inside the Oracle Cloud. ORACLE DATABASE EXADATA CLOUD SERVICE Copyright © 2018 Accenture. All rights reserved. 20
  21. 21. Exadata Cloud Machine or ExaCM is the cloud- based Oracle Database subscription service available on Oracle Exadata, but deployed in the customer data center behind their firewall. Copyright © 2018 Accenture. All rights reserved. 21 ORACLE DATABASE EXADATA AT CUSTOMER
  22. 22. ORACLE DATABASE EXADATA EXPRESS CLOUD SERVICE - MANAGED Copyright © 2018 Accenture. All rights reserved. 22 • 1 PDB • Up to 4 OCPU and 1 TB of database storage. • Oracle Database Enterprise Edition running on Exadata • Oracle Net (SQL*Net) connectivity • Data access using RESTful Web Services and SODA • Pre-configured Application Express (APEX) **Managed by Oracle ***Affordable entry-level price
  23. 23. ORACLE DATABASE SCHEMA CLOUD SERVICE - MANAGED Copyright © 2018 Accenture. All rights reserved. 23 The "Schema as a Service" model was the first DBaaS offering delivered on the Oracle Cloud. Schema Service provides an Oracle Database schema running in Oracle Cloud, along with pre- configured APEX and RESTful Web Services. **Managed by Oracle
  24. 24. From 11G to 18C Copyright © 2018 Accenture. All rights reserved. 24 ORACLE DATABASE CLOUD SERVICE SOFTWARE EDITIONS
  25. 25. Copyright © 2018 Accenture. All rights reserved. 25 ORACLE DATABASE CLOUD SERVICE https://cloud.oracle.com/
  26. 26. Copyright © 2018 Accenture. All rights reserved. 26
  27. 27. Copyright © 2018 Accenture. All rights reserved. 27
  28. 28. Copyright © 2018 Accenture. All rights reserved. 28
  29. 29. Copyright © 2018 Accenture. All rights reserved. 29
  30. 30. Copyright © 2018 Accenture. All rights reserved. 30
  31. 31. Copyright © 2018 Accenture. All rights reserved. 31
  32. 32. = 1USD Approved = 1USD Canceled Copyright © 2018 Accenture. All rights reserved. 32
  33. 33. Copyright © 2018 Accenture. All rights reserved. 33 = 300 USD
  34. 34. Copyright © 2018 Accenture. All rights reserved. 34
  35. 35. Copyright © 2018 Accenture. All rights reserved. 35
  36. 36. Copyright © 2018 Accenture. All rights reserved. 36
  37. 37. Copyright © 2018 Accenture. All rights reserved. 37
  38. 38. Copyright © 2018 Accenture. All rights reserved. 38
  39. 39. Copyright © 2018 Accenture. All rights reserved. 39 ORACLE CLOUD INFRASTRUCTURE - OCI OCI Concepts
  40. 40. ORACLE CLOUD INFRASTRUCTURE - OCI REGIONS AND AVAILABILITY DOMAINS Copyright © 2018 Accenture. All rights reserved. 40 A region is a localized geographic area, and an availability domain is one or more data centers located within a region.
  41. 41. ORACLE CLOUD INFRASTRUCTURE - OCI REGIONS AND AVAILABILITY DOMAINS Copyright © 2018 Accenture. All rights reserved. 41 • Regions serve different geographies – provide Disaster Recovery capability • Availability Domains – provide a High Availability foundation within a region
  42. 42. ORACLE CLOUD INFRASTRUCTURE - OCI REGIONS Copyright © 2018 Accenture. All rights reserved. 42
  43. 43. ORACLE CLOUD INFRASTRUCTURE - OCI AVAILABILITY DOMAINS Copyright © 2018 Accenture. All rights reserved. 43
  44. 44. ORACLE CLOUD INFRASTRUCTURE - OCI COMPARTMENTS Copyright © 2018 Accenture. All rights reserved. 44 When you first start working with Oracle Cloud Infrastructure, you need to think carefully about how you want to use compartments to organize and isolate your cloud resources.
  45. 45. ORACLE CLOUD INFRASTRUCTURE - OCI COMPARTMENTS Copyright © 2018 Accenture. All rights reserved. 45
  46. 46. Copyright © 2018 Accenture. All rights reserved. 46 ORACLE CLOUD INFRASTRUCTURE - OCI COMPARTMENTS
  47. 47. Copyright © 2018 Accenture. All rights reserved. 47 ORACLE CLOUD INFRASTRUCTURE - OCI NETWORKING
  48. 48. Copyright © 2018 Accenture. All rights reserved. 48 ORACLE CLOUD INFRASTRUCTURE - OCI NETWORKING
  49. 49. Copyright © 2018 Accenture. All rights reserved. 49 ORACLE CLOUD INFRASTRUCTURE - OCI NETWORKING
  50. 50. Copyright © 2018 Accenture. All rights reserved. 50 ORACLE CLOUD INFRASTRUCTURE - OCI NETWORKING
  51. 51. Copyright © 2018 Accenture. All rights reserved. 51 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  52. 52. Copyright © 2018 Accenture. All rights reserved. 52 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  53. 53. Copyright © 2018 Accenture. All rights reserved. 53 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  54. 54. Copyright © 2018 Accenture. All rights reserved. 54 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  55. 55. Copyright © 2018 Accenture. All rights reserved. 55 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  56. 56. Copyright © 2018 Accenture. All rights reserved. 56 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  57. 57. Copyright © 2018 Accenture. All rights reserved. 57 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  58. 58. Copyright © 2018 Accenture. All rights reserved. 58 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  59. 59. Copyright © 2018 Accenture. All rights reserved. 59 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  60. 60. Copyright © 2018 Accenture. All rights reserved. 60 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS
  61. 61. Copyright © 2018 Accenture. All rights reserved. 61 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – 2 HOURS LATER
  62. 62. By Sai Janakiram Penumuru Copyright © 2018 Accenture. All rights reserved. 62 ORACLE DATABASE ON-PREMISES
  63. 63. Copyright © 2018 Accenture. All rights reserved. 63 SOME TOOLS FOR INFRASTRUCTURE AUTOMATION INFRASTRUCTURE AS CODE • OCI CLI • Terraform • Puppet • Chef
  64. 64. Copyright © 2018 Accenture. All rights reserved. 64 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SCALE - VM
  65. 65. ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – BACKUP Copyright © 2018 Accenture. All rights reserved. 65
  66. 66. Copyright © 2018 Accenture. All rights reserved. 66 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – BACKUP
  67. 67. 17 minutes Copyright © 2018 Accenture. All rights reserved. 67 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – BACKUP
  68. 68. Copyright © 2018 Accenture. All rights reserved. 68 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – BACKUP
  69. 69. Copyright © 2018 Accenture. All rights reserved. 69 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH GRID INFRASTRUCTURE
  70. 70. ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH DATABASE Copyright © 2018 Accenture. All rights reserved. 70
  71. 71. Copyright © 2018 Accenture. All rights reserved. 71 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH DATABASE
  72. 72. 5 minutes Copyright © 2018 Accenture. All rights reserved. 72 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH DATABASE
  73. 73. Copyright © 2018 Accenture. All rights reserved. 73 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH DATABASE
  74. 74. 18 minutes Copyright © 2018 Accenture. All rights reserved. 74 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – PATCH DATABASE
  75. 75. Shape Intel® Xeon® Processor OCPU Memory (GB) Storage BM.HighIO1.36 2.3 GHz E5-2699 v3 36 512 12.8 TB of local NVMe SSD Up to 1 PB of remote Block Volumes BM.HighIO1.36 2.3 GHz E5-2699 v3 36 512 12.8 TB of local NVMe SSD Up to 1 PB of remote Block Volumes BM.DenseIO1.36 2.3 GHz E5-2699 v3 36 512 28.8 TB of local NVMe SSD Up to 1 PB of remote Block Volumes BM.DenseIO2.52 2.0 GHz Platinum 8167M 52 768 51.2 TB of local NVMe SSD Up to 1 PB of remote Block Volumes Copyright © 2018 Accenture. All rights reserved. 75 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – BARE METAL
  76. 76. Copyright © 2018 Accenture. All rights reserved. 76 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – EXADATA
  77. 77. Copyright © 2018 Accenture. All rights reserved. 77 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – RAC
  78. 78. Copyright © 2018 Accenture. All rights reserved. 78 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – RAC Virtual Machines • 2-node RAC • RAC databases will run in a single Availability Domain (AD), while ensuring each node is on a separate physical rack ensuring high availability. Bare Metal • Two bare metal servers in RAC configuration • Direct attached shared storage Not sure for how long!
  79. 79. ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – DATAGUARD https://www.youtube.com/watch?v=36YaE1FrajQ Copyright © 2018 Accenture. All rights reserved. 79
  80. 80. https://www.youtube.com/watch?v=N5Y0hmqOfIM Copyright © 2018 Accenture. All rights reserved. 80 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – DATAGUARD
  81. 81. Copyright © 2018 Accenture. All rights reserved. 81 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SSH
  82. 82. ssh -i id_rsa opc@129.213.164.90 Copyright © 2018 Accenture. All rights reserved. 82 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SSH
  83. 83. Copyright © 2018 Accenture. All rights reserved. 83 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – DBCLI
  84. 84. dbcli create-database -dh <db_home_id> -cl {OLTP|DSS|IMDB} -n <db_name> -u <unique_name> -bi <bkup_config_id> -m -s <db_shape> -r {ACFS|ASM} -y {SI|RAC|RACOne} -io -d <pdb_admin_user> -p <pdb> -g n -ns <nlcharset> -cs <charset> -l <language> -dt<territory> -v <version> [-co|-no-co] [-h] [-j] Copyright © 2018 Accenture. All rights reserved. 84 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – DBCLI
  85. 85. Copyright © 2018 Accenture. All rights reserved. 85 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SQLPLUS
  86. 86. Copyright © 2018 Accenture. All rights reserved. 86 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SQLDEVELOPER
  87. 87. Copyright © 2018 Accenture. All rights reserved. 87 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SQLDEVELOPER
  88. 88. Copyright © 2018 Accenture. All rights reserved. 88 ORACLE CLOUD INFRASTRUCTURE - OCI DBCS – SQLDEVELOPER
  89. 89. ORACLE DATABASE CLOUD SERVICE DETERMINE THE COMPUTE SHAPE TO MOVE TO CLOUD
  90. 90. Copyright © 2018 Accenture. All rights reserved. 90 I’m a DBA ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  91. 91. Copyright © 2018 Accenture. All rights reserved. 91 I will use the same amount of CPUs and memory that I have on-premises! ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  92. 92. Copyright © 2018 Accenture. All rights reserved. 92 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  93. 93. Use Database Consolidation Workbench **Database Consolidation Workbench requires the Database Diagnostics pack license. Copyright © 2018 Accenture. All rights reserved. 93 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  94. 94. Ok! Now we have the definition of CPUs, Memory and Storage equivalent in the Oracle Cloud. Copyright © 2018 Accenture. All rights reserved. 94 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  95. 95. https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/migrating.htm ORACLE DATABASE CLOUD SOME MIGRATION METHODS Copyright © 2018 Accenture. All rights reserved. 95
  96. 96. https://docs.oracle.com/en/cloud/paas/database-dbaas-cloud/csdbi/considerations-migrating-premises-database-dbcs.html Copyright © 2018 Accenture. All rights reserved. 96 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD
  97. 97. 1 - Database version of your on-premises database: • Oracle Database 11g Release 2 version lower than 11.2.0.3 • Oracle Database 11g Release 2 version 11.2.0.3 or higher • Oracle Database 12c Release 1 version lower than 12.1.0.2 • Oracle Database 12c Release 1 version 12.1.0.2 or higher 2 - For on-premises Oracle Database 12c Release 1 databases, the architecture of the database: • Multitenant container database (CDB) • Non-CDB Copyright © 2018 Accenture. All rights reserved. 97 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD
  98. 98. 3 - Endian format (byte ordering) of your on-premises database’s host platform 4 - Database character set of your on-premises database and Oracle Database Cloud Service database 5 - Database version of the Oracle Database Cloud database you are migrating to: • Oracle Database 11g Release 2 • Oracle Database 12c Release 1 • Oracle Database 12c Release 2 • Oracle Database 18c Copyright © 2018 Accenture. All rights reserved. 98 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD
  99. 99. • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump Copyright © 2018 Accenture. All rights reserved. 99 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 11G TO ORACLE DATABASE 11G IN THE CLOUD
  100. 100. • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump • Data Pump Full Transportable Copyright © 2018 Accenture. All rights reserved. 100 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 11G TO ORACLE DATABASE 12C IN THE CLOUD
  101. 101. • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump • RMAN Cross-Platform Transportable Tablespace Backup Sets • Data Pump Full Transportable • Unplugging/Plugging (CDB) • Remote Cloning (CDB) • RMAN Cross-Platform Transportable PDB • SQL Developer and SQL*Loader to Migrate Selected Objects • SQL Developer and INSERT Statements to Migrate Selected Objects Copyright © 2018 Accenture. All rights reserved. 101 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 12C CDB TO ORACLE DATABASE 12C IN THE CLOUD
  102. 102. • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump • RMAN Cross-Platform Transportable Tablespace Backup Sets • Data Pump Full Transportable • Unplugging/Plugging (CDB) • Remote Cloning (non-CDB) • SQL Developer and SQL*Loader to Migrate Selected Objects • SQL Developer and INSERT Statements to Migrate Selected Objects Copyright © 2018 Accenture. All rights reserved. 102 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 12C NON- CDB TO ORACLE DATABASE 12C IN THE CLOUD
  103. 103. Copyright © 2018 Accenture. All rights reserved. 103 Downtime? ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD
  104. 104. https://cloud.oracle.com/iaas/whitepapers/database_migration_aws_to_oci_database.pdf Method Database Size SQL Developer Copy <= 200 MB SQL*Loader <= 10 GB Data Pump Conventional <= 20 TB Data Pump Full Transportable Data Pump Transportable Tablespace Any size Remote Clone a PDB Remote Clone a Non-CDB <= 5 TB Unplug and Plug a PDB Unplug and Plug a Non-CDB Any size RMAN Any size Migrate Using Data Guard Any size Migrate Using RMAN Any size Migrate Using GG Any size Copyright © 2018 Accenture. All rights reserved. 104 ORACLE DATABASE CLOUD SOME MIGRATION METHODS
  105. 105. LOAD DATA Uploading data to the cloud, even using fast public internet connections, migrating 100 TB of data can take up to 8 months. Copyright © 2018 Accenture. All rights reserved. 105
  106. 106. • Fast Data Migration → Move 100s of TB of data to Oracle Cloud Infrastructure in days, instead of weeks or months. • Simple → Use the UI or the Data Transfer Utility to initiate the data migration process, copy data to hard drives, and ship them to Oracle, where we import it. • Scalable → Whether you want to migrate a few terabytes or a petabyte, Data Transfer Service can help. • Affordable → There is no cost to transfer data with Data Transfer Service. https://cloud.oracle.com/storage/data-transfer/features Copyright © 2018 Accenture. All rights reserved. 106 LOAD DATA DATA TRANSFER SERVICE
  107. 107. https://blogs.oracle.com/cloud-infrastructure/introducing-oracle-cloud-infrastructure-data-transfer-appliance Copyright © 2018 Accenture. All rights reserved. 107 LOAD DATA DATA TRANSFER APPLIANCE
  108. 108. Copyright © 2018 Accenture. All rights reserved. 108 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  109. 109. • Download the Oracle Database Cloud Backup Module, and upload it to the /tmp directory of both the source and target database instances. • Log in as the oracle user, change the directory to /tmp, unzip opc_installer.zip, and run java -jar opc_install.jar to install the backup module. https://blogs.oracle.com/cloud-infrastructure/migrating-an-oracle-database-to-an-oracle-cloud-infrastructure-database- service-virtual-machine Copyright © 2018 Accenture. All rights reserved. 109 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  110. 110. Copyright © 2018 Accenture. All rights reserved. 110 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  111. 111. Copyright © 2018 Accenture. All rights reserved. 111 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  112. 112. https://blogs.oracle.com/cloud-infrastructure/migrating-an-oracle-database-to-an-oracle-cloud-infrastructure-database- service-virtual-machine Copyright © 2018 Accenture. All rights reserved. 112 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  113. 113. Copyright © 2018 Accenture. All rights reserved. 113 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  114. 114. Copyright © 2018 Accenture. All rights reserved. 114 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  115. 115. Restore the Server Parameter File: https://blogs.oracle.com/cloud-infrastructure/migrating-an-oracle-database-to-an-oracle-cloud-infrastructure-database-service-virtual-machine Copyright © 2018 Accenture. All rights reserved. 115 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  116. 116. Restore the Database Control Files: https://blogs.oracle.com/cloud-infrastructure/migrating-an-oracle-database-to-an-oracle-cloud-infrastructure-database-service-virtual-machine Copyright © 2018 Accenture. All rights reserved. 116 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  117. 117. Restore/Recover the Database Files: Copyright © 2018 Accenture. All rights reserved. 117 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  118. 118. • No upgrade to new version • Source version 11.2.0.4, 12.1.0.2, 12.2.0.1, 18 Copyright © 2018 Accenture. All rights reserved. 118 LOAD DATA / MIGRATION – BACKUP / RESTORE ORACLE DATABASE CLOUD BACKUP MODULE
  119. 119. LOAD DATA / MIGRATION USING DATA PUMP
  120. 120. • Cross-endian possible • Source version 10g and later • Migrate from non-CDB to PDB • Changes to database structure possible • Upgrade to new version possible Copyright © 2018 Accenture. All rights reserved. 120 LOAD DATA / MIGRATION USING DATA PUMP
  121. 121. On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud’; expdp user/password SCHEMAS=fsowner DIRECTORY=dp_for_cloud Copyright © 2018 Accenture. All rights reserved. 121 ORACLE DATABASE CLOUD DATA PUMP
  122. 122. Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem On-premises host: scp –i private_key_file /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem Database Cloud Service compute node: sqlplus user/password CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem’; impdp user/password SCHEMAS=fsowner DIRECTORY=dp_from_onprem Copyright © 2018 Accenture. All rights reserved. 122 ORACLE DATABASE CLOUD DATA PUMP
  123. 123. Options to consider: • dbms_file_transfer • database link Copyright © 2018 Accenture. All rights reserved. 123 ORACLE DATABASE CLOUD DATA PUMP
  124. 124. LOAD DATA / MIGRATION USING DATA GUARD
  125. 125. • No cross-endian (maybe) • No structural changes (maybe) • No upgrade to new version (maybe) • Minimal downtime migration • Source version 11.2.0.4, 12.1.0.2, 12.2.0.1, 18 Copyright © 2018 Accenture. All rights reserved. 125 LOAD DATA / MIGRATION USING DATA GUARD
  126. 126. 1. Create Physical Standby 2. Prepare Client Connections (Ex: tnsnames.ora) 3. Switchover to Physical Standby Disaster Recovery to the Oracle Cloud http://www.oracle.com/technetwork/database/availability/dr-to-oracle-cloud-2615770.pdf Copyright © 2018 Accenture. All rights reserved. 126 ORACLE DATABASE CLOUD DATA GUARD
  127. 127. Copyright © 2018 Accenture. All rights reserved. 127 ORACLE DATABASE CLOUD DATA GUARD
  128. 128. On-premises host: SELECT log_mode FROM v$database; LOG_MODE ------------ NOARCHIVELOG SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER DATABASE ARCHIVELOG; ALTER DATABASE OPEN; ALTER DATABASE FORCE LOGGING; Copyright © 2018 Accenture. All rights reserved. 128 ORACLE DATABASE CLOUD DATA GUARD
  129. 129. On-premises host: • Create standby redo logs on the primary database initially (recommended). • Create standby redo logs using the same file size as the primary database online redo logs. • Create one additional group more than the number of online redo log groups. ALTER DATABASE ADD STANDBY LOGFILE (‘+REDO') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE (‘+REDO') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE (‘+REDO') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE (‘+REDO') SIZE XXM; Copyright © 2018 Accenture. All rights reserved. 129 ORACLE DATABASE CLOUD DATA GUARD
  130. 130. Database Cloud Service compute node: Init.ora: *.db_name='cdb1’ mkdir -p /u01/app/oracle/admin/cdb1/adump orapwd file=/u01/app/oracle/product/12.1.0.2/db_1/dbs/orapwcdb1 password=mypass entries=10 Copyright © 2018 Accenture. All rights reserved. 130 ORACLE DATABASE CLOUD DATA GUARD
  131. 131. Database Cloud Service compute node: export ORACLE_SID=cdb1 sqlplus / as sysdba STARTUP NOMOUNT PFILE='/tmp/init.ora'; rman TARGET sys/password@cdb1 AUXILIARY sys/password@cdb1_stby DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE DORECOVER SPFILE SET db_unique_name='CDB1_STBY' NOFILENAMECHECK; Copyright © 2018 Accenture. All rights reserved. 131 ORACLE DATABASE CLOUD DATA GUARD
  132. 132. Prepare Client Connections (Ex: tnsnames.ora) + Firewall ports Database Cloud Service compute node: ALTER SYSTEM SET dg_broker_start=true; dgmgrl sys/password@cdb1 CREATE CONFIGURATION my_config AS PRIMARY DATABASE IS cdb1 CONNECT IDENTIFIER IS cdb1; ADD DATABASE cdb1_stby AS CONNECT IDENTIFIER IS cdb1_stby MAINTAINED AS PHYSICAL; ENABLE CONFIGURATION; SWITCHOVER TO cdb1_stby; Copyright © 2018 Accenture. All rights reserved. 132 ORACLE DATABASE CLOUD DATA GUARD
  133. 133. LOAD DATA / MIGRATION TRANSPORTABLE TABLESPACES
  134. 134. • Cross-endian possible • Source version 8i and later (sameOS) or 10g and later cross-endian • Migrate from non-CDB to PDB • No changes to database structure • Upgrade to new version possible Copyright © 2018 Accenture. All rights reserved. 134 LOAD DATA / MIGRATION USING TRANSPORTABLE TABLESPACES
  135. 135. On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; ALTER TABLESPACE fsindex READ ONLY; ALTER TABLESPACE fsdata READ ONLY; expdp user/password TRANSPORT_TABLESPACES=fsdata,fsindex TRANSPORT_FULL_CHECK=YES DIRECTORY=dp_for_cloud Copyright © 2018 Accenture. All rights reserved. 135 ORACLE DATABASE CLOUD TRANSPORTABLE TABLESPACE
  136. 136. Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem On-premises host: $ scp -i private_key_file /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsdata01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsindex01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindexREAD WRITE; Copyright © 2018 Accenture. All rights reserved. 136 ORACLE DATABASE CLOUD TRANSPORTABLE TABLESPACE
  137. 137. Database Cloud Service compute node: CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem'; SQL> CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE temp ACCOUNT UNLOCK; impdp user/password DIRECTORY=dp_from_onprem TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', '/u02/app/oracle/oradata/ORCL/fsindex01.dbf’ ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE; Copyright © 2018 Accenture. All rights reserved. 137 ORACLE DATABASE CLOUD TRANSPORTABLE TABLESPACE
  138. 138. Options to consider: • Full Transportable Copyright © 2018 Accenture. All rights reserved. 138 ORACLE DATABASE CLOUD TRANSPORTABLE TABLESPACE
  139. 139. LOAD DATA / MIGRATION GOLDENGATE CLOUD SERVICE
  140. 140. Copyright © 2018 Accenture. All rights reserved. 140 ORACLE DATABASE CLOUD GOLDENGATE AND GOLDENGATE CLOUD SERVICE
  141. 141. • Cross-endian possible • Source version 8i and later • Migrate from non-CDB to PDB • Changes to database structure possible • Minimal downtime migration • Upgrade to new version possible Copyright © 2018 Accenture. All rights reserved. 141 LOAD DATA / MIGRATION USING GOLDENGATE CLOUD SERVICE
  142. 142. Copyright © 2018 Accenture. All rights reserved. 142
  143. 143. ORACLE DATABASE CLOUD ORACLE SQL*LOADER
  144. 144. sqlplus scott/tiger CREATE TABLE emp (empno number(5), name varchar2(50), sal number(10,2), jdate date); Copyright © 2018 Accenture. All rights reserved. 144 ORACLE DATABASE CLOUD ORACLE SQL*LOADER
  145. 145. emp.ctl LOAD DATA INFILE '/u01/oracle/emp.csv’ BADFILE ‘/u01/oracle/emp.bad’ DISCARDFILE ‘/u01/oracle/emp.dsc’ INSERT INTO TABLE emp FIELDS TERMINATED BY “,” OPTIONALLY ENCLOSED BY ‘”’ TRAILING NULLCOLS (empno,name,sal,jdate date ‘mm/dd/yyyy’) sqlldr userid=scott/tiger control=emp.ctl log=emp.log Copyright © 2018 Accenture. All rights reserved. 145 ORACLE DATABASE CLOUD ORACLE SQL*LOADER
  146. 146. ORACLE DATABASE CLOUD EXTERNAL TABLES
  147. 147. Copyright © 2018 Accenture. All rights reserved. 147 ORACLE DATABASE CLOUD EXTERNAL TABLES
  148. 148. ORACLE DATABASE CLOUD DATABASE LINKS
  149. 149. On-premises host: CREATE DATABASE LINK my_db_link CONNECT TO remote_user IDENTIFIED BY remote_password USING ’MyCloudDB'; CREATE TABLE tb_test@my_db_link as SELECT* FROM my_Table; Copyright © 2018 Accenture. All rights reserved. 149 ORACLE DATABASE CLOUD DATABASE LINKS
  150. 150. ORACLE DATABASE CLOUD DATABASE LINKS - CLONE A REMOTE PDB OR NON-CDB
  151. 151. CREATE DATABASE LINK clone_link CONNECT TO remote_clone_user IDENTIFIED BY remote_clone_user USING ’MyOnPremDB'; CREATE PLUGGABLE DATABASE pdb1 FROM pdb1@clone_link; CREATE PLUGGABLE DATABASE pdb2b FROM NON$CDB@clone_link; Copyright © 2018 Accenture. All rights reserved. 151 ORACLE DATABASE CLOUD DATABASE LINKS - CLONE A REMOTE PDB OR NON-CDB
  152. 152. ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING
  153. 153. http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html Copyright © 2018 Accenture. All rights reserved. 153 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING
  154. 154. http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html Copyright © 2018 Accenture. All rights reserved. 154 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING
  155. 155. Copyright © 2018 Accenture. All rights reserved. 155 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
  156. 156. ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  157. 157. Copyright © 2018 Accenture. All rights reserved. 157 Enterprise Manager SQLDEVELOPER ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  158. 158. Copyright © 2018 Accenture. All rights reserved. 158 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  159. 159. Copyright © 2018 Accenture. All rights reserved. 159 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  160. 160. Copyright © 2018 Accenture. All rights reserved. 160 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  161. 161. Copyright © 2018 Accenture. All rights reserved. 161 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  162. 162. Copyright © 2018 Accenture. All rights reserved. 162 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  163. 163. ORACLE DATABASE CLOUD SQLDEVELOPER DATABASE COPY
  164. 164. Copyright © 2018 Accenture. All rights reserved. 164 ORACLE DATABASE CLOUD SQLDEVELOPER
  165. 165. Copyright © 2018 Accenture. All rights reserved. 165 ORACLE DATABASE CLOUD SQLDEVELOPER
  166. 166. Copyright © 2018 Accenture. All rights reserved. 166 ORACLE DATABASE CLOUD SQLDEVELOPER
  167. 167. Copyright © 2018 Accenture. All rights reserved. 167 ORACLE DATABASE CLOUD SQLDEVELOPER
  168. 168. Copyright © 2018 Accenture. All rights reserved. 168 ORACLE DATABASE CLOUD SQLDEVELOPER
  169. 169. Copyright © 2018 Accenture. All rights reserved. 169 ORACLE DATABASE CLOUD SQLDEVELOPER
  170. 170. QUESTIONS?
  171. 171. THANK YOUSlides will be available at www.slideshare.net

×