OracleDataGuard_主库添加或删除在线重做日志文件

php中文网
发布: 2016-06-07 16:21:23
原创
1323人浏览过

8.3.5 Adding or Dropping Online Redo Log Files 8.3.5 添加或删除现在重做日志文件 Changing the size and number of the online redo log files is sometimes done to tune the database. You can add or drop online redo log file groups or members to

   8.3.5 adding or dropping online redo log files

  8.3.5 添加或删除现在重做日志文件

  Changing the size and number of the online redo log files is sometimes done to tune the database. You can add or drop online 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.

  改变在线重做日志文件大小和数量有时是优化数据库。你可以在主库添加或删除在线重做日志组或者日志成员而不影响备库。同样的,你可以在主库删除日志文件组或成员而不影响你的备库。但是,这边变化在普通切换后会影响备库的性能。

  Caution:

  注意:

  Whenever you add an online redo log file to the primary database, you should add corresponding online and standby redo log files to the standby database. 无论何时,你在主库添加在线重做日志文件,你应该在备库添加相应的在线重做日志和备用重做日志文件。

  For example, if the primary database has 10 online redo log files 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.

  例如,如果主库有10个在线重做日志,备库有2个,那么你切换到备库时,变为主库,新的主库比原来的主库会强制频繁的归档。

  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:

  因此,当你在主库添加或者删除在线重做日志时,,按照如下步骤将这些变化同步到备库是很重要的,

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

  1.如果重做应用正在运行,你必须在你改变日志文件钱取消重做应用。

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

  如果STANDBY_FILE_MANAGEMENT初始化参数设置为AUTO,将它改变为MANUAL。

  Add or drop an online redo log file:

  3.添加或删除在线重做日志文件:

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

  添加在线重做日志文件,使用如下SQL语句:

  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语句:

  SQL> ALTER DATABASE DROP LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log';

  Repeat the statement you used in Step 3 on each standby database.

  在每个备库上重复操作步骤3。

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

  还原STANDBY_FILE_MANAGEMENT初始化参数为AUTO,然后重做应用还原为原来的状态。

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号