Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error while connecting to Oracle Server from Instant client through CMD prompt, but SQL Developer co

kfactor21Apr 15 2014 — edited Apr 17 2014

I am using Client provided laptop (windows XP professional 2002)  and do not have administrative privileges (hence cannot st any required environment variables as well):

SQL Developer is provided and I am able to access the oracle server xaal5@<host>:1521/<SID> from SQL developer,

I need to use SQL LOADER to perform some heavy loading. I decided to download the instant client to see if I can save some time while my oracle client installation requests takes ages to go through approvals.

I went to the link: Instant Client downloads for Windows  and downloaded the following Instant Client Downloads for Microsoft Windows (32-bit)

Version 10.2.0.4

Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications

Download instantclient-basic-win32-10.2.0.4.zip (34,742,358 bytes)

*Instant Client Package - SQL*Plus: Additional libraries and executable for running SQL*Plus with Instant Client

Download instantclient-sqlplus-win32-10.2.0.4.zip (725,418 bytes)

Extracted these two zip files into C:\instantclient-win32 folder, got the following files (Yes there is no SQL LOADER in it , but i decided to first set the oracle client up and then look for SQL LDR)

sqlplus.exe

oci.dll

ocijdbc10.dll

ociw32.dll

orannzsbb10.dll

oraocci10.dll

oraociei10.dll

Orasqlplusic10.dll

classes12.jar

ojdbc14.jar

glogin.sql

I Ran the following CMD prompt of windows machine:


sqlplus xaal5@<host>:1521/<SID> 


and got the following error :


ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

I created a tnsnames.ora file with following entry:

PLMS =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = XXXXXX)(PORT = 1521))

    (CONNECT_DATA =

      (SID = sblcusdv)

    )

  )

and set up a USER VARIABLES to point to the path of tnsnames.ora file (in the Environment variables window) , as i cannot create a system variable.

$TNS_ADMIN=C:\instantclient-win32

I Ran the following CMD prompt again:


sqlplus xaal5@<host>:1521/<SID> 


and got the following error, again :


ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

What am i doing wrong !! or is there another way to get SQL loader working on my system considering the constraints (long wait for approvals for client installation) that i am under currently.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2014
Added on Apr 15 2014
5 comments
470 views