Help using Base SAS procedures

Oracle Connection Error

Reply
Occasional Contributor
Posts: 19

Oracle Connection Error

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
Contributor sss
Contributor
Posts: 65

Re: Oracle Connection Error

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 .

exSmiley Very Happy:\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)
)
)
Ask a Question
Discussion stats
  • 1 reply
  • 2004 views
  • 0 likes
  • 2 in conversation