68. You noticed that the index tablespace in your database requires a
recovery. However, instead of performing a media recovery, you decide
d to re-create the indexes in a new tablespace. Which two options wou
ld you use to reduce the time it takes to re-create the indexes? (Cho
ose two.)
A. ONLINE
B. REVERSE
C. PARALLEL
D. COMPRESS
E. NOLOGGING
F. COMPUTE STATISTICS
Answer: C, E
你注意到你的数据库中的index 表空间需要恢复,你重建了索引,可以同过
PARALLEL 和nologging(不写日志文件,不安全)来提高恢复速度,部分ddl 语
句是可以不写日志的
执行ALTER INDEX 语句中的REBUILD 选项,可以使用已有索引而不是整个表快速
重建索引:alter index cust_idx1 rebuild parallel
tablespace cust_tblspc1 storage (pctincrease 0);
我们可以同时修改STORAGE 子句,并且可以使用parallel 选项
ALTER INDEX INDEX_NAME REBUILD parallel 8;
并行度 要看看参数吧 好像是 parallel_threads_per_cpu 还有
paralle_max_server 看你硬件能否支持吧(这么还没试验)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11312660/viewspace-717841/
,如需转载,请注明出处,否则将追究法律责任。