Professional Documents
Culture Documents
SAS
Susanne Young
Bank One
Overview
LIBNAME statement
pass-thru SQL query
LIBNAME statement
Helpful Info
Automatic macro variables
&sysdbmsg displays the DBMS error messages
58 %put &sysdbmsg;
ORACLE: ORA-01017: invalid username/password;
logon denied
&sysdbrc displays the DBMS error codes
59 %put &sysdbrc;
-1017
Sql pass thru query
PROC SQL;
CONNECT TO ORACLE(USER=MYUID ORAPW=MYPASSWORD
PATH='@OraInfo');
SELECT * FROM CONNECTION TO ORACLE
(SELECT * FROM MYSCHEMA.NBR_DAYS_TO_DATE_LKUP);
DISCONNECT FROM ORACLE;
QUIT;
Sql pass thru query
Sql pass thru query
Execute statement
execute (grant select on MYSCHEMA.MY_TABLE
to OTHERUID) by oracle;
execute (execute credit(234,5000)) by oracle;
Path= option
What you need to know
What you need to know
Schema = option
In Microsoft Access, when connecting to Oracle tables, the
Schema name is identified as the text to the left of the period.