How To Maintain and/or Add Redo Logs [ID 602066.1]
In this Document
Goal
Solution
References
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.3 - Release: 9.2 to 11.2Information in this document applies to any platform.
Goal
The purpose of this document is to demonstrate:
A. How to maintain and/or add redo logs.
B. How to determine the optimal size for redo logs
Solution
A. How to maintain and/or add redo logs.
1. Review information on existing redo logs.
FROM v$log a, v$logfile b
WHERE a.group#=b.group#
2. Add new groups
ALTER DATABASE ADD LOGFILE group 5 ('/log02A.dbf', '/log02B.dbf ') SIZE 512M;
ALTER DATABASE ADD LOGFILE group 6 ('/log03A.dbf', '/log03B.dbf ') SIZE 512M;
3. Check the status on all redo logs again.
FROM v$log a, v$logfile b
WHERE a.group#=b.group#
4. Drop the online redo log groups that are not needed. You must have the ALTER DATABASE system privilege.
a. An instance requires at least two groups of online redo log files, regardless of the number of members in the groups. (A group is one or more members.)
b. You can drop an online redo log group only if it is INACTIVE. If you need to drop the current group, first force a log switch to occur.
By using this command :
ALTER SYSTEM SWITCH LOGFILE;
c. Make sure an online redo log group is archived (if archiving is enabled) before dropping it. This can be determined by:
GROUP# ARC STATUS
--------- --- ----------------
1 YES ACTIVE
2 NO CURRENT
3 YES INACTIVE
4 YES UNUSED
5 YES UNUSED
6 YES UNUSED
d. Check that the group is inactive and archived before dropping it .
e. After dropping an online redo log group, make sure that the drop completed successfully, and then use the appropriate operating system command to delete the dropped online redo log files. For more information refer to Note 395062.1
B. How to determine the optimal size for redo logs
You can use the V$INSTANCE_RECOVERY view column OPTIMAL_LOGFILE_SIZE to determine the size of your online redo logs. This field shows the redo log file size in megabytes that is considered optimal based on the current setting of FAST_START_MTTR_TARGET. If this field consistently shows a value greater than the size of your smallest online log, then you should configure all your online logs
to be at least this size.
Note, however, that the redo log file size affects the MTTR. In some cases, you may be able to
refine your choice of the optimal FAST_START_MTTR_TARGET value by re-running the MTTR Advisor with your suggested optimal log file size.
You can also refer to this Note 1038851.6 - How to Estimate Size of Redo Logs
Please note that there is no column OPTIMAL_LOGFILE_SIZE in
V$INSTANCE_RECOVERY view in 9i. It only applies to 10g.
References
NOTE:395062.1 - How to Change The Location Of Redo Log FilesNOTE:1035935.6 - Example of How To Resize the Online Redo Logfiles
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-752742/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How Logs Work On MySQL With InnoDB TablesMySql
- SAP How to maintain missing enrties in TJ07 via customizingAI
- How to Dump Redo Log File Information --metalinkORM
- How can I add a site title refiner
- Centos/RHEL :How to add,delete and display LVM tagsCentOSdeleteLVM
- How to add sub-repo as sub-module
- How To Turn SNMP On/Off ? [ID 472530.1]
- How to Add a New Disk new partition in centos7CentOS
- [Laragon Tutorial] How to add another PHP version (PHP 8.3.4)GoPHP
- Archived Redo Logs歸檔重做日誌介紹及其優點Hive
- How to add the cracked dlls in GAC---let me tell u
- What is OPAQUE_TRANSFORM Hint and how to Control it [ID 780503.1]OpaqueORM
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- How to Increase CSS Misscount in single instance ASM installations [ID 729878.1]CSSASM
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- How to redirect to a specific web page after sign out from Entra IDWeb
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- SAP Tcode for Maintain Tax Code - FTXPAI
- 【REDO】Oracle redo advice-sqlOracle RedoSQL
- 【REDO】Oracle redo undo 學習Oracle Redo
- 【REDO】Oracle redo內部結構Oracle Redo
- MySQL redoMySql
- www/wwwroot/storage/logs" and its not b
- git add all和git add .區別Git
- 4.5.1 add
- How to ssh
- Oracle Redo and UndoOracle Redo
- MySQL:Redo & binlogMySql
- AAPT2 error: check logs for detailsAPTErrorAI
- JavaScript select add()JavaScript
- DataTransferItemList.add()
- 2.3 ADD CREDENTIALSTORE
- 2.2 ADD CHECKPOINTTABLE
- git add errorGitError
- Oracle redo解析之-1、oracle redo log結構計算Oracle Redo
- How to find dependency
- mysql之 redo logMySql
- C:/inetpub/logs/logfile/路徑詳解
- Add Strings 字串相加字串