Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Instant Client and ora-12514

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-15-04, 14:14
tchocky tchocky is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Instant Client and ora-12514

Hi, I'm a total beginner to Oracle, so forgive me if this is a really easy question to answer, but...

I've recently started a web site job where I've been given Oracle as the database to use with it. Now, I can telnet in to the system and use SQLPLUS from there, but I'd much rather use something a lot more user friendly- this being where the Instant Client comes in.

I've installed it (well, extracted it to c:\instantclient) and set environment variables PATH and SQLPATH to that location.. Then I tried connecting to the database, but it didn't work at all- one e-mail to them later and I was given the following for a "tnsnames.ora" file:

Quote:
trdb.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.world)
(PROTOCOL = TCP)
(Host = <my host>)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = trdb)
(GLOBAL_NAME = trdb.world)
)
)

But when I run SQLPLUS with no arguments it says:

Quote:
ERROR:ORA-12560: TNSrotocol adapter error


And if I try to run sqlplus asuwww/<password>@<host>, it tells me:

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


Anyone got any idea what I'm doing wrong here?!

Cheers!
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 17:44
joebednarz joebednarz is offline
PC Load Letter???
 
Join Date: Dec 2003
Location: Oklahoma, USA
Posts: 347
You'll need to post your "listener.ora" file also to help you...

There are two components to making a connection to an Oracle database over a network. The server component responds to requests for "a database" on a particular computer. The client component uses Oracle connection libraries and relies on the tnsnames.ora file to know how to find a database.

The file from instantclient is a start, but you will have to have more information for the file to be exactly what you need to make a connection.

JoeB
Reply With Quote
  #3 (permalink)  
Old 06-16-04, 08:18
tchocky tchocky is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Quote:
Originally Posted by joebednarz
You'll need to post your "listener.ora" file also to help you...

Hi, thanks for the reply- I don't actually have a "listener.ora" file- should I be requesting one from the database providers?
Reply With Quote
  #4 (permalink)  
Old 06-18-04, 11:26
joebednarz joebednarz is offline
PC Load Letter???
 
Join Date: Dec 2003
Location: Oklahoma, USA
Posts: 347
Easiest way for you to get the Listener running, and create the listener.ora file, is to run the network configuration assistant. This will create the appropriate files and then create the service for you. Once that is done, you should be able to modify your tnsnames.ora file to correspond.

JoeB
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On