SlideShare a Scribd company logo
Presented By:
PRAKASH GANESAN
Target Database: FNPRDDB
Auxillary Database: F1TST
Target:
-Make sure all the data’s from primary are sync with DR
-Stop the MRP from standby
-startup the DR database in open mode
Auxillary:
-If it is RAC set cluster database Is false and run only one instance
-startup no mount with minimum required parameter files
Steps performed in Active duplicate
1,Starting up auxiliary instance
2,Configure static entry in listener for auxiliary instance and copy pass
word file
3,Make sure the both target and auxiliary database password file was
same
4,Connect to TARGET and AUXILIARY via RMAN
5, Copy control file from target
6, Mount the auxiliary instance
7, Set new name for the data files to be copied from target to
auxiliary
8,Copy data files from target (RMAN duplicate)
9, Copy archive logs from target to auxiliary that will be required
for recovery of auxiliary data files
10, Rename data files in the auxiliary control file to the location of
copied data files
11, Recover the auxiliary instance
12, Recreate auxiliary control file with the auxiliary database name
Duplicate automatically shuts down and starts up the instance during
the entire process and RMAN needs a service in the listener to be
connected. If it would have been a dynamic service, during shutdown
the service would have been removed by PMON from the listener and
RMAN will exit out throwing error since it no longer knows to what it is
connected.
LISTENER_IB=(DESCRIPTION=(ADDRESS=(HOST=192.*.*.*)(PORT=1525)(PROTOCOL=SDP)))
SID_LIST_LISTENER_IB =
(SID_LIST =
(SID_DESC=
(GLOBAL_DBNAME=F1TST)
(ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/dbhome_1)
(sid_name=F1TST2)
)
)
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jul 12 19:50:31 2017
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: FNPRDDB (DBID=1601461542)
connected to auxiliary database: F1TST (not mounted)
#!/usr/bin/ksh
 TODAY=`date +%y%m%d_%H%M`
 ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/dbhome_1
 export ORACLE_HOME
 ORACLE_SID=F1TST2
 export ORACLE_SID
 export NB_ORA_CLIENT=ampxt1d2
 export PATH=$ORACLE_HOME/bin:$PATH
 $ORACLE_HOME/bin/rman target=sys/*********@FNPRDDBDR1_DUP
auxiliary=sys/*****@F1TST_DUP msglog /home/oracle/prakash/Active_F1TST/duplicatenew_${
 ORACLE_SID}.log << EOF
 CONFIGURE DEFAULT DEVICE TYPE TO disk;
 CONFIGURE DEVICE TYPE disk PARALLELISM 20;
 run {
 allocate channel t1 type disk;
 allocate channel t2 type disk;
 allocate channel t3 type disk;
 allocate auxiliary channel aux1 type disk;
 allocate auxiliary channel aux2 type disk;
 allocate auxiliary channel aux3 type disk;
 duplicate target database to F1TST from active database;
 }
 exit
 EOF
 contents of Memory Script:
 {
 sql clone "alter system set control_files =
 ''+DATA_T1/F1TST/CONTROLFILE/current.3622.949175455'',
''+RECO_T1/F1TST/CONTROLFILE/current.84052.949175455''
comment=
 ''Set by RMAN'' scope=spfile";
 sql clone "alter system set db_name =
 ''FNPRDDB'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
 sql clone "alter system set db_unique_name =
 ''F1TST'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
 shutdown clone immediate;
 startup clone force nomount
 restore clone from service 'FNPRDDBDR1_DUP' primary controlfile;
 alter clone database mount;
 }
 executing Memory Script
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby
 In earlier versions the RMAN DUPLICATE database command was a push-
based method. One of the new features in Oracle 12c is that it has been
changed to a pull-based method which has many advantages.
Now in Oracle 12c RMAN performs active database duplication using backup
sets and not image copies.
With backupsets there are a number of advantages
RMAN can employ unused block compression while creating backups, thus reducing the size of
backups that are transported over the network (USING BACKUPSET, USING COMPRESSED BACKUPS
clause).
 Using multi-section backups, backup sets can be created in parallel on the source database (SECTION
SIZE clause).
 In addition we can also encrypt backup sets created on the source database via the SET ENCRYPTION
command.
Active duplicate database from standby
Active duplicate database from standby
Active duplicate database from standby

More Related Content

DOCX
Creating a physical standby database 11g on windows
PPTX
Data Migration in Database
PDF
Createclone
DOCX
Exadata - BULK DATA LOAD Testing on Database Machine
PPTX
Queries in sq lite
PPTX
File Management in C
PDF
使用Prm恢复受损的oracle数据表几个例子
PPTX
file management in c language
Creating a physical standby database 11g on windows
Data Migration in Database
Createclone
Exadata - BULK DATA LOAD Testing on Database Machine
Queries in sq lite
File Management in C
使用Prm恢复受损的oracle数据表几个例子
file management in c language

What's hot (19)

PDF
File_Management_in_C
DOC
Rman cloning guide
PDF
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
PDF
Basic - Oracle Edition Based Redefinition Presentation
 
PPTX
File Management in C
TXT
Data export
PPTX
Cloning Oracle EBS R12: A Step by Step Procedure
PPT
SQLMAP Tool Usage - A Heads Up
PPTX
PPT
Less18 moving data
PPTX
File management in C++
DOCX
Rman cloning when both directory and db name are same.
PPT
File Management
PDF
oracle upgradation
PPT
Oracle Golden Gate
PDF
twp-integrating-hadoop-data-with-or-130063
PDF
Files in C
PPT
File in C Programming
File_Management_in_C
Rman cloning guide
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
Basic - Oracle Edition Based Redefinition Presentation
 
File Management in C
Data export
Cloning Oracle EBS R12: A Step by Step Procedure
SQLMAP Tool Usage - A Heads Up
Less18 moving data
File management in C++
Rman cloning when both directory and db name are same.
File Management
oracle upgradation
Oracle Golden Gate
twp-integrating-hadoop-data-with-or-130063
Files in C
File in C Programming
Ad

Similar to Active duplicate database from standby (20)

PDF
Migrate database to Exadata using RMAN duplicate
PDF
How to create a non managed standby database
DOCX
Cloning database using srdf copy
DOCX
Rman cloning when both directory and db name are same.
PPTX
The TCP/IP Stack in the Linux Kernel
PDF
Oracle 11g Installation With ASM and Data Guard Setup
PPT
Les 08 Dupe Db
PDF
Oracle applications 11i hot backup cloning with rapid clone
PPT
eZ Publish cluster unleashed revisited
DOC
Rac nonrac clone
DOCX
Physical_Standby_Database_R12.2.4
PDF
Multiple instances on linux
PPT
Oracle12c Pluggable Database Hands On - TROUG 2014
PDF
Step by Step Restore rman to different host
DOC
Oracle data guard configuration in 12c
ODP
Sockets and Socket-Buffer
PPT
Sas classes in mumbai
DOC
Oracle applications 11i hot backup cloning with rapid clone
PPTX
Android Data Storagefinal
DOC
Migrate database to Exadata using RMAN duplicate
How to create a non managed standby database
Cloning database using srdf copy
Rman cloning when both directory and db name are same.
The TCP/IP Stack in the Linux Kernel
Oracle 11g Installation With ASM and Data Guard Setup
Les 08 Dupe Db
Oracle applications 11i hot backup cloning with rapid clone
eZ Publish cluster unleashed revisited
Rac nonrac clone
Physical_Standby_Database_R12.2.4
Multiple instances on linux
Oracle12c Pluggable Database Hands On - TROUG 2014
Step by Step Restore rman to different host
Oracle data guard configuration in 12c
Sockets and Socket-Buffer
Sas classes in mumbai
Oracle applications 11i hot backup cloning with rapid clone
Android Data Storagefinal
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
sap open course for s4hana steps from ECC to s4
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative analysis of optical character recognition models for extracting...
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
sap open course for s4hana steps from ECC to s4
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
The AUB Centre for AI in Media Proposal.docx
Building Integrated photovoltaic BIPV_UPV.pdf
Machine learning based COVID-19 study performance prediction
MYSQL Presentation for SQL database connectivity
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
20250228 LYD VKU AI Blended-Learning.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Assigned Numbers - 2025 - Bluetooth® Document

Active duplicate database from standby

  • 2. Target Database: FNPRDDB Auxillary Database: F1TST Target: -Make sure all the data’s from primary are sync with DR -Stop the MRP from standby -startup the DR database in open mode Auxillary: -If it is RAC set cluster database Is false and run only one instance -startup no mount with minimum required parameter files
  • 3. Steps performed in Active duplicate 1,Starting up auxiliary instance 2,Configure static entry in listener for auxiliary instance and copy pass word file 3,Make sure the both target and auxiliary database password file was same 4,Connect to TARGET and AUXILIARY via RMAN 5, Copy control file from target 6, Mount the auxiliary instance 7, Set new name for the data files to be copied from target to auxiliary
  • 4. 8,Copy data files from target (RMAN duplicate) 9, Copy archive logs from target to auxiliary that will be required for recovery of auxiliary data files 10, Rename data files in the auxiliary control file to the location of copied data files 11, Recover the auxiliary instance 12, Recreate auxiliary control file with the auxiliary database name
  • 5. Duplicate automatically shuts down and starts up the instance during the entire process and RMAN needs a service in the listener to be connected. If it would have been a dynamic service, during shutdown the service would have been removed by PMON from the listener and RMAN will exit out throwing error since it no longer knows to what it is connected. LISTENER_IB=(DESCRIPTION=(ADDRESS=(HOST=192.*.*.*)(PORT=1525)(PROTOCOL=SDP))) SID_LIST_LISTENER_IB = (SID_LIST = (SID_DESC= (GLOBAL_DBNAME=F1TST) (ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/dbhome_1) (sid_name=F1TST2) ) )
  • 6. Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jul 12 19:50:31 2017 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. connected to target database: FNPRDDB (DBID=1601461542) connected to auxiliary database: F1TST (not mounted)
  • 7. #!/usr/bin/ksh  TODAY=`date +%y%m%d_%H%M`  ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/dbhome_1  export ORACLE_HOME  ORACLE_SID=F1TST2  export ORACLE_SID  export NB_ORA_CLIENT=ampxt1d2  export PATH=$ORACLE_HOME/bin:$PATH  $ORACLE_HOME/bin/rman target=sys/*********@FNPRDDBDR1_DUP auxiliary=sys/*****@F1TST_DUP msglog /home/oracle/prakash/Active_F1TST/duplicatenew_${  ORACLE_SID}.log << EOF  CONFIGURE DEFAULT DEVICE TYPE TO disk;  CONFIGURE DEVICE TYPE disk PARALLELISM 20;  run {  allocate channel t1 type disk;  allocate channel t2 type disk;  allocate channel t3 type disk;  allocate auxiliary channel aux1 type disk;  allocate auxiliary channel aux2 type disk;  allocate auxiliary channel aux3 type disk;  duplicate target database to F1TST from active database;  }  exit  EOF
  • 8.  contents of Memory Script:  {  sql clone "alter system set control_files =  ''+DATA_T1/F1TST/CONTROLFILE/current.3622.949175455'', ''+RECO_T1/F1TST/CONTROLFILE/current.84052.949175455'' comment=  ''Set by RMAN'' scope=spfile";  sql clone "alter system set db_name =  ''FNPRDDB'' comment=  ''Modified by RMAN duplicate'' scope=spfile";  sql clone "alter system set db_unique_name =  ''F1TST'' comment=  ''Modified by RMAN duplicate'' scope=spfile";  shutdown clone immediate;  startup clone force nomount  restore clone from service 'FNPRDDBDR1_DUP' primary controlfile;  alter clone database mount;  }  executing Memory Script
  • 16.  In earlier versions the RMAN DUPLICATE database command was a push- based method. One of the new features in Oracle 12c is that it has been changed to a pull-based method which has many advantages. Now in Oracle 12c RMAN performs active database duplication using backup sets and not image copies. With backupsets there are a number of advantages RMAN can employ unused block compression while creating backups, thus reducing the size of backups that are transported over the network (USING BACKUPSET, USING COMPRESSED BACKUPS clause).  Using multi-section backups, backup sets can be created in parallel on the source database (SECTION SIZE clause).  In addition we can also encrypt backup sets created on the source database via the SET ENCRYPTION command.