查詢無效的對象

1、檢查無效的數據庫對象

select owner,object_name,object_type,status

from dba_objects

where status = 'INVALID';

2、檢查不起作用的約束

select owner,constraint_name,table_name,constraint_type,status

from dba_constraints

where status = 'DISABLED';

3、檢查無效的觸發器

select owner,trigger_name,table_name,status

from dba_triggers

where status = 'DISABLED';

4、檢查失效的索引

select  index_name,table_name,tablespace_name,status

from dba_indexes

where status <>'VALID';


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章