SlideShare a Scribd company logo
1 of 19
Download to read offline
Migrate Databases to Exadata Using RMAN Duplicate
BY UMAIR MANSOOB
Who Am I
• Oracle Certified Administrator from Oracle 7 – 12c
• Exadata Certified Implementation Specialist since 2011
• Oracle Database Performance Tuning Certified Expert
• Oracle Business Intelligence Foundation Suite 11g Certified Implementation Specialist
• Oracle Database Data Warehousing Certified Implementation Specialist
• Multiple Exadata Implementations / POC’s for large financial organizations
• Migrate / Upgrade databases between various versions of Oracle
• Capacity Planning for Oracle Engineered Systems
• Database Consolidation to Exadata / 12c Platform
• Architect Databases for OLTP and OLAP applications
• Not an Oracle Employee or Nor I represent Oracle in any way
Umair MansoobExadata Migration Using RMAN Duplicate
Overview
Umair MansoobExadata Migration Using RMAN Duplicate
I am sure many of you have already many migrated databases between different systems and
migrating database to Exadata is not any different. There are many ways to migrate database
to Exadata but for this blog I will like to use RMAN duplicate method to migrate single
instance database running Linux operating system to Exadata two node RACK. I am planning
to use RMAN duplicate from active database, if your database size is too large and you have
access backups, you can use existing RMAN backup to avoid putting strain on source system
and network resources.
Migration Steps
1. Create Static Local Listener on Target
2. Copy password file
3. Add TNS Names entries
4. Test Connections from Source & Target System
5. Create pfile & make required changes
6. Startup Instance on nomoumt mode
7. Create Required Directories
8. Run RMAN Duplicate from Active Database
9. Convert database to Cluster Database ( Optional )
10. Register Database to CRS
11. Run Exachk report
Umair MansoobExadata Migration Using RMAN Duplicate
STEPS
Step 1 : Create Static Local Listener on Target System
Umair MansoobExadata Migration Using RMAN Duplicate
LISTENER_duplica =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = EXADATA-HOST)(PORT = 1599))
)
)
SID_LIST_LISTENER_duplica=
(SID_LIST =
(SID_DESC =
(SID_NAME = DB_NAME)
(ORACLE_HOME =/u01/app/oracle/product/11.2.0.4/dbhome_1)
(GLOBAL_=duplica_DGMGRL)
)
)
lsnrctl start LISTENER_duplica
lsnrctl status LISTENER_duplica
Static Listener
Step 2 : Copy Password file to Target System
Umair MansoobExadata Migration Using RMAN Duplicate
scp orapwXXXX* oracle@exadatanode1:/u01/app/oracle/product/11.2.0.4/dbhome_1/dbs
PASSWORD
PFILE
Step 3 : ADD TNSNAME Entries on Source & Target System
Umair MansoobExadata Migration Using RMAN Duplicate
dbname_dup_source =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SOURCE-HOST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = source_db_service)
)
)
dbname_dup_target =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = EXADATA-HOST)(PORT = 1599))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = duplica_DGMGRL)(UR=A)
)
)
TNSNAMES
Step 4 : Test Connections fromSource & Target System
Umair MansoobExadata Migration Using RMAN
sqlplus sys/XXXX@dbname_source as sysdba
sqlplus sys/XXXX@dbname_dup_target as sysdba
Connection
Step 5 : Create pfile from source database
Umair MansoobExadata Migration Using RMAN Duplicate
Create pfile ‘/tmp/initdbaname.ora’ from spfile ;
*.control_files='+DATA/TARGET_DB/CONTROLFILE/current.397.920902581'
*.db_create_file_dest='+DATA/'
*.db_create_online_log_dest_1='+DATA/'
*.db_file_name_convert = '+DATA/DATAFILE/SOURCE_DB/','+DATA/DATAFILE/TARGET_DB/'
*.log_file_name_convert = '+DATA/ONLINELOG/SOURCE_DB/','+DATA/ONLINELOG/TARGET_DB/'
*.db_recovery_file_dest= '+RECO'
*.db_recovery_file_dest_size=1932735283200
PFILE
Step 6 : Startup instance nomount mode on Target System ( Exadata )
Umair MansoobExadata Migration Using RMAN Duplicate
Place New create init.ora file to $ORACLE_HOME/dbs Directory
startup nomount
Startup
nomount
Step 7 : Create Required Directories on Target System (Exadata)
Umair MansoobExadata Migration Using RMAN Duplicate
a) Create DATAFILE directory on ASM
b) Create ONLINELOG directory on ASM
c) Create CONTROLFILE directory on ASM
Directories
Step 8 : Run RMAN Duplicate Process
Umair MansoobExadata Migration Using RMAN Duplicate
Connect to target and aux instances and start duplicate process
rman target sys/XXX@dbname_source AUXILIARY sys/XXX@dbname_dup_target
DUPLICATE TARGET DATABASE TO DBNAME FROM ACTIVE DATABASE NOFILENAMECHECK;
Duplicate
Step 9 : Move SPILE to ASM
Umair MansoobExadata Migration Using RMAN Duplicate
create spfile='+DATA' from pfile='/tmp/initdb.ora';
Add following entry to initdb.ora
Spfile to ASM
Step 10 : Add Redo Logs Groups
Umair MansoobExadata Migration Using RMAN Duplicate
alter database add logfile thread 2 group 5 '+DATA' size 4294967296;
alter database add logfile thread 2 group 6 '+DATA' size 4294967296;
alter database add logfile thread 2 group 7 '+DATA' size 4294967296;
alter database add logfile thread 2 group 8 '+DATA' size 4294967296;
Add Redo logs
Step 11 : Convert Database to Cluster Database
Umair MansoobExadata Migration Using RMAN Duplicate
alter system set instance_name='1' scope=spfile sid =' 1';
alter system set instance_name=' 2' scope=spfile sid =' 2';
alter database enable public thread 2;
alter system set cluster_database_instances=2 scope=spfile sid ='*';
alter system set cluster_database=true scope=spfile sid ='*';
alter system set remote_listener='EXA-SCAN:1521' scope=spfile sid ='*';
alter system set instance_number=1 scope=spfile sid ='1';
alter system set instance_number=2 scope=spfile sid =' 2';
alter system set thread=1 scope=spfile sid ='1'; ---- Add Redo logs for Thread 2 first
alter system set thread=2 scope=spfile sid ='2';
alter system set undo_tablespace='UNDOTBS1' scope=spfile sid ='1';
alter system set undo_tablespace='UNDOTBS2' scope=spfile sid =' 2';
alter system set cluster_interconnects = 'X.X.X.X:X.X.X.X' scope = spfile sid='1';
alter system set cluster_interconnects = 'X.X.X.X:X.X.X.X' scope = spfile sid='2';
Cluster
Database
Step 12 : Register Database with CRS
Umair MansoobExadata Migration Using RMAN Duplicate
srvctl add database -d dbname -o '/u01/app/oracle/product/11.2.0.4/dbhome_1' –p
'+DATA/DBANAME/PARAMETERFILE/spfile.256.924518361'
srvctl add instance -d dbname -i dbname1 -n EXANODE1
srvctl add instance -d dbname -i dbname2 -n EXANODE2
Register
Database
Step 13 : Changes & Enhancements
Umair MansoobExadata Migration Using RMAN Duplicate
a) Index / Storage Indexes
b) Partitioning
c) Compression
d) Parallelism
e) Resource Management
Extreme
Performance
Step 14 : Run Exachk Report
Umair MansoobExadata Migration Using RMAN Duplicate
◦ Primary database is NOT protected with Data Guard
◦ USE_LARGE_PAGES is NOT set to recommended value
◦ GLOBAL_NAMES is NOT set to recommended value
◦ Flashback on PRIMARY is not configured
◦ DB_UNIQUE_NAME on primary has not been modified
EXACHK
Thank You
Umair Mansoob
Umair Mansoob
773-297-2061
umairmansoob@gmail.com
http://blog.umairmansoob.com/
Exadata Migration Using RMAN Duplicate

More Related Content

What's hot

Oracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesOracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesEmre Baransel
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureIlmar Kerm
 
Dataguard implementation
Dataguard implementationDataguard implementation
Dataguard implementationRajshekar Patil
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Nelson Calero
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeSatishbabu Gunukula
 
Christo kutrovsky oracle rac solving common scalability problems
Christo kutrovsky   oracle rac solving common scalability problemsChristo kutrovsky   oracle rac solving common scalability problems
Christo kutrovsky oracle rac solving common scalability problemsChristo Kutrovsky
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACKristofferson A
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Ajith Narayanan
 
Best practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementationsBest practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementationsAjith Narayanan
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationLeighton Nelson
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Alex Zaballa
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019 Alfredo Krieg
 
Oracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethodsOracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethodsAjith Narayanan
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cAlfredo Krieg
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the TradeEnkitec
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTanel Poder
 
Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam BashaOracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam Bashapasalapudi123
 
Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2Ajith Narayanan
 

What's hot (20)

Oracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesOracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New Features
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
 
Dataguard implementation
Dataguard implementationDataguard implementation
Dataguard implementation
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle home
 
Christo kutrovsky oracle rac solving common scalability problems
Christo kutrovsky   oracle rac solving common scalability problemsChristo kutrovsky   oracle rac solving common scalability problems
Christo kutrovsky oracle rac solving common scalability problems
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000
 
Best practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementationsBest practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementations
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service Application
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019
 
Oracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethodsOracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethods
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
Oracle Exadata X2-8: A Critical Review
Oracle Exadata X2-8: A Critical ReviewOracle Exadata X2-8: A Critical Review
Oracle Exadata X2-8: A Critical Review
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
 
Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam BashaOracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam Basha
 
Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2
 
SQL Developer for DBAs
SQL Developer for DBAsSQL Developer for DBAs
SQL Developer for DBAs
 

Similar to Migrate database to Exadata using RMAN duplicate

oracle upgradation
oracle upgradationoracle upgradation
oracle upgradationinfluxbob
 
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.Nagios
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ublnewrforce
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKYoungHeon (Roy) Kim
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4uzzal basak
 
SQL Track: Restoring databases with powershell
SQL Track: Restoring databases with powershellSQL Track: Restoring databases with powershell
SQL Track: Restoring databases with powershellITProceed
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guideSeungmin Shin
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsRoo Wall
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACSecure-24
 
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016Dave Stokes
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud ControlMigrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud ControlLeighton Nelson
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Raheel Syed
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Santosh Kangane
 

Similar to Migrate database to Exadata using RMAN duplicate (20)

oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
Gg steps
Gg stepsGg steps
Gg steps
 
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ubl
 
Shareplex Presentation
Shareplex PresentationShareplex Presentation
Shareplex Presentation
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
 
Advance Mobile Application Development class 01
Advance Mobile Application Development class 01Advance Mobile Application Development class 01
Advance Mobile Application Development class 01
 
Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
 
SQL Track: Restoring databases with powershell
SQL Track: Restoring databases with powershellSQL Track: Restoring databases with powershell
SQL Track: Restoring databases with powershell
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RAC
 
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud ControlMigrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
 
#WeSpeakLinux Session
#WeSpeakLinux Session#WeSpeakLinux Session
#WeSpeakLinux Session
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
 

Recently uploaded

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 

Recently uploaded (20)

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 

Migrate database to Exadata using RMAN duplicate

  • 1. Migrate Databases to Exadata Using RMAN Duplicate BY UMAIR MANSOOB
  • 2. Who Am I • Oracle Certified Administrator from Oracle 7 – 12c • Exadata Certified Implementation Specialist since 2011 • Oracle Database Performance Tuning Certified Expert • Oracle Business Intelligence Foundation Suite 11g Certified Implementation Specialist • Oracle Database Data Warehousing Certified Implementation Specialist • Multiple Exadata Implementations / POC’s for large financial organizations • Migrate / Upgrade databases between various versions of Oracle • Capacity Planning for Oracle Engineered Systems • Database Consolidation to Exadata / 12c Platform • Architect Databases for OLTP and OLAP applications • Not an Oracle Employee or Nor I represent Oracle in any way Umair MansoobExadata Migration Using RMAN Duplicate
  • 3. Overview Umair MansoobExadata Migration Using RMAN Duplicate I am sure many of you have already many migrated databases between different systems and migrating database to Exadata is not any different. There are many ways to migrate database to Exadata but for this blog I will like to use RMAN duplicate method to migrate single instance database running Linux operating system to Exadata two node RACK. I am planning to use RMAN duplicate from active database, if your database size is too large and you have access backups, you can use existing RMAN backup to avoid putting strain on source system and network resources.
  • 4. Migration Steps 1. Create Static Local Listener on Target 2. Copy password file 3. Add TNS Names entries 4. Test Connections from Source & Target System 5. Create pfile & make required changes 6. Startup Instance on nomoumt mode 7. Create Required Directories 8. Run RMAN Duplicate from Active Database 9. Convert database to Cluster Database ( Optional ) 10. Register Database to CRS 11. Run Exachk report Umair MansoobExadata Migration Using RMAN Duplicate STEPS
  • 5. Step 1 : Create Static Local Listener on Target System Umair MansoobExadata Migration Using RMAN Duplicate LISTENER_duplica = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = EXADATA-HOST)(PORT = 1599)) ) ) SID_LIST_LISTENER_duplica= (SID_LIST = (SID_DESC = (SID_NAME = DB_NAME) (ORACLE_HOME =/u01/app/oracle/product/11.2.0.4/dbhome_1) (GLOBAL_=duplica_DGMGRL) ) ) lsnrctl start LISTENER_duplica lsnrctl status LISTENER_duplica Static Listener
  • 6. Step 2 : Copy Password file to Target System Umair MansoobExadata Migration Using RMAN Duplicate scp orapwXXXX* oracle@exadatanode1:/u01/app/oracle/product/11.2.0.4/dbhome_1/dbs PASSWORD PFILE
  • 7. Step 3 : ADD TNSNAME Entries on Source & Target System Umair MansoobExadata Migration Using RMAN Duplicate dbname_dup_source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = SOURCE-HOST)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = source_db_service) ) ) dbname_dup_target = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = EXADATA-HOST)(PORT = 1599)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = duplica_DGMGRL)(UR=A) ) ) TNSNAMES
  • 8. Step 4 : Test Connections fromSource & Target System Umair MansoobExadata Migration Using RMAN sqlplus sys/XXXX@dbname_source as sysdba sqlplus sys/XXXX@dbname_dup_target as sysdba Connection
  • 9. Step 5 : Create pfile from source database Umair MansoobExadata Migration Using RMAN Duplicate Create pfile ‘/tmp/initdbaname.ora’ from spfile ; *.control_files='+DATA/TARGET_DB/CONTROLFILE/current.397.920902581' *.db_create_file_dest='+DATA/' *.db_create_online_log_dest_1='+DATA/' *.db_file_name_convert = '+DATA/DATAFILE/SOURCE_DB/','+DATA/DATAFILE/TARGET_DB/' *.log_file_name_convert = '+DATA/ONLINELOG/SOURCE_DB/','+DATA/ONLINELOG/TARGET_DB/' *.db_recovery_file_dest= '+RECO' *.db_recovery_file_dest_size=1932735283200 PFILE
  • 10. Step 6 : Startup instance nomount mode on Target System ( Exadata ) Umair MansoobExadata Migration Using RMAN Duplicate Place New create init.ora file to $ORACLE_HOME/dbs Directory startup nomount Startup nomount
  • 11. Step 7 : Create Required Directories on Target System (Exadata) Umair MansoobExadata Migration Using RMAN Duplicate a) Create DATAFILE directory on ASM b) Create ONLINELOG directory on ASM c) Create CONTROLFILE directory on ASM Directories
  • 12. Step 8 : Run RMAN Duplicate Process Umair MansoobExadata Migration Using RMAN Duplicate Connect to target and aux instances and start duplicate process rman target sys/XXX@dbname_source AUXILIARY sys/XXX@dbname_dup_target DUPLICATE TARGET DATABASE TO DBNAME FROM ACTIVE DATABASE NOFILENAMECHECK; Duplicate
  • 13. Step 9 : Move SPILE to ASM Umair MansoobExadata Migration Using RMAN Duplicate create spfile='+DATA' from pfile='/tmp/initdb.ora'; Add following entry to initdb.ora Spfile to ASM
  • 14. Step 10 : Add Redo Logs Groups Umair MansoobExadata Migration Using RMAN Duplicate alter database add logfile thread 2 group 5 '+DATA' size 4294967296; alter database add logfile thread 2 group 6 '+DATA' size 4294967296; alter database add logfile thread 2 group 7 '+DATA' size 4294967296; alter database add logfile thread 2 group 8 '+DATA' size 4294967296; Add Redo logs
  • 15. Step 11 : Convert Database to Cluster Database Umair MansoobExadata Migration Using RMAN Duplicate alter system set instance_name='1' scope=spfile sid =' 1'; alter system set instance_name=' 2' scope=spfile sid =' 2'; alter database enable public thread 2; alter system set cluster_database_instances=2 scope=spfile sid ='*'; alter system set cluster_database=true scope=spfile sid ='*'; alter system set remote_listener='EXA-SCAN:1521' scope=spfile sid ='*'; alter system set instance_number=1 scope=spfile sid ='1'; alter system set instance_number=2 scope=spfile sid =' 2'; alter system set thread=1 scope=spfile sid ='1'; ---- Add Redo logs for Thread 2 first alter system set thread=2 scope=spfile sid ='2'; alter system set undo_tablespace='UNDOTBS1' scope=spfile sid ='1'; alter system set undo_tablespace='UNDOTBS2' scope=spfile sid =' 2'; alter system set cluster_interconnects = 'X.X.X.X:X.X.X.X' scope = spfile sid='1'; alter system set cluster_interconnects = 'X.X.X.X:X.X.X.X' scope = spfile sid='2'; Cluster Database
  • 16. Step 12 : Register Database with CRS Umair MansoobExadata Migration Using RMAN Duplicate srvctl add database -d dbname -o '/u01/app/oracle/product/11.2.0.4/dbhome_1' –p '+DATA/DBANAME/PARAMETERFILE/spfile.256.924518361' srvctl add instance -d dbname -i dbname1 -n EXANODE1 srvctl add instance -d dbname -i dbname2 -n EXANODE2 Register Database
  • 17. Step 13 : Changes & Enhancements Umair MansoobExadata Migration Using RMAN Duplicate a) Index / Storage Indexes b) Partitioning c) Compression d) Parallelism e) Resource Management Extreme Performance
  • 18. Step 14 : Run Exachk Report Umair MansoobExadata Migration Using RMAN Duplicate ◦ Primary database is NOT protected with Data Guard ◦ USE_LARGE_PAGES is NOT set to recommended value ◦ GLOBAL_NAMES is NOT set to recommended value ◦ Flashback on PRIMARY is not configured ◦ DB_UNIQUE_NAME on primary has not been modified EXACHK
  • 19. Thank You Umair Mansoob Umair Mansoob 773-297-2061 umairmansoob@gmail.com http://blog.umairmansoob.com/ Exadata Migration Using RMAN Duplicate