BookmarkSubscribeRSS Feed
mbakare
Calcite | Level 5

Hello everyone,

Please I need your help to connect to oracle database from SAS 9.4. I had successfully installed oracle database 11g XE edition  and SAS 9.4 version on a system running on windows 10 Enterprise. I was able to create database through sql-plus or oracle sql developer. I have all required SAS components such as SAS\ACCESS  to ORACLE and SAS\ACCESS to ODBC installed.

I had error while trying to connect to database from SAS using

libname myora oracle user='Bakare' password='Agbaman' path='XE';

 

the error message I got is below:

2    libname myora oracle user='Moshood' passoword='Agbaman' path='XE' ;

ERROR: The SAS/ACCESS Interface to ORACLE cannot be loaded. ERROR: Image SASORA   found but not

       loadable..

Please make sure Oracle environment is set correctly.

Look in the install/Config doc for additional info for your platform.

Other possible reasons - incomplete Oracle client install, 32/64-bit mismatch between Oracle

       client & SAS, incorrect Oracle client version(Oracle client must match the version

       picked during post-install process), incompatible sasora for your OS or its attribs

       don't permit SAS to load it.

ERROR: Error in the LIBNAME statement.

Thanks

4 REPLIES 4
LinusH
Tourmaline | Level 20

Have you fulfilled the post install configuration, including SQL*NET client and editing the tnsnames.ora file?

I think the error message implies that there is a problem with the installation/configuration (or even license?).

Data never sleeps
mbakare
Calcite | Level 5
I was able to create and connect to database through command line sql-plus and oracle sql developer.Does it mean SQL * NET is still required? How do I edit tnsnames.ora? What do I need to edit?
Tom
Super User Tom
Super User

@mbakare wrote:
I was able to create and connect to database through command line sql-plus and oracle sql developer.Does it mean SQL * NET is still required? How do I edit tnsnames.ora? What do I need to edit?

Sounds like you have Oracle tools installed properly to use.  Make sure that they are actually installed properly for SAS/Access to Oracle to work.

Also make sure that SAS is running on the same machine that you are running those other program from.  With interfaces such as SAS Enterprise Guide and SAS/Studio the server that is actually running SAS might not be your local machine.

mbakare
Calcite | Level 5

Thanks for the quick response. I run both SAS 9.4 and Oracle database 11g xe edition on a single window 10 64-bit enterprise edition. Do I need to install oracle client for me to connect to Oracle database 11g xe  from SAS? My oracle runs perfectly both in sqlplus and oracle sql developer likewise the SAS. The big challenge is to connect database from SAS

 

Please let me know if oracle database 11g xe edition requires oracle client for me to connect it from SAS.

 

Thanks

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1568 views
  • 0 likes
  • 3 in conversation