Previous Page | Next Page

SAS/ACCESS Interface to Oracle

ACCESS Procedure Specifics for Oracle


Overview

For general information about this feature, see The ACCESS Procedure for Relational Databases. 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-data-library';
libname vlib 'SAS-data-library';

proc access dbms=oracle;

/* create access descriptor */

   create adlib.customer.access;      
   user=testuser;
   orapw=testpass;
   table=customers;
   path='myorapath';
   assign=yes;
   rename customer=custnum;
   format firstorder date9.;
   list all;

/* create 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 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 socust view */

proc print data=vlib.socust;                        
title 'Customers in Southern States';
run;

Previous Page | Next Page | Top of Page