Ask the Expert

ORA-12535: Operation times out when trying to connect to database

We have a PC sitting outside of our firewall hosting a Web application. The PC was communicating with a database that resides inside the firewall. Last weekend, we had to move the server into a new rack so we shut it down, unplugged it, moved it, plugged it back in and powered up. Since that move, the outside PC cannot connect to the database. I can perform a successful ping to the server but my operation times out (ORA-12535) when I try to TNSPing. The server is running Windows 2003 Server and the PC is running XP.

    Requires Free Membership to View

Check the tnsnames.ora file (usually located in $ORACLE_HOME\network\admin) on the workstation residing outside the firewall to see whether the service definition for the database it is attempting to connect to is using an IP address rather than hostname. A physical move (which involved a stop and start) of the server may have caused it to obtain a different IP address than it had previously. If the IP address is used in the tnsnames.ora file, be sure that it is the correct one for the database server or change it to use hostname instead.

Finally, check to see that the port the listener is listening on is accessible through the firewall so that the workstation residing outside the firewall can connect. If you are unsure which port the listener is using, check the listener.ora file on the database server usually located in $ORACLE_HOME/network/admin.

This was first published in April 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: