Oracle OCP 1Z0 053 Q96(Shrink Space Compact)
96.Examine the following command:
SQL> ALTER TABLE booking SHRINK SPACE COMPACT;
Which activity is performed when the preceding command is executed?
A. The shrink operation touches every block in the BOOKING table
B. The high-water mark (HWM) for the BOOKING table is shifted from its original position
C. The progress of the shrink operation is saved in the bitmap blocks of the BOOKING table
D. The data manipulation language (DML) triggers on the BOOKING table are executed because the
shrink operation is internally handled by the INSERT/DELETE operation
Answer: C
compact不會做釋放高水位的動作
如果有長時間執行的查詢,而且這些查詢可能跨越收縮操作,並嘗試從已回收的塊中讀取資料,則COMPACT子句會很有用。指定SHRINK SPACE COMPACT子句時,收縮操作的進度將儲存在相應段的點陣圖塊中。這意味著下次在同一個段上執行收縮操作時,Oracle DB Server 可以記住已經執行過的操作。然後你就可以在非峰值時段重新發出SHRINK SPACE子句,無需使用COMPACT子句即可完成第二階段
參考:http://blog.csdn.net/jgmydsai/article/details/37350269
http://blog.csdn.net/rlhua/article/details/13431595
SQL> ALTER TABLE booking SHRINK SPACE COMPACT;
Which activity is performed when the preceding command is executed?
A. The shrink operation touches every block in the BOOKING table
B. The high-water mark (HWM) for the BOOKING table is shifted from its original position
C. The progress of the shrink operation is saved in the bitmap blocks of the BOOKING table
D. The data manipulation language (DML) triggers on the BOOKING table are executed because the
shrink operation is internally handled by the INSERT/DELETE operation
Answer: C
compact不會做釋放高水位的動作
如果有長時間執行的查詢,而且這些查詢可能跨越收縮操作,並嘗試從已回收的塊中讀取資料,則COMPACT子句會很有用。指定SHRINK SPACE COMPACT子句時,收縮操作的進度將儲存在相應段的點陣圖塊中。這意味著下次在同一個段上執行收縮操作時,Oracle DB Server 可以記住已經執行過的操作。然後你就可以在非峰值時段重新發出SHRINK SPACE子句,無需使用COMPACT子句即可完成第二階段
參考:http://blog.csdn.net/jgmydsai/article/details/37350269
http://blog.csdn.net/rlhua/article/details/13431595
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2073842/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter table move與shrink space
- [20190918]shrink space與ORA-08102錯誤.txt
- Oracle OCP(56)Oracle
- Oracle OCP(23):序列Oracle
- Oracle OCP(29):PROFILEOracle
- Oracle OCP(54):EXPOracle
- Oracle OCP(54):IMPOracle
- Oracle OCP(57):IMPDPOracle
- Oracle OCP(44):LSNRCTLOracle
- Oracle OCP(28):USEROracle
- Oracle OCP(25):索引Oracle索引
- Oracle OCP(30):ROLEOracle
- Oracle move和shrink釋放高水位空間Oracle
- Oracle OCP(33):官方文件Oracle
- Oracle OCP(20):建立表Oracle
- Oracle OCP(21):管理表Oracle
- Oracle OCP(12):ROLLUP & CUBEOracle
- Oracle OCP(48):UNDO TABLESPACEOracle
- Oracle OCP(58):ARCHIVELOG 管理OracleHive
- Oracle OCP(24):檢視Oracle
- Oracle OCP(26):其它ObjectOracleObject
- Oracle OCP(32):SUPPORT:MOSOracle
- 【SHRINK】Oracle收縮表的詳細命令參考Oracle
- Oracle OCP(35):Database 安裝OracleDatabase
- Oracle OCP(36):DBCA建庫Oracle
- Oracle OCP(04):聚合函式Oracle函式
- Oracle OCP(43):listener.oraOracle
- Oracle OCP(40):程式結構Oracle
- Oracle OCP(18):命名規則Oracle
- Oracle OCP(60):RMAN 備份Oracle
- Oracle OCP(45):sqlnet.oraOracleSQL
- Oracle OCP(45):TNSNAMES.oraOracle
- Oracle OCP(62):熱備份Oracle
- Oracle OCP(60):冷備份Oracle
- Oracle OCP和MySQL OCP認證考試內容有哪些?OracleMySql
- Oracle OCP(02):條件和排序Oracle排序
- Oracle OCP(41):邏輯結構Oracle
- Oracle OCP(38):Database 物理結構OracleDatabase
- Oracle OCP(15):分層檢索Oracle