- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Interesting Problem with Oracle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 07:45 AM
05-03-2002 07:45 AM
I am working D class HP9000 machine.
I am able to mount the database,able to start listener.
But when i try to connect with Database user with the tnsnames. It says "tns could not resolve service name"
I checked tnsnames.ora file ...the entries are there for same tnsname.
can somebody guide me ? how should i proceed?
Thanks
Ganesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 07:50 AM
05-03-2002 07:50 AM
Re: Interesting Problem with Oracle
I think you are working on the new OS , how is the system able to resolve its name . Do a nslookup
Manoj Srivstava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 07:58 AM
05-03-2002 07:58 AM
Re: Interesting Problem with Oracle
I checked nslookup for host and ip ..its working fine.
I am able to connect for database user without tnsname , but not with tnsname.
how should i do this?
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:04 AM
05-03-2002 08:04 AM
Re: Interesting Problem with Oracle
Some options:
1) Check the permission of tnsnames.ora file
2) Make sure that your SID is in the tnsnames.ora file
3) Make sure that the listener knows that the SID is in the tnsnames.ora file.
4) If you are using NNM, then there can be a problem while resolving the names. Then you need to edit the file -/home/dba/oracle/product/8.0.6/network/admin/sqlnet.ora - and comment out this line:
NAMES.DEFAULT_DOMAIN
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:04 AM
05-03-2002 08:04 AM
Re: Interesting Problem with Oracle
can you tell me how should i check that on which IP,database is running as I have to IPs for one NIC in the same machine.
Is this tns error is related to that?
I checked group and and permissions for the unix user from which i was connecting to db ..all are correct.
please guide me.
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:09 AM
05-03-2002 08:09 AM
Re: Interesting Problem with Oracle
my guess would be just the opposite: you don't have a "sqlnet.ora" file and hence all your TNSnames are too complicated (having some kind of ".something" appended).
So check, wether you have a "sqlnet.ora" in "$ORACLE_HOME/network/admin" or "/etc" ("/etc" wins if both exist!).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:16 AM
05-03-2002 08:16 AM
Re: Interesting Problem with Oracle
I check sqlnet.ora file
It is in $ORACLE_HOME\network\admin
but not in \etc
so what next?
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:41 AM
05-03-2002 08:41 AM
Re: Interesting Problem with Oracle
I ensured that in ENV variables
1.TNS_ADMIN is set to
$ORACLE_HOME/network/admin
2.what about etc? what shall i check for etc?
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 08:45 AM
05-03-2002 08:45 AM
Re: Interesting Problem with Oracle
I checked for tnsnames.ora file it is only in
$ORACLE_HOME/network/admin directory.
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:02 AM
05-03-2002 09:02 AM
Re: Interesting Problem with Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 09:09 AM
05-03-2002 09:09 AM
Re: Interesting Problem with Oracle
It might help if you post your tns entry. Also, what version of oracle are you using????
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 10:11 AM
05-03-2002 10:11 AM
Re: Interesting Problem with Oracle
here is tnsnames.ora
======================================
#
# Installation Generated Net8 Configuration
# Version Date: Oct-27-97
# Filename: Tnsnames.ora
#
extproc_connection_data =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = TGM1))
(CONNECT_DATA = (SID = extproc))
)
TGM1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host = hux9)(Port= 1521))
(CONNECT_DATA = (SID = TGM1))
)
TGM1_BEQ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = BEQ)(PROGRAM = /oracle/app/oracle/product/8.0.6)
(argv0 = oracleTGM1)
(args = '(DESCRIPTION = (LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')
(envs = 'ORACLE_HOME=/oracle/app/oracle/product/8.0.6,ORACLE_SID=TGM1')
)
)
=======================
Oracle i am using is 8.0.6
ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2002 01:37 PM
05-05-2002 01:37 PM
Re: Interesting Problem with Oracle
Say, there is domain name called my_domain in SQLNET.ora. When Oracle client do the resolution, it automatically attaches a domain to the name you enter. As when you try "tnsping80 TGM1", actually Oracle will look for TGM1.my_domain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2002 08:20 PM
05-05-2002 08:20 PM
Re: Interesting Problem with Oracle
Try
tnsping TPM1.world
does it work ?
if yes check sqlnet.ora
(if you not found it in /etc it could OK)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2002 08:52 PM
05-05-2002 08:52 PM
Re: Interesting Problem with Oracle
remove the below entry from your file
This is optional (not required)
TGM1_BEQ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = BEQ)(PROGRAM = /oracle/app/oracle/product/8.0.6)
(argv0 = oracleTGM1)
(args = '(DESCRIPTION = (LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')
(envs = 'ORACLE_HOME=/oracle/app/oracle/product/8.0.6,ORACLE_SID=TGM1')
)
and try starting your listener.
lsnrctl stop
lsnrctl start
or
lsnrctl reload
If this is not working
use
$ORACLE_HOME/bin/netasst to configure your service names again.
Remove everything and configure your
extproc_connection_data
and TGP1 afresh.
Thanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 09:35 AM
05-06-2002 09:35 AM
Re: Interesting Problem with Oracle
when I tried
tnsping TGM1
Its showing that :" Failed to resolve name"
Now how should i proceed?
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 02:16 PM
05-06-2002 02:16 PM
Re: Interesting Problem with Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:51 AM
05-07-2002 03:51 AM
Re: Interesting Problem with Oracle
Regards
SMF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 06:11 AM
05-07-2002 06:11 AM
Re: Interesting Problem with Oracle
lsnrctl stat
This will tell you what are the instances that your listener is working with, and you'll know if your listener is running.
what happens if you issue this:
echo $ORACLE_SID
if ORACLE_SID is different from TGM1
you should try
. oraenv
and whrite TGM1 when asked then press enter an try again with echo $ORACLE_SID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 06:14 AM
05-07-2002 06:14 AM
Re: Interesting Problem with Oracle
It must be in $ORACLE_HOME/network/admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:40 AM
05-07-2002 11:40 AM
Re: Interesting Problem with Oracle
I checked following :
1.Tnslistner : Its running properly
2.echo $ORACLE_HOME its showing : TGM1
3.oraenv:$ORACLE_SID is set to TGM1
4.env :$TNS_ADMIN=$ORACLE_HOME/network/admin
I checked with Listener stop and start its working fine.
One more thing I checked following files:
1.resolve.conf
2.initTGM1.ora
3.sqlnet.ora - this file is not there.
4.netconf - etc/rc.config.d/netconf
5.hosts - etc/hosts
I am still not able to get in to oracle with tnsname.e.g user@TGM1
Here is listener.ora file:
----------------------------------------------
#
# Installation Generated Net8 Configuration
# Version Date: Jun-17-97
# Filename: Listener.ora
#
LISTENER =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= TGM1))
(ADDRESS= (PROTOCOL= IPC)(KEY= PNPKEY))
(ADDRESS= (PROTOCOL= TCP)(Host= hux9)(Port= 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = hux9)
(ORACLE_HOME/oracle/app/oracle/product/8.0.6)
(SID_NAME = TGM1)
)
(SID_DESC =
(SID_NAME = extproc)
(ORACLE_HOME = /oracle/app/oracle/product/8.0.6)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = TGM1)
(ORACLE_HOME = /oracle/app/oracle/product/8.0.6)
(PROGRAM = extproc)
)
)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
listener.ora: END
----------------------------------------------
Now what to do?
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 01:05 PM
05-07-2002 01:05 PM
Re: Interesting Problem with Oracle
Thanks all
I apriciate for the Help from all.
My problem is solved.
Ganesh