[오라클]INVALID Object 해결
SELECT 'EXEC DBMS_UTILITY.compile_schema(schema => '||owner||');'
FROM dba_objects
WHERE status = 'INVALID'
ORDER BY owner, object_type, object_name
/
set heading off
set feedback off
set linesize 80
select 'alter view "' || object_name || '" compile;'
from user_objects
where object_type = 'VIEW'
and status = 'INVALID'
/
alter view "EMP_PUBLIC_DATA" compile;
alter view "VIEW_T" compile;
alter view "DEPT_EMP_VIEW" compile;
alter view "DEPARTMENT_10" compile;
set heading on
set feedback on
select 'show errors view ' || object_name
from user_objects
where object_type = 'VIEW'
and status = 'INVALID'
/
'SHOWERRORSVIEW'||OBJECT_NAME
--------------------------------------------------------------------------------
show errors view EMP_PUBLIC_DATA
show errors view VIEW_T
show errors view DEPT_EMP_VIEW
show errors view DEPARTMENT_10
4 rows selected.
'01.오라클 > 009.DB Trouble Shooting' 카테고리의 다른 글
[오라클]how to change the character set from WE8MSWIN1252 to AL32UTF8 in oracle rac 11g. (0) | 2014.09.05 |
---|---|
[오라클]ORA-06553: PLS-553: character set name is not recognized (0) | 2013.03.12 |
[오라클]프로시저, 함수/펑션.FUNCTION 보기 (0) | 2013.02.23 |
[오라클]INVALID recompile (0) | 2013.02.23 |
[오라클]DELETE, UPDATE 후 commit 데이터 복구 (0) | 2013.02.20 |