oracle10g data guard(dg)__Adding or Dropping Online Redo Log Files

wisdomone1發表於2010-01-26

Consequently, when you add or drop an online redo log file at the primary site, it is important that you synchronize the changes in the standby database by following these steps:

  1. If Redo Apply is running, you must cancel Redo Apply before you can change the log files.

  2. If the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO, change the value to MANUAL.

  3. Add or drop an online redo log file:

    • To add an online redo log file, use a SQL statement such as this:

      SQL> ALTER DATABASE ADD LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log' SIZE 100M;
    • To drop an online redo log file, use a SQL statement such as this:

      SQL> ALTER DATABASE DROP LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log';
  4. Repeat the statement you used in Step on each standby database.

  5. Restore the STANDBY_FILE_MANAGEMENT initialization parameter and the Redo Apply options to their original states.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-626109/,如需轉載,請註明出處,否則將追究法律責任。

相關文章