SlideShare a Scribd company logo
1 of 19
1
Chapter 15
Duplicating Databases and
Transporting Data
2
RMAN Duplication Features
 You can duplicate a database without even making a backup of
the source database first by using the new Oracle Database
11g technique of network-enabled duplication
 You can register in the same recovery catalog as the primary
database, since the duplicate database will have its own unique
DBID
 You can exclude certain tablespaces, such as the read-only
tablespaces
 You can duplicate the database on the same server or on a
remote host
 You can duplicate a database to a past point in time if you want
3
Filenames Might be Different from
Source to Duplicate
 Datafiles
 Control files
 Online redo log files
 Temp files
4
Renaming Files in a Duplicate
Database
duplicate target database
to dupdb
from active database spfile
parameter_value_convert '/a01', '/a20'
set sga_max_size = 800m
set sga_target = 700m
set log_file_name_convert = '/a01','/a20',
db_file_name_convert '/a01','/a20';
5
Creating a Duplicate Database on the
Same Host
These prerequisites apply to all database duplication jobs:
 You must connect to both the target (source) database and the
auxiliary (destination) instance.
 You must start the auxiliary instance with the nomount option.
 You can’t use a standby database as the target database.
 You’ll need the password file for the auxiliary instance only if
you’re using the RMAN client on a different host than the
auxiliary host or if you duplicate from an active database (see
recipe 15-3 and recipe 15-4)
 The target database can be open or closed
 Both the source and destination databases must be on the
same operating system platform (32-bit and 64-bit versions of a
platform are considered identical).
6
During the Database Duplication
RMAN does the following:
1. Generates a unique DBID for the new duplicate
database
2. Creates a new control file for the duplicate database
3. Restores the backups and performs an incomplete
recovery using all backups and archived redo logs
4. Shuts down and starts up the auxiliary instance
5. Opens the duplicate database with the resetlogs
option, thus clearing the online redo logs
7
Duplicating a Database Without Any
RMAN Backups
 In Oracle Database 11g you duplicate a
database without having a backup
 Use active database clause of duplicate
database command
 Network enabled database duplication
8
Duplicating a Database to a Remote
Host w/same Filestructure
 Nice feature for automating the replication of
a database to another host
 Might need to replicate a production
database to another box for testing purposes
 Troubleshooting production problems in a
non-production environment
9
Steps for Replicating
1. Backup database
2. Verify the backup
3. Create directories and modify duplicate
database initialization file
4. Startup auxiliary database in nomount mode
5. Check Oracle Net connections
6. Run duplicate database command
10
Duplicating a Database When
Directories are Different
 Quite often source and duplicate make have
different directory structures
 Use the db_file_name_convert parameter
 Creates a new locations for datafiles and
online redo log files
11
Creating a Standby Database on
Different Host from Primary
 Standby database (Data Guard) is Oracle’s
disaster recovery tool
 Physical standby database is a block for
block copy of primary database
 Use the syntax “backup current controlfile for
standby format”
12
Duplicating a Database to a Point in
Time in Past
 May want to rebuild production database to a
point in time in the past for testing purposes
 May want to see a database as data existed
for a point in time in the past
 Use duplicate...until clause
13
Skipping Tablespaces
 You may only need to duplicate part of a
database
 May not need tablespaces like tools or users
in your duplicated tablespace
 Use skip tablespace clause
14
Duplicating a Database with a Specific
Backup Tag
 You want to force RMAN to use a specific
backup to be used when duplicating
RMAN> list backup of database;
 Change backupsets that you don’t want
RMAN to use marked as unavailable
RMAN> change backupset <primary key>
unavailable;
15
Resynchronizing a Duplicate Database
 You can periodically synchronize a duplicate
database with the primary
 Rerun the duplicate database command
 Recopies the datafiles over
16
Transporting Tablespaces on the Same
OS Platform
 Use RMAN transport tablespace command
 Tablespace must be self contained (no
referential integrity to other objects in other
tablespaces)
 RMAN creates an auxiliary tablespace which
it uses to create transportable tablespaces
17
Transporting Tablespaces Across
Different Operating System Platforms
 Big endian vis little endian format
 If two operating systems use the same
endian format, then no differences from
previous example
 If endian format different then you must
convert the tablespaces being transported to
match target operating system format
18
Transporting an Entire Database to a
Different Platform
 Useful for moving database from one
operating system to another
 Use convert database command
 Transport doesn’t include bfiles, controlfiles,
redo logs, and temp files
19
Transporting a Database by Converting
Datafiles on the Target Platform
 You may do this if you’re converting the
source database to several different target
platforms
 Make sure source database is eligible for
conversion
 Use convert datafile command

More Related Content

Similar to 4714649_2.ppt

Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guideAmit87_dba
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)Satishbabu Gunukula
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_pptmaclean liu
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)Gustavo Rene Antunez
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesSaiful
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Recvivaankumar
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answersdouglascarnicelli
 
Oracle dba interview question
Oracle dba interview questionOracle dba interview question
Oracle dba interview questionAmarendra Sharma
 
Oracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby ConfigurationOracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby ConfigurationArun Sharma
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commandsPiyush Kumar
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentationVimlendu Kumar
 

Similar to 4714649_2.ppt (20)

Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
 
Les 07 Rman Rec
Les 07 Rman RecLes 07 Rman Rec
Les 07 Rman Rec
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Rec
 
Les 03 catalog
Les 03 catalogLes 03 catalog
Les 03 catalog
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
 
2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Oracle dba interview question
Oracle dba interview questionOracle dba interview question
Oracle dba interview question
 
Presentation day2 oracle12c
Presentation day2 oracle12cPresentation day2 oracle12c
Presentation day2 oracle12c
 
Oracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby ConfigurationOracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby Configuration
 
Les 12 fl_db
Les 12 fl_dbLes 12 fl_db
Les 12 fl_db
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commands
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 

More from hesham alataby

More from hesham alataby (10)

Frames.ppt
Frames.pptFrames.ppt
Frames.ppt
 
HyperLinks.ppt
HyperLinks.pptHyperLinks.ppt
HyperLinks.ppt
 
Images_Amended.ppt
Images_Amended.pptImages_Amended.ppt
Images_Amended.ppt
 
Tables.ppt
Tables.pptTables.ppt
Tables.ppt
 
TextTags.1.ppt
TextTags.1.pptTextTags.1.ppt
TextTags.1.ppt
 
TextTags.2.ppt
TextTags.2.pptTextTags.2.ppt
TextTags.2.ppt
 
fdocuments.in_the-model-clause-explained (1).pptx
fdocuments.in_the-model-clause-explained (1).pptxfdocuments.in_the-model-clause-explained (1).pptx
fdocuments.in_the-model-clause-explained (1).pptx
 
7035416.ppt
7035416.ppt7035416.ppt
7035416.ppt
 
5895640.ppt
5895640.ppt5895640.ppt
5895640.ppt
 
4714649.ppt
4714649.ppt4714649.ppt
4714649.ppt
 

Recently uploaded

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 

Recently uploaded (20)

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

4714649_2.ppt

  • 1. 1 Chapter 15 Duplicating Databases and Transporting Data
  • 2. 2 RMAN Duplication Features  You can duplicate a database without even making a backup of the source database first by using the new Oracle Database 11g technique of network-enabled duplication  You can register in the same recovery catalog as the primary database, since the duplicate database will have its own unique DBID  You can exclude certain tablespaces, such as the read-only tablespaces  You can duplicate the database on the same server or on a remote host  You can duplicate a database to a past point in time if you want
  • 3. 3 Filenames Might be Different from Source to Duplicate  Datafiles  Control files  Online redo log files  Temp files
  • 4. 4 Renaming Files in a Duplicate Database duplicate target database to dupdb from active database spfile parameter_value_convert '/a01', '/a20' set sga_max_size = 800m set sga_target = 700m set log_file_name_convert = '/a01','/a20', db_file_name_convert '/a01','/a20';
  • 5. 5 Creating a Duplicate Database on the Same Host These prerequisites apply to all database duplication jobs:  You must connect to both the target (source) database and the auxiliary (destination) instance.  You must start the auxiliary instance with the nomount option.  You can’t use a standby database as the target database.  You’ll need the password file for the auxiliary instance only if you’re using the RMAN client on a different host than the auxiliary host or if you duplicate from an active database (see recipe 15-3 and recipe 15-4)  The target database can be open or closed  Both the source and destination databases must be on the same operating system platform (32-bit and 64-bit versions of a platform are considered identical).
  • 6. 6 During the Database Duplication RMAN does the following: 1. Generates a unique DBID for the new duplicate database 2. Creates a new control file for the duplicate database 3. Restores the backups and performs an incomplete recovery using all backups and archived redo logs 4. Shuts down and starts up the auxiliary instance 5. Opens the duplicate database with the resetlogs option, thus clearing the online redo logs
  • 7. 7 Duplicating a Database Without Any RMAN Backups  In Oracle Database 11g you duplicate a database without having a backup  Use active database clause of duplicate database command  Network enabled database duplication
  • 8. 8 Duplicating a Database to a Remote Host w/same Filestructure  Nice feature for automating the replication of a database to another host  Might need to replicate a production database to another box for testing purposes  Troubleshooting production problems in a non-production environment
  • 9. 9 Steps for Replicating 1. Backup database 2. Verify the backup 3. Create directories and modify duplicate database initialization file 4. Startup auxiliary database in nomount mode 5. Check Oracle Net connections 6. Run duplicate database command
  • 10. 10 Duplicating a Database When Directories are Different  Quite often source and duplicate make have different directory structures  Use the db_file_name_convert parameter  Creates a new locations for datafiles and online redo log files
  • 11. 11 Creating a Standby Database on Different Host from Primary  Standby database (Data Guard) is Oracle’s disaster recovery tool  Physical standby database is a block for block copy of primary database  Use the syntax “backup current controlfile for standby format”
  • 12. 12 Duplicating a Database to a Point in Time in Past  May want to rebuild production database to a point in time in the past for testing purposes  May want to see a database as data existed for a point in time in the past  Use duplicate...until clause
  • 13. 13 Skipping Tablespaces  You may only need to duplicate part of a database  May not need tablespaces like tools or users in your duplicated tablespace  Use skip tablespace clause
  • 14. 14 Duplicating a Database with a Specific Backup Tag  You want to force RMAN to use a specific backup to be used when duplicating RMAN> list backup of database;  Change backupsets that you don’t want RMAN to use marked as unavailable RMAN> change backupset <primary key> unavailable;
  • 15. 15 Resynchronizing a Duplicate Database  You can periodically synchronize a duplicate database with the primary  Rerun the duplicate database command  Recopies the datafiles over
  • 16. 16 Transporting Tablespaces on the Same OS Platform  Use RMAN transport tablespace command  Tablespace must be self contained (no referential integrity to other objects in other tablespaces)  RMAN creates an auxiliary tablespace which it uses to create transportable tablespaces
  • 17. 17 Transporting Tablespaces Across Different Operating System Platforms  Big endian vis little endian format  If two operating systems use the same endian format, then no differences from previous example  If endian format different then you must convert the tablespaces being transported to match target operating system format
  • 18. 18 Transporting an Entire Database to a Different Platform  Useful for moving database from one operating system to another  Use convert database command  Transport doesn’t include bfiles, controlfiles, redo logs, and temp files
  • 19. 19 Transporting a Database by Converting Datafiles on the Target Platform  You may do this if you’re converting the source database to several different target platforms  Make sure source database is eligible for conversion  Use convert datafile command