exp CONSISTENT=Y 原理:export前發出SET TRANSACTION READ ONLY命令
今天才知道, exp CONSISTENT=Y 之所以能保持資料一致性,原來是在export前發出SET TRANSACTION READ ONLY命令,用來保持資料在同一個時間點。
metalink Note:113450.1
PURPOSE OF CONSISTENT=Y EXPORT
------------------------------
Export extracts data by issuing a series of SELECT statements and the snapshot time of each table's data corresponds to when the SELECT statement was issued for that table. If there is no database activity, then this is not an issue.
However, it is possible to manipulate the table after the export has started in which case the snapshot of the data may be a factor. Export does not get an exclusive lock on any table.
There is an option called CONSISTENT=Y. When this is enabled, EXPORT first issues a SET TRANSACTION READ ONLY command before doing the export. There is a risk of running out of rollback segment space and getting an "ORA-1555 snapshot too old (rollback segment too small)" error when doing a long running export.
metalink Note:113450.1
PURPOSE OF CONSISTENT=Y EXPORT
------------------------------
Export extracts data by issuing a series of SELECT statements and the snapshot time of each table's data corresponds to when the SELECT statement was issued for that table. If there is no database activity, then this is not an issue.
However, it is possible to manipulate the table after the export has started in which case the snapshot of the data may be a factor. Export does not get an exclusive lock on any table.
There is an option called CONSISTENT=Y. When this is enabled, EXPORT first issues a SET TRANSACTION READ ONLY command before doing the export. There is a risk of running out of rollback segment space and getting an "ORA-1555 snapshot too old (rollback segment too small)" error when doing a long running export.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1433038/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle set transaction read only與dbms_transaction實現事務transaction控制Oracle
- Export Parameter : ConsistentExport
- Why NHibernate updates DB on commit of read-only transactionMIT
- Django Mysql SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTEDDjangoMySqlSessionMIT
- Export Parameter : Object_ConsistentExportObject
- Oracle一致性讀(Consistent Read)的原理Oracle
- Innodb Read Only Mode
- MySQL案例04:Cause: java.sql.SQLException: Could not retrieve transaction read-only status from serverMySqlJavaExceptionServer
- oracle 表空間和表 read only遷移後不再read onlyOracle
- EXP匯出引數compress=y(n)的區別
- read only tablespace backup restoreREST
- 理解exp, imp 使用direct=y 及imp commit=yMIT
- db block gets 與 consistent read getsBloC
- db block get和consistent read getBloC
- 轉:Oracle資料庫一致性讀的原理(Consistent Read)Oracle資料庫
- 事務的read only mode
- 關於tablespace在read only狀態下的DML ,DDL操作--Read-Only Tablespaces
- linux下操作檔案出現 Read-only file systemLinux
- CSS :read-only 選擇器CSS
- 當從READ ONLY到READ WRITE都做什麼了
- AndroidStudio之自定義輸出包名報錯 Cannot set the value of read-only property 'outputFile' forAndroid
- ORACLE匯入匯出命令exp/impOracle
- 資料庫事務耗時過長導致Could not retrieve transaction read-only status from server異常資料庫Server
- Transaction rolled back because it has been marked as rollback-only
- 3.2.3 Opening a Database in Read-Only ModeDatabase
- DG -- READ ONLY模式開啟物理Standby模式
- Oracle Isolation Levels : Read-only (317)Oracle
- Transaction註解原理
- Linux export 命令LinuxExport
- PostgreSQL原始碼定製:線上global read onlySQL原始碼
- Open a Database in Read-Only Mode (301)Database
- Seed Database (pdb$seed) - Read Write OR Read Only Mode in Oracle Database 12cDatabaseOracle
- consistent read(讀一致性)的通俗理解
- zt_oracle一致性讀consistent readOracle
- exp匯出命令中的query選項(轉)
- Oracle資料匯入匯出imp/exp命令Oracle
- Oracle 10.2.0.1 exp 之 full database export and import(實戰)OracleDatabaseExportImport
- Linux之export命令LinuxExport