Where is the SCN number written?
The System Change Number (SCN) is how Oracle internally keeps track of the timing of events (i.e., transactions) in the database. The SCN does not have a time associated with it, but a higher SCN occurred after a lower SCN. There is no correlation between the SCN values and the time between when the SCNs were generated. Two SCNs that differ by a value of 10 could be generated one second apart or 10 minutes apart.
Since the online redo log files contain transaction information, it is useful to know when that transaction took place, relative to other transactions. So SCNs are written to the online redo log files. Any record written to the online redo log file has an associated SCN so the database will know when that change took place.
The SCN is stored in other places as well. One of the most important is the control files. The control file keeps track of changes to the database. As such, it needs to know the SCN.
The datafile headers also contain the SCN of the most recent transaction that changed the datafile's contents. When you start Oracle, Oracle checks the SCN in the datafile with the SCN in the control file. If the SCN in the datafile is "older" than the SCN in the control file, Oracle knows that the file needs recovery. When you make a tablespace READ ONLY, all of its datafiles have the SCN frozen, but Oracle does not worry about this because it knows the files have not had changes made to it.
Another place the SCN is stored is in the data block. The SCN in the block will show when the block's contents were last updated.
轉自:http://searchoracle.techtarget.com/answer/Where-is-the-SCN-number-written
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25791987/viewspace-713194/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【SCN】Oracle SCN 詳細介紹Oracle
- 【SCN】Oracle推薦scn命令參考Oracle
- 【SCN】Oracle檢查scn值指令碼Oracle指令碼
- Oracle:SCNOracle
- where to start, from where the end
- Oracle SCN詳解Oracle
- ORACLE -詳解SCNOracle
- 透過修改控制檔案scn推進資料庫scn資料庫
- Oracle的DBMS_SCN修正以及SCN的auto-rollover新特性Oracle
- 深入瞭解SCN(轉)
- oracle的scn及sequenceOracle
- MySQL日誌警告'[Warning] Unsafe statement written to the binary log'MySql
- ARABIC-ENGLISH DICTIONARY: THE HANS WEHR DICTIONARY OF MODERN WRITTEN ARABIC
- WARNING: Logging before InitGoogleLogging() is written to STDERR 解決辦法Go
- MyDAL – .Where() & .And() & .Or() 使用
- having和where
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- [20181123]快速提升scn注意.txt
- ora-19706 scn問題
- 【等待事件】standby query scn advance事件
- MyBatis中的<where>標籤和where子句的區別MyBatis
- JavaScript Number()JavaScript
- win10記憶體不能為written怎麼解決 win10電腦該記憶體不能為written如何修復Win10記憶體
- MySQL where 運算子MySql
- Oracle 檢查點涉及的SCNOracle
- Oracle的SCN顯示問題Oracle
- ordebug 手動修改Oracle sga scnOracle
- oracle基於SCN增量恢復Oracle
- Oracle SCN健康狀態檢查Oracle
- 電腦出現該記憶體不能為written怎麼解決 快速修復錯誤提示記憶體不能為written的方法記憶體
- The platform metadata area could not be written: /Volumes/MemoryAnalyzer1/MemoryAnalyzer.app/ContentPlatformAPP
- Kata:Hamming number
- JavaScript Number toLocaleString()JavaScript
- JavaScript Number toString()JavaScript
- Number.NaNNaN
- JavaScript Number 物件JavaScript物件
- Leetcode Number of islandsLeetCode
- Yii2 where使用
- MySQL-where 1=1MySql