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.