BookmarkSubscribeRSS Feed

[SAS 프로그래밍 고수 백승민] [오라클] DB링크 사용하기

Started ‎06-11-2020 by
Modified ‎06-12-2020 by
Views 348

* http://support.sas.com/documentation/cdl/en/acreldb/63023/HTML/default/a002206037.htm;

 

 

* 직접 DBLINK사용;
proc sql;
  connect to  oracle(user=xxx password=xxx path='xxx');
  %put &sqlxmsg;
     create table test as select * from connection to oracle
      (select *
       from   human.table@kbo10
    );
  %put &sqlxmsg;
  disconnect from oracle;
quit;

 

 

* DBLINK사용2;
* 스키마에는 DB링크 쪽 스키마 부여;
libname eis oracle user=xxx password=xxx path='xxx' SCHEMA=human;

proc sql;
  create table test1 as
    select *
    from   eis.table(dblink='kbo10');
quit;