Users timing out in Oracle AS 10.1.3
I am trying to figure out why the load tests running in the target environment (large and very secure corporate network) against a Spring MVC/EJB3 application running in Orcale AS 10.1.3 fail. The application is deployed on a server running on a Solaris Sparc 440 machine.
The tests are run from LoadRunner application, which simulates multiple users sending HTTP requests to perform a use case in the system under test. The use case involves transitioning between 4 different pages with the application sending a number (relatively small, 5-6 pr use case) of queries to the Oracle database running on a different machine (using JPA/TopLink) and doing a single insert.
The LoadRunner shows that after a few minutes after the test starts the users start timing out. The HTTP request sent to the application server (with timeout value of two minutes) do not get fulfilled.
I have looked at various performance metrics: CPU and memory utilization on the Solaris machine, metrics provided by the Oracle AS admin console (JVM Heap memory usage, number of EJB methods per second, number of servlet requests per second and request processing time. Nothing indicates a bottleneck. The application uses much less memory than is allocated (100MB out of 2GB allowed), the CPU and memory utilization on the machine are within norm. The EJB methods execute in a fraction of a second (nothing to justify a two-minute delay).
An interesting aspect of the test is the effect of the static resources on the performance. About two thirds of HTTP request in the test are for static resources (GIFs and CSS). They are not being cached by the HTTP server. Two similar LoadRunner tests were performed. In one, all HTTP requests were submitted (20 users running 10 iterations each). In the second, LoadRunner itself cached the static resources, thus submitting only the requests processed by Spring MVC portion of the Java application (the same number of users and iterations). The second tests produced a much lower timeout rate. (Out of 218 transactions, 34 timed out in the first test and 2 in the second).
I am trying to understand what may cause the timeouts in these tests. The most obvious culprit is the Java application being tested, but if the bottleneck was in Java, then caching static resources would have almost no effect on the performance results (since static resources do not go to the Java application).
I tested the same application using Apache JMeter in the development environment (a small company network) with Oracle AS running on Solaris VM (itself running on a Windows machine, which is less powerful than the Sparc 440 machine). The test running exactly the same use case with 20 users running 200 iterations each went without a single hiccup. Not a single HTTP request timed out and the mean request time was 69 ms.
I am looking for help in finding the causes for the performance issues in the target environment and why they cannot be replicated in the development environment. What may be causing the simulated users to time out?
Thank you,
Michael
Yes OHS (Oracle HTTP Server) comes with PHP pre-installed and ready to use. Refer following for details:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28948/php.htm#BABIGCFB
Thanks
Shail
Similar Messages
-
Inbound connection timed out and TNS:operation timed out in Oracle 11g
Hello All,
We are getting the below messages in alert log since yesterday... And we could not see any other messages other than this...Users also complaining slow response from DB,
Could any one please help me to resolve this ...? I believe in 11g inbound connection time out is deprecated ..isn't it ...?
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.2.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
Time: 18-NOV-2011 01:54:50
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.21.0.159)(PORT=4789))
Fri Nov 18 09:43:04 2011
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.2.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
Time: 18-NOV-2011 09:43:04
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.25.1.65)(PORT=50839))
WARNING: inbound connection timed out (ORA-3136)889828 wrote:
Hello All,
We are getting the below messages in alert log since yesterday... And we could not see any other messages other than this...Users also complaining slow response from DB,
Could any one please help me to resolve this ...? I believe in 11g inbound connection time out is deprecated ..isn't it ...?
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.2.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
Time: 18-NOV-2011 01:54:50
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.21.0.159)(PORT=4789))
Fri Nov 18 09:43:04 2011
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.2.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
Time: 18-NOV-2011 09:43:04
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.25.1.65)(PORT=50839))
WARNING: inbound connection timed out (ORA-3136)The most common cause for this error is a firewall between clint & DB Server;
which allows packets on port #1521, but does not allow DB Server to use new high random port. -
Transaction timed out with oracle 9i
Hi,
I am working with weblogic6.1.
Sometimes (very seldom) I have a problem which I don't undserstand.
The transaction stops and and after some time I get TimedOutException.
This time it happend in the findByPrimaryKey of a CMP Entity bean.
I have this problem only with Oracle 9i. with oracle8i everything works
fine.
I'm using oracle thin driver (I put oracle12.zip at the begin of weblogic
classpath)
Is this problem of oracle?
Does WLS 6.1 support Oracle9i?
Thanks for any hints
Szymon
stack trace:
javax.ejb.FinderException: Problem in findByPrimaryKey while preparing or
execut
ing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@197155':
java.sql.SQLException: The transaction is no longer active (status = Marked
roll
back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction
timed
out after 561 seconds
Xid=21550:aea95ccd7f28edb9(4655671),Status=Active,numRepliesOwedMe=0,numRepl
iesO
wedOthers=0,seconds since begin=561,seconds
left=30,activeThread=Thread[ExecuteT
hread: '14' for queue: 'default',5,Thread Group for Queue:
'default'],ServerReso
urceInfo[weblogic.jdbc.jts.Connection]=(state=started,assigned=none),SCInfo[
mydo
main+myserver]=(state=active),properties=({weblogic.jdbc=t3://172.16.0.28:70
01})
,OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorUR
L=my
server+172.16.0.28:7001+mydomain+,
Resources={})],CoordinatorURL=myserver+172.16
.0.28:7001+mydomain+)]). No further JDBC access is allowed within this
transact
ion.
java.sql.SQLException: The transaction is no longer active (status = Marked
roll
back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction
timed
out after 561 seconds
Xid=21550:aea95ccd7f28edb9(4655671),Status=Active,numRepliesOwedMe=0,numRepl
iesO
wedOthers=0,seconds since begin=561,seconds
left=30,activeThread=Thread[ExecuteT
hread: '14' for queue: 'default',5,Thread Group for Queue:
'default'],ServerReso
urceInfo[weblogic.jdbc.jts.Connection]=(state=started,assigned=none),SCInfo[
mydo
main+myserver]=(state=active),properties=({weblogic.jdbc=t3://172.16.0.28:70
01})
,OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorUR
L=my
server+172.16.0.28:7001+mydomain+,
Resources={})],CoordinatorURL=myserver+172.16
.0.28:7001+mydomain+)]). No further JDBC access is allowed within this
transact
ion.
at
weblogic.jdbc.jts.Connection.checkIfRolledBack(Connection.java:498)
at weblogic.jdbc.jts.Statement.setInt(Statement.java:606)
at
weblogic.jdbc.rmi.internal.PreparedStatementImpl.setInt(PreparedState
mentImpl.java:104)
at
weblogic.jdbc.rmi.SerialPreparedStatement.setInt(SerialPreparedStatem
ent.java:137)
at
com.verdisoft.datasource.ejb.contact.Person_vjvtzf__WebLogic_CMP_RDBM
S.ejbFindByPrimaryKey(Person_vjvtzf__WebLogic_CMP_RDBMS.java:1531)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDB
MSPersistenceManager.java:171)
at
weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityM
anager.java:435)
at
weblogic.ejb20.manager.BaseEntityManager.localFindByPrimaryKey(BaseEn
tityManager.java:389)
at
weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJB
LocalHome.java:266)
at
com.verdisoft.datasource.ejb.contact.PersonBean_vjvtzf_LocalHomeImpl.
findByPrimaryKey(PersonBean_vjvtzf_LocalHomeImpl.java:144)
at
com.verdisoft.datasource.ejb.contact.PersonBean.ejbHomeGetByKey(Perso
nBean.java:504)
at
com.verdisoft.datasource.ejb.contact.PersonBean_vjvtzf_LocalHomeImpl.
getByKey(PersonBean_vjvtzf_LocalHomeImpl.java:297)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.getBeanAdapter(EJBAdapter
Bean.java:872)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItemInternal(EJBAda
pterBean.java:834)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItem(EJBAdapterBean
.java:808)
at
com.verdisoft.datasource.ejb.EJBAdapterBean_s83q9a_EOImpl.updateItem(
EJBAdapterBean_s83q9a_EOImpl.java:146)
at
com.verdisoft.datasource.DataAdapterManagerBean.updateItem(DataAdapte
rManagerBean.java:144)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl.updateI
tem(DataAdapterManagerBean_plajw8_EOImpl.java:614)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl_WLSkel.
invoke(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:282)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:97)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:231)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:144)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
at
com.verdisoft.datasource.ejb.contact.Person_vjvtzf__WebLogic_CMP_RDBM
S.ejbFindByPrimaryKey(Person_vjvtzf__WebLogic_CMP_RDBMS.java:1715)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDB
MSPersistenceManager.java:171)
at
weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityM
anager.java:435)
at
weblogic.ejb20.manager.BaseEntityManager.localFindByPrimaryKey(BaseEn
tityManager.java:389)
at
weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJB
LocalHome.java:266)
at
com.verdisoft.datasource.ejb.contact.PersonBean_vjvtzf_LocalHomeImpl.
findByPrimaryKey(PersonBean_vjvtzf_LocalHomeImpl.java:144)
at
com.verdisoft.datasource.ejb.contact.PersonBean.ejbHomeGetByKey(Perso
nBean.java:504)
at
com.verdisoft.datasource.ejb.contact.PersonBean_vjvtzf_LocalHomeImpl.
getByKey(PersonBean_vjvtzf_LocalHomeImpl.java:297)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.getBeanAdapter(EJBAdapter
Bean.java:872)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItemInternal(EJBAda
pterBean.java:834)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItem(EJBAdapterBean
.java:808)
at
com.verdisoft.datasource.ejb.EJBAdapterBean_s83q9a_EOImpl.updateItem(
EJBAdapterBean_s83q9a_EOImpl.java:146)
at
com.verdisoft.datasource.DataAdapterManagerBean.updateItem(DataAdapte
rManagerBean.java:144)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl.updateI
tem(DataAdapterManagerBean_plajw8_EOImpl.java:614)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl_WLSkel.
invoke(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:282)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:97)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:231)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:144)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
com.verdisoft.datasource.exception.DataNotFoundException: Object not found:
data
source://private_addressbook/ejbcontact/john1025100151518/12770
at
com.verdisoft.datasource.ejb.EJBAdapterBean.getBeanAdapter(EJBAdapter
Bean.java:876)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItemInternal(EJBAda
pterBean.java:834)
at
com.verdisoft.datasource.ejb.EJBAdapterBean.updateItem(EJBAdapterBean
.java:808)
at
com.verdisoft.datasource.ejb.EJBAdapterBean_s83q9a_EOImpl.updateItem(
EJBAdapterBean_s83q9a_EOImpl.java:146)
at
com.verdisoft.datasource.DataAdapterManagerBean.updateItem(DataAdapte
rManagerBean.java:144)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl.updateI
tem(DataAdapterManagerBean_plajw8_EOImpl.java:614)
at
com.verdisoft.datasource.DataAdapterManagerBean_plajw8_EOImpl_WLSkel.
invoke(Unknown Source)Irene Ho wrote:
Dear all,
When the java application program tries to insert the data (around 300
records). Sometimes, the error occurs as "EJB Exception:
weblogic.transaction.internal.TimedOutException: Transaction timed out after
95 seconds".
When the error occurred, only one java application was running. Furthermore,
I set the JTA-->Timeout Seconds to 30 in the thr the Weblogic console. The
configuration of the server is WebLogic 7.0 with SP2 and Oracle 8.1.7.
Anyone know what happen and how to resolve the problem? The error is due to
the entity bean, Weblogic or Oracle?
Thanks a lot.
IreneOr configuration. You can set your timeout to a different value. It is likely
to be an oracle problem. We don't do anything unnecessary to delay your application
code. You may be able to check the jdbc log or jta log to see when the tx starts and
how long it takes to progress. If you note a delay, you could take a server
thread dump to see what weblogic is doing. Typically it will be waiting for
Oracle to respond from a jdbc call.
Joe -
Tns timed out in oracle apps server
Hi ,
I am receiving the following error in the alert log.
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 145
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.121)(PORT=3092))
Mon Apr 18 09:57:18 2011
Developer are complaing that they are receving Ora 03113-End of File on communication channel.
please advise.
With Regards,
SriniHi;
Please see:
‘Fatal NI connect error 12170', 'TNS-12535: TNS:operation timed out' Reported in 11g Alert Log [ID 1286376.1]
Troubleshooting Guide TNS-12535 or ORA-12535 or ORA-12170 Errors [ID 12535.1]
Concurrent Processing - R12 Concurrent Managers Not Starting After Patching or Upgrade Changes [ID 811093.1]
OERR: TNS 505 "Operation timed out" [ID 21996.1]
Regard
Helios -
Commit timed out during oracle 2pc
Hi, all
I have a session bean with container managed transaction. In one of
the business methods, I need to update tables from 2 different Orcale
datasources. I am using the XA driver
oracle.jdbc.xa.client.OracleXADataSource when setting up the 2
connection pools. I have a log statement as the last line in my
method. The message gets logged without any delay. However, control
doesn't return from the method. And eventually, I get a timeout
message.
My guess is that the transaction manager has problem committing the
changes. But I don't know how to resolve this issue. Can someone help?
Thanks in advance.
TSI suggest you try to start WL with debuffing turned on, that will give you a lot
of messy debug output, but at least you be able to see how resources listed and
delisted by transaction manager and how transaction started and commited.
To turn debugging on add following parameter in WLS startup line:
-Dweblogic.Debug=weblogic.JTAXA,weblogic.JDBCConn,weblogic.JTA2PC,weblogic.JTAJDBC
Hope this helps.
[email protected] (ts) wrote:
Hi, all
I have a session bean with container managed transaction. In one of
the business methods, I need to update tables from 2 different Orcale
datasources. I am using the XA driver
oracle.jdbc.xa.client.OracleXADataSource when setting up the 2
connection pools. I have a log statement as the last line in my
method. The message gets logged without any delay. However, control
doesn't return from the method. And eventually, I get a timeout
message.
My guess is that the transaction manager has problem committing the
changes. But I don't know how to resolve this issue. Can someone help?
Thanks in advance.
TS -
Integration Broker - Connection Timed Out Error
We are getting below error when running a job that access another app sever from PeopleSoft.
Internal Error: Connection request timed out: at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
Any help is much appreciated ?
Thanks,
SriniWe have a process which syncs users from PeopleSoft to Match application (which is on another server, DB etc).
The process is erroring out with below message.
Internal Error: Connection request timed out: at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
So nothing to do with IB, sorry for that. -
SQLException:Connection timed out- after upgrading from oracle9i to 10g
Hi,
Recently we upgraded from oracle 9i to 10g.
We are using Oracle JDBC Driver version - 10.1.0.5.0 .
In the application, when RMI server starts, the connectionpool (developed using stack) will be filled with 10 instances of fresh connections.
After keeping the RMI server idle for some time ( >24 hours ) , the first transaction sent to the Database (using the connection instance popped out from stack(connectionpool) ) terminates with following exception and from the second transaction onwards everything works normally.
Exception------
java.sql.SQLException: Io exception: Connection timed out
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:443)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942)
at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1183)
at util.DatabaseManager.fetchData(DatabaseManager.java:255)
at util.TextRequestImpl.presentText(TextRequestImpl.java:105)
at util.TextRequestServer.presentText(TextRequestServer.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Io exception: Connection timed out
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:443)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942)
at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1183)
at util.DatabaseManager.fetchData(DatabaseManager.java:255)
... 13 more
If am connecting to oracle9i(with Oracle JDBC Driver version - 9.0.2.0.0) ,everything works fine.
Can anyone help me out to solve this issue?I attempted several upgrades and we decided it was better to implement the content under 10g fresh rather than attempt an upgrade.
After 3-5 attempts through patching non of them provided us with re-produceable steps and we had different errors each time - mind you this was a few months back after initial release of upgrade patches. -
Java.sql.SQLException: Socket read timed out
// DbTest.java
<code>
import java.sql.*;
import java.io.*;
public class DbTest
public static void main(String args[])
System.out.println("DbTest main(-)");
Connection con = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("class loaded");
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcldb","scott","tiger");
System.out.println("con obj created");
System.out.println("con obj retrived");
if (con!=null)
System.out.println("Connection created successfully");
else
System.out.println("Connection refused");
catch (SQLException e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
</code>
e:\JavaPrgms\JDBC>javac DbTest.java
e:\JavaPrgms\JDBC>java DbTest
DbTest main(-)
class loaded
java.sql.SQLException: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at DbTest.main(DbTest.java:17)
Caused by: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:320)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 7 more
i am using win 7 64bit os , Oracle 11.2, Jdk 1.7 how can i resolve this problem?
Edited by: 910776 on Oct 4, 2012 10:49 AMYour other thread got locked because all you did was post a bunch of code without explaining what your question or issue was or what the code is supposed to be doing.
java.sql.SQLException: Socket read timed out
Simply reposting in this forum isn't enough. Edit your post and and add \ tags on the line before and the line after the code to preserve the formatting.
Also explain what you are trying to do, the problem you are having and answer the questions I ask you in your other thread.
{quote}
What is it you are trying to do?
Why are you trying to connect to two different databases?
Do either of those databases actually exist?
Do they exist on the local machine that Java is running on?
Can you connect to either of them without using Java?
{quote} -
OraclePool connection gets timed out
Hello.
We are trying to use the OraclePool in the Jena adapter. We create it in the initialize method of a Spring bean
java.util.Properties oraclePoolProperties = new java.util.Properties();
oraclePoolProperties.setProperty("MinLimit", "5"); // the cache size is 5 at least
oraclePoolProperties.setProperty("MaxLimit", "40");
oraclePoolProperties.setProperty("InitialLimit", "5"); // create 5 connections at startup
oraclePoolProperties.setProperty("InactivityTimeout", "1800"); // seconds
oraclePoolProperties.setProperty("AbandonedConnectionTimeout", "900"); // seconds
oraclePoolProperties.setProperty("MaxStatementsLimit", "10");
oraclePoolProperties.setProperty("PropertyCheckInterval", "60"); // seconds
//this.oraclePool = new OraclePool(oracleConexionUrl, null, null, prop, "OracleSemConnPool");
String[] tokensConexionUrl = oracleConexionUrl.split("[:/@]");
logger.debug(tokensConexionUrl[3] + " - " + tokensConexionUrl[4]);
this.oraclePool = new OraclePool(oracleConexionUrl, tokensConexionUrl[3], tokensConexionUrl[4],
oraclePoolProperties, "OracleSemConnPool");
logger.debug("Done creating OraclePool");
Oracle oracle = oraclePool.getOracle();
// do stuff
oracle.dispose();
Inemdiately after the creation of the pool, a connection is created correctly.
However, an hour later, with no use of any other connection, when a thread tries to get a Jena Oracle connection with the pool, it gets a SQLException: Connection timed out
Are we missing some configuration?The exception is this:
java.lang.RuntimeException: Oracle constructor:
at oracle.spatial.rdf.client.jena.Oracle.<init>(Oracle.java:138)
at oracle.spatial.rdf.client.jena.OraclePool.getOracle(OraclePool.java:230)
at org.fundacionctic.ogd.data.service.OracleJenaService.createOracleConnection(OracleJenaService.java:144)
at org.fundacionctic.ogd.data.service.OracleJenaService.getConexion(OracleJenaService.java:165)
at org.fundacionctic.ogd.data.D2RDataSource.updateData(D2RDataSource.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:76)
at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.sql.SQLException: Error de E/S: Connection timed out
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:866)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
at oracle.spatial.rdf.client.jena.Oracle.<init>(Oracle.java:125)
... 13 more
Caused by: java.net.SocketException: Connection timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at oracle.net.ns.Packet.receive(Packet.java:282)
at oracle.net.ns.DataPacket.receive(DataPacket.java:103)
at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:230)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:175)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:100)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:85)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:122)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:78)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1179)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
... 18 more -
ORA-12535: TNS:operation timed out on a win2000 Oracle instance
Hi,
i have a Oracle 8.1.5 instance on a WIN2000 PC.
I can connect me to this database with sqlplus
as long i stay on the PC (means i started the sqlplus
on the same machine).
When i try to connect from an other (unix-)system
i get after a while (ca. 90 sec.) the error:
ORA-12535: TNS:operation timed out
tnsping works fine (answer comes back in one second)
There are no firewalls or other "strange" things between
the database and the failing client (on an other PC,
also win2000, Oracle 8.1.5 everything works fine).
Below you see the log with debug of the listener.
I have also a trace on level SUPPORT but this is more
than 1000 lines for just 1 or 2 TNSPINGs and one SQLPLUS
connect. Due to this volume i decided not to attach it to
this initial mail.
Does any one have some advice or experiences ?
Please advice.
Best regards,
[email protected]
======================================================================
TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Production on 19-APR-01 09:07:26
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Die System-Parameterdatei ist D:\Oracle81\network\admin\listener.ora
Log-Meldungen wurden geschrieben in: D:\Oracle81\network\log\listener.log
Listen auf: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
19-APR-01 09:07:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:08:04 * service_register * MDR50 * 0
19-APR-01 09:08:11 * trc_level * 0
19-APR-01 09:08:16 * trc_level * 0
---------------- BEGIN TNSLSNR DEBUG ---------------------
*** ENDPOINT #1 **
Name:
Address: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
Presentation: ttc
Session: NS
Info = <none>
Display: <none>
Load: 0
Handler ID = 80FFE377148D-41F8-AAC2-09A8BD4BE682
Oracle SID = <none>
Flags:
** INSTANCE #1 **
INSTANCE_NAME: MDR50
SERVICE_NAMEs: MDR50
INSTANCE LOAD: 0
INSTANCE ID: 4CC2FCDA6819-40D2-839D-F1628CC0BCA2
FLAGS: LOCAL
VERSION: 81500
NUM. HANDLERS: 2
Handler Matrix: (NS):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 2
Handler Matrix: (RAW):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 0
SERVICE HANDLERS:
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=oracle)(ENVS=)(ARGV0=oracleMDR50)(ARGS='(LOCAL=NO)'))
Presentation: <none>
Session: <none>
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = 83CB008C17A3-4E48-94DA-2765A62AAD7E
Oracle SID = <none>
Flags: BEQUEATH
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMDR50)(ARGS='(DESCRIPTION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
Presentation: <none>
Session: NS
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = D9E0EC298D16-40FA-935F-7B989D139666
Oracle SID = MDR50
Flags: BEQUEATH CONNECTED DYNAMIC
** INSTANCE #2 **
INSTANCE_NAME: PLSExtProc
SERVICE_NAMEs: PLSExtProc
INSTANCE LOAD: 0
INSTANCE ID: 000000000000-0000-0000-000000000000
FLAGS: LOCAL
NUM. HANDLERS: 1
Handler Matrix: (NS):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 1
Handler Matrix: (RAW):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 0
SERVICE HANDLERS:
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=extproc)(ENVS=)(ARGV0=extprocPLSExtProc)(ARGS='(LOCAL=NO)'))
Presentation: <none>
Session: <none>
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = 56D4DAD11082-4097-992C-AF7F8067D858
Oracle SID = <none>
Flags: BEQUEATH
---------------- END TNSLSNR DEBUG ---------------------
19-APR-01 09:08:28 * debug * 0
19-APR-01 09:08:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:09:57 * ping * 0
19-APR-01 09:10:16 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55678)) * establish * MDR50 * 0
19-APR-01 09:14:39 * trc_level * 0
19-APR-01 09:14:58 * trc_level * 0
19-APR-01 09:15:06 * trc_level * 0
19-APR-01 09:16:16 * trc_level * 0
19-APR-01 09:16:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:16:33 * trc_level * 0
19-APR-01 09:17:09 * ping * 0
19-APR-01 09:17:51 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * establish * MDR50 * 0
19-APR-01 09:18:06 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * service_update * MDR50 * 0
19-APR-01 09:23:33 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=deep-thought)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * establish * MDR50 * 0
19-APR-01 09:28:09 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * service_update * MDR50 * 0
19-APR-01 09:28:25 * ping * 0
nullRather than
MyDB.10gXE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
why not go with the bulk standard tnsnames entry as follows:-
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
I don't think the qualified MyDB.10gXE name is adding any value and may well confuse things.
Although setting it for my environment does work
C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
005 18:06:48
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen
-lap.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_
NAME = XE)))
OK (40 msec)
OK - when I use your entry pasted directly from the above, with my server name, I get the following problem:-
C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
005 18:07:43
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION =
TNS-12533: TNS:illegal ADDRESS parameters
I added back some spaces, as indicated by the . below, and it works fine
MyDB.10gXE =
(DESCRIPTION =
.(ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen-lap.us.oracle.com)(PORT = 1521))
.(CONNECT_DATA =
.(SERVER = DEDICATED)
.(SERVICE_NAME = XE)
.) -
Oracle 10g on Windows 7: TNS-12535: TNS:operation timed out
I installed Oracle 10g (Version 10.2.0) on Windows 7 Professional on my laptop. Everything installed cleanly, but I simply cannot get an Oracle-client communication going. For some reason, TNSPing keeps timing out, as follows:
C:\Users\Bruce>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 13-SEP-2
010 17:00:09
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
F:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = Bruce-Desktop)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ORCL)))
TNS-12535: TNS:operation timed out
I am using DHCP on my home network, but I turned off the firewall for this exercise. Also, I set up a static loopback connector = 192.168.100.100
Here is SQLNET.ORA:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
Here is TNSNAMES.ORA:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Bruce-Desktop)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Here is LISTENER.ORA:
SID_LIST_LISTENER01 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
LISTENER01 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Bruce-Laptop)(PORT = 1521))
Any help and/or guidance on how to diagnose & fix this problem would be greatly appreciated!
Thank you.Hi Bruce,
The scenario you just provided is what you don't want. You want Bruce-Desktop to have a static address. The easiest way to have this setup properly is to look at the IP address that is assigned by the DHCP server and assign that address statically to the interface.
The way you have it now, I cannot tell which IP address Oracle will be using because that will depend on the binding order. You can control that by going to "My network places" -> "Properties" - > "Advanced" -> "Adapters and Bindings"/"Provider Order". It complicates matters though to do it that way.
Since I cannot see exactly in what state your installation is, I would suggest you start over, this time with the network setup as needed. I can help you with the setup if you are willing to go thru the installation again. Trying to guess everything that should be modified in your current installation will be too error prone.
John.
For a new, clean installation, these are the basic steps:
1. Set the computer name appropriately, something like "orahost" is a reasonable choice.
2. Set the primary DNS suffix for the computer to something like "bruce.local"
3. Set the IP address of your computer to be static (you won't even need a loopback adapter)
4. Enter the appropriate information in your hosts file, given the values I mentioned above, it should look something like:
127.0.0.1 localhost
192.168.247.120 orahost.bruce.localchange the 192.168.247.120 to whatever IP address you statically assigned in step 3
When you create the database and it wants the database name, enter <databasename>.bruce.local
Another recommendation, in that same screen, it will want the SID, I use <databasename>sid. This makes it clearer later when Oracle expects an SID instead of a connect identifier or a database name. (though most people have the sid set the same as the database name - for learning purposes, I believe you are better off with different values, in order to tell, when it wants one instead of the other - otherwise, it's hard to visualize)
This way you are mimicking an installation that is closer to a real production environment.
If you want to use DHCP, still do step 3 but reserve the IP address you assigned statically in the DHCP server, that way the static IP will match what would have been assigned by the DHCP server.
HTH,
John. -
JDBC pooling Oracle driver Socket read timed out
I run Java EE application on Glassfish server v3 together with Oracle 12 DB on the same machine under Windows Server 2012 64bit. I use latest ojdbc7 driver.
Connection pool config:
<jdbc-connection-pool validation-table-name="DUAL" steady-pool-size="20" statement-cache-size="100" associate-with-thread="true" statement-timeout-in-seconds="30" idle-timeout-in-seconds="60" max-wait-time-in-millis="2000" validate-atmost-once-period-in-seconds="20" datasource-classname="oracle.jdbc.pool.OracleDataSource" pool-resize-quantity="5" max-pool-size="60" res-type="javax.sql.DataSource" name="dbPool" is-connection-validation-required="true">
<property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
<property name="user" value="xxx"></property>
<property name="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"></property>
<property name="password" value="xxx"></property>
<property name="portNumber" value="1521"></property>
<property name="databaseName" value="orcl"></property>
<property name="serverName" value="127.0.0.1"></property>
<property name="oracle.jdbc.ReadTimeout" value="300000"></property>
<property name="oracle.net.CONNECT_TIMEOUT" value="10000"></property>
</jdbc-connection-pool>
After 2 or 3 hours, when there is more than 1 user (3-5) using my application, it stops responding and I get this in glassfish logs
javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=152;_ThreadName=Thread-2;|RAR5038:Unexpected exception while creating resource for pool dbPool. Exception : javax.resource.spi.ResourceAllocationException: Connection could not be allocated because: IO Error: Socket read timed out
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO Error: Socket read timed out
From the database side it looks like this
Fatal NI connect error 12560, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
Time: 13-JUN-2014 03:14:49
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (3404) as a result of ORA-609
When I just reset db listener everything works ok for next 1-2 hours (depends on application load). So temporary solution is to run bat script from windows scheduler to reset the listener every 1h.
I tried everything I could find - applied these parameters:
- Sqlnet.ora:
SQLNET.INBOUND_CONNECT_TIMEOUT=180
SQLNET.EXPIRE_TIME=5
- Listener.ora:
INBOUND_CONNECT_TIMEOUT_LISTENER_IPC=120
But still without successIs the problem here just that you need a connection pool that closes idle connections? Some pools will close idle connections after a time out period. And the pool lets you set that time out period. If the pool you are using doesn't provide that then use a different pool.
-
Tnsping timed out using dg4odbc from Oracle to MYSQL through ODBC
Hi,
I encountered problem when trying to connect from Oracle to MYSQL using dg4odbc, hope you can shed some light
Oracle database is 11.1.0.7 on SUSE Linux 64-bit.
Since the application which runs on MYSQL DB only offers ODBC driver on Windows platform, so I installed the 32-bit ODBC driver (from ServiceNow) on a 32-bit windows server (driver download from http://wiki.service-now.com/index.php?title=ODBC_Driver) .
created system DSN: MYSQLDEV, The DSN connection works fine. I then installed Oracle 11.2.0.1 gateway for ODBC 32-bit on the same windows server, the following configurations were done:
On 32-bit Windows server:
in gatewayHome\hs\admin
initMYSQLDEV.ora:
# HS init parameters
HS_FDS_CONNECT_INFO = MYSQLDEV
HS_FDS_TRACE_LEVEL = DEBUG
in gatewayHome\network\admin:
listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abcdes.sda.sdva.com)(PORT = 1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=MYSQLDEV)
(ORACLE_HOME=C:\product\11.2.0\tg_1)
(PROGRAM=dg4odbc)
ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
stop and started listener on windows server and check listener status
C:\product\11.2.0\tg_1\bin>lsnrctl status listener
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2012 21:42:08
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 29-MAR-2012 21:11:36
Uptime 0 days 0 hr. 30 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\abcdes\list
ener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
Services Summary...
Service "MYSQLDEV" has 1 instance(s).
Instance "MYSQLDEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
On Linux server where Oracle DB resides.
Added the following tns entry "jelly" on the Linux server ORACLE_HOME/network/admin:
jelly =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)
(HOST=abcdes.sda.sdva.com)
(PORT=1521))
(CONNECT_DATA=(SID=MYSQLDEV))(HS=OK)
tnsping from Linux server (64-bit) failed with timeout error:
tnsping jelly
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 29-MAR-2012 21:12:38
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=abcdes.sda.sdva.com) (PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK))
TNS-12535: TNS:operation timed out
tnsping from Windows server works fine: (added same tnsnames entry on windows server for testing purpose only)
C:\product\11.2.0\tg_1\bin>tnsping jelly
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2
012 21:45:20
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\product\11.2.0\tg_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV)) (HS=OK))
OK (20 msec)
if listener is not listening to the service, then the tnsping on the windows server should fail as well.
I don't know why only the tnsping from Linux failed, is it due to the 32-bit ODBC uncompatibility with 64-bit oracle server? or my configuration problem?
Of course, when I created the DB link from oracle, the connection failed with
create database link mysqldev connect to xxxx identified by "xxxxx" using 'jelly';
Database link created.
select * from tab1;
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from MYSQLDEV
Thanks for your help,Hi Mike,
This is part of the tnsping.trc file which contains the error. IP address is in the tnsnames entry with this tnsping.
nsopen: opening transport...
nttcon: entry
nttcon: toc = 1
nttcnp: entry
nttcnp: creating a socket.
nttcnp: exit
nttcni: entry
nttcni: Tcp conn timeout = 0 (ms)
nttcni: trying to connect to socket 5.
ntt2err: entry
ntt2err: soc 5 error - operation=1, ntresnt[0]=505, ntresnt[1]=110, ntresnt[2]=0
ntt2err: exit
nttcni: exit
nttcon: exit
nserror: entry
nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=110, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
nsopen: unable to open transport
nsiocancel: entry
nsiofrrg: entry
nsiofrrg: cur = 53b9f8
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsiofrrg: exit
nsiocancel: exit
nsvntx_dei: entry
nsvntx_dei: exit
nsopenfree_nsntx: nlhthdel from mplx_ht_nsgbu, ctx=53a7e0 nsntx=53ade0
nsiocancel: entry
nsiofrrg: entry
nsiofrrg: exit
nsiocancel: exit
nsmfr: entry
nsmfr: 2712 bytes at 0x53ade0
nsmfr: normal exit
nsmfr: entry
nsmfr: 1528 bytes at 0x53a7e0
nsmfr: normal exit
nsopen: error exit
nscall: error exit
nscall: entry
nscall: connecting...
nsclose: entry
nsclose: normal exit
nladget: entry
nladget: exit
nsmfr: entry
nsmfr: 264 bytes at 0x528900
nsmfr: normal exit
nladtrm: entry
nladtrm: exit
nscall: error exit
nlse_term_audit: entry
nlse_term_audit: exit
Thanks, -
Oracle 11gR2, Windows7, TNS-12535: Operation Timed Out
Hi all,
I am getting TNS-12535: Operation Timed Out.
I have windows 7 installed on 2 servers. Both server having 11gR2 installed.
I am able to ping both servers.
ServerA> Ping ServerB
Success...(Getting reply..)
ServerB> Ping ServerA
Success...(Getting reply..)
But for TNS Ping:
Connecting Local:
ServerA> TNSPing ServerA
OK
ServerB> Ping ServerB
OK
Connecting to other:
ServerA> TNSPing ServerB
TNS-12535: Operation Timed Out
ServerB> Ping ServerA
TNS-12535: Operation Timed Out
Please revert as soon as possible.
Edited by: Pavan Bhardwaj on Sep 20, 2010 12:35 AMHi Salman,
Pleasefind the required content below:
Server A:
# sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
TNSNames.ora:
# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
SO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ServerA)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SO)
SO156 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ServerB)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SO)
ServerB:
# sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\client_2\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
TNSNames.ora:
# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
SO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ServerB)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SO)
SO123 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ServerA)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SO)
) -
How to check ,how many users are logged in and logged out in oracle ebs 11i/R12.
Hi Experts,
Kindly let me know
how to check ,how many users are logged in and logged out in oracle ebs 11i/R12.
Also, in the database level too ,Do we need to write any trigger for this?
Thanks in advance.Hi,
How to check ,how many users are logged in and logged out in oracle ebs 11i/R12.
Please check the following links:
Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
List all users currently logged in on Oracle EBS
Also see forum Search:
Forum Search: Logged In EBS User
Also, in the database level too
Please see:
https://forums.oracle.com/message/9225094#9225094
Do we need to write any trigger for this?
Yes you may, But I personally suggest you not to do so as it may affect performance.
Thanks &
Best Regards,
Maybe you are looking for
-
I just got a replacement phone and I get sounds notifications for both email and BBM that I want to adjust or turn off. That said, when I go to the "notifications" area of "System Settings" and scroll down to "Applications" I do not have either "Ema
-
Hi, I am trying to determine the current resolution om my monitor. I remember there was a function waaaaaay back when I programmed with Borland C++, which was getWidth, or getScreenWidth... how can I get the screen resolution in Java? Does anyone kno
-
Is there a way to automatically back up Photostream to my Mac?
I have passed the 1000 photo limit in photostream, and I want to find an automatic way to back up any new pictures to my mac. I realize that I can plug my phone into the computer and import them into iPhoto, but I use many different devices and would
-
How can you tell if an unopened product is engraved?
I got an Ipod Touch for Christmas and was wondering if there is a way to tell if it is engraved without opening it. I googled it and couldn't really find a conclusive answer. I am interested in upgrading from an 8gb to a 32gb and read that apple does
-
How would I go about running Windows 8 on my Macbook Pro? I know about a thing called boot camp, but I don't understand how it works.