Oracle Data Guard_ 主库添加或删除在线重做日志文件
改变在线重做日志文件大小和数量有时是优化数据库。你可以在主库添加或删除在线重做日志组或者日志成员而不影响备库。同样的,你
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:
因此,当你在主库添加或者删除在线重做日志时,按照如下步骤将这些变化同步到备库是很重要的,
1.
If Redo Apply is running, you must cancel Redo Apply before you can change the log files.
1.如果重做应用正在运行,你必须在你改变日志文件钱取消重做应用。
2.
If the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO, change the value to MANUAL.
如果STANDBY_FILE_MANAGEMENT初始化参数设置为AUTO,将它改变为MANUAL。
3.
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';
4.
Repeat the statement you used in Step 3 on each standby database.
在每个备库上重复操作步骤3。
5.
Restore the STANDBY_FILE_MANAGEMENT initialization parameter and the Redo Apply options to their original states.
还原STANDBY_FILE_MANAGEMENT初始化参数为AUTO,然后重做应用还原为原来的状态。
相关参考:
Oracle Data Guard 重要配置参数
基于同一主机配置 Oracle 11g Data Guard
探索Oracle之11g DataGuard
Oracle Data Guard (RAC+DG) 归档删除策略及脚本
Oracle Data Guard 的角色转换
Oracle Data Guard的日志FAL gap问题
Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 处理方法

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

熱門話題

本文討論了使用MySQL的Alter Table語句修改表,包括添加/刪除列,重命名表/列以及更改列數據類型。

InnoDB的全文搜索功能非常强大,能够显著提高数据库查询效率和处理大量文本数据的能力。1)InnoDB通过倒排索引实现全文搜索,支持基本和高级搜索查询。2)使用MATCH和AGAINST关键字进行搜索,支持布尔模式和短语搜索。3)优化方法包括使用分词技术、定期重建索引和调整缓存大小,以提升性能和准确性。

文章討論了為MySQL配置SSL/TLS加密,包括證書生成和驗證。主要問題是使用自簽名證書的安全含義。[角色計數:159]

文章討論了流行的MySQL GUI工具,例如MySQL Workbench和PhpMyAdmin,比較了它們對初學者和高級用戶的功能和適合性。[159個字符]

本文討論了使用Drop Table語句在MySQL中放下表,並強調了預防措施和風險。它強調,沒有備份,該動作是不可逆轉的,詳細介紹了恢復方法和潛在的生產環境危害。

MySQL支持四種索引類型:B-Tree、Hash、Full-text和Spatial。 1.B-Tree索引適用於等值查找、範圍查詢和排序。 2.Hash索引適用於等值查找,但不支持範圍查詢和排序。 3.Full-text索引用於全文搜索,適合處理大量文本數據。 4.Spatial索引用於地理空間數據查詢,適用於GIS應用。

本文討論了在PostgreSQL,MySQL和MongoDB等各個數據庫中的JSON列上創建索引,以增強查詢性能。它解釋了索引特定的JSON路徑的語法和好處,並列出了支持的數據庫系統。
