OCP 1Z0 053 96
来源:互联网 发布:面向对象编程的优点 编辑:程序博客网 时间:2024/06/01 10:12
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://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_3001.htm#SQLRF53314
shrink_clause
The shrink clause lets you manually shrink space in a table, index-organized table or its overflow segment, index, partition, subpartition, LOB segment, materialized view, or materialized view log. This clause is valid only for segments in tablespaces with automatic segment management. By default, Oracle Database compacts the segment, adjusts the high water mark, and releases the recuperated space immediately.
Compacting the segment requires row movement. Therefore, you must enable row movement for the object you want to shrink before specifying this clause. Further, if your application has any rowid-based triggers, you should disable them before issuing this clause.
Note:
Do not attempt to enable row movement for an index-organized table before specifying theshrink_clause
. The ROWID
of an index-organized table is its primary key, which never changes. Therefore, row movement is neither relevant nor valid for such tables.COMPACT If you specify COMPACT
, then Oracle Database only defragments the segment space and compacts the table rows for subsequent release. The database doesnot readjust the high water mark and does not release the space immediately. You must issue another ALTER
TABLE
... SHRINK
SPACE
statement 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
COMPACT
is equivalent to specifying ALTER
[INDEX
| TABLE
... COALESCE
. Theshrink_clause
can be cascaded (refer to the CASCADE
clause, 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 COALESCE
clause.
- OCP 1Z0 053 96
- OCP 1Z0 051 96
- OCP 1Z0 052 96
- OCP 1Z0 053 1
- OCP 1Z0 053 2
- OCP 1Z0 053 3
- OCP 1Z0 053 4
- OCP 1Z0 053 5
- OCP 1Z0 053 6
- OCP 1Z0 053 7
- OCP 1Z0 053 8
- OCP 1Z0 053 9
- OCP 1Z0 053 10
- OCP 1Z0 053 11
- OCP 1Z0 053 12
- OCP 1Z0 053 13
- OCP 1Z0 053 14
- OCP 1Z0 053 15
- 10、选择器Sizzle工作原理
- 11、jQuery选择器
- SciPy-数值计算库
- 12、使用jQuery操作DOM之操作节点
- 第十章 创建计算字段
- OCP 1Z0 053 96
- 13、使用jQuery操作DOM之操作元素
- 【java】static关键字的总结
- 14、使用jQuery操作DOM之操作属性
- matplotlib-绘制精美的图表
- 15、使用jQuery操作DOM之操作样式
- Android 中自定义控件和属性(attr.xml,declare-styleable,TypedArray)的方法和使用
- Watermelon Full of Water - ZOJ 3632 dp+线段树
- 16、使用jQuery操作DOM之操作HTML、文本和值