반응형
1. FUNCTION 컴파일
SELECT 'ALTER FUNCTION '||OWNER||'.'||NAME||' COMPILE;' FROM DBA_SOURCE
WHERE OWNER = 'SCOTT' AND TEXT_LIKE '%TABLE_NAME%'
AND TYPE = 'FUNCTION'
GROUP BY OWNER, NAME, TYPE
ORDER BY TYPE, NAME;
2. PROCEDURE 컴파일
SELECT 'ALTER PROCEDURE '||OWNER||'.'||NAME||' COMPILE;' FROM DBA_SOURCE
WHERE OWNER = 'SCOTT' AND TEXT_LIKE '%TABLE_NAME%'
AND TYPE = 'PROCEDURE'
GROUP BY OWNER, NAME, TYPE
ORDER BY TYPE, NAME;
3. TRIGGER 컴파일
SELECT 'ALTER TRIGGER '||OWNER||'.'||NAME||' COMPILE;' FROM DBA_SOURCE
WHERE OWNER = 'SCOTT' AND TEXT_LIKE '%TABLE_NAME%'
AND TYPE = 'TRIGGER'
GROUP BY OWNER, NAME, TYPE
ORDER BY TYPE, NAME;
반응형
'개발 및 관리 > Oracle 9i, 10g, 11g, 12c, 19c' 카테고리의 다른 글
오라클 날짜 (0) | 2022.06.10 |
---|---|
Oracle nologging tips (0) | 2022.06.10 |
[sqlplus] shutdown immediate VS [os상] svrctl (0) | 2022.03.12 |
SQL 우선순위 (0) | 2022.03.10 |
GROUP BY CASE, CASE GROUP BY (0) | 2022.03.03 |