Hi,
I'm newbie to SAS, trying to learn SAS myself. Can anyone let me know how to connect to oracle from SAS and pull data from tables to create report.
Any help will be appreciated.
Hi,
Please refer to this paper:
http://www.nesug.org/proceedings/nesug04/io/io04.pdf
In a nutshell, I usually use one of the following two approaches:
1. pass-through facility: It is believed that the query is done on Oracle side natively, so it could be more efficient.
2. Libname engine:
There are also other solutions such as proc dbload, which I have no experience in.
HTH,
Haikuo
Peter,
Note, particularly, the prerequisites at the bottom of page 1 in Haikuo's reference. You need to have an oracle client piece on your machine and a license for SAS/Access for Oracle.
Your local IT support should be able to set you up with the Oracle client. You should test the connection with SQL*Plus to make sure that you know that any problems you might see on the SAS side are not part of the underlying Oracle setup.
Doc Muhlbaier
Duke
Oracle-client -- sqlplus- is installed on my station and i can run queries successfully from it. so how to get connected to oracle from SAS and get information from RDBMS tables into SAS for producing sas datasets.
Do you have SAS/Access to Oracle licensed and installed? If so, what are the specific error message(s) that you are getting?
Did you read the documentation? it has examples.
Please provide the log of what you tried.
using libname:
libname test oracle user="***" password="***" path="***" schema=****;
is PROC SQL; QUIT; used ONLY to get data from dbms table like oracle,mssql or used to manipulate data present in SAS dataset?
Many of us use it extensively for all sorts of data, including SAS datasets and DBMS tables.
Thanks for your replies... Issue resolved.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.