Q

Why won't this setting open the database?

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:

sqlplus userid/password@dbase.bb.com

This was first published in December 2003

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close