tailieunhanh - Oracle RMAN 11g Backup and Recovery- P10
Oracle RMAN 11g Backup and Recovery- P10: Oracle, yet another edition of our RMAN backup and recovery book has hit the shelves! Oracle Database 11g has proven to be quite the release to be sure. RMAN has new functionality and whizbang new features that improve an already awesome product. RMAN has certainly evolved over the years, as anyone who started working with it in Oracle version 8 can attest to. | 418 Part III Using RMAN Effectively -- Now catalog the backup in rman rman target sys robert catalog datafilecopy d backup recover Replace with the list of archive logs you generated earlier catalog archivelog d backup recover -- Now catalog the control file. catalog controlfilecopy d backup The catalog command allows you to enter new backup set-related information into the control file or recovery catalog. RMAN overwrites any pre-existing catalog information that conflicts with the information being cataloged. This command can be handy if you need to move the location of your backup set pieces. In this example we have moved all our backup set pieces to a new directory. We use the catalog command to load the correct directory location for each of the moved pieces in the control file RMAN catalog backuppiece opt oracle dbs backup You can also use the catalog command with the start with option which allows you to define the directory that contains the RMAN backup set pieces to be cataloged. RMAN will then catalog all backup set pieces in that directory. Here is an example of using the catalog command in this way RMAN catalog start with u01 oracle RMAN mydb Once you press enter this command prompts you with a list of files to catalog and asks if you wish to catalog the files listed. If you respond in the affirmative RMAN catalogs all the backup set pieces listed which will be contained in the u01 oracle RMAN mydb directory . This command also allows you to catalog several like-named backup set pieces. For example if you want to catalog several backup set pieces that start with the name backup . backupsetOI backupset02 and so forth then you could issue the following command RMAN catalog start with u01 oracle RMAN mydb backup When you use the catalog start with command it is indiscriminate about which files it tries to catalog it will try to catalog everything that matches the argument list. However .
đang nạp các trang xem trước