BookmarkSubscribeRSS Feed
zgp480
Fluorite | Level 6

I need access Oracle from SAS.

1) Oracle database is in another server computer,

2) local computer has SAS, but no Oracle;

3) local computer use Windows7(64 byte).

4) Now I can access Oracle from Toad, but I need access from SAS!.

 

Do I need install Oracle on my local computer? Or just install ODBC driver? What's dsn mean in the code below?

Proc sql ;
connect to ODBC (dsn = 'XXXX' user = gzhang password = XXXX) ;
create table CTable as
select * from connection to ODBC
(
select ....

 

Can anyone help me, I will appreciate it.

6 REPLIES 6
Reeza
Super User

No, you don't need Oracle installed locally, but you do need some method of your computer talking to Oracle.


Try following the instructions here:

https://support.sas.com/techsup/technote/ts714.pdf

 

 

SASKiwi
PROC Star

What SAS product do you have to connect to Oracle?

 

SAS/ACCESS to ODBC, SAS?ACCESS to OLEDB or SAS/ACCESS to Oracle? One of these must be installed and licensed to connect to Oracle. You can check your licence by running: proc setinit noalias; run;

zgp480
Fluorite | Level 6

I got these:

---SAS/ACCESS Interface to PC Files

---SAS/ACCESS Interface to ODBC

---SAS/ACCESS Interface to OLE DB

 

So I do need install Oracle on my local computer?

Thanks.

Reeza
Super User

No you do not need Oracle installed on your local computer.

zgp480
Fluorite | Level 6

I don't have ODBC driver. How can I configure it? I remember I need ...ora file? I cannot remember the exact file name.

 

Reeza
Super User

I think these are getting to be Windows/Oracle questions not really SAS related.

 

Regardless, you do need an ODBC driver - see your IT team or the Oracle page to download the correct one for your system. 

 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Discussion stats
  • 6 replies
  • 2717 views
  • 2 likes
  • 3 in conversation