Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Moved Office now can not connect to XE

Posted on 2008-06-19
8
Medium Priority
?
846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 2000 total points
ID: 21830787
And...what about the firewall?
0
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

604 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