Home » RDBMS Server » Networking and Gateways » inconsistent ORA-12154 errors
inconsistent ORA-12154 errors [message #66984] Wed, 14 May 2003 05:00 Go to next message
Christian Paterson
Messages: 3
Registered: May 2003
Junior Member
Hi,

I have written a server side java application (on a Unix box) which processes a text file and adds entries into an oracle database table. After a number of entries, the application starts reporting "ORA-12154: TNS:could not resolve service name", and continues to do so until the text file has been processed. If the application is re-run on the same text file, it starts processing ok, manages to advance further than the previous run (entries already within the DB are not re-inserted) and then starts reporting the error again. Eventually all the entries get inserted, but it might take 6 or more runs. The same application on a different machine does not have this problem, so I am guessing this is not an issue with the application itself. Does anyone have any ideas on this ?

All help much appreciated.
Re: inconsistent ORA-12154 errors [message #66985 is a reply to message #66984] Wed, 14 May 2003 06:01 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
please post your sqlnet.ora and listener.ora
Re: inconsistent ORA-12154 errors [message #66987 is a reply to message #66985] Wed, 14 May 2003 06:52 Go to previous messageGo to next message
Christian Paterson
Messages: 3
Registered: May 2003
Junior Member
sqlnet.ora :

# SQLNET.ORA Network Configuration File: /soft/oracle/product/8.1.7/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

-----------
listener.ora :

# LISTENER.ORA Network Configuration File: /soft/oracle/product/8.1.7/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx-yyy)(PORT = 1521))
)
)
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
)
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx-yyy)(PORT = 2481))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /soft/oracle/product/8.1.7)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = yyy)
(ORACLE_HOME = /soft/oracle/product/8.1.7)
(SID_NAME = yyy)
)
)

--------------------
(xxx and yyy have been changed from the original)
Re: inconsistent ORA-12154 errors [message #66991 is a reply to message #66987] Wed, 14 May 2003 08:11 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
intermittent ora-12154 are a real  pain.
  i would suggest the following to start with.
1. set up ur TNS_ADMIN
2. comment out the entries in sqlnet.ora ( unless u use them)
# SQLNET.ORA Network Configuration File: /soft/oracle/product/8.1.7/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
# commented  NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
#NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

3. enable tracing with level 16

Re: inconsistent ORA-12154 errors [message #66996 is a reply to message #66991] Thu, 15 May 2003 05:08 Go to previous message
Christian Paterson
Messages: 3
Registered: May 2003
Junior Member
thanks for your pointers, but in fact the errors seem to have come from java not closing DB connections correctly - this was seen on another machine with the same app treating a file containing many entries (although strangely the reported error message was different - ora00020).
Previous Topic: sql*net version
Next Topic: ORA-28576: lost RPC connection to external procedure agent error
Goto Forum:
  


Current Time: Mon May 06 12:05:36 CDT 2024