Ask the Expert

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.

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: