Keep alive sybase database connection

Hi,
How we can keep connections alive. In our application we are using java as frond-end and making connection to sybase database server using jconnect. We are firing big queries which took generally more than two hours to run. But firewall drops the connection which are ideal for more than 1 hour.
So, is there any way out to keep those connections alive.
Thanks in advance.

Anup_Agr wrote:
Hi,
How we can keep connections alive. In our application we are using java as frond-end and making connection to sybase database server using jconnect. We are firing big queries which took generally more than two hours to run. But firewall drops the connection which are ideal for more than 1 hour.
So, is there any way out to keep those connections alive.Yes but that would be a poor solution.
You shouldn't be attempting to run a job that takes that long. Googling certainly suggests that Sybase supports scheduled jobs.
That suggests the following
1. Create a job queue (table)
2. Create a scheduled task to process tasks in the job queue.
3. Modify your app to put a task in the job queue.
4. Modify your app to query for a complete job at some reasonable interval (like minutes.)
And you might look further at the design and requirements for that matter. For example there is no point in running a 2 hour job 15 times a day that returns the same results because 15 people want the same results. Instead run the job once at midnight and keep the results and return those each time for the 15 requests.
Even if the jobs are different sometimes the data can be munged in a nightly process to make it more efficient. For example create a summary for each account. Then a sales report for a specific sale rep just collects the existing summaries rather than summerizing it each time.

Similar Messages

  • Where does Omniportlet  keep it's database connection information?

    Where in the infrastructure database does Omniportlet keep the database connections it asks for when setting up an SQL query? Occasionally we clone our production portal into our development portal and I'd like to programatically change what SID my omniportlet connections are pointing at in Dev.

    I'm looking for the same thing, did you ever get an answer?

  • Keep-alive message bridge connection

    Hi,
    I have setup messaging bridge between WLS 10.3.0.0 and a JBoss Messaging queque, after about 4 hours of inactivity in a queue bridge was disconneted, is there any way to configure keep-alive connection in WLS bridge ?
    Thanks,
    Lukasz

    You can try to set the IdleTimeMaximum setting on your bridge configuration to a very large number. It specifies the maximum amount of time, in seconds, that a messaging bridge instance remains idle.
    In “asynchronous” mode, this is the longest amount of time a messaging bridge instance stays idle before it checks the sanity of its connection to the source. In “synchronous” mode, this is the amount of time the messaging bridge can block on a receive call if no transaction is involved.
    -Dongbo

  • Sybase Database connection problem

    Hi!!
    I am trying to connect to Sybase datbase which is on my local disk by followin code...during the execution I am getting the run time error :java.sql.SQLException:JZ006: caught IOException:java.net.ConnectException :Connection refused : connect
    the name of computer is compaq1 and I am confused about the port number..so anybody can please help me regarding which port i should use or atleast where can i find it
    import java.sql.*;
    //import jconnect4_2.classes.com.sybase.jdbc.*;
    public class myConnection {
    public static void main( String[] args ) {
    try {
              System.out.println("Abcd0");
    // Using Sybase jConnect 4.2
    Class.forName("com.sybase.jdbc.SybDriver");
    // Using Sybase jConnect 5.2
    //Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    System.out.println("Abcd");
    Connection conn = DriverManager.getConnection("jdbc:sybase:Tds:compaq1:3306", "dba", "sql");
    Statement stmt = conn.createStatement( );
    /*ResultSet rs = stmt.executeQuery( "SELECT * FROM ");
    while ( rs.next( ) ) {
    System.out.println( rs.getInt( 1 ) );
    } catch ( Exception e ) {
    System.out.println( "An exception occurred."+e );
    } // end of main
    } // end of MyConnection class

    It sounds like you're running a Sybase Adaptive Server Anywhere server on compaq1. If this is the case, then try this:
    import java.sql.*;
    public class myConnection {
    public static void main( String[] args ) {
    try {
    String url = "jdbc:sybase:Tds:compaq1:2638";
    String uid = "dba";
    String pwd = "sql";
    Class.forName("com.sybase.jdbc.SybDriver");
    Connection conn = DriverManager.getConnection(url,uid,pwd);
    Statement stmt = conn.createStatement( );
    ResultSet rs = stmt.executeQuery( "SELECT * FROM SOME_TABLE");
    int rowInt = 0;
    while ( rs.next( ) ) {
    System.out.println("Row # "+rowInt );
    ++rowInt;
    } catch ( Exception e ) {
    System.out.println( "An exception occurred."+e );
    } // end of main
    } // end of MyConnection class
    --- If you get any errors, it is probably in the url String because you will require an IP address where we put "compaq1". If you are running the server on the same machine that you are executing the code, then write this instead: --
    String url = "jdbc:sybase:Tds:127.0.0.1:2638";

  • Sybase Database connection Issues

    Hi,
    I am new to Java programming and am trying to connect to sybase using jdbc.I want to know the following details:
    1) How can i get the driver information?
    2) How can i get the DB information? (The URL format with port,ip address, etc.,) I have the program and syntax, but i am not able to get these 2 info.
    Thanks in advance for your help.
    Selvi.

    To be honest I have not worked with Sybase.
    There should be an explanation on how to install and configure the Sybase driver in the zip file.
    Your problem is most likely a classpath problem.
    For example with the MySQL driver I had to unzip the files and copy the mysql-connector-java-3.0.6-stable-bin.jar file to the java installation directory C:\j2sdk1.4.1_02\jre\lib\ext.
    rykk

  • Keep Alive SMTP connection

    Hi,
    Is there any way to keep alive a SMTP connection forever using JavaMail? I know being a TCP connection, the connection will be broken if no data is exchanged for specific time. What if NOOP command is send to SMTP server as a heart beat. Can anybody suggest how this can be accomplished using JavaMail?
    Thanks,
    Atul

    You can call the isConnected method, but your server isn't going to like you if you
    keep a connection open even though you're not using it.

  • Sybase JDBC Connection - OWB11gr2 Issue

    Hi All,
    We are uning OWB11gr2 on 64-bit linux box. Database is Oracle 11.1.0.6. We are trying to connect to Sybase database is ASA 9.0.
    Added the JAR files "jconn2.jar" and "jodbc.jar" under OWB_HOME/owb/lib/ext.
    Restarted Control Centre Agent and OWB client.
    Created a new platform for Sybase database connection.
    Under location Details -
    I entered Username and Password.
    Port Number of the database.
    I kept Schema option Blank.
    Driver Class - com.sybase.jdbc2.jdbc.SysDriver
    Url - jdbc:sybase:Tds:machine-name:port-number/databasename
    When I hit the test connection button it returns as Successful.
    But When i try to import database objects , I cannot see any database objects.
    After testing connection(successfully) when i hit the browse button to get schema names i get the following error -
    Failed: java.sql.SQLException:jZ0sj:Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jconnect documentation.
    What could be the issue ?? I am not sure whether this problem is related to OWB or Sybase.
    When I use the ODBC connection on windows box with same username and password for the same database i see few views and tables.
    Any help is appreciated.
    Regards,
    Samurai.

    Hi David,
    I just edited the script. Since there are no tables( user just has read rights over few views) for the user I am trying to run , i modified the script to run against the views.
    The following is the output for the view which had the text column -
    DataType : varchar Column : nfsExportName Table : nfsExportView
    DataType : varchar Column : nfsExportActualPath Table : nfsExportView
    DataType : varchar Column : nfsExportAnonymousUserID Table : nfsExportView
    DataType : varchar Column : nfsExportNoSUID Table : nfsExportView
    DataType : long varchar Column : nfsExportReadOnlyAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportReadWriteAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportRootAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportSecurity Table : nfsExportView
    DataType : unsigned int Column : nfsExportHostId Table : nfsExportView
    DataType : unsigned int Column : nfsExportVolId Table : nfsExportView
    DataType : unsigned int Column : nfsExportQtreeId Table : nfsExportView
    If you need the entire output please let me know , i will paste it.
    It looks like text is subsititued by long varchar. What can be done to overcome this situation ?
    Thanks,
    Samurai.

  • I want JDBC driver for Sybase database...

    Hi All:
    Can any one help me with JDBC driver for Sybase database ? I have surfed the net, but not able to find a Sybase driver that works correctly.
    Also, can you please let me know if anything special needs to be done in case of Sybase database connection, apart from what we normally do to connect to a database like "Oracle" or "MS SQL Server".
    Thanks and Regards,

    And why do you think someone using Oracle might know the Competitor's drivers?
    Having said this: you should give jTDS a try:
    http://jtds.sourceforge.net
    Also, can you please let me know if anything special
    needs to be done in case of Sybase database
    connection, apart from what we normally do to connect
    to a database like "Oracle" or "MS SQL Server".It's all in the docs of the driver

  • Keep database connection alive

    I'm developing a windows desktop (standalone) application which runs as an endless loop.
    Once the application started, a database connection is created (java.sql.Connection) and from now on used to read data from the database.
    Connection is created like this:
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = DriverManager.getConnection(connectionUrl);
    Does the connection will be kept alive forever?
    If NOT, what to change in my program?
    Edited by: user10511764 on Jun 26, 2011 4:47 AM

    If you are going to be continually using your JDBC connection, then you don't
    really need to go to the added complexity of using pooling. Just use the connection
    indefinitely, and unless there is some DBMS or firewall configured lifetime limit,
    barring error, the connection should be fine indefinitely. If you get an occasional
    failure, just make a new connection. A pool won't do any better, and if/when it
    makes a new connection for you, you will have to re-obtain all your statements
    etc, just as if you remade your own connection...

  • Why handle count keeps increasing with active database connection?

    Hi,
    I have an application in which windows handle count keeps increasing..I did not find any reason why this is happening? could you please help me out? below is the code:
    I have also tried to close the database connection but not work.
    using System;
    using System.IO;
    using System.Data.Common;
    using System.Windows.Forms;
    using System.Threading;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    namespace SampleAppWithDbConnection
        class Program
            private static SqlConnection _oCon = null;
            public static SqlConnection oCon
                get
                    if (_oCon == null)
                        _oCon = new SqlConnection();
                    return _oCon;
                set
                    _oCon = value;
            public static int gIntervalo = 1000;
            [STAThread]
            public static void Main(string[] args)
                var gStrCon = ConfigurationManager.ConnectionStrings["Sql-ConnString-Token"].ToString();
                fConectaBase(oCon, gStrCon);
                fProcessa();
            private static void fProcessa()
                try
                    do
                        Thread.Sleep(gIntervalo);
                    while (true);
                catch (Exception)
            internal static bool fConectaBase(SqlConnection pCon, string pConnectionString = "")
                if (pCon.State != ConnectionState.Closed)
                    pCon.Close();
                pCon.ConnectionString = (pConnectionString == "") ? pCon.ConnectionString : pConnectionString;
                pCon.Open();
                return true;

    Hello Pramod,
    >>I have an application in which windows handle count keeps increasing
    If the windows handle(I assume you mean the object handles in Taks Manager bar) keeps increasing, it should means that the project keeps allocating new objects and does not close/dispose them. I notice that you are using ADO.NET API, I am wondering how you
    manage these connections, do you close/dispose the connection immediately after using them? If not, please do it and it is recommended.
    Please check if you call method to close/dispose connections in a finalize method, if so, this is not recommended since in a finalize method, these connections object would still keep alive and does not return to the connection pool, and for new connection
    request, application might increase more connection number to meet the request.
    You could make a test to call GC.Collect() to test if there is a memory leak, if it has, you could check this
    article, or it could be also a handle leak, this
    blog might be helpful for it.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I connect to a Sybase database from Crystal?

    I have never tried to connect to Sybase data before and I am having difficulty figuring out how.  I am using CR XIR2 from my desktop and trying to connect to what I am told is a Sybase database (voicemail system).  I believe Sybase vers 12.5, but not entirely sure yet.  Postings on the forum and other sites appear to be directed toward sdk developers or other development and were not helpful.  Most of what I am reading points toward an Adaptive Server® Enterprise (ASE) ODBC Driver by Sybase.  However, I was told that was not true but the person promising to forward the information never came through. Are there additional drivers I need to install or can someone point me in the right direction?  Thanks!

    Hi Wendy,
    32-bit NATIVE DRIVERS
    CRDB_P2SSYB10.DLL is the native driver for Sybase ASE.  It is used with Sybase ASE 12.5
    NOTE:  The native driver for Sybase ASE cannot be used to connect to Sybase ASA (Adaptive Server Anywhere) or Sybase ASIQ (Adaptive Server IQ).  Sybase ASA and Sybase ASIQ include their own ODBC drivers as part of their installation package.  These drivers provide the only means of connecting to Sybase ASA and Sybase ASIQ databases.
    I hope this helps you.
    Regards,
    Prashant
    Edited by: Prashant Saduwale on Oct 10, 2008 4:19 PM

  • How to connect sybase database in JDeveloper 11g using JConnect

    Hi
    How to connect sybase database in JDeveloper 11g using JConnect? Please help.

    User,
    It would help if you explained Sybase Jconnect instead of leaving us to google.
    At any rate, it appears you need to create a library definition in JDeveloper, add the appropriate JConnect JAR files to the library's classpath, and then add the library to your project.
    John

  • Oracle Gateway Not Connecting to Sybase database

    Hi,
    I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took:
    The oracle gateway and oracle database are in the same server while Sybase is on a separate unix box.
    1. create an initdg4sybs.ora file
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    HS_FDS_CONNECT_INFO=[999.99.108.99]:4527/common ## IP address of sybase server
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    2. create a listener on the oracle gateway home
    # listener.ora Network Configuration File: /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node A)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.24)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node B)
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    3. create tnsnames.ora in oracle database home
    dg4sybs =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)) #IP address of Node A
    (CONNECT_DATA =
    (SERVER = DEDICATED) #added for single node test
    (SID = dg4sybs)
    (HS=OK)
    4. create database link
    create database link dg4sybs connect to "user" identified by "password" using 'dg4sybs'
    5. when testing the connection; i'm getting below error message. tried all the setup based my research and couldn't make it work.
    SQL> select * from dual@dg4sybs
    2 /
    select * from dual@dg4sybs
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7427
    Session ID: 495 Serial number: 787
    I perform above settings on a standalone database running in windows and successfully connect to the sybase. In UNIX setup, been unsuccessful. Can someone please help.
    Also, below is the trace file error message:
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.747
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.745
    Version 11.2.0.1.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    ODBCINST set to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/dg4sybs.loc"
    RC=-1 from HOSGIP for "LD_LIBRARY_PATH_64"
    Setting LD_LIBRARY_PATH_64 to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_ICU" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libHGicu23.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_INST" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbcinst.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbc.so"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using ro as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    SQL text from hgopars, id=1, len=20 ...
    00: 53454C45 4354202A 2046524F 4D202244 [SELECT * FROM "D]
    10: 55414C22 [UAL"]
    hgopars, line 526: calling SQLNumResultCols got sqlstate 42S02
    SQL text from hgopars, id=2, len=57 ...
    00: 53454C45 43542027 58272046 524F4D20 [SELECT 'X' FROM ]
    10: 2264626F 222E2273 79737573 65727322 ["dbo"."sysusers"]
    20: 20413120 57484552 45204131 2E226E61 [ A1 WHERE A1."na]
    30: 6D65223D 2764626F 27 [me"='dbo']
    Deferred open until first fetch.
    HS Agent received unexpected RPC disconnect
    Network error 1003:  NCR-01003: NCRS: Read error.
    Edited by: gonzroman on Oct 18, 2012 11:03 AM

    -=-=-=-=-=- tnsnames.ora on the UNIX side
    GTW_C100_COMN =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) #IP address of jrc1suvip01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) #IP address of jrc1sudb01a
    (CONNECT_DATA =
    (SERVER = DEDICATED) # added for single configuration
    (SID = dg4sybs_comn_c100)
    (HS=OK)
    -=-=-=-=-=- listener.ora of the GATEWAY
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)(IP = FIRST)) #IP address of jrc1suvip01a
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)(IP = FIRST)) #IP address of jrc1sudb01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = jrc1suvip01a)(PORT = 1543))
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    (SID_DESC=
    (SID_NAME=dg4sybs_comn_c100)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    -=-=-=-=- initdg4sybs_comn_c100.ora parameter
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    #HS_FDS_CONNECT_INFO=[glb0pod29.aexeo.citco.com]:4100/common
    HS_FDS_CONNECT_INFO=[209.87.108.99]:4527/common
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    -=-=-=-=- gateway listener status
    jrc1sudb01a:/u03/app/oracle/gateway/11.2/dg4sybs/admin $ lsnrctl status LISTENER_DG4SYSBS
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 20-OCT-2012 13:09:05
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1543)))
    STATUS of the LISTENER
    Alias LISTENER_DG4SYSBS
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 18-OCT-2012 13:16:24
    Uptime 1 days 23 hr. 52 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    Listener Log File /u03/app/oracle/gateway/11.2/log/diag/tnslsnr/jrc1sudb01a/listener_dg4sysbs/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.26)(PORT=1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.24)(PORT=1543)))
    Services Summary...
    Service "dg4sybs" has 1 instance(s).
    Instance "dg4sybs", status UNKNOWN, has 1 handler(s) for this service...
    Service "dg4sybs_comn_c100" has 1 instance(s).
    Instance "dg4sybs_comn_c100", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    -=-=-=-=-=- tnsping output
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping dg4sybs
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:28
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs)) (HS=OK))
    OK (10 msec)
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping GTW_C100_COMN
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:35
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs_comn_c100)) (HS=OK))
    OK (0 msec)

  • Weblogic proxy plugin closes keep-alive connections to clients randomly

    In short we have following arhitecture:
    clients ---> wl proxy plugin 1 ----> weblogic 1
    clients ---> wl proxy plugin 2 ----> weblogic 2
    Beacuse of the application/installation specific requirements, we are not using failover, one wl proxy always forwards requests to one weblogic (simple configuration).
    Application is TR-069 protocol based (SOAP over HTTP) so it very much relays on persistence TCP connections (Connection: keep-alive). This TCP persistence has to work correctly in order that TR-069 messages are exchanged in required order, otherwise we have a error on application layer.
    Here and there we've noticed applications errors which suggest that we have some problems in TCP connection between the client and the weblogic server. After sniffing, we've noticed that weblogic proxy plugin (Apache) randomly, or because of some other reason we do not know, decides to close TCP connection to client, even app on weblogic did not request so ???
    As a result, client opens new connection to the server with new TR-069 session and it gets bounced beacuse it allready has one open on weblogic server.
    We've sniffed, traced everything we could, we were searching for patterns in time, etc... but we can not find the reason why proxy plugin decides to close the connection to the client (not to the weblogic server).
    Trace (replaced sensitive information):
    Thu Apr 29 15:05:50 2010 <958012725463463784> URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 200 OK]
    Thu Apr 29 15:05:50 2010 <958012725463463784> URL::parseHeaders: StatusLine set to [200 OK]
    Thu Apr 29 15:05:50 2010 <958012725463463784> parsed all headers OK
    Thu Apr 29 15:05:50 2010 <958012725463463784> sendResponse() : r->status = '200'
    Thu Apr 29 15:05:50 2010 <958012725463463784> canRecycle: conn=1 status=200 isKA=1 clen=545 isCTE=0
    Thu Apr 29 15:05:50 2010 <958012725463463784> closeConn: pooling for '$IP$/$PORT$'
    Thu Apr 29 15:05:50 2010 <958012725463463784> request [$URL$] processed successfully..................
    !!!! Now it closes the TCP connection and inserts "Connection: close" HTTP header !!!
    WL proxy plugin conf params are:
    WebLogicCluster $IP$:$PORT$
    DynamicServerList OFF
    KeepAliveTimeout 90
    MaxKeepAliveRequests 0
    KeepAliveSecs 55
    Apache worker configuration is:
    <IfModule mpm_worker_module>
    PidFile var/run/httpd-worker.pid
    LockFile var/run/accept-worker.lock
    StartServers 2
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadLimit 200
    ThreadsPerChild 200
    MaxClients 2000
    MaxRequestsPerChild 0
    AcceptMutex pthread
    </IfModule>
    Why weblogic proxy plugin ignores Keep-alive directive and decides to close connection to the client by itself?
    Any help?

    If a WebLogic Server instance listed in either the WebLogicCluster parameter or a dynamic cluster list returned from WebLogic Server fails, the failed server is marked as "bad" and the plug-in attempts to connect to the next server in the list.
    MaxSkipTime sets the amount of time after which the plug-in will retry the server marked as "bad." The plug-in attempts to connect to a new server in the list each time a unique request is received (that is, a request without a cookie).
    Note: The MaxSkips parameter has been deprecated as the MaxSkipTime parameter.
    See also here: http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/plugins/plugin_params.html
    You said the problem arises under significant load. Maybe, it is wise to tune the number file descriptor's on your operating system. HTTP connections are nothing more than TCP sockets on the operating system. All modern operating systems treat sockets as a specialized form of file access and use data structures called file descriptors to track open sockets and files for an operating system process. To control resource usage for processes on the machine, the operating system restricts the number of open file descriptors per process. You should be aware that all TCP connections that have been gracefully closed by an application will go into what is known as the TIME_WAIT state before being discarded by the operating system.
    On most unix systems you can use netstat -a | grep TIME_WAIT | wc -l to detemine the number of socket in time_wait state. You have to check with your system adminstrator how to tune the tcp_time_wait_interval. On solaris you can use: /usr/sbin/ndd -set /dev/tcp tcp_time_wait_interval 60000

  • Sybase Connection Error - cannot establish database connection

    BO Data Services Tool -> Creation of new Data Store -> Sybase ASE
    When I tried to create a sybase datastore(New connection), I've got this error message. But I am able to connect to sybase database with client application with same connection parameter. I appreciate if someone come across same issue.
    ERROR MESSAGE
    *WARNING: Cannot establish database connecton.
    u2018Sybase connecton error: <Sybase ASE Server message number <1640> State <2> Severity <16> From Server <tstlS03>: Message Text is:
    Adaptve Server requires encrypton of the login password on the network.
    Sybase ASE Server message number <4002> State <1> Severity <14> From Server <tstlSO3>: Message Text is: Login failed.
    Sybase CS Library message number <6717S468> Severity <4>: Message Text is: ct_connectO: protocol specific layer: external error: The attempt to connect to the server failed.>.u2019 lODI- 1111341)

    I tried to create repositories for sybase, it failed.  But it succeeded when created datastore.  The procedures's as follow:
    1. Create ODBC for this sybase connection, and it should display "Connection successful" when you click "Test connection".
       (you need to specify several parameters like user id & password, server,database name and file, etc.)
    2. Create datastore by using ODBC connection.

Maybe you are looking for