I have been fighting with this one with no success. I'm having trouble hooking into our database. Below is an example of what I have in my TNSNAMES.ORA file.
DBASE.bb.com = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = aa.bb.com)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DBASE) ) )
When running SQL*Plus I am able to open the database no problem. However, my colleagues have the following.
DBASE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = aa.bb.com)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DBASE) ) )
With this setting, I can't open the database. I get the 'Cannot Resolve Database' error. Why would this be happening? Is there something else I need to do?
Also my colleagues are able to open database remotely over dial-up connection with this setting. I cannot connect at all. I keep getting the 'Can't resolve service name' error.
The only difference between the two definitions is that one explicitly states the domain, "bb.com" and the other one doesn't. If you are having problems, check your NAMES.DEFAULT_DOMAIN or NAME.DEFAULT_ZONE parameters in your SQLNET.ORA file. You can also try to explicitly state the domain when connecting to the database like:
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.