When I tried to log in to a database on Oracle 9i I received an error message, "ORA-12545." I checked for faults in the dns setup by pinging databasename on the cmd prompt but it was running OK. Can you suggest a solution to this?

    Requires Free Membership to View

This error usually indicates that the TCP/IP protocol cannot resolve a host name. You may have a syntax error in your tnsnames.ora file, specifically in the ADDRESS parameters. Your tnsnames.ora file on the client you are attempting to connect from should look similar to this …
ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server_a)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = orcl)
    )
  )
The most likely cause of this error is that the HOST name is incorrect or misspelled. If the HOST name is correct, confirm that this host exists by typing 'nslookup hostname' at the operating system command prompt. If the host does exist and your attempt to connect still fails, add the HOST name and IP address into your local hosts file and attempt to connect again. If this still fails, try replacing the HOST name in your tnsnames.ora file with the server's IP address and attempt to connect again.

If these suggestions do not resolve your problem, you should turn on Oracle Net tracing to gather further information that may assist in troubleshooting. The Oracle9i Release 2 (9.2) Net Services Administrator's Guide includes a section on troubleshooting Oracle net services.

This was first published in February 2007

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: