Database connection getting reset after application server is idle

Hi,
I have a centralized database with 7 to 8 tablespaces for different applications, for one of the linux based application i am having the captioned issue. The system works fine but whenever its left idle for more than 45 minutes the following scenario occurs.
1.     04 Transactions performed all the transactions are parked in the queue of process1.
2.     Process 1 reads the first transaction and in order to pass it to the next process queue (process2) refers to the database table to check that the process is registered and running and gets its process id to pass the message to its queue. At this level while trying to get the next process details the database call takes somewhere around 15 minutes and return the below error.
DBError::dumpError error code: [3135], error Msg: [ORA-03135: connection lost contact
]11/04/24 12:55:45:352 |INFO| DBCommand::ExecuteSP--DR SP [PKGCONFIGURATION.spIsModuleRegistered] Exception [3135] ORA-03135: connection lost contact
11/04/24 12:55:45:405 |ERR | Registrar::isRegistered mod id [21987475]: registration check failed
the above scenario occurs first time when every process receives any message from other and tries to fetch any details from the database. Once all the process have got these errors and are through with the database the next messages gets entertained in a proper manner.
Can anybody help in this regard. Secondly i do have the trace level logs if needed can be shared for reference and below is the error i get in SQLNET.ORA
Fatal NI connect error 12170.
VERSION INFORMATION:
     TNS for Linux: Version 10.2.0.1.0 - Production
     TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 27-APR-2011 16:07:52
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
Thanks in anticipation.
Regards
Hassan

Not an Oracle issue. Network. Your network connection has been configured to time out after 45 minutes and for a reason.
Do either one of the following things, in order of preference
1 Take the 'application', find a garbage bin, and put it in the garbage bin, where it belongs.
Oracle has Streams available for Queuing applications, and this heavily sounds like a hobby implementation of Streams.
2 Have your network administratror up the timeout to indefinite.
You may want to implement 2) before you implement 1)
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • JDBC Connection pool recovery after DB server restart

    I am finding that Kodo is throwing the following exception after I restart
    my database server (mysql). I am doing the database server restart while my
    application server is idle, so it is not during a transaction.
    Communication link failure: java.net.SocketException [code=0;state=08S01]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    This is presumably due to the JDBC connection pooling. Is there a
    configuration setting that allows Kodo to detect such failures and reconnect
    to the database server without exposing this problem to the application
    code? For example, WebLogic Server's JDBC connection pool has a setting that
    enables testing a connection and recovering from such failures before
    allocating it from the pool.
    Ben

    This is presumably due to the JDBC connection pooling. Is there a
    configuration setting that allows Kodo to detect such failures and reconnect
    to the database server without exposing this problem to the application
    code?Not right now. You can log an enhancement request with our bug database:
    http://bugzilla.solarmetric.com/

  • A database connection in a swing application

    hi ,
    i am developping an intranet stabdalone swing application based on a jdbc connection to oracle8i data server.
    in fact i am interested in keeping my user authentification encrypted while this connection is done! is there any method to do it ! i read about SSL but is it supported by web application ! i have a client-server simple connection !
    please help !

    Hello Levi,
    You can to do this form:
    String appModule = "yourAppmodule";
    String config = "yourAppmodule"+ "Local";
    ApplicationModule am = Configuration.createRootApplicationModule(appModule, config);
    ConnectionMetada cm = am.getTransaction().getConnectionMetadata();
    DriverManager.registerDriver(new OracleDriver());
    Connection connection = DriverManager.getConnection(cm.getJdbcURL());You can to see this threads:
    Retrieve Database Connection
    Getting the Connection object out of ApplicationModule
    Regards,
    Renan

  • The ITS could not connect to the Web Application Server or the R/3 System

    Hi Gurus
    we are in the process of insalling ITS 6.20 (ITS version is 620010318381 ( itsWindowsX64_31-200001681, R/3 4.7 200)
    Actually we installed it for dev/qas server with connectin mode property as "Connect to SAP system Using Applicatin Server"  these are working fine for webgui!
    and the same thing i installed for Production as connection mode property as " Connect to SAP System Using message Server" (hostname/IP, port as 3600 (as instance number is 00) here in the production evnironment we have 2 app servers. The installation got successful but i am not getting the log on screen through the link: http://10.3.3.175:81/scripts/wgate/webgui!
    the error message is :
    Connect Error
    The ITS could not connect to the Web Application Server or the R/3 System
    any help please
    Thanks in advance

    Hello Balaji,
    Check the global.srvc file for errors in the R/3 system information.  The ITS uses the following to connect to your system:
    ~appserver     
    ~routestring     
    ~systemname
    ~systemnumber     
    ~logingroup     
    ~messageserver     
    Which parameters are used depend on how you are connecting (logon group, route string, etc.)
    Edgar

  • ITS could not connect to the Web Application Server or the R/3 System

    ITS 6.20 on a single host on a WinXP test machine, connecting to R3 4.6C.
    The webgui <u>was</u> working, but a test application created in the WebStudio would not work.
    Now it's the other way around, the test application works fine, but the webgui fails with a "The ITS could not connect to the Web Application Server or the R/3 System."
    I have not managed to get ../scripts/wgate/admin/! to work either.
    Is it possible to have both the webgui and WebStudio created applications, working on the same ITS installation?
    If yes, any ideas how?
    Many thanks
    Tim

    Hi Tim,
    You have to check the connection data in the relevant service file e.g.
    ~systemname   
    ~messageserver
    ~logingroup   
    ~appserver    
    ~systemnumber 
    ~routestring  
    ~connectstring
    If the Agate doesn't run you would see an ITS 500 error in the browser.
    Thanks and regards,
    Dieter

  • Can't connect to the window application server.

    I have installed the Sun Secure Global Desktop Software 4.2,
    the client can connect to the unix application server but can't connect to the window applicaiont server.
    What can i do?
    Thank you.

    Hi.
    Are you sure you're using a Windows server which support Terminal Services? In other words, try (on the Windows server) by escaping to the CMD prompt and issue the
    netstat -n
    command as to see if port 3389 is listed in LISTEN state.
    Best,
    Rob

  • [XFCE]Keyboard layout config sometimes gets reset after suspend/resume

    After I got suspend/resume working thanks to the help here, I have still another little problem with it: After suspend/resume the keyboard layout configuration in the corresponding xfce-panel plugin is sometimes reset to US. The keyboard layout should be Russian/German with switching the layouts with LCtrl+LShift. In the xorg.conf everything is fine, but it seems to be disregarded:
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "de,ru"
    Option "XkbVariant" ",winkeys"
    Option "XkbOptions" "grp:ctrl_shift_toggle"
    EndSection
    The settings that I make in the panel-applet via its configuration dialogue work though, but they sometimes get reset after a suspend/resume.
    The XFCE session is started via following command in ~/.xinitrc:
    exec ck-launch-session dbus-launch xfce4-session
    Thanks for any hint,
    PhotonX

    I see. Then you should maybe add debug output to check whether the script is run at all and if yes, where it fails. Like
    button/lid)
    echo "lid action caught" >> /home/lid.log
    case "$3" in
    close)
    logger 'LID closed'
    # Suspend and lock the screen
    /usr/sbin/pm-suspend &
    DISPLAY=:0.0 su -c - miki /usr/bin/slimlock
    echo "lid closed" >> /home/lid.log
    open)
    logger 'LID opened'
    # Set the keyboard layout again on IT
    setxkbmap it
    echo "lid opened" >> /home/lid.log
    logger "ACPI action undefined: $3"
    echo "something wrong happened" >> /home/lid.log
    esac
    and then check /home/lid.log after lid close&open.

  • Database connection remains open after close being called

    I am using oracle OC4J as my application server. I am not using connection pool and I am using non-pooled datasource to get connection. The database connection is made at runtime and then closed. I want to test if the users' connection sessions have been killed after they logout the application. But when I checked the table v$session in the database, it shows one connection remaining. I checked my program, the close method has been called. Does anybody know the solution?

    Hi Chen,
    This is just a suggestion for something to try -- only if you haven't
    already tried it, that is!
    Try running OC4J in "debug" mode. Here are details on how to do that:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    Hope this helps you!
    Good Luck,
    Avi.

  • Cannot connect to Hyperion MDM application server through MDM client

    Hi,
    I am using Hyperion System 9 MDM.
    But after installing the MDM server on a MS SQL database, i installed the mdm client.
    Now when i tried to create a new connection from client app and gave the application server URL "http://localhost/mdm_ntier" as stated in the installation guide, i was getting the error.
    "cannot connect to the URL".
    Can anyone help me in this regard.
    Thanks in advance.

    Please delete this post and post in a Hyperion forum.
    That way you will find an audience that can help you.

  • MSSQL 2008 - Database size getting smaller after EHP upgrade??

    Hi All,
    Did anyone observe the DB size of MSSQL 2008 after EHP upgrade?
    In my two system, after upgraded to EHP5 and EHP2 respectively, the database is getting smaller compare to before upgrade, estimated 5-10gb.
    EHP upgrade is unlike DBEXPORT, it shouldn't have any reorganization features and so do MSSQL.
    Any idea?
    Cheers,
    Nicholas Chang

    > Right after upgrade is smaller and after sgen, db size is bigger than source.
    So it's ok.
    > As system was upgrade from ECC6 to EHP5 with Central Application, HCM and Finance .... the after upgrade size should bigger than the source even before SGEN. Your kind input is mostly welcome.
    If the source system was compiled completely (using SGEN) then you need to compare the sizes of the target system also, otherwise you compare apple with pies.
    Another reason may be that index compression was activated:
    Note 1459005 - Enabling index compression for SQL Server
    You could now upgrade to SQL Server 2008 R2 and apply
    Note 1488135 - Database compression for SQL Server
    this will save additional space (30 - 50 %).
    Markus

  • Opening multiple reports in Crystal Reports for VS causes database connect limit to be reached.  Seems to be no way to force Crystal Reports to close database connection (other than exiting application)

    I am working on upgrading an application that has been in use for many years.  The application is written in VB6 and I have been tasked with upgrading the current application to Crystal Reports for Visual Studio.  I am using Crystal Reports for VS Version 13.0.12.1494.  The system's database is a Sybase SQL Anywhere 16 database with an ODBC connection using integrated login.  Each of the reports has the database connection set up from within the report.  There is only once database server, so each of the reports are pointing to the same DB.  The database server is currently installed as a "Personal Server" with a limit of 10 connections. 
    I have implemented the CR viewer as part of a COM-callable wrapper that exposes a COM interface for VB6 to interact with.  Inside of my viewer component is a Winform that embeds the Crystal's Report viewer.  The COM interface basically maps the basic Crystal apis to methods that the VB6 can call (i.e., Load Report, Set Field Text, Update SQL Query, etc).  This architecture is working as designed and the reports are displaying correctly and responding correctly to changes in queries, etc.
    The issue is that after I open 9 reports, the tenth one will respond with an error indicating that the database connection limit has been reached.  The database connections used by the reports aren't released until after the application is closed.  The application is designed for a secure environment that prohibits the non-administrative user from accessing the systems desktop, so asking the user tor restart the application after 10 reports isn't a viable option.
    I have checked and database connection pooling is turned off for the SQL Anywhere 16 driver.
    I have been digging on this for a few days and have tried adding code in the FormClosed event to close and dispose of the Report Document as follows:
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();       // Force garbage collection on disposed items
    I have also tried the following (as well as maybe 20 or so other permutations) trying to fix the issue with no success.  
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    foreach (Table table in reportDoc.Database.Tables)
         table.Dispose();
    crystalReportViewer1.ReportSource = null;
    reportDoc.Database.Dispose();
    reportDoc.Close();
    reportDoc.Dispose();
    reportDoc = (ReportDocument)crystalReportViewer1.ReportSource;
    GC.Collect();       // Force garabe collection on disposed items
    Any ideas or suggestions would be greatly appreciated.  I have been pulling my hair out on this one!

    Hi Ludek,
    Thanks so much for the quick reply.  Unfortunately I did not have time to work on the reporting project Friday afternoon, but did a quick test this morning with some interesting results.  I'm hoping if I describe what I'm doing, you can show me the error of my ways.  This is really my first major undertaking with Crystal Reports.
    If I simply load the report, then close and dispose, I don't hit the limit of 10 files.  Note that I do not logon manually in my code as the logon parameters are all defined within the reports themselves.  The logon happens when you actually view the report.  Loading the report doesn't seem to actually log in to the DB.
    What I did was create a very simple form with a single button that creates the WinForm class which contains the Crystal Viewer.  It then loads the report, sets the ReportSource property on the CrystalReportsViewer object contained in the WInForm and shows the report. The report does show correctly, until the 10 reports limit is reached.
    The relevant code is shown below. More than I wanted to post, but i want to be as complete and unambiguous as possible. 
    This code displays the same behavior as my earlier post (after 10 reports we are unable to create another connection to the DB).
    // Initial Form that simply has a button
      public partial class SlectReport : form
            public SelectReport()
                InitializeComponent();
            private void button1_Click(object sender, EventArgs e)
                ReportDocument rd = new ReportDocument();
                ReportForm report = new ReportForm();
                try
                    rd.Load(@"Test.rpt");
                    report.ReportSource = rd;
                    report.Show();
             catch (Exception ex)
                  MessageBox.Show(ex.Message);
    // The WinForm containing the Crystal Reports Viewer
        public partial class ReportForm : Form
            public ReportForm()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                this.crystalReportViewer1.RefreshReport();
                this.FormClosed += new FormClosedEventHandler(ReportForm_FormClosed);
            void ReportForm_FormClosed(object sender, FormClosedEventArgs e)
                ReportDocument rd;
                rd = (ReportDocument)crystalReportViewer1.ReportSource;
                rd.Close();
                rd.Dispose();
            public object ReportSource
                set { crystalReportViewer1.ReportSource = value; }
    Again, any guidance would be greatly appreciated. 

  • Database connection getting stuked

    Hi,
    I am using oracle 9i R2 on Windows XP. I am in big trouble. Most of the time while getting connection to database, connection is stuked and finally become hung. I have checked service is alread started for Listener & Database. If I manually stop & start that both service, sometimes it is OK and able to get the connection. But sometime manually restart PC then get the connection.
    Please help me what can I do ....
    Thanks
    Niloy

    Hi,
    Right now I am trying to get connection but stuked. Alert log message is as follows :
    Fri Mar 18 12:29:47 2011
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Fri Mar 18 12:29:52 2011
    alter database mount exclusive
    Fri Mar 18 12:29:59 2011
    Successful mount of redo thread 1, with mount id 3059996737.
    Fri Mar 18 12:29:59 2011
    Database mounted in Exclusive Mode.
    Completed: alter database mount exclusive
    Fri Mar 18 12:30:00 2011
    alter database open
    Fri Mar 18 12:30:05 2011
    Beginning crash recovery of 1 threads
    Fri Mar 18 12:30:06 2011
    Started first pass scan
    Fri Mar 18 12:30:13 2011
    Completed first pass scan
    3512 redo blocks read, 67 data blocks need recovery
    Fri Mar 18 12:30:14 2011
    Started recovery at
    Thread 1: logseq 18, block 7203, scn 0.0
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 18 Reading mem 0
    Mem# 0 errs 0: E:\ORACLE\ORADATA\SUPPORT\REDO02.LOG
    Fri Mar 18 12:30:18 2011
    Ended recovery at
    Thread 1: logseq 18, block 10715, scn 0.49318939
    67 data blocks read, 67 data blocks written, 3512 redo blocks read
    Crash recovery completed successfully
    Fri Mar 18 12:30:30 2011
    Thread 1 advanced to log sequence 19
    Thread 1 opened at log sequence 19
    Current log# 3 seq# 19 mem# 0: E:\ORACLE\ORADATA\SUPPORT\REDO03.LOG
    Successful open of redo thread 1.
    Fri Mar 18 12:30:32 2011
    SMON: enabling cache recovery
    Fri Mar 18 12:30:49 2011
    Undo Segment 1 Onlined
    Undo Segment 2 Onlined
    Undo Segment 3 Onlined
    Undo Segment 4 Onlined
    Undo Segment 5 Onlined
    Undo Segment 6 Onlined
    Undo Segment 7 Onlined
    Undo Segment 8 Onlined
    Undo Segment 9 Onlined
    Undo Segment 10 Onlined
    Successfully onlined Undo Tablespace 1.
    Fri Mar 18 12:30:49 2011
    SMON: enabling tx recovery
    Fri Mar 18 12:30:49 2011
    Database Characterset is WE8MSWIN1252
    Fri Mar 18 12:31:01 2011
    replication_dependency_tracking turned off (no async multimaster replication found)
    Completed: alter database open
    Please Check ...
    Thanks
    Niloy

  • Creating connection pool on Sun Application Server 8.1

    Hi All,
    I am trying to create a connection pool for my MySql database on Sun Application Server(Version 8.1) using 'asadmin'. I am also able to create the connection pool successfully but when i am trying to ping the connection pool, it is giving me the java.net.UnknownHostException. The command I am using for creating the connection pool is as follows:
    create-jdbc-connection-pool user admin password adminadmin host localhost port 4849 datasourceclassname com.mysql.jdbc.jdbc2.optional.MySqlConnectionPoolDataSource restype javax.sql.XADatasource --property User=root:Password=admin:SelectMethod=Cursor:DatabaseName=testdb:serverName=\"localhost\":portNumber=3306 MyConnectionPool
    My database and the application server are running on the same machine.
    Has anyone come across such a problem? Any help would be highly appriciated.
    Thanks in Advance,
    Anurag.

    hi Anurag,
    Check the properties in the jdbc-connection-pool tag and make sure that the values are populated correctly. You can also try specifying the actual hostname or IP address of the machine instead of localhost and see if that works.
    Cheers,
    Vasanth

  • OEM is not getting started after windows server name changed

    Hello DBAs
    Recently I installed Oracle database 10g on my a windows machine. It was working fine. Integrated OEM was also working fine.
    But now I have changed the machine name. Now Oracle Database has come up after updating the listener.ora & tnsnames.ora files with new server name. But OEM page is not getting open now. I tried after updating the emd.properties and other related file on ORACLE_HOME\sysman folder with the new server name. But no luck.
    In windows services one service named "OracleDBConsoleDbname" is not getting started, which could be the issue.
    Can someone please guide me what can be done to fix this problem.
    Thanks
    -Naveen

    This problem will happen when either changing the computer name or changing the domain name that the server belongs to.
    First, verify that the new computer name contains DNS compatible characters - no spaces or underscore ( _ ) characters, for instance. Next, you will need to recreate the Enterprise Manager Database Control repository. Directions can be found on this page under the heading of "6.2.8.3 Using EMCA After Changing the Database Host Name or IP Address":
    http://download.oracle.com/docs/cd/E11882_01/install.112/e10818/srvpool.htm#CHDEGDIJ
    The above directions should work as shown with Oracle 10g R2 - and possibly 10g R1 also.
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Qosmio X500: Lan/Internet connection get lost after period of time

    Hi all,.
    I got the qosmio x500 for about half a year now...
    I got this problem where after about 5 hours or less the lan/internet connection get lost.
    I disabled the wireless connection and is using only the wired connnection now.
    When it get disconnected... all devices seems to work seemlessly, no problem can be found. I checked the win7 network adaptor --and it seems to be connected properly.
    I haven't got a slightest idea how to fix that.... Only a reset of the system and reloading the os results with a valid connection.
    It is even stranger,. When using it for a piriod of time (listeding to audio streams from the web)... when getting back to the machine the audio connection seems to work properly.... but when trying to access other sites, or other machines in the homegroup, or network (under explorer). It result faulty.
    Please guide me somehow how to fix the issue, it is bugging me a lot (all these resets to the machine probably doesn't do it any good as well).
    thanks in advance,.

    Hi,
    It could be the energy saving feature of your network card.
    Right click Network Icon on the status bar, choose 'Open Network Center and Sharing', Click on 'Connection', Click on 'Properties' (low left button), you'll see the tab with your Network Properties. Click 'Configure' (Upper right button), choose 'Power Management' (last right tab).
    Uncheck 'Allow computer to shut down this device to save energy'. Probably your problem will now be solved.
    If the names I write aren't exactly right, I'm on a French language computer so my translations can be slightly wrong.
    Bye,
    Ton
    Message was edited by: Tonio78370

Maybe you are looking for

  • Assigning variable value to another variable

    I want to assign value from one variable with type DATETIME to another variable which has type STRING. E.G: I need to convert this variable P_CreatedDate of type DATETIME to STRING variable CreatedDate. Can someone help me in C# script. Im using SSIS

  • Several document in one window

    Hi, I would like to open several PDF files in 1 acrobat window(acrobat 9 standard 9.0.0) Is it possible like the old versions? Thanks

  • DNL_CUST_PROD1 SYFAIL Status

    Hi all, I executed R3AS txn for DNL_CUST_PROD1 but in SMQ2 txn I found message error "Function modul doesn't exist orthere was EXCEPTION". I found Function Modules which generate this message, for example TRFC_QIN_ACTIVATE Function Module. I executed

  • Need to reinstall photoshop 8

    I need to have my initail installation of Photoshop 8 UNauthorized so I can reinstall following my computer cleanup.

  • Empty confirmation emails

    I just realized 3 (!!!) empty saved emails. These emails were sent Sept. 1st and contained confirmations for a flight booking. Now the email is still in my folder but without content! Can anyone explain this for me? How can I retrieve the confirmatio