ORACLE编译无效对象

查询无效对象:
col owner format a15;
col OBJECT_NAME format a30;
select owner,object_name from dba_objects
where status = 'INVALID';

手动编译无效对象:
alter procedure/view object_name compile;
编译全部无效对象:
$ORACLE_HOME/rdbms/admin/utlrp.sql

检查不起作用的约束
SELECT owner, constraint_name, table_name, constraint_type, status
FROM dba_constraints
WHERE status ='DISABLE' and constraint_type='P';

检查无效的trigger
SELECT owner, trigger_name, table_name, status FROM dba_triggers WHERE status = 'DISABLED';

检查数据库定时作业的完成情况
如果数据库使用了Oracle的JOB来完成一些定时作业,要对这些JOB的运行情况进行检查:
select job,log_user,last_date,failures
from dba_jobs;
如果FAILURES列是一个大于0的数的话,说明JOB运行失败,要进一步的检查。

你可能感兴趣的:(oracle)