分享一道Oracle 19c OCM考试中99%错误率的题目
Oracle OCM考试结束后会告诉你考试成绩,并不会告诉你哪道题做错了,最近我在OCM的授课中发现了一道题目,99%的人都做错了,这道题目在12c和19c中都出现了,大致题目如下:When inserting data into a table, there are frequent occurrences of "buffer busy wait". This is because a sequence is used to generate values for the ID column of the table. To reduce the number of buffer busy waits, you can modify either the sequence or the index, or both.
这个题目是说要想办法减少索引叶节点上面的“buffer busy wait”, 在12c中的正确做法是重新创建全局分区索引,让热点分散到多个分区中,创建索引的命令如下:
SQL> create index in_1 on tt1(id) global partition by hash(id) partitions 32 parallel 32;
Index created.
<br>