WLS 5.1 with SP11 and Sybase connection pools

I had posted back in January about an issue with WLS 6.1 and Sybase connection
pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1 with
SP 11. I have backed out SP11, but I'd take advantage of the clustering enhancements
in this SP. Any suggestions? Would it be possible to get another one off patch
for SP11?

Could you fill me in as to what problem you were having. We are also using
Sybase with WLS5.1 and experience intermittent truncating of resultsets.
Regards,
Garvin LeClaire
[email protected]
"Pete Auriemma" <[email protected]> wrote in message
news:3c8669ee$[email protected]..
>
I had posted back in January about an issue with WLS 6.1 and Sybaseconnection
pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1with
SP 11. I have backed out SP11, but I'd take advantage of the clusteringenhancements
in this SP. Any suggestions? Would it be possible to get another one offpatch
for SP11?

Similar Messages

  • I need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    i need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    I would suggest you visit an Apple dealer, preferably an Apple Store if there's one in your city, and ask for assistance in determining what you need. The questions and issues you bring up are rather complex to address in a technical support forum and would be better addressed in person where you and the salesperson can ask questions back and forth to arrive at the optimal setup.
    Regards.

  • All of a sudden my personal hot spot isn't working. It only comes up with Bluetooth and USB connection options. Why would that be?

    All of a sudden my personal hot spot isn't working. It only comes up with Bluetooth and USB connection options. Why would that be?

    No I can not turn on the wifi either. I can get on the web on my phone and Facebook etc on phone but no wifi or hotspot

  • How Transaction Manager work with Resource Manager, like Connection pool?

    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!

    Xin Zhuang wrote:
    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!Hi. If you configure your WLS DataSource to use keep a connection for
    the duration of a tx, it will do that, and in any case there can be
    no deadlock however many connections operate for a given XA transaction.
    Here is the best coding form for DAOs or any other user-written code
    for using WebLogic DataSources. This is important for two reasons:
    1 - Thread-safety is maintained as long as the connection is a
    method-level object.
    2 - It is crucial to notify WebLogic that you are done with a connection
    ASAP, by your calling close() on it. We will then put it back in the
    pool, or keep it under the covers for your next request if it's in a
    transaction etc. The pool is optimized for quick get-use-close scenarios.
    public void one_of_my_main_JDBC_Methods()
    Connection con=null; // Must be a method level object for thread-safety
    // It will be closed by the end of the method.
    try {
    con = myDataSource.getConnection(); // Get the connection in the try
    // block, directly from the WebLogic
    // datasource
    // do all the JDBC within this try block. You can pass the
    // connection to subordinate methods, but not to anywhere
    // that thinks it can use the connection later.
    rs.close(); // close any result set asap
    stmt.close(); // then close any statement asap
    // When you're done with JDBC
    con.close(); // close the connection asap
    con = null; // nullify it so the finally knows it's done
    catch (Exception e) {
    // do whatever catch stuff you want. You don't
    // need a catch block if you don't want one...
    finally {
    // It is important to close a JDBC connection ASAP when it's not needed.
    // without fail, and regardless of exit path. Do everything in your
    // finally block in it's own try-catch-ignore so everything is done.
    try { if (con != null) con.close();} catch (Exception ignore){}
    return ret;
    }

  • Unable to set-up sybase connection pool for wls6.1

    Hi All,
    I am trying to set-up sybase connection pool in wls6.1 using the supplied jConnect driver (don't know the version of the driver). In diff places I am seeing diff opinions about the settings. It is really frustrating because BEA doc shies away from documenting just the sybase details although it provides details about Oracle, informix and SQL Server.
    I just want to know these
    1. the xml string for the connection pool
    2. which config file should have it (web.xml or config.xml or something else?)
    thanks a ton in advance
    ~rakesh

    Hi,
    I've already solve the problem. I did the following:
    set the Url to be: jdbc:oracle:thin:@hostname:port:SID
    set username
    set password
    add oracle.jdbc.drivers.OracleDriver into the JVM options -Djdbc.drivers
    restart the server
    test the connection
    it works :)

  • Application Server and Driver  Connection Pool

    Hi,
    What is the difference between Connection Pool implemented by the Driver and the Connection Pool implemented by the Application Server?
    If i am using a JDBC3.0 compliant driver,i can use PooledDataSource to get a Conenction from the Connection pool. But, even otherwise, the application server (JBOSS) would implement a Connection Pooling mechanism. i.e even from a basic Datasource, i will get the Connection Pool.
    1. Can i do away with PooledDataSource of Driver when using an application server?
    2. If i have to use both, then what is the criterion for optimal usage?
    Can someone answer this please...
    If there is some reference available on this topic, please let me know.
    Thanks in Advance

    Connection pooling is good that the connection object that have been created can be used later by other client.
    Application server is better since server always have more resources( such as memory, processor speed) in order to perform the task.
    And this may improve centralization, all connection object managed by a single centralized server.
    Pls correct me if i am wrong.

  • SAP and SYBASE Connection

    hi all
    we are trying to make connection between SAP R/3 and Sybase Unwired plate form.. we have deployed data from R/3 to Sybase using Function Module but still we are unable to update the data of R/3 from Sybase...
    Can any One help Us how the data can be updated...
    We want to update the Header data of a Notification For this we have code a Function module in SAP R/3..
    I m giving U the code Of Function module please chk that code and reply us how the header data can updated. in my Function module I m gettin Some Problem
    The code are as Follows....
    Import  Tab  :-
    Notif   Type     Qmnum    ( chk Bos Pass Value)
    Export Tab  :--
    TT_data   type    Znotif_data  ( whr ZNotif_data is a table type and having data element with name Qmnum Qmart priok ernam Etc...)
    Source Code  :---
    FUNCTION Z_NOTIF_GET_DETAIL1.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(NOTIF) TYPE  QMNUM
    *"  EXPORTING
    *"     VALUE(TT_DATA) TYPE  ZTT_NOTIF
    select qmnum
           qmart
           priok
           ernam
           qmdat
           from qmel
           into table tt_data
           up to 1000 rows.
    data : it_tlines like tline occurs 0 with header line.
    data : it_text1 like thead occurs 0 with header line.
    data : x_header type thead.
          x_header-tdobject = 'feature'.
          x_header-tdname  = '99999996020000'.
          x_header-tdid    = 'head'.
          x_header-tdspras = 'D'.
          loop at it_tlines.
          it_tlines-tdformat = '*'.
          it_tlines-tdline = it_text1-tdtxtlines.
          append it_tlines.
          endloop.
          CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
    *         CLIENT                = SY-MANDT
              HEADER                = x_header
             INSERT                = ' '
             SAVEMODE_DIRECT       = 'X'
    *         OWNER_SPECIFIED       = ' '
    *         LOCAL_CAT             = ' '
    *       IMPORTING
    *         FUNCTION              =
    *         NEWHEADER             =
            TABLES
              LINES                 = it_tlines
           EXCEPTIONS
             ID                    = 1
             LANGUAGE              = 2
             NAME                  = 3
             OBJECT                = 4
             OTHERS                = 5
          IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          commit work and wait.
          update stxh set tdobject = 'D'
          where tdobject = notif.
    *UPDATE qmel SET indtx = 'X' WHERE qmnum = notif.
            ENDIF.
    ENDFUNCTION.
    I have added the tdobject, tdname and tdid data elemnet in that table type
    please reply we need it
    Edited by: Thomas Zloch on Apr 25, 2011 2:01 PM - code tags added, exclamation marks removed

    Solved this on my own, we need to create RFC Function module and Update/Modify data query in that when we need to update data in SAP tables.
    Connection is depends on RFC Function Module.
    Sample inbuilt RFC's in SAP :
    1. MAM30_011_GETLIST
    2. MAM30_011_GETDETAIL
    3. MAM30_011_CHANGE
    Connection Property we need to maintain in SAP connection in Sybase.
    Also We need Client Details, Server Machine Name, Connection IP and User Name and Password of User by Which we can test Connection.
    Thanks
    Ram

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Problem with Oracle RAC with DRCP and persistent connections

    Hello,
    I am having a problem that has me stumped. I cannot get SCAN, and DRCP to work together nicely.
    Right now, I can connect through my scan hostname fine without connection pooling, once I enable it I start having connection time outs. I found if I specified outbound_connection_timeout in sqlnet.ora that it times the connection out to the time I set in there. If I don't set this option I get a "ORA-12170: TNS:Connect timeout occurred".
    The odd thing is I can leave connection pooling on and connect to one of my rac instances individually and it doesn't experience this problem. The only time it pops up is if I combine multiple rac instances (Through the use of SCAN or tnsnames.ora) and I enable connection pooling.
    I don't know which direction to go to even diagnose this, so any and all help is appreciated.
    Thank you.
    Edited by: Rarp on Oct 1, 2011 10:47 PM

    Hi,
    You need to detail the problem. Enable TRACE SQL*NET on the server and client using note below.
    How to Enable Oracle SQLNet Client , Server , Listener , Kerberos and External procedure Tracing from Net Manager [ID 395525.1]
    Also you can try check this note:
    11g: ORA-12170 With Combination RAC, DRCP and a Firewall [ID 953277.1]
    Hope this helps,
    Levi Pereira

  • Cannot create a sybase connection pool

    I am trying to migrate from Orion app server to Sun One appserver. Here is how I define the connection pool for orion
         <data-source class="com.evermind.sql.DriverManagerDataSource"
                                       name="TestPool"
                                       location="jdbc/rumbaDataSource"
                                       xa-location="jdbc/xa/rumbaPool"
                                       ejb-location="jdbc/rumbaPool"
                                       connection-driver="com.sybase.jdbc2.jdbc.SybXADataSource"
                                       connection-retry-interval="60"
                                       username="test"
                                       password="test"
                                       url="jdbc:sybase:Tds:3.23.24.25:20000/abc?HOSTNAME=rumba"
                                       inactivity-timeout="300"
                                       min-connections="6"
                                       max-connections="75"
         />
    This is how my connection pool appears in Sun ONE
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="false" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="com.sybase.jdbc2.jdbc.SybXADataSource" name="TestPool">
    <property value="3.23.24.25" name="serverName"/>
    <property value="20000" name="portNumber"/>
    <property value="jdbc:sybase:Tds:" name="networkProtocol"/>
    <property value="test" name="user"/>
    <property value="test" name="password"/>
    <property value="abc" name="databaseName"/>
    </jdbc-connection-pool>
    But, I am unable to make a connection using this connection pool

    Here is the exception
    SEVERE: RAR5041:Cannot get jdbc connection
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: seturl
    at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(Jdb
    cConnectionPool.java:243)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAl
    locator.java:80)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.
    java:74)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10Xa
    Allocator.java:94)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerIm
    pl.java:170)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(Jdbc
    DataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSour
    ce.java:124)
    at samples.jdbc.simple.servlet.GreeterDBLogDisplayServlet.doGet(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(St
    andardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrap
    perValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperVa
    lve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProce
    ssor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    INFO: CORE3282: stdout: - Could not interact with the database
    INFO: CORE3282: stdout: - Exception: java.sql.SQLException: com.sun.enterprise.r
    epository.J2EEResourceException
    WARNING: CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionP
    ool.createDataSource(JdbcConnectionPool.java:238)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.
    createResource(JdbcUrlAllocator.java:80)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    INFO: CORE3282: stdout: java.lang.NoSuchMethodException: seturl
    INFO: CORE3282: stdout: Closing statement...
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    INFO: CORE3282: stdout: - Could not close the statement and connection
    INFO: CORE3282: stdout: GreeterDBLogDisplayServlet is all done
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcXAConnection.
    <init>(JdbcXAConnection.java:74)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.Jdbc10XaAllocator
    .createResource(Jdbc10XaAllocator.java:94)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResource(PoolManagerImpl.java:170)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcDataSource.in
    ternalGetConnection(JdbcDataSource.java:241)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcDataSource.ge
    tConnection(JdbcDataSource.java:124)
    WARNING: CORE3283: stderr: at samples.jdbc.simple.servlet.GreeterDBLogDispl
    ayServlet.doGet(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:740)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:853)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .invokeServletService(StandardWrapperValve.java:720)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .access$000(StandardWrapperValve.java:118)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    $1.run(StandardWrapperValve.java:278)
    WARNING: CORE3283: stderr: at java.security.AccessController.doPrivileged(N
    ative Method)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .invoke(StandardWrapperValve.java:274)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContextValve
    .invoke(StandardContextValve.java:212)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.in
    voke(StandardHostValve.java:203)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProc
    essor.process(NSAPIProcessor.java:157)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebC
    ontainer.java:598)

  • Reuse of preparedstatements and the connection pool

    It seems useful (for performance reasons) to reuse a prepared statement in
    subsequent calls to the database. In WebLogic, however, after each call we
    return the Connection object to the WebLogic connection pool. A prepared
    statement is created on a specific Connection object. The next time we want
    to use the same query we get a Connection from the pool, which might be
    another instance of the Connection class. Therefor it seems impossible or at
    least dangerous to reuse the same prepared statement. Even in the case this
    would work we're indirectly using the other Connection, which we already
    returned to the pool and which could be retrieved from the pool by someone
    else. So, can't we reuse preparedstatements ?

    Hi Raja,
    Currently the only bullet-proof way to make sure that all statements are
    cached is to set the cache size to a number of possible prepared statements
    in the application.
    The only consequence of increased cache size is growing amount of
    memory required by a server instance.
    Regards,
    Slava Imeshev
    "Rajiv Jauhari" <[email protected]> wrote in message
    news:[email protected]...
    Is there an easy way to tell whether the prepared statement cache size one
    has set is
    appropriate? Some way to monitor cache hit rate or usage count (i.e., the
    actual number of statements cached) while running a load test? I'm using
    Weblogic 6.1sp3 and Oracle 8.1.7.4.
    Another way to think of this question is: is there a negative impact ifthe
    cache size is set too large?
    In the case of Oracle I believe one might run out of cursors, but is there
    any other negative consequence that you know of?
    Thanks,
    Rajiv
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Vyas wrote:
    If multiples (of the same statement) can be cached would it not result
    in too many
    prepared statements of the same type in the cache ?
    This could happen
    1. When a load test is done when all the threads start doing exactly
    the
    same work.
    Because of contention everybody gets their own statement copy(theoritically, even
    if in practice it may not exactly happen like that). In such a case
    you
    are going
    to create load on the database in terms of open cursors.Each thread will get it's own connection, and the statement cache isper-connection.
    Cursors, in Oracle's case, do need to be configured to support acache-full of
    retained statements. Alternately, the cache should be set to a smallenough size to
    require only as many cursors as the DBMS will allow per connection.
    Another issue is what happens when the cache limit is hit ?
    In the above example let's say cache limit is 50 and I am doing 50
    user
    load test.
    because of load test let's say the cache gets filled with 50 of the
    same
    statement.
    When load test moves to the next sequence of action requiring a
    diffrent
    statement
    what happens to the cache ?
    thanks
    VyasThe only way a given connection's statement cache will get a duplicatestatement
    is if some single JDBC thread required multiple copies of the samestatement. A
    multi-user test will usually just ensure that each pooled connectioncaches the
    same selection of different statements that the test user used. If thetest user
    just repeatedly makes and uses one statement, the first time they do it,the
    statement will be cached, and every subsequent repeat of the user codewill get
    the same cached statement. The cache will still have 49 empty slotswaiting for
    different statements. Currently the cache is simple-minded. It is a
    fixed
    (configurable)
    size per connection, and the first N prepared/callable statements getcached for the
    life of the pooled connection that created them. All other subsequentstatements will
    be made and closed on a per-connection-use basis. Therefore, it can bethat a startup
    or stress load that runs before standard runtime service, and which usessignificantly
    different a statement profile could populate the cache with rarely-usedwasted statements.
    If I were a customer in this circumstance, I would either prime thecaches, by determining
    which statements I wanted cached, and then running a startup class thatreserved all the
    pool connections, and made these statements on each before closing them.Alternately,
    after startup/stress I would reset the pool, and allow the runtime load
    to
    fill the cache of
    the regenerated pool.
    Joe Weinstein at B.E.A.
    thanks
    Vyas
    Joseph Weinstein <[email protected]> wrote:
    JS wrote:
    It seems useful (for performance reasons) to reuse a prepared
    statement
    in
    subsequent calls to the database. In WebLogic, however, after each
    call
    we
    return the Connection object to the WebLogic connection pool. A
    prepared
    statement is created on a specific Connection object. The next timewe
    want
    to use the same query we get a Connection from the pool, which
    might
    be
    another instance of the Connection class. Therefor it seemsimpossible
    or at
    least dangerous to reuse the same prepared statement. Even in the
    case
    this
    would work we're indirectly using the other Connection, which we
    already
    returned to the pool and which could be retrieved from the pool bysomeone
    else. So, can't we reuse preparedstatements ?We already have you covered! Weblogic caches PreparedStatements along
    with the pooled connection they came from. Every time you obtain a
    pool
    connection and run a prepareStatement() or prepareCall(), we willtransparently
    give you a previously made statement, if the SQL exactly matches, andno
    other place in the current thread stack is using that statement(multiples
    can
    be cached)
    You are correct, of course, that statements you have should only
    be
    useable
    to you while you have the connection from which they came. We have
    you
    covered
    there too. If you were to try to use any prepared statement that
    you'd
    gotten
    from
    a pool connection after you'd put the connection back into the pool,those
    statements
    would throw an exception saying that they had been made inoperable atthe
    time
    you'd closed the connection.
    Joe Weinstein at B.E.A.

  • How to setup and use connection pool in Web AS 7.0?

    Hello SDN!
    I'm developing a Web Dynpro Java application on SAP Web AS 7.0 My app using a couple of DAO classes as model instead of EJBs. These classes perform direct requests to database using JDBC drivers.
    I've read that many of web-servers use their own connection pools. So I want to know:
    1) how I can setup connection pool in SAP Web AS ?
    2) how I can call this pool in my application?
    Could you please give me some examples?
    Regards, Lev.

    hi lev,
    check this document for jco pools
    http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tips&Tricks_JCo_Programming.pdf
    ravindra

  • Problems with printer and network connectivity

    So I've been using an HP B110a photosmart wireless e-all-in-one printer that I got with my macbook pro and at the start, everything worked perfectly in terms of wireless printing, ePrint, and AirPrint. But recently, when I try to print wirelessly, it says the printer is not connected and I also can't find it on the list of nearby printers on the 'add printer' window. I also had problems with printing via ePrint but those have cleared up (I don't know what was wrong but it's fine now). Printing with AirPrint on my iPod touch has stopped working as well because the printer doesn't show up when I search for nearby printers.
    Here's what I've checked/tried so far:
    All the wireless services are enabled on my printer and my mac
    I've reset the printing system on my mac, printer settings to factory defaults
    Restarted mac/printer/iPod
    Restarted router
    Reinstalled HP printing software that came with the printer
    All software is up to date
    Wireless printing on another windows computer does work
    Setting up wireless printing using the HP install disc doesn't work
    Trying to add a new printer using the HP software disc that came with the printer is unsuccessful in locating the printer as well.
    Printing over USB is problem-free
    When I tried restarting the printer/router, I could see the printer for just a few minutes in the 'add printer' list but then it would disappear from the list and the printer would be 'not connected' so I can't print wirelessly.
    More info
    MacBook Pro (13 inch, early 2011)
    Mac OS X Lion (10.7.2)
    HP Photosmart e-All-in-One B110a
    Router is a Huawei HG556a that I got from Vodafone NZ
    Thanks in advance!

    http://support.apple.com/kb/DL907

  • Issues with iPhone and Android connecting to Lync 2010?

    Our environment currently consists of a single Lync 2010 instance, which is currently performing all roles. The current challenge I'm running into is connectivity to iOS and Android devices not wanting to cooperate. Currently, Lync is using a certificate
    issued by a local CA. The CA root certificate has been imported to the devices that are having trouble connecting, and I've done this via email import without success, as well as using the iPhone Configuration Utility. In all tested instances, an error that
    "the certificate can't be verified" is displayed that prohibits a user from establishing a connection. All domain workstations and remote users that import the root CA have no issues connecting.
    I can't seem to figure out what's going on here. Has anyone run into this? This is a quasi-test environment in my lab that I'm testing with a few other people, and as much as we've tried, can't seem to figure out the issue. Any ideas?

    To confirm that the certificate has been installed successful do you have a corporate website that is available externally that uses a certificate issued by the CA in question? If the answer is yes I would browse to that site on the phone and see if you
    get an error. The Lync mobile clients don't give you a heck of a lot of information for troubleshooting. This will rule out a certificate issue.
    Next thing would be your reverse proxy. Are you using ISA server? Test the reverse proxy rule by browsing to the Lync mobile auto discover URL - https://lyncwebexternal.domain.com/Autodiscover/AutodiscoverService.svc/root
    Assuming ISA also make sure the rule is configure correctly - 
    http://technet.microsoft.com/en-us/library/hh690011.aspx
    http://blogs.technet.com/b/nexthop/archive/2012/11/19/configuring-reverse-proxy-for-lync-server-2010-mobility.aspx
    Let me know what the results are of those tests.
    Andrew Morpeth
    Lync Server Specialist - Auckland, NZ
    Check out my blog

  • How to use sql request with Jdev and database connection

    Hello,
    I have a login page with simple username and password inputsecret text and a button validate! I would like, when the user click on the validate button, to check in the database that the user and password matches. I've done the "Method BIndind..." with the commandButton_action and the database connection works fine.
    How can I use an already existing procedure, say authenticate, wich is stored in the database to authenticate my user ?
    Do I have to create a jdbc connection in java even if I've done the connection with the "create new database connection" wizard ?
    String s1 = "jdbc:oracle:thin:@address:1521:ORCL";
    System.out.println( "Connecting with: " );
    System.out.println( s1 );
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    this.conn = DriverManager.getConnection( s1,"user","pass");
    thanks for your help

    Creating a connection to the DB in JDeveloper doesn't mean that your application is now connected to the DB - so yes you do need to create a connection to the database using JDBC.
    One note - if you are trying to do a database user authentication the following is probably the better way to go about it:
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm

Maybe you are looking for

  • IPod Touch 2G 3.1.1 bug No Music in the Library

    I was shocked when I saw the music library of my iPod Touch, my music files were all erased from the library but the free space is still the same and no videos erased. I am sure that I did not pressed the option to erase anything from the iPod. Just

  • Started to Erase External HD, Is No Longer Recognized.

    I know this was a crazy oversight on my part, but in case there is someone out there that can help, here's the scenario: An external hard drive, totally reformatted to store files in MS-DOS, as I am sharing work files with a Windows computer. Trying

  • Turn off automatic update

    I don't have time to read through your site for the answer to this problem. I don't allow automatic updates and I get very annoyed when I keep getting popups from firefox wanting me to allow you to update firefox on my computer. I read enough here to

  • How can you tell what generation an iPod is?

    I got a new iPod for Xmas but when asked what generation it is  they didn't know? So Now I am trying to find a way to know what generation the iPod is? Does Anyone have ideas?

  • UTube video sound works on iPhone5S but not on Macbook Pro?

    UTube videos from a variety of sources works on iPhone5S but not on Macbook Pro? Thinking it has to do with recommended Flash settings on the MAC. Is there an app to resolve this inoperability on a MAC without having to make Flash active?