I have changed my ip-address of my server. my os is hpux 11.0, oracle 8.1.7 . I can telnet to the server. The below shows that i am using /etc/hosts
nslookup myhost
using /etc/hosts on : myhost
looking up FILES
Name : myhost
Address : 11.22.33.1
However, i have problems connecting to oracle with the message
TNS-12545: Connect failed because target host or object does not exist
ns secondary err code: 12560
nt main err code: 515
TNS-00515: Connect failed because target host or object does not exist
nt secondary err code: 2
nt OS err code: 0
This is resolved by changing the hostname to ip address and both my oracle and listener is up.
Any advise to what must be done so that i can use the hostname instead of the ip address?
yes, i can ping my server by my hostname and ip address. In my first thread, i specify that i am using /etc/hosts as evidenced by the result of nslookup.
in hpux 11.0, /etc/nsswitch.conf and /etc/resolv.conf determines how the name is being resolved. and my output of nslookup did specify that i am using /etc/hosts.
Originally posted by yls177 yes, i can ping my server by my hostname and ip address. In my first thread, i specify that i am using /etc/hosts as evidenced by the result of nslookup.
in hpux 11.0, /etc/nsswitch.conf and /etc/resolv.conf determines how the name is being resolved. and my output of nslookup did specify that i am using /etc/hosts.
Originally posted by marist89 sounds like a naming issue. Substitute your ip number for the hostname in the tnsnames.ora.
right. that is going to work for the oracle side. but i have problems with my SAP since it uses the hostname as well. And i cant change this to ip address.
Bookmarks