Skip navigation

Troubleshooting Oracle Client Connections

A couple of the most common problems you might encounter when configuring the Oracle client include opening the default port in the Windows Firewall and using the correct Oracle login information. Here’s how you can work around each of these issues.

Open Port 1521 on the Windows Firewall. The Oracle client can’t connect when the Oracle listen port isn’t available—particularly on new Oracle server installations. To create an exception in the Windows Firewall, go to the Oracle server and open up the Control Panel, select Windows Firewall, and select the Allow a program through the Windows Firewall link. Doing so will display the Windows Firewall Settings dialog box. Next click Add Port to open the Add Port dialog box that you can see in Figure A.

Now, enter a descriptive name for the port. In Figure A you can see that I’ve used the name Oracle. Enter 1521 for the port number, make sure TCP/IP is the protocol that’s selected, and then click OK. You should need to do this only on the Windows server that’s running Oracle. On the client, the Windows Firewall is dynamically opened by outgoing requests.

Verify your login information. To connect to the Oracle server you need to provide a valid login to the Oracle system. For testing you might try to connect using the Oracle sample Scott/tiger user ID and password. Note that recent Oracle releases are shipped with this login locked. To unlock it, open a SQLPlus connection to the Oracle server and enter the following PL/SQL command

SQL>ALTER USER SCOTT ACCOUNT UNLOCK
TAGS: SQL
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish