Solved

Moved Office now can not connect to XE

Posted on 2008-06-19
8
826 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
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!

 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

726 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