它通过循环遍历drop table TABLE_NAME cascade constraints purge来为所有表(以及其他对象类型)生成user_objects行。问题是,具有依赖于它们的引用分区表的表不能以这种方式删除:ORA-14656: cannot drop the parent of a reference-partitioned table。如何从数据字典中检测哪些表是引用分区表的父表,以便在第一个循环中跳过它们,然后将它们放到第二个循环中?
我想禁用子分区表上的索引。当我尝试的时候,我会发现一个错误。ERROR: cannot drop index mysema.col_extra_val_355_customer_id_idx because index mysema.col_extra_val_customer_id_idx1requires it HINT: You can drop index mysema.col_extra_val_customer_id_idx1 instead.每次都会为子分区表群集插入。为了提高插入速度,我希望删除该表的索引,