11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 6 ■ BACKUP AND RECOVERY 297contents of Memory Script:{set until scn 901715;recoverclone databasedelete archivelog;}...starting media recovery...media recovery complete, elapsed time: 00:00:01Finished recover at 20-MAY-07...database openedFinished Duplicate Db at 20-MAY-07RMAN>RMAN automatically updates the spfile on the server hosting the duplicate database basedon the values you provided through the parameter_value_convert and set clauses of the duplicatedatabase command. RMAN then starts the auxiliary instance with the updated spfile and proceedsto copying the source database files over the network. Once this is done, it recovers the duplicatedatabase and opens it with the resetlogs option, thus creating a new set of online redo logs.In our simple example here, we duplicated an entire database to the same server. You canalso use the active duplication technique to duplicate a database to a different server. You canalso perform duplication to a past point in time, as well as file system–to–ASM and ASM-to-ASM duplications over the network, just as in the case of traditional backup-based databaseduplication.How Network-Enabled Duplication WorksThe from active database clause of the RMAN duplicate command starts the database duplicationprocess. RMAN utilizes the network connection to copy the source database files to theauxiliary instance. After copying the datafiles, RMAN performs a database recovery by using amemory script (so named because it exists only in memory) before opening the duplicate database.The following duplicate database command shows how much simpler the duplicationcommand is when you perform the database duplication on a different host with an identicaldirectory structure as well as datafile names:RMAN> duplicate database2> to newdb3> from active database4> spfile5> nofilenamecheck;You must specify the nofilenamecheck clause in this case, since you’re using the samedirectory structures for both the source and destination databases. If you want RMAN to copythe entire password file from the source database to the duplicate database, specify the optional

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!