开发者

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

开发者 https://www.devze.com 2023-01-23 10:18 出处:网络
I only have the basic O开发者_开发百科racle 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.

I only have the basic O开发者_开发百科racle 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?


SELECT owner, table_name, dependencies FROM dba_tables;

This will return "ENABLED" or "DISABLED" for each table. If you don't have access to dba_tables, query all_tables instead.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消