Q
Problem solve Get help with specific problems with your technologies, process and projects.

Could not resolve service name

I've installed Oracle9i in Windows XP, and when I try to connect through SQL*Plus it gives me an error: "TNS:Could not resolve Service name." I connected using scott and tiger. I even tried through svrmgrl in the command prompt. There it gives me the error as "Message 4505 not found; No message file for product=RDBMS, Facility=MGR. ORA-12560:TNS:Protocol Adapter Error."

I've installed Oracle9i in Windows XP, and when I try to connect through SQL*Plus it gives me an error: "TNS:Could not resolve Service name." I connected using scott and tiger. I even tried through svrmgrl in the command prompt. There it gives me the error as "Message 4505 not found; No message file for product=RDBMS, Facility=MGR. ORA-12560:TNS:Protocol Adapter Error." Please help. I checked in the environment variables. There is no ORACLE HOME variable. And in the registry, the paths are fine. Basically there are two ORACLE_HOME directories in the registry. Is the one setting overriding the other?
After installing the Oracle software, did you create a database? If so, this indicates to me that the service is not running and/or your database is not available. Open the Services panel from Control Panel and verify that the database service is running. If it is running, then check the database alert log (located in the background_dump_dest location) to see whether the database opened successfully. If the service is running and the database mounted but did not open, you open the database manually from the command prompt as follows (replace ORCL with your SID):
set ORACLE_SID=ORCL
sqlplus /nolog
connect / as sysdba
alter database open;
If the database did not mount, you could change the alter command above to 'startup;' instead. Finally, you will need to configure a listener to allow connectivity via SQL*Plus on your desktop. This can easily be accomplished by invoking the Net Configuration Assistant from the Start menu on your Windows XP machine.

You can modify the service to start both the instance and the database with the oradim command. To see a list of options that can be used with oradim, use the command:

oradim –help

Dig Deeper on Oracle database installation, upgrades and patches

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close