행위

ORACLE 프로시져 추출쿼리

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 12월 19일 (목) 12:18 판
thumb_up 추천메뉴 바로가기


* 프로시져 추출 
select  OWNER 
    ,  NAME 
    ,  TYPE 
    ,  LINE 
    ,  decode(line,1,'CREATE OR REPLACE ' 
        ||replace(text,'PACKAGE BODY ','PACKAGE BODY ' 
        ||owner 
        ||'.'),text) AS PKG_SOURCE 
from dba_source where type='PROCEDURE' and owner='$ownerName';