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!

Cannot connect with Service Name.

mirzabaig28Jul 4 2013 — edited Jul 6 2013

Hello everyone, I am trying to connect Oracle Database 11g R2 on Windows Server 2008 R2 as  userid/passwd@dbprod from same server, It give me error "ora 12514: tns: Listener does not currently know of service requested in connect descriptor. If i try to connect from my client machine as userid/passwd@dbprod it works. If I connect without the service name userid/passwd@dbprod it works.

I am trying to run an application that connects to the database with it service name. Please let me know if i am missing anything?

My tnsnames.ora file contains

dbprod =

  (DESCRIPTION =

   (ADDRESS_LIST=

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

   )   

    (CONNECT_DATA =

      (SERVICE_NAME = dbprod)

    )

  )

and Listener.ora contains

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = CLRExtProc)

      (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)

      (PROGRAM = extproc)

      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

  )

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

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

    )

  )

ADR_BASE_LISTENER = D:\app\Administrator

Thanks in Advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2013
Added on Jul 4 2013
13 comments
2,928 views