OCP-1Z0-053-V12.02-96题
2013-11-01 08:58
302 查看
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
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/13431595
如果有长时间运行的查询,而且这些查询可能跨越收缩操作,并尝试从已回收的块中读取数据,则COMPACT子句会很有用。指定SHRINK SPACE COMPACT子句时,收缩操作的进度将保存在相应段的位图块中。这意味着下次在同一个段上执行收缩操作时,Oracle DB Server 可以记住已经执行过的操作。
官方参考:http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_3001.htm#SQLRF53315
COMPACT If you specify
COMPACT, then Oracle Database only defragments the segment space and compacts the table rows for subsequent release. The database does not readjust the
high water mark and does not release the space immediately (B wrong). You must issue another
ALTER
TABLE...
SHRINK
SPACEstatement
later to complete the operation. This clause is useful if you want to accomplish the shrink operation in two shorter steps rather than one longer step.
For an index or index-organized table, specifying
ALTER[
INDEX|
TABLE] ...
SHRINK
SPACE
COMPACTis equivalent to specifying
ALTER[
INDEX|
TABLE...
COALESCE.
The
shrink_clausecan be cascaded (refer to the
CASCADEclause, which follows) and compacts the segment more densely than does a coalesce operation, which can improve performance. However, if you do not want to release the unused space,
then you can use the appropriate
COALESCEclause.
相关文章推荐
- OCP-1Z0-053-V12.02-580题
- OCP-1Z0-053-V12.02-593题
- OCP-1Z0-053-V12.02-237题
- OCP-1Z0-053-V12.02-382题
- OCP-1Z0-053-V12.02-496题
- OCP-1Z0-053-V12.02-153题
- OCP-1Z0-053-V12.02-251题
- OCP-1Z0-053-V12.02-672题
- OCP-1Z0-053-V12.02-431题
- OCP-1Z0-053-V12.02-367题
- OCP-1Z0-053-V12.02-546题
- OCP-1Z0-053-V12.02-137题
- OCP-1Z0-053-V12.02-159题
- OCP-1Z0-053-V12.02-56题
- OCP-1Z0-053-V12.02-674题
- OCP-1Z0-053-V12.02-174题
- OCP-1Z0-053-V12.02-180题
- OCP-1Z0-053-V12.02-249题
- OCP-1Z0-053-V12.02-85题
- OCP-1Z0-053-V12.02-378题