I have windows server on virtual machine which I build 2 years ago. I Installed Oracle database and Sql Server on it. It worked fine. but last two days I try to use oracle database and I got an error:
ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
I checked listener.ora and tnsnames.ora and couldn't found error.
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = THIS_IS_MY_HOST_NAME_OR_IP)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
and tnsnames.ora
MAIN_DATABASE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = THIS_IS_MY_HOST_NAME_OR_IP)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
Ok. After that I build another virtual machine and installed Oracle database(XE) again but still have same error. OracleXe and TNSlistener services are started. any ideas?
Please help.