General Database Recovery Improvements Several changes have been made in Oracle Database 10g that relate to backup and recovery:
Easier Recovery Through the resetlogs Command One of the downsides to incomplete recovery of an Oracle database in Oracle Database versions prior to Oracle Database 10g was the requirement to use the resetlogs command when opening the database. Because recovery through resetlogs was not supported in Oracle9i, you needed to perform a backup of the database in order for it to be recoverable, though there were some goofy and complex (and altogether unreliable) means to recover the database through resetlogs prior to Oracle Database 10g. Now, Oracle Database 10g makes recovery through the resetlogs command easier than ever. The nice thing about being able to recover through the resetlogs command is that there is really nothing new that you have to do, it’s all internal to Oracle Database 10g. You can use the recover database, recover tablespace, or recover datafile commands, just as you always have. The RMAN restore and recover database commands are also unchanged, and support the ability to recover beyond the point of the last resetlogs command. Supporting Changes to the log_archive_format Parameter Also associated with the ability to recover through the resetlogs command, is a change in the log_archive_format parameter. Oracle Database 10g now requires that a new format specification be used when the compatible parameter is set to 10.0 or greater. This format specification,%r, identifies the logical incarnation of the database and changes each time the resetlogs command is issued. The default format for log_archive_format in Oracle Database 10g is %t_%s_%r.dbf. You could modify the log_archive_format parameter setting in Oracle Database 10g so that it might look something like this: Log_archive_format="mydb_%t_%s_%r.arc" And the resulting physical file might look something like this: /u01/oracle/arch/mydb/mydb_01_01_2035.arc Supporting Changes to Oracle Dynamic Views To support the ability to recover through the use of the resetlogs command, the dynamic views V$LOG_HISTORY and V$OFFLINE_RANGE have been modified. First, the data in these views is not cleared out after a successful resetlogs operation. Second, two new columns have been added to each of these views:
Also, the V$DATABASE_INCARNATION and V$ARCHIVED_LOG views have been changed such that they will not be cleared after the execution of the resetlogs command. Supporting Changes to Oracle Standby Databases One other bit of functionality that you might want to be aware of is in regard to Oracle standby databases. When a resetlogs operation is detected on a standby database, the managed recovery process will be canceled. At this point, you have two options:
Either way, you can continue to apply all redo generated after the use of the resetlogs command on the primary database server. Changes to the alter database archivelog Command When you issue the alter database archivelog command in Oracle Database 10g, archiving will be started by default. Thus, you don’t need to use the log archive start command. The V$DATABASE view column LOG_MODE indicates AUTOMATIC if archiving is enabled in this fashion and indicates MANUAL if you have decided to use the new manual parameter to override the default behavior.
blog comments powered by Disqus |
|
|
|
|
|
|
|