Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 7th, 2006, 03:48 AM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Unable to connect remotely - Oracle 10g Express

Hello all,

I have recently installed Oracle 10g Express edition on my home network. While I am able to access it locally, using Oracle SQL Developer, I am unable to access the database from another machine on the network. I get the following error in SQL Developer:

Status:Failure -lo exception: the Network Adapter could not establish the connection

I "think" I have installed the required software on the remote machine but no luck. I have installed instantclient, Oracle SQL Developer and the .net developer tools. I am a complete rookie in database setup and administration...especially with Oracle so any help would be appreciated.

Thanks in advance

Reply With Quote
  #2  
Old May 7th, 2006, 10:20 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,067 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 2 h 10 sec
Reputation Power: 281
Check if you can ping and tnsping the target machine (the one which hosts the database server).

Reply With Quote
  #3  
Old May 7th, 2006, 11:04 AM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Thanks for replying pabloj.

When I ping the machine by name it does see it. It has been suggested to me for another issue I was having that my network may need to be set up with a domain...which it is not at this time. I have it set up as a basic home network with the router acting as the controler...could this be an issue?

Reply With Quote
  #4  
Old May 7th, 2006, 11:08 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,067 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 2 h 10 sec
Reputation Power: 281
Ok, check ping by name and ip, then do the same with tnsping

Reply With Quote
  #5  
Old May 7th, 2006, 11:21 AM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
The tnsping timeout.

It said that it used the sqlnet.ora file.

Also it said it used the HOSTNAME adapter to resolve the alias.

thanks for the quick reply

Reply With Quote
  #6  
Old May 7th, 2006, 11:29 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,067 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 2 h 10 sec
Reputation Power: 281
Do you have a tnsnames.ora with the correct entries?
Also post the full tnsping output.

Reply With Quote
  #7  
Old May 7th, 2006, 11:40 AM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Hmmm...I do not have a tnsnames.ora file. I will have to figure out how to set that up.

Here is the ping and tnsping output:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Sabre>ping vaio

Pinging vaio [192.168.0.2] with 32 bytes of data:

Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Sabre>tnsping vaio

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-MAY-2
006 11:11:39

Copyright (c) 1997, 2005, Oracle. All rights reserved.

Used parameter files:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=vaio))(ADDRESS=(P
ROTOCOL=TCP)(HOST=192.168.0.2)(PORT=1521)))
TNS-12535: TNSperation timed out


[

C:\Documents and Settings\Sabre>tnsping 192.168.0.2

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-MAY-2
006 11:15:38

Copyright (c) 1997, 2005, Oracle. All rights reserved.

Used parameter files:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=192.168.0.2))(ADD
RESS=(PROTOCOL=TCP)(HOST=192.168.0.2)(PORT=1521)))
TNS-12535: TNSperation timed out

Reply With Quote
  #8  
Old May 7th, 2006, 12:42 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,067 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 2 h 10 sec
Reputation Power: 281
Are you shure that the remote database is up, running and configured to accept connections at 192.168.0.2 port 1521 (no firewall ...)?
Under which name did you place the database?
Quote:
SERVICE_NAME=vaio

More on Oracle listener.ora and tnsnames.ora configuration here
More on ping and tnsping here

Reply With Quote
  #9  
Old May 7th, 2006, 01:46 PM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Sucess...sort of..

By disabling the firewall on the DB machine I was able to connect to oracle over my network using Oracle SQL Developer but I am still having problems with connecting in VS and cant see oracle in the server explorer. I will research more of the documentation to be sure I am even going about setting up the connection correctly. One thing of note...I dont see the Oracle privder in the list when I am trying to setup a connection...just the MS OLE DB provider.

The machine name is vaio and the Oracle service is XE I believe.

I really appreciate the help you are giving me.

Reply With Quote
  #10  
Old May 7th, 2006, 02:39 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,067 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 2 h 10 sec
Reputation Power: 281
Quote:
Originally Posted by danadams
... I dont see the Oracle privder in the list when I am trying to setup a connection...just the MS OLE DB provider ...
Download and install Oracle OLEDB provider.
Read through the links I provided, you'll find what the service name is.

Also, after the tnsping thing, next step is to connect with sqlplus, then any graphical tool will do.

Last edited by pabloj : May 7th, 2006 at 02:42 PM.

Reply With Quote
  #11  
Old May 7th, 2006, 03:45 PM
danadams danadams is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 6 danadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Thanks pabloj...I will let you know how it goes.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Unable to connect remotely - Oracle 10g Express


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |