OCP-043 alter index..coalesce


55. Users in your production database complain that they are getting the following error message while
trying to insert rows into the ORDERS table:
ERROR at line 1:
ORA01654:
unable to extend index USERS.ORDERS_IND by 8 in tablespace INDEXES
While investigating, you find that the INDEXES tablespace has run out of space and there is no more free
space on the disk where the data files are available.
Which two actions could you perform to overcome this error without affecting the queries that are currently
being executed? (Choose two.)
A.drop and recreate
the index
B.coalesce the ORDERS_IND index
C.coalesce the INDEXES tablespace

D.drop and recreate
the ORDERS table
E.rebuild the index online and move it to another tablespace
Answer: BE



shrink_clause

Use this clause to compact the index segments. Specifying ALTER INDEX ... SHRINK SPACE COMPACT is equivalent to specifying ALTER INDEX ... COALESCE.



COALESCE Clause

Specify COALESCE to instruct Oracle Database to merge the contents of index blocks where possible to free blocks for reuse.

Restrictions on Coalescing Index Blocks Coalescing of index blocks is subject to the following restrictions:

  • You cannot specify this clause for an index on a temporary table.

  • Do not specify this clause for the primary key index of an index-organized table. Instead use the COALESCE clause of ALTER TABLE.




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值