Solved

Moved Office now can not connect to XE

Posted on 2008-06-19
8
821 Views
Last Modified: 2013-12-18
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
Comment
Question by:mattb123
  • 4
  • 4
8 Comments
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21825671

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
 

Author Comment

by:mattb123
ID: 21826598
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
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21830561
[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
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 500 total points
ID: 21830787
And...what about the firewall?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:mattb123
ID: 21831298
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
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21831629
Yes, one way is to create a low point question in that area with a link to this one.

0
 

Author Comment

by:mattb123
ID: 21841571
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
 

Author Closing Comment

by:mattb123
ID: 31468935
It was the firewall, despite being disabled!!
I had to uninstall McAfee and then all was working again....
Thanks for your assistance.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now