Hi there,
I'm an experienced Oracle database developer who is currently giving himself a crash course on the DBA side of things; a subject on which I'm pretty clueless.
I've been following an online guide in terms of installation of the 10g Database server on Windows XP (Home Edition) and configuration in Enterprise Manager 10g. All was going well until I shut the database down from OEM. It appeared to shut down okay (although the weird thing was that the service was still showing as "Started" in the windows service menu). I just can't restart the damn thing.
When I attempt to start the service from OEM, I get the following error message:
SQLException:
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: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MainDB)))
I also attempted to perform a recovery from OEM and received the following exception:
Unable to connect to the database.
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: (description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(sid=MainDB)(server=dedicated)))
I've obviously checked out the error codes and suggestions on Technet, but as I'm not a DBA as of yet, I'm really not familiar with a lot of this stuff. I have done some investigation, but seem to be getting mired ever deeper.
For example, one of the suggestions for the ORA-12505 exception was to
"Check which instances are currently known by the listener by executing: lsnrctl services <listener name>".
I tried this by entering the name of my listener service, so the command was executed in the following way from the DOS command prompt:
lsnrctl services OracleOraDB10g_home1TNSListener
I received the following TNS exception:
TNS-01101: Could not find service name OracleOraDB10g_home1TNSListener
This service name is clearly visible in the XP services list in the control panel, and I have checked the spelling carefully.
When I researched the TNS-01101 error message on Technet, I found the following information:
Cause: The service name could not be resolved by name-lookup.
Action: Verify that the listener name or service name specified to LSNRCTL has the correct name and address defined in LISTENER.ORA or in TNSNAMES.ORA.
I know where to find these two files, but I'm honestly not certain of what I should enter in them to fix this problem.
Please can anybody spare some time to help me out here? Is my installation totally whacked out, or am I just been a little stupid/clueless?