How can I determine if an Oracle table has the ROWDEPENDENCIES option set?

耗尽温柔 提交于 2019-12-23 13:04:38

问题


I only have the basic Oracle tools available, i.e. SQL Plus, and I need to find out if a table was created with the ROWDEPENDENCIES option. It's a 10g database.

And, if it isn't set, can I use ALTER TABLE to set it, or do I have to drop and re-create the table?


回答1:


SELECT owner, table_name, dependencies FROM dba_tables;

This will return "ENABLED" or "DISABLED" for each table.

You cannot change this after the table has been created, so you'll have to re-create the table to set it on.



来源:https://stackoverflow.com/questions/4105368/how-can-i-determine-if-an-oracle-table-has-the-rowdependencies-option-set

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!