1、 对test表的id添加主键: SQL> alter table test add constraint pk_test_id primary key (id); 过程中,会阻塞其他会话的DML操作。 2、 把主键约束disable后,发现主键上的索引被删除了。 SQL> select table_name,status from user_indexes where index_name = 'PK_TEST_ID'; TABLE_NAME STATUS ------------------------------ -------- TEST VALID SQL> alter table test disable constraint pk_test_id; Table altered SQL> SQL> select table_name,status from user_indexes where index_name = 'PK_TEST_ID'; TABLE_NAME STATUS [...]