How to Add/Drop/Resize Redo Log with Physical Standby in place. [ID 473442.1]
| Modified 12-AUG-2009 Type HOWTO Status REVIEWED |
|
In this Document
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.5
Information in this document applies to any platform.
Goal
To Add/Drop/Resize online redo logs in the primary site with physical standby database in place. What are the steps to be done on standby if any?
Solution
Changing the size of redo involves adding the new sized log and dropping the unwanted old log. There is no resize command as such. 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 a role transition. So it is best advised 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.
To resize redo logs the steps are as follows:
At the primary site
=============
1. Set STANDBY_FILE_MANAGEMENT to MANUAL.
SQL> ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT='MANUAL';
2. Add the new redo logfile groups of the required sizes.
SQL> ALTER DATABASE ADD LOGFILE GROUP 4 ('/U01/oracle/modg1/redo04.log') SIZE 50M;
3. Drop the old groups, this may involve performing log switches to ensure the old logs have been archived correctly or could be performed later once oracle has finished with the logs.
SQL>ALTER DATABASE DROP LOGFILE GROUP 2;
4. Set STANDBY_FILE_MANAGEMENT to AUTO.
SQL> ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT='AUTO';
At the standby site
=============
1. Stop Redo apply:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
2. Set STANDBY_FILE_MANAGEMENT to MANUAL.
SQL> ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT='MANUAL';
3. Add Redolog File Group:
SQL> ALTER DATABASE ADD LOGFILE GROUP 4 ('/U01/oracle/modg1/redo04.log') SIZE 50M;
Add as many Redo Logfile Groups (or Members) you want to add.
4. Set STANDBY_FILE_MANAGEMENT to AUTO.
SQL> ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT='AUTO';
5. Check the Status of the Online Redolog Group.
SQL> SELECT GROUP#, STATUS FROM V$LOG;
GROUP# STATUS
---------- ----------------
1 CLEARING_CURRENT
3 CLEARING
2 CLEARING
If Status is CLEARING_CURRENT then you cannot drop Online Redolog Group. You will get ORA-01623 if you try to drop a Redolog Group with Status CLEARING_CURRENT.
For Status CLEARING, UNUSED, INACTIVE please follow below steps.
6. Clear the Online Redo Logfile Group:
SQL> ALTER DATABASE CLEAR LOGFILE GROUP 2;
7. Drop the Online Redo Logfile Group:
SQL>ALTER DATABASE DROP LOGFILE GROUP 2;
If you have skipped Step 4 then you will get ORA-01624 while droping the Online Redolog Group with Status CLEARING.
8. Set STANDBY_FILE_MANAGEMENT to AUTO.
SQL> ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT='AUTO';
9. Start Redo Apply:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-758229/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How To Maintain and/or Add Redo Logs [ID 602066.1]AI
- Scripts to resize standby redolog files
- standby redo log的理解
- Step by Step Guide on How to Create Logical Standby [ID 738643.1]GUIIDE
- Usage, Benefits and Limitations of Standby Redo Logs (SRL) [ID 219344.1]MIT
- Dataguard環境修改主庫和standby庫online redo log&standby redo log大小
- 主庫歷經open resetlogs後,如何redo apply 物理備庫_flashback physical standby dbAPP
- Recover physical standby database after loss of archive log(2)DatabaseHive
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- Oracle Standby Redo Log實驗兩則Oracle
- Oracle physical standbyOracle
- oracle實驗記錄 (flashback,physical standby resetlogs)Oracle
- DG學習筆記(5)_Standby Redo Log筆記
- Recover physical standby database after loss of archive log – roll forward(轉)DatabaseHiveForward
- DataGuard:Physical Standby Switchover
- Oracle RAC+DG 調整redo/standby log fileOracle
- Oracle Dataguard Standby Redo Log的兩個實驗Oracle
- How to Find Sessions Generating Lots of Redo or Archive logsSessionHive
- Oracle 9i Logical Standby與Physical standby歸檔恢復區別Oracle
- SQL: How to Find Sessions Generating Lots of Redo or Archive logsSQLSessionHive
- DataGuard:Physical Standby FailoverAI
- oracle 9i physical standby database 上的v$archived_logOracleDatabaseHive
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Alert.log shows No Standby Redo Logfiles Of Size 153600 Blocks AvailableBloCAI
- Comparison of Logical Rowids with Physical Rowids
- Creating a physical standby from ASM primary [ID 787793.1]ASM
- Step By Step Guide To Create Physical Standby Database Using RMAN [ID 469493.1]GUIIDEDatabase
- 【DG】Data Guard搭建(physical standby)
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- oracle Physical Standby failover stepOracleAI
- Creating a Physical Standby DatabaseDatabase
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Failover過程涉及standby redo log的實驗和理解AI
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- How To Efficiently Drop A Table With Many Extents
- How to drop Oracle RAC database manually?OracleDatabase
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- open physical standby 為read write