BookmarkSubscribeRSS Feed

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

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

* 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;

Version history
Last update:
‎06-12-2020 12:58 AM
Updated by:
Contributors

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Article Labels
Article Tags