ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle10g data guard(dg)__Adding or Dropping Online Redo Log Files

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

原创 Linux操作系统 作者:wisdomone1 时间:2010-01-26 23:11:38 0 删除 编辑

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 3 on each standby database.

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-626109/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689910