Home > Ask the Oracle Experts > (Archive) Database Installation/Upgrade/Patches Questions & Answers > Could not resolve service name
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Could not resolve service name

Maria Anderson EXPERT RESPONSE FROM: Maria Anderson

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 09 October 2006
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?

>
EXPERT RESPONSE
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


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
(Archive) Database Installation/Upgrade/Patches
Error in invoking target install of makefile
Using /var/opt/oracle/oratab
Errors installing Database Configuration Assistant
Impact on apps of migration from Oracle 8 to 10g
Tools to manage multiple Oracle 10g databases
ORA-01103 error during Oracle 10g startup
Migrate Oracle 9i data on Sun to 10g on Windows
Information on OUI (Oracle Universal Installer)
Performance issues with upgrade to Oracle 10g database
Impact of Oracle 9i upgrade on Java front end

Oracle database installation, upgrades and patches
Oracle extends Real Application Testing to 10g, 9i
Third-party Oracle database tools remain an attractive option
Enterprise search a key component of Oracle portal project
Oracle Enterprise Manager leverages multiple environments for pharmaceutical giant
Oracle 11g upgrade veteran offers step-by-step advice
Oracle Database 11g gets early use at Burlington Coat Factory
Oracle database upgrades require soul searching
With software upgrades, pain leads to gain
How do I do that in Oracle?
The Oracle Database user's guide to Oracle OpenWorld 2007

Oracle error messages
ORA-12560 error with Oracle 10g Instant Client
Unable to view Oracle tables in NetBeans
IMP-00017 error message with Oracle import
Can't open database after failed backup export
Query on dblink returning ORA-12545 error
RMAN not working at command prompt
Unique constraint violations, "parent key not found" errors
Insufficient privileges error when creating stored procedure
IMP-00010 error with import from 10g to 9i
ORA-12801 error while loading seed data

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
10g  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts