synonym 추출 스크립트
작성자 관리자 작성시간 2006-03-28 00:03:56
 

■ 시너님 추출 script

======================================================================
=================

select
        'create '
        ||DECODE(owner,'PUBLIC','public')||' synonym '
        ||DECODE(owner,'PUBLIC',Null, '')||synonym_name
        ||' for '
        ||DECODE(table_owner,Null,''||table_name,table_owner||'.'||table_name)

        ||DECODE(db_link,Null,';', '@'||db_link||';')
from    dba_synonyms
where /*table_owner \*not in ('SYS','SYSTEM')*\='PRSADMIN'
or*/ owner='PRSADMIN'
--or table_owner ='PRSADMIN'


목록 | 입력 | 수정 | 답변 | 삭제