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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

298 CHAPTER 6 ■ BACKUP AND RECOVERYpassword file clause in the duplicate database command. In this example, the password filewas created manually instead of specifying the password file clause.When you perform active database duplication over the network, the various files that arepart of the database duplication are copied or re-created, as shown in the following list:• Datafiles are copied from the source database.• Controlfiles are re-created but will be copied from the source database if you specify thefor standby clause.• Tempfiles are re-created in the location set by the db_create_file_dest parameter.• <strong>Online</strong> redo log files are re-created.• Archived redo logs are copied from the source database, but only if needed for duplication.• The server parameter file is copied from the source database, but only if you use thespfile clause.• The password file is copied for standby databases always, but for a duplicate database,it’s copied only if you specify the password file option in the duplicate database command.• Flash recovery area files aren’t copied during the duplication. Similarly, the duplicationdoesn’t re-create the flashback log files, the password file, or the block change tracking file.To create a standby database instead of a duplicate database, just replace the to auxdb partof the duplicate database command with the for standby clause, as shown in the followingexample:RMAN> duplicate target database2> for standby3> from active database4> spfilePlease refer to Chapter 10 for complete details on duplicating databases for physical standbydatabases using the active database duplication method.It’s easy to duplicate a non-ASM file-based database to an ASM file system. To do this, firstcreate an ASM disk group, before running the duplicate database command. Here’s an example:RMAN> duplicate target database2> to newdb3> from active database4> spfile5> parameter_value_convert'/u01/app/oracle/oradata/prod1/', '+DISK2'6> set db_create_file_dest = +DISK2;The duplicate database command shown here creates a database with all of its datafiles,controlfiles, and online redo logs in the ASM disk group +DISK2.If you want faster duplication of a database, you must increase the number of disk channels onthe source database, which leads to a parallel copying of the source database files.

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

Saved successfully!

Ooh no, something went wrong!