oracle檔案管理之 redo log
提交完成標誌:
Only when all redo records
associated with a given transaction are safely on disk in the online logs is the user
process notified that the transaction has been committed.
■ If archiving is disabled (the database is in NOARCHIVELOG mode), a filled redo log
file is available after the changes recorded in it have been written to the datafiles.
■ If archiving is enabled (the database is in ARCHIVELOG mode), a filled redo log file
is available to LGWR after the changes recorded in it have been written to the
datafiles and the file has been archived.
Multiplexing Redo Log Files
強制log switch時間間隔1800秒:ARCHIVE_LAG_TARGET =1800
增加日誌組和成員:
ALTER DATABASE
ADD LOGFILE ('/oracle/dbs/log1c.rdo', '/oracle/dbs/log2c.rdo') SIZE 500K;
ALTER DATABASE
ADD LOGFILE GROUP 10 ('/oracle/dbs/log1c.rdo', '/oracle/dbs/log2c.rdo')
SIZE 500K;
ALTER DATABASE ADD LOGFILE MEMBER '/oracle/dbs/log2b.rdo' TO GROUP 2;
ALTER DATABASE ADD LOGFILE MEMBER '/oracle/dbs/log2c.rdo'
TO ('/oracle/dbs/log2a.rdo', '/oracle/dbs/log2b.rdo');
強制切換log組,
ALTER SYSTEM SWITCH LOGFILE;
如果當前日誌受損,可以清除logfile。
ALTER DATABASE CLEAR LOGFILE GROUP 3;
ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 3;
相關檢視:
V$LOG
V$LOGFILE
V$LOG_HISTORY
檢視日誌切換頻率的語句
select b.recid,
to_char(b.first_time,'dd-mon-yy hh:mi:ss') start_time,
a.recid,
to_char(a.first_time,'dd-mon-yy hh:mi:ss') end_time,
round(((a.first_time - b.first_time)*24)*60,2) minutes
from v$log_history a,v$log_history b
where a.recid = b.recid+1
order by a.first_time asc;
建議redo log半個小時切換一次,根據業務調整redo log大小
關於儲存:
建議redo log放在高速磁碟上,不要放在raid5上,因為raid5寫速度比較差
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70612/viewspace-1024363/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 增大redo log檔案大小
- 【REDO】重做日誌檔案(redo log files)管理(增,刪,改,查,切)
- Oracle redo解析之-1、oracle redo log結構計算Oracle Redo
- oracle redo internal 之 dump logfileOracle Redo
- oracle redo internal 之 dump logfileOracle
- oracle聯機日誌檔案REDO LOGFILE簡述Oracle
- Redo Log之一:理解Oracle redo logOracle Redo
- archive log檔案大小與redo log檔案大小關係探究Hive
- oracle redo log operationOracle Redo
- redo log檔案丟失處理措施
- 線上修改redo.log檔案的大小
- Redo log檔案被刪除恢復
- mysql之 redo logMySql
- Oracle redo log重組Oracle Redo
- Oracle Dump Redo Log FileOracle
- 如何設定redo log的OMF 及如何修改log檔案大小
- oracle資料庫redo檔案的blocksizeOracle資料庫BloC
- oracle redo檔案記錄的內容Oracle Redo
- 修改oracle redo log的大小Oracle Redo
- Oracle redo log 常見操作Oracle Redo
- oracle檔案管理之 control fileOracle
- oracle檔案遷移之datafile,relog file,tempfileOracle
- goldengate 捕捉oracle archive redo log 生成自有格式的trail檔案的大小記錄GoOracleHiveAI
- oracle檔案管理之 archive log(server.102 b14231)OracleHiveServer
- 使用LOGMNR工具分析Oracle Redo Log和Archive Log教程Oracle RedoHive
- Oracle11g redo log 建立、新增、刪除(重做日誌組,重做日誌檔案)Oracle
- ZBlogPHP如何線上管理檔案?PHP
- 使用logrotate命令管理listener.log檔案logrotate
- Oracle調整redo log日誌大小Oracle
- Oracle Standby Redo Log實驗兩則Oracle
- Oracle archive log 歸檔日誌管理OracleHive
- 關於redo log 檔案中記錄的內容問題 ?
- ORACLE 概要檔案管理Oracle
- ORACLE控制檔案管理Oracle
- ORACLE概要檔案管理Oracle
- Oracle Linux 7使用syslog來管理Oracle ASM的審計檔案OracleLinuxASM
- 深入理解MySQL系列之redo log、undo log和binlogMySql
- 使用logrotate管理日誌檔案logrotate