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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle System Change Number (SCN) Number 完全筆記Oracle筆記
- 關於System Change Number(SCN)的常用操作
- MERGE新特性(UPDATE WHERE,DELETE WHERE,INSERT WHERE)delete
- 【SCN】Oracle SCN 詳細介紹Oracle
- 【SCN】Oracle檢查scn值指令碼Oracle指令碼
- 【SCN】Oracle推薦scn命令參考Oracle
- Oracle:SCNOracle
- Oracle scnOracle
- Oracle timestamp_to_scn and scn_to_timestampOracle
- 由oradebug poke推進scn理解scn base及scn wrap系列一
- where are you going ? 反序為:going you are whereGo
- SCN基礎
- 探索Oracle SCNOracle
- oracle的SCNOracle
- ARABIC-ENGLISH DICTIONARY: THE HANS WEHR DICTIONARY OF MODERN WRITTEN ARABIC
- MyBatis中的<where>標籤和where子句的區別MyBatis
- swift 中的 whereSwift
- Script form where usedORM
- [pl sql] where current ofSQL
- MySQL where 運算子MySql
- having和where
- Oracle SCN機制解析 (SCN, checkpoint檢查點) - finalOracle
- 一個記憶體不能被written的問題記憶體
- AUD: Audit Commit Delay exceeded, written a copy to OS Audit TrailMITAI
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- ORACLE -詳解SCNOracle
- Oracle SCN詳解Oracle
- SCN的機制
- Oracle Scn 定義Oracle
- ORACLE scn 機制Oracle
- 初學checkpoint and scn
- SCN知識1
- ORACLE SCN 查詢Oracle
- Oracle中的SCNOracle
- JavaScript Number()JavaScript
- 透過修改控制檔案scn推進資料庫scn資料庫
- win10記憶體不能為written怎麼解決 win10電腦該記憶體不能為written如何修復Win10記憶體
- Laravel 的 where or 查詢Laravel