ACCESS Procedure Specifics for Oracle

Overview

For general information about this feature, see ACCESS Procedure. Oracle examples are available.

The Oracle interface supports all ACCESS procedure statements in line and batch modes. See About ACCESS Procedure Statements.

Here are the ACCESS procedure specifics for Oracle.

Examples

This example creates an access descriptor and a view descriptor based on Oracle data.

options linesize=80;

libname adlib 'SAS-library';
libname vlib 'SAS-library';

proc access dbms=oracle;
/* Create an access descriptor */
   create adlib.customer.access;
   user=myusr1;
   orapw=mypwd1;
   table=customers;
   path='mysrv1';
   assign=yes;
   rename customer=custnum;
   format firstorder date9.;
   list all;

/* Create a view descriptor */
   create vlib.usacust.view;
   select customer state zipcode name firstorder;
   subset where customer like '1%';
run;

This next example creates another view descriptor that is based on the ADLIB.CUSTOMER access descriptor. You can then print the view.

/* Create the socust view */
proc access dbms=oracle accdesc=adlib.customer;
   create vlib.socust.view;
   select customer state name contact;
   subset where state in ('NC', 'VA', 'TX');
run;

/* Print the socust view */
proc print data=vlib.socust;
title 'Customers in Southern States';
run;
Last updated: February 3, 2026