• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 868
  • Last Modified:

Moved Office now can not connect to XE

We have recently moved from a managed office to our own premises. We have a bespoke VB database that uses Oracle XE which worked fine in the old office where we were provided with one network connection to which we connected our PCs etc via our own router.
In the new office we have the same set up, with the same PCs (one of which hosts XE), except that instead of a managed network connection we have BT Broadband through a BT Business hub.
I can connect to XE on the server PC (PC we use as a server running XE on XP) using SQLPLUS and the VB.net database.
The client PCs however all TNS time out. Each can ping the server PC by name and IP address so the network is ok.
When I ipconfig on the all the PCs I now get a Connection Specific DNS Suffix of gateway.2wire.net which appears to have been set automatically when we connected the PCs to the BT Business hub.
I have tried using this in the connection string with sqlplus but to no avail.
When I netstat on the server PC there is the listener on port 1521.
There are 4 other port 1521 connections.
I thought this might be a conflict so I have tried to move the oracle listener to port 1522, but have still had no luck connecting from the client PCs.
I have tried to connect the PCs via the original router we used to use, without the BT Business hub at all, but even after rebooting the PCs the is still this Connection Specific DNS suffix of gateway.2wire.net
I am not sure what if this has anything to do with the issue or not, but our broadband connection is the only thing to have changed since our office move. All the tnsname entries still point the the server PC which I can ping. The database is exactly the same on the same PC that it always was.
I have run out of ideas?
Any help would much appreciated.
Many thanks
Matt
0
mattb123
Asked:
mattb123
  • 4
  • 4
1 Solution
 
MikeOM_DBACommented:

Can you tnsping the database from the clients? What is the error?
Does the listener.ora and tnsnames.ora have correct hostnames?
Did you modify the listener.ora and tnsnames.ora file to reflect new network?
Are the hostnames set correctly in the new network?
How about the DNS?

0
 
mattb123Author Commented:
Hi Mike,

Many thanks for the response.
TNSNANES.ora from the client:

# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

ORADB1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.150)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.150)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

and listener.ora from the server PC:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = oradb1)
      (SID_NAME = ORCL)
    )
  )

LISTENER =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = z4main32)(PORT = 1521))
  )

TRACE_LEVEL_LISTENER = USER
DEFAULT_SERVICE_LISTENER = (XE)

The tnsnames.ora used to have the same host as the listener - z4main32, but I changed it to the IP address to make sure there was not a problem in that regard.

I get the ORA-12170: TNS Connect timeout occured when I try to tnsping either XE or ORADB1 from the client.

When you say did I modify the files to reflect the new network, the only think I can see that I would need to modify is the HOST. I can ping z4main32 and 192.168.1.150 from the clients. Is there something else I need to change?

I have amended the hostnames to the IP address, but that has not helped.
Do I need to include the DNS suffix that the BT Broadband has introduced into the host name?
If so, how shoud I do that?
When I ping z4main32 I get a response:
pinging z4main32.gateway.2wire.net
Then TNS timeout
I tried amending the hostname to z4main32.gateway.2wire.net but that gave the same TNS timeout.

The DNS are picked up by the BT Business Hub, presumably obtained automatically from the ISP?

Thanks again - your assistance is much appreciated!!
0
 
MikeOM_DBACommented:
[quote]
When I ping z4main32 I get a response:
pinging z4main32.gateway.2wire.net
Then TNS timeout
[/quote]
This seems to be a network configuration issue.
I don't do WinDoze, so I would not know where or what to look for. As a novice I would check my network connections.
Also I would check the C:\Windoze\system32\drivers\hosts
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
MikeOM_DBACommented:
And...what about the firewall?
0
 
mattb123Author Commented:
I can access shared folders across the network and all clients can ping the XP PC which hosts the XE database.
I have also tried with the firewall down on both clients and Database PC to no avail.
I just keep getting aTNS timeout.
I have also tried to add an entry to my host file on a client PC to point to z4main32 with the associated IP address but this did not seem to make any difference.
Is it possible for me to add this thread to the Windows Configuration area?
0
 
MikeOM_DBACommented:
Yes, one way is to create a low point question in that area with a link to this one.

0
 
mattb123Author Commented:
In case anyone has the same problem.
This was a McAfee issue. Despite disabling it it was still preventing access. I was only when I completely uninstalled it that the issue was resolved.
0
 
mattb123Author Commented:
It was the firewall, despite being disabled!!
I had to uninstall McAfee and then all was working again....
Thanks for your assistance.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now