I have a small test database on my laptop, which I connect to through a local TNSNAMES.ORA file and LISTENER.ORA file.
When I am connected to the network I can access this (and all the other) database fine, however when I disconnect from the network and try to connect to the local test database I get the following error.
"ORA-12230:Unable to connect to destination"
I suspect it's something to do with my settings in the TNSNAMES file but I can't see what.
It's an Oracle7.3.3 database on NT4 laptop.
This is the part of my TNSNAMES which referenced this particular database....
I would bet it has something to do with host naming. Try your IP address instead of the hostname in your tnsnames.ora. For example:
ateolq.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 127.1.1.101)
(Port = 1521)
)
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 127.1.1.101)
(Port = 1526)
)
)
(CONNECT_DATA = (SID = eolq)
)
)
I tried to change the host name from tonnera to my IP address but still come up with the same error (when connected to the network I can access the database with this IP address in my TNSNAMES)
While unconnected I ran a TNSPING and got the following error:
"TNS-12560: Protocol adapter Error"
Could this be because the PROTOCOL in the TNSNAMES file is TCP, if this is the case what should I change it to.
When I am connected to the network everything is fine, it's only when I go stand alone that the problem occurs..
All the relevant elements exist on my laptop (database, instance, TNSNAMES, LISTENER) that is why I'm confused about the difference between being connected verses stand alone.
Your IP and hostname get "activated" by a network connection so if your nic is not "activated", ie. connected, then you will not be able to connect to your database because it can't look up your ip address through the network.
I had something similar in my other job. A small database sitting on my laptop. The way around this is to connect to the database as local (bequeath local) which I believe is available with 7.3.3.
I have just been told that to get a connection to my local database while disconnected from the network I should add an IPC entry into my LISTENER file.
Unfortunately this was all I was told and I haven't been able to get it to work, I have added a copy of my LISTENER file.
Bookmarks