ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle9i(9204)dg(data guard)_adding and dropping online redo logs_物理_physical

oracle9i(9204)dg(data guard)_adding and dropping online redo logs_物理_physical

原创 Linux操作系统 作者:wisdomone1 时间:2010-02-28 14:21:14 0 删除 编辑

Changing the size and number of the online redo logs is sometimes done to tune the database. You can add redo log file groups or members to the primary database without affecting the standby database. Similarly, you can drop log file groups or members from the primary database without affecting your standby database. However, these changes do affect the performance of the standby database after switchover.

For example, if the primary database has 10 redo logs and the standby database has 2, and then you switch over to the standby database so that it functions as the new primary database, the new primary database is forced to archive more frequently than the original primary database.

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

  1. If managed recovery is on, you must cancel it before you can change the logs.
  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:
    • To add an online redo log, use a SQL statement such as this:
      SQL> ALTER DATABASE ADD STANDBY LOGFILE 'prmy3.log' SIZE 100K;

    • To drop an online redo log, use a SQL statement such as this:
      SQL> ALTER DATABASE DROP STANDBY LOGFILE '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 managed recovery options to their original states.

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

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

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689910