Access an Oracle Database with a Fully-Specified Connection String

This example accesses an Oracle database by connecting to the DataFlux Federation Server and by submitting a fully-specified connection string.
  1. The LIBNAME statement assigns the libref Myfiles and specifies the FEDSVR engine and Dataflux Federation Server server connection arguments.
  2. The DRIVER=FEDSQL option specifies the language driver, which is required for an Oracle database when using the LIBNAME engine.
  3. The CONOPTS= option specifies the connection string arguments for an Oracle database server.
  4. The PRINT procedure prints an Oracle table.
libname myfiles fedsvr server=a123.us.company.com 
   port=2171 user="sasadm@saspw" pwd=lpwd 1   
   connect_string="driver=fedsql; 2
   conopts=(driver=oracle; uid=oracleid; pwd=oraclepw;
      path=or9010; catalog=cat_oracle;)"; 3

proc print data=myfiles.table1; 4
run;