Oracle Timing

Hi,
Do you know how to record the process time for each query?
especially spatial query in Oracle? Any system functions?
Thank you so much!
Xiong

Xiong,
You can turn on the timing by issuing the following command:
set timing on
This will give you execution time for sql commands issued in
SQL*Plus or SQL*Worksheet sessions.
Dave

Similar Messages

  • Oracle timing out. HELP!!

    I cant telnet to it and run sqlplus and do queries all day. TNS is running but no clients can get anything. Any Help?

    May be you should add the host name of the oracle server in your clients hosts/lmhost files ? Occasionaly check your clients' tnsnames.ora file is updated. At least, check your DNS server.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gary ():
    I cant telnet to it and run sqlplus and do queries all day. TNS is running but no clients can get anything. Any Help?<HR></BLOCKQUOTE>
    null

  • IPSec / Windows / Oracle Client

    I am trying to implement IPSec on our Windows 2003 servers to assist with some security compliance issues. For ease use, I have tried the Client (Respond Only) and Server (Request Security) IPSec policies that come with Windows Server by default.
    When I do this, my client systems respond with ORA-12571: TNS:packet writer failure, ORA-03114: not connected to ORACLE, ORA-03135: connection lost contact, and other related errors.
    The problem resolves itself by deactivating the IPSec policy on the Oracle server.
    Is there any setting I can change in Oracle on either the client or server that would prevent this? The Oracle Alert Log shows no record of these issues and the server seems to be working fine.
    Thanks in advance.

    Well, I tunnel (using OpenSSH) some of my Oracle connections via 3 networks to servers over a 1000km away - and I do not have issues relating to Oracle timing out connections because of latency.
    TCP is a pretty robust protocol.. I do no see Oracle breaking that type of robustness by being overly sensitive to TCP latency.
    More likely this is a problem with Windows itself. Microsoft is well know for not adhering to standards, and twisting these with proprietary interpretations in order to lock the customer and software into a Microsoft Windows only solution.
    A TNS packet writer failure is an exception that is typically caused when Oracle uses a socket handle to write data, and the kernel returns an error. Thus the error is not in the Oracle s/w layer, but comes directly from the IP stack in kernel space - a network layer error.
    In my case, using ssh tunnels, I would usually see this when a ssh tunnel daemon goes fubar and the listener/proxy for that local (or remote) TCP port forwarder no longer exists.
    I cannot recall ever seeing this being caused by Oracle itself..

  • Excessive database timeouts. How to monitor?

    Hi
    There are excessive Timeouts being recorded on the database. using db console or OEM what is the best way to investigate this, and the reasons behind it?
    Thanks.
    Oracle 10.2.0.2.0.
    DA

    not sure how you would monitor this in oem or dbcontrol. it may not be oracle timing out the session. from a troubleshooting aspect I would look at client sqlnet trace or maybe setup dead connection detection by setting / tuning sqlnet_expire_time in your sqlnet.ora which should help reduce timeouts.

  • 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,

  • 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
    null

    Rather 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 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 AM

    Hi 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)
    )

  • 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.

  • 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.

  • How to find patch timing details in oracle 11i applicaitons

    Hai -
    Today i applied 30 patches on our oracle 11.5.10.2 application.
    I would like to see how much time it took for installing these patches. Could any one provide SQL Script to list out like patch name, patch start time and patch end time and host name.
    Apppreciate your support on this.
    Regards
    VSH

    Hi,
    You can determine this from OAM or from adpatch "Job Timing Report".
    Note: 181665.1 - Release 11i Adpatch Basics
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=181665.1
    Check also the following documents for "AD Administration and AutoPatch Timing Information"
    AD Administration and AutoPatch Timing Information
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iadproc.pdf
    Oracle Applications Maintenance Utilities
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iadutil.pdf
    If you need a query to show the timing, query AD_PATCH_DRIVERS table.
    Note: 443761.1 - How to check if a certain Patch was applied to Oracle Applications instance?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=443761.1
    find applied patches.
    Re: find applied patches.
    Regards,
    Hussein

  • 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 success

    Is 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.

  • 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

  • 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

  • Oracle RTD Integration Point Invoke: Read Timed Out Error

    Hi All,
    We are getting the Read Timed Out Exception while invoking the integration points in Oracle RTD after running the batch job.
    Till the model doesnt have any data or very less data, we are able to invoke the integration points.
    But after executing the batch job even with as less as 100 records we start getting the timeout error when the integration points are invoked explicitly.
    2011-07-05 19:07:43,345 ERROR [EntryPointHelper] java.rmi.RemoteException: ; nested exception is:
         com.sigmadynamics.exception.SDRuntimeException
         at com.sigmadynamics.server.rtis.LocalClient.invoke(LocalClient.java:123)
         at com.sigmadynamics.struts.helpers.testview.EntryPointHelper.getResponse(EntryPointHelper.java:100)
         at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:317)
         at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:146)
         at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:242)
         at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:201)
         at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:138)
         at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
         at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:112)
         at org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:191)
         at org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:102)
         at application.application__test__overview._jspService(_application__test__overview.java:663)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
         at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
         at com.sigmadynamics.struts.SDJSPAction.authenticatedExecute(SDJSPAction.java:184)
         at com.sigmadynamics.struts.RequiresAuthenticationAction.execute(RequiresAuthenticationAction.java:41)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at com.sigmadynamics.workbench.DynamicContentFilter.doFilter(DynamicContentFilter.java:29)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at com.sigmadynamics.workbench.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:34)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at com.sigmadynamics.workbench.SecurityContextFilter.doFilter(SecurityContextFilter.java:37)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.sigmadynamics.exception.SDRuntimeException
         at EDU.oswego.cs.dl.util.concurrent.FutureResult.timedGet(FutureResult.java:149)
         at com.sigmadynamics.server.rtis.LocalClient.invoke(LocalClient.java:104)
         ... 57 more
    Caused by: EDU.oswego.cs.dl.util.concurrent.TimeoutException
         ... 59 more
    I have tried flushing the statistics as well as increasing the IntegrationPointGuaranteed RequestTimeout to 3000.
    But its not helping.
    Only for the empty model the integration points get invoked explicity from the test view or the interactive integration map or through the web service. Once executed the batch job I just get a Timeout error.
    When i try to set IntegrationPointGuaranteed RequestTimeout to 0 and invoke the integration point it hangs.
    Wat could be the issue/resolution?
    Regards,
    Supriya

    Hi Vamsi,
    Am experiencing the same SDTimeOutException.
    And by the way, the Siebel Application Version We are using to integrate to RTD is 8.1.
    Can you please throw some light on how to get this Exception resolved?
    Thanks,
    Hariharan

  • Many "oc4j_socket_recvfull timed out" messages in Oracle HTTP Server log

    Hello everyone,
    We are using OAS 10.1.3.1 and see many messages in the Oracle HTTP Server log as follows. ipAddress and myOASInstance are used below to replace the actual values with what is conceptually present there in the log file.
    Mon Jan 5 15:39:44 2009 warn client ipAddress oc4j_socket_recvfull timed out
    Mon Jan 5 15:39:44 2009 error client ipAddress ecid: 1231198482:ipAddress:24569:0:36247,0 mod_oc4j: request to OC4J myOASInstance:12502 failed: recv
    failed (errno=4)
    Mon Jan 5 15:39:48 2009 warn client ipAddress oc4j_socket_recvfull timed out
    Mon Jan 5 15:39:48 2009 error client ipAddress ecid: 1231198487:ipAddress:1860:0:135,0 mod_oc4j: request to OC4J myOASInstance:12502 failed: recv failed (errno=4)
    Mon Jan 5 15:39:51 2009 warn client ipAddress oc4j_socket_recvfull timedout
    Mon Jan 5 15:39:51 2009 error client ipAddress ecid: 1231198343:ipAddress:1717:0:31,0 mod_oc4j: request to OC4J myOASInstance:12502 failed: recv failed (errno=4)
    Mon Jan 5 15:39:52 2009 warn client ipAddress oc4j_socket_recvfull timed out
    Mon Jan 5 15:39:52 2009 error client ipAddress ecid: 1231198343:ipAddress:1680:0:101,0 mod_oc4j: request to OC4J myOASInstance:12502 failed: recv failed (errno=4)
    Is anyone aware of what these warning/error messages indicate and what course(s) of action should be considered to remedy the issue?
    Thanks,
    Doug

    In mod_oc4j.conf, turn Oc4jCacheSize 0 : When setting Oc4JCachesize 0 in mod_oc4j.conf, this will force connection closure
    and avoid socket saturation in machines, as each connection will be opened, then after the connection ends, it will be closed.
    This means new request will need new connection and will not recycle existing connection.
    Also set Oc4jConnTimeout 55 : It has to be less than firewall idle timeout which is 60 sec usually.
    So that the OC4J connection is dropped by itself before the firewall drops it. This is in seconds and should be smaller than
    the Firewall timeout, if any.
    Hope this will help you.
    Steff

Maybe you are looking for

  • Flash Player written in the Flash 8

    Hi All, How can I write flash player with flash 8? I need flash that can play other *.swf files. I don't know what components and functions I should use. Please help me with this

  • FTP Username and Password not saving?

    I have dreamweaver CS5 for Mac but whenever I shut the application down and re-open it it forgets the FTP Password that I set in "Site Manager" even though I have ticked the box that says save. Anyone having this problem or got a possible solution??

  • 1 server, 2 networks how to route traffic to both

    Hi i have NW65SP7 what i'm trying to do is 1. to have users come in thru the data network (192.168.0.0) and the traffic go back out thru the default gateway (192.168.0.1) and 2. i want LDAP traffic to go in thru the other network (10.1.0.0) and backo

  • Configurations for AII

    Hi,   Is there any document to configure the complete   R/3/ECC-XI-AII delivery scenario involving configurations in R/3/ECC, XI, AII??? I'm sure many would ahve done it!! I'm doing a demo b4 implementing this... Kindly share any documents u have. Re

  • Update values on an Adobe Interactive Form

    My question refers to the thread posted back in 2004 which remains unanswered... Thread: http'How to update values in Adobe form? With ECC 6.00 (SP10) , assuming that the Webdynpro and Adobe Interactive Forms has been correctly setup, can values on a