Andrew Carter's Weblog

Inside SQL Server Replication

Oracle and Windows XP SP2 Firewall

Windows XP SP2's new firewall features really improve the built-in firewall for Windows.  However, I was caught off guard when dealing with my remote Oracle installs.  The XP SP2 firewall agressively has blocked nearly all the ports.  This is generally a good thing.  So I opened up 1521 for Oracle expecting this to open up access to Oracle.

Instead, I kept getting timeout errors.  After some trial and error (and using the logging built into the firewall), I determined that Oracle uses many ports that seem to be changing.  I was unaware of this.  That makes it really hard to figure out which port to open up.

I found a solution though that seems to work very well.  You can not only add ports to the firewall exception list, you can add applications.  I added both Oracle.exe and Tnslsnr.exe to the exception list.  This got connectivity back up and running again.

Opening access directly to applications should also help when you don't know the port that your server is using or you want to be able to change it and have the firewall dynamically handle it.

Published Thursday, September 16, 2004 12:50 PM by ascarter
Filed under:

Comments

 

Robert Hurlbut said:

You should also be able to set up your TNS listener to work on a specific port for all incoming and out outgoing traffic. It does effect scalability a bit, but it has always been a problem solver when dealing with restrictive firewalls (Win XP SP2 firewall is not the first time this has been encountered).
September 16, 2004 1:38 PM
 

Jason Du said:

There are also a couple ways to configure Oracle on the server side to restrict it to use only one port. One is a registry setting and another is to use Oracle Connection Manager.
September 16, 2004 2:45 PM
 

Andrew Carter s Weblog Oracle and Windows XP SP2 Firewall | debt consolidator said:

June 19, 2009 10:23 AM
Anonymous comments are disabled

This Blog

Syndication

News

SQL Server 2005 Beta 2 was released on July 26, 2004. Beta 3 will be Q1 of 2005.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker