In this first example,
default settings are used for the connection options to make the connection.
If you specify the appropriate system options or environment variables
for Oracle, you can often omit the connection options from your LIBNAME
statements. See your Oracle documentation for details.
libname myoralib oracle;
In the next example,
the libref MYDBLIB uses
SAS/ACCESS Interface to Oracle to connect
to an Oracle database. The
SAS/ACCESS connection options are USER=,
PASSWORD=, and PATH=. PATH= specifies an alias for the database specification,
which SQL*Net requires.
libname mydblib oracle user=testuser password=testpass path=hrdept_002;
proc print data=mydblib.employees;
where dept='CSR010';
run;