BookmarkSubscribeRSS Feed
Pramod_R
Calcite | Level 5
Hi,

I'm trying to connect to an Oracle 10G database which is present in a remote server, through SAS EG in UNIX. However, when i try to assign a libname using the below code -
libname DDW oracle user='user-id' ORAPW='pass' path='@path' schema=DDWMGR;

I get the following error message:
ERROR: ORACLE connection error: ORA-12541: TNS:no listener.

ERROR: Error in the LIBNAME statement.

Could you please tell me what is it that I'm missing here?

Let me know if you would need any other details.

Thanks in Advance,
Pramod.R
1 REPLY 1
sss
Fluorite | Level 6 sss
Fluorite | Level 6
Please check out the TNSNames.ora file u can get the file where oracle is setup.
as add the TNS name that is you database name .

ex:D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN

open file TNSNames.ora

dsname =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ipaddressofserver)
(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dbname)
)
)

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 4331 views
  • 0 likes
  • 2 in conversation