Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Listener refused the connection with the following error

When testing the connection to my oracle database I get the following error

Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
The Connection descriptor used by the client was: //localhost:1521/orcl


0 votes



One answer

Permanent link
I checked ...Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora and it turns out I had installed my service to use the fully qualified name (orcl.ibm.com)

I changed //localhost:1521/orcl  to //localhost:1521/orcl.ibm.com and was able to connect.

here is what the tnsnames.ora file has in it:
ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.ibm.com)
    )
  )


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 2,357

Question asked: Jun 04 '12, 1:59 p.m.

Question was seen: 11,702 times

Last updated: Jun 04 '12, 2:04 p.m.

Confirmation Cancel Confirm