Quantcast
Viewing all articles
Browse latest Browse all 12134

Getting ORA-12154: TNS:could not resolve service name while using lr_db_connect

Hey

i am try to connect to oracle DB with this command:

lr_db_connect("StepName=example",
         "ConnectionName=example",
         "ConnectionString=Provider=OraOLEDB.Oracle.1;Data Source=SPROU14;Password=sa ;User ID=sa",
         "ConnectionType=OLEDB",
 LAST);

 

and getting Error: DB Connection failed {"ORA-12154: TNS:could not resolve service name"}

i did TNSPING from command line and its pass:

 tnsping SPROU14

Used TNSNAMES adapter to resolve the alias
Attempting to contact (description=(address=(protocol=tcp)(host=illin267)(port=1
521))(connect_data=(sid=SPROU14)))
OK (120 msec) 

 

any idea what can be the issue?


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>