Database Connection [message #465676] |
Thu, 15 July 2010 03:55 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
Hi,
I have one query related to database connection from server to client.
I have one database in the server and I want to connect from client.
I set the tnsnames in client system as follows.
BAM240T_EARTH =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = 10.154.119.103)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = BAM_240T.ipdc.com)
)
)
The database name is : BAM_240T.ipdc.com
Sqlnet.ora entry is
NAMES.DIRECTORY_PATH= (TNSNAMES)
NAMES.DEFAULT_DOMAIN= ipdc.com
When I connect to server I m getting the following error.
$ tnsping BA240T_EARTH
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 15-JUL-2010 15:45:35
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
Please advise.
|
|
|
|
Re: Database Connection [message #465680 is a reply to message #465679] |
Thu, 15 July 2010 04:06 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
I have given the same but result is same.
$ tnsping BAM240T_EARTH
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 15-JUL-2010 16:08:49
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
|
|
|
Re: Database Connection [message #465681 is a reply to message #465680] |
Thu, 15 July 2010 04:10 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
The effect of including the line
NAMES.DEFAULT_DOMAIN= ipdc.com
in your sqlnet.ora file is that this
is re-written to this
tnsping BA240T_EARTH.ipdc.com
which does not resolve. I have never seen any purpose to DEFAULT_DOMAIN, I believe it causes nothing but confusion. I would be interested if anyone can see much point to it.
|
|
|
|
Re: Database Connection [message #465721 is a reply to message #465676] |
Thu, 15 July 2010 07:11 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
I have same suffix in tnsnames.ora which has in NAMES.DEFAULT_DOMAIN. I tried for the below solutions but I am getting same error.
$ tnsping BAM240T_EARTH.ipdc.com
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 15-JUL-2010 18:54:36
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
|
|
|
|
|
|
Re: Database Connection [message #465893 is a reply to message #465884] |
Thu, 15 July 2010 22:32 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
I have same entry in my windows environment and I am able to connect thru PL/SQL developer.
Why is the problem in linux environment with the same entry?
|
|
|
|
Re: Database Connection [message #465896 is a reply to message #465676] |
Thu, 15 July 2010 22:42 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
Swan,
Sorry for the inconvenience.
I explain clearly with the situation.
I have two linux systems and installed oracle server in both the systems and in the same network. I have one more machine which is installed oracle client in windows environment. We are able to access those linux machines through putty (is the tool which we can connect to linux system).
I have database in first server and I want to connect from second server. I have kept the tns entry which I am using in windows system. I have used tnsping in second server and it is giving the error.
$ tnsping BAM240T_EARTH.ipdc.com
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 15-JUL-2010 18:54:36
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
This is the exact problem.
|
|
|
|
Re: Database Connection [message #465950 is a reply to message #465676] |
Fri, 16 July 2010 01:58 |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
Thnq very much Swan.
I have changed the tnsnames.ora file and I am able to rectify the problem which I got earlier but I am getting another error saying that 'TNS-12535: TNS:operation timed out'.
[oracle@captest1 admin]$ tnsping BAM_240T.ipdc.com
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 16-JUL-2010 12:52:38
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = earth)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = BAM_240T.ipdc.com)))
TNS-12535: TNS:operation timed out
How to solve this error.
|
|
|
|
|
Re: Database Connection [message #466215 is a reply to message #466039] |
Sun, 18 July 2010 01:13 |
|
rahulvb
Messages: 924 Registered: October 2009 Location: Somewhere Near Equator.
|
Senior Member |
|
|
BlackSwan wrote on Fri, 16 July 2010 09:56>How to solve this error.
You choose to not answer my questions, then I choose to not answer yours
@grpatwari
As BlackSwan Says Please follow the steps he has given you so that we can HELP you.
|
|
|