Need information on Weblogic JDBC drivers

Hi,
I have been using Weblogic 8.1 sp5 with oracle version -Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production.
Lately i have observed the below error:-
<Jun 2, 2009 9:56:58 PM MEST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "WIS03 JDBC Connection Pool" failed with exception: "java.sql.SQLException: OALL8 is in an inconsistent state.".>
This may be linked to the JDBC drivers used with weblogic.
At weblogic console i can see the list of drivers as - Oracle Driver (Thin) Versions.9.0.1,9.2.0,10
Is this driver good for the Oracle version 10 g?
I am clueless for the above exception. Please suggest.
Thanks & Regards
Himanshu Tageja

Thanks Joe.
I have found the latest ojdbc.jar, below are the detials mentioned about this jar in the manifest.mf:-
Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers
Specification-Title: Oracle JDBC driver classes for use with JDK14
Sealed: true
Created-By: 1.4.2_14 (Sun Microsystems Inc.)
Implementation-Title: ojdbc14.jar
Specification-Vendor: Oracle Corporation
Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Vendor: Oracle Corporation
Implementation-Time: Sat Feb 2 11:40:29 2008
Now the issue is with respect to the Java_version used for this jar which is 1.4.2_14 (Sun Microsystems Inc.)
but my weblogic server uses jdk142_08.
I have done quick tests after replacing the jar from the server/lib directory and seems no issue but can the differences in Java version lead to potential issues in future?
Awaiting your valuable response.

Similar Messages

  • Need information about WebLogic Server API

    Hi All,
    Can anyone please tell me what API does Oracle Weblogic Server call. I want to ask by calling which API I can get information about the state of a weblogic server and which jar contains those APIs.
    Thanks in Advance!!

    Hi Roshni,
    For List of MBean's You can follow the below Oracle link
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13951/core/index.html
    can you pls tell me how can I retrieve of a weblogic server through a java code,
    You can follow the below link,it will be helpful
    http://middlewaremagic.com/weblogic/?p=7505
    Regards
    Fabian

  • Installing the jdbc drivers

    Hello Guys:
    I am new to Oracle Application DBA stuff and here is what I have to do now.
    I need to install the jdbc drivers in our oracle financials UAT.
    Here is what I heard from our Oracle support:
    ANSWER
    ======
    The Patch #4159795 status is Deleted, indicates that the patch has been deleted from the patch repository. This usually occurs when the patch has been obsoleted.
    However, this bug (BUG:4159795) has been fixed in version 10.2 which means it's solved in the latest releases.
    The JDBC drivers are certified to work with the currently supported versions of the Oracle Database. For example, the JDBC Thin drivers in Oracle Database 10g a re certified to work with the 9.2.x, 9.0.1.x, and 8.1.7 Oracle Database releases.
    However, they are not certified to work with older, unsupported database releases, such as 8.0.x and 7.x.
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/getsta.htm#i1008205
    Now please tell me what needs to be done. Should i install this on the application server or on the database server. If any one could give me a heads or give me pointers to documents it will be great.
    Regards,
    Bala

    If you are using Oracle 11i, the JDBC drivers are normally upgraded via a patch during a JDK upgrade (1.3.1, or 1.4.2, or 1.5.0). I am pretty sure the note referenced by the analyst has no relevance to Oracle EBS.
    Upgrading JDBC drivers with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=164317.1
    Upgrading Oracle Applications 11i to use JDK 1.3
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=130091.1
    Upgrading to J2SE 1.4.2 with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=246105.1
    Using J2SE Version 5.0 with Oracle E-Business Suite 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=304099.1

  • How to install + where to get: JDBC-drivers for Oracle8i

    hi,
    i need to install the JDBC drivers (to use oracles XSU).
    where can i get them (for oracle 8i) and how do i install them.
    im not familiar with java so im looking for a step-by-step install-manual.
    thanks in advance

    hi
    Go to Oralce.com....on the top right corner click on downloads and then from the list available choose the driver you need....they come with instructions for installing and downloading......Hope this helps

  • Mysql jdbc drivers not found in weblogic server

    I want to create a connection pool in weblogic server,
    and use mysqldatabase.
    My drivers is "org.gjt.mm.mysql.Driver"
    I put the jar in "D:\bea\weblogic700\server\lib" ,but when i apply ,there is
    an error blow:
    Error creating connection pool
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:635)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:419)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)<2003-4-6 ����10��00��34��> <Error> <JDBC> <001060> <Cannot startup connection pool "mssqlserverPool" weblogic.common.ResourceException: Cannot load driver class: org.gjt.mm.mysql.Driver>
    Can anybody tell me why,thanks!

    Weblogic has been designed for nannies...
    I've developed a application which uses internally my own jdbc-driver.
    After months of really hard work on tomcat (the application works fine) I've tried migrate it to weblogic.
    But ...
    In weblogic seems mandatory to put the jdbc drivers out of the war!!!. Brilliant!!!
    If I move the driver out, I need move the 50% of the application out, also!
    If I move part of the application out, nothing works, because... �are the class loaders distinct?. And I'll need to do a lot of extra work because one day one weblogic architect had a great great inspiration.
    In the future I'll suggest to my customers to run and not stop when they listen the WEBLOGIC word.
    Regards,
    Pablo

  • How to add support for new JDBC Drivers in WebLogic Server?

    Hi!
    I am using WebLogic Server 10.
    As we know,WebLogic Server contains some jdbc drivers itself,but if we want to use another drivers besides them,what can we do?(I am using Oracle 11g,but WebLogic Server 10 doesn't contain JDBC support for it.)
    Just copy the .jar files of the drivers to the directoty "WL_HOME/server/lib" or need to configure something else?
    Thanks!
    Huang

    Hi!
    I am using WebLogic Server 10.
    As we know,WebLogic Server contains some jdbc drivers itself,but if we want to use another drivers besides them,what can we do?(I am using Oracle 11g,but WebLogic Server 10 doesn't contain JDBC support for it.)
    Just copy the .jar files of the drivers to the directoty "WL_HOME/server/lib" or need to configure something else?
    Thanks!
    Huang

  • Weblogic 5.1 and Oracle Database 10g JDBC Drivers

    I need to know if there are JDBC drivers for Oracle Database 10g compatible with Weblogic Server 5.1.
    Regards,
    Luis

    Hi. You should be able to use any JDBC driver with WebLogic 5.1.
    It may be the JVM that complains, if you use too old a JVM...
    Joe Weinstein at BEA Systems

  • Oracle10g Jdbc Drivers issue with EJB on Weblogic 7

    Hi there,
    We are facing a critical issue on production environment related to Oracle jdbc drivers.
    We have a J2EE application with swing client. We are using MVC framework where client calls go to stateless session bean which redirect it to specific POJO which then uses Entity Beans for persistence.
    We have following environment.
    JDK1.4.2, Weblogic 7 with SP5, Oracle10g on AIX 5.2
    Now the problem is that we were using Oracle 8 jdbc driver classes12.zip for our application. Everything was working smoothly. Recently we moved our weblogic and oracle Servers machines locations, after that movement we started to get an exception when weblogic initializing connection pool that makes connection to a different oracle10g database. Oracle supports ask us to upgrade the jdbc driver. So we moved to 10g driver ojdbc14.jar but during testing one functionality is failing with a exception where rest of application seems to be working fine. The exception occurs when we try to post a record and during the creation of a child entity bean the transactions rollback for some unknown reasons. Using the old oracle8 classes12.zip driver the same code working fine again. We have also tried the classes12.zip driver of Oracle10g but error persist. I have checked the code and deployment descriptors but they seems fine. If i comment the creation of that particular entity bean the parent bean get created successfully and transaction commit successfully. Please also note that we have not created any relation b/w both entity beans not even in the database. They both are sort of independent.
    Can any one having any idea why Oracle10g driver not working or what might be the problem with our configuration. Any help will be highly appreciated. Please see the Exception below.
    <Jan 29, 2008 6:03:10 PM PKT> <Info> <EJB> <010036> <Exception from ejbStore: javax.ejb.NoSuchEntityException: Instance
    of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHist
    oryEntityPK@93e447fa' not found.
    javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup
    .security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.
    at com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.__
    WL_store(SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.java:2208)
    at com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.ej
    bStore(SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.java:2012)
    at weblogic.ejb20.manager.DBManager.storeBean(DBManager.java(Compiled Code))
    at weblogic.ejb20.manager.DBManager.beforeCompletion(DBManager.java(Compiled Code))
    at weblogic.ejb20.internal.TxManager$TxListener.beforeCompletion(TxManager.java(Compiled Code))
    at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java(Compiled Code))
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb20.internal.TxManager
    $TxListener@44a824cd
    Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityR
    atingHistoryEntityPK@93e447fa' not found. - with nested exception:
    [javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setu
    p.security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.]
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java(Compiled Code))
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java(Compiled Code))
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java(Compiled Code))
    at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java(Compiled Code))
    at com.cdc.fms.server.common.ConsolidatorSessionBean_fz4673_ELOImpl.processRequest(ConsolidatorSessionBean_fz467
    3_ELOImpl.java:57)
    at com.cdc.fms.server.common.GatewaySessionBean.processRequest(Unknown Source)
    at com.cdc.fms.server.common.GatewaySessionBean_oehtlw_EOImpl.processRequest(GatewaySessionBean_oehtlw_EOImpl.ja
    va:407)
    at com.cdc.fms.server.common.GatewaySessionBean_oehtlw_EOImpl_WLSkel.invoke(Unknown Source)
    <Jan 29, 2008 6:03:10 PM PKT> <Info> <EJB> <010051> <EJB Exception during invocation from home: com.cdc.fms.server.commo
    n.GatewaySessionBean_oehtlw_HomeImpl@3e13a4aa threw exception: javax.ejb.EJBException: nested exception is: weblogic.tra
    nsaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb20.internal.TxManager$TxListener@
    44a824cd
    Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityR
    atingHistoryEntityPK@93e447fa' not found. - with nested exception:
    [javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setu
    p.security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.]
    javax.ejb.EJBException: nested exception is: weblogic.transaction.RollbackException: Unexpected exception in beforeCompl
    etion: sync=weblogic.ejb20.internal.TxManager$TxListener@44a824cd
    ##################################################################

    weblogic 7? when the current production version is 10.2?
    don't play yourself. fund a project to upgrade your weblogic version.
    can't tell based on what you've posted, and I fear that the stuff you'll have to post to get an answer here will be too much. this isn't a good place to come for an answer.
    %

  • Should i need to install JDBC Drivers?

    Hi,
    I am new to primavera database.
    Now i need to develop RFC's to JDBC Scenario using PI7.1, should i need to install JDBC Driver to up date the data in primavera database.
    thanks,
    snr.

    Hi,
    JDBC drivers are needed to establish the connection to database using JDBC adater but not operations...
    if your database provider classes are not installed in the PI system then you need to install the same...
    check the connection using test if not sure about this but need to install the ear file provided as per note 1085539
    HTH
    Rajesh

  • [WebLogic Sybase Type 4 JDBC Drivers] set ANSINULL off

    Hi,
    I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality.
    It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that Weblogic will turn the ANSINULL handelling on.
    I have been reading that we need to run the command 'set ANSINULL off' before we run the stored procedure. Only problem is that the stored procedure is wrapped up in the Spring framework and I see no oppotunity to run this.
    Also readin I've found that the DataDirect connector for Sybase will accept in the URL a string 'InitializationString=set ANSINULL off;' I have tried to set this and it appears to make no difference to the result.
    So I was wondering if this InitializationString works with the weblogic driver?
    Or is there another way I can globaly set ANSINULL off for the Sybase connection. (we also have a number of Oracle connections that are working fine)
    Thanks in advance for any advice
    IV

    Ian Vellosa wrote:
    Hi,
    I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality.
    It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that Weblogic will turn the ANSINULL handelling on.
    I have been reading that we need to run the command 'set ANSINULL off' before we run the stored procedure. Only problem is that the stored procedure is wrapped up in the Spring framework and I see no oppotunity to run this.
    Also readin I've found that the DataDirect connector for Sybase will accept in the URL a string 'InitializationString=set ANSINULL off;' I have tried to set this and it appears to make no difference to the result.
    So I was wondering if this InitializationString works with the weblogic driver?
    Or is there another way I can globaly set ANSINULL off for the Sybase connection. (we also have a number of Oracle connections that are working fine)
    Thanks in advance for any advice
    IVHi. What version of WebLogic? IN recent ones we have a pool property 'initSQL'
    which you can set. We will run whatever SQL you give, on every pool connection
    when it is created. That would do it.

  • Weblogic 8.1 Type 4 JDBC Drivers for Sybase

    Hi Everyone,
    I get the following exception when I switch from the Sybase JConnect driver to the Weblogic type 4 driver. The exception disappears when I remove the "sdaahadr.." from the stored procedure call. However, the stored procedure executes a raiserror which does not come back to the java code. So there are actually 2 problems.
    Any help would be appreciated.
    Thanks,
    Eddie Baue
    [BEA][Sybase JDBC Driver]The stored procedure call could not be made as a language event, due to the presence of one or more output-only parameters. It is recommended that parameter markers be used for all stored procedure arguments.
    The code follows:
    Driver sybase_driver =
    (Driver)Class.forName("weblogic.jdbc.sybase.SybaseDriver").newInstance();
    Properties prop = new Properties();
    prop.put("DatabaseName", "***");
    prop.setProperty("User","***");
    prop.setProperty("Password","***");
    prop.setProperty("SelectMethod","cursor");
    conn = sybase_driver.connect("jdbc:bea:sybase://xsd00z09:3035", prop);
    String sql = "{call sdaahadr..pr_adr_wh_get_issuer_name (?, ?, ?, ?)}";
    long issuer_id = 753211710;
    Statement stmt = null;
    ResultSet rs = null;
    CallableStatement call_stmt = null;
    call_stmt = conn.prepareCall(sql);
    call_stmt.setLong(1, issuer_id);
    call_stmt.registerOutParameter(2, Types.VARCHAR);
    call_stmt.registerOutParameter(3, Types.VARCHAR);
    call_stmt.registerOutParameter(4, Types.VARCHAR);
    call_stmt.execute();

    Chandra Sekhar Ghosh Dastidar wrote:
    I am having similar problem with SQL Server 2000 on WL 8.1 SP3, which does not recognise RAISERROR thrown from the Stored Procedure.
    Any help in this regard?
    Do I need to pass error code through the OUT parameter?Hi. Could you show me the procedure and the jdbc code to process it?
    thanks
    Joe

  • Need Explanation on JDBC drivers

    Hi,
    I have write classes for database connection & resultset. I plan to make it as library jar so i can use it for future developments.
    I develop this on netbeans and have set the classpath for Mysql driver & Ms SQL driver. After i have created the jar file do i need these drivers anymore when i used the jar with other applications.
    Is there anyway to incorporate these mysql driver jar & mssql driver jar with my library jar as 1 jar file so that i won't need set classpath for these drivers for other applications.

    Yes, you need the class files contained in the driver jar when your code is executed.
    Most people simply keep the driver jar seperate and add it to the classpath of the application; however you can unpackage the driver jar and repackage it however you want (as long as you don't violate the terms of the license or present their work as yours, etc. etc.) In business environments, repackaging really is emphatically not recommended unless there's no other way; it makes it a lot harder to upgrade to a newer driver, for example, and it's too easy to get into legal trouble by forgetting that someone else's code is mixed with yours, particularly with staff turnover...

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g.
    Apparently the jar files for SQLJ are not on the classpath by default.
    java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
    are the Oracle JDBC drivers on the classpath by default?
    if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?

    I'm looking at the setDomainEnv, especially the big note at the top:
    >
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    >
    and am getting squeamish about editing it...
    http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
    so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
    Edited by: user8652010 on Feb 10, 2011 1:08 PM

  • ClassCastException: weblogic.jdbc.rmi.SerialPreparedStatement

    I am attempting to retrieve CLOBs and XMLTypes in a servelet from a 9i release
    2 database. Using sampe code from oracle, I am getting ClassCastException when
    I attempt to cast ...
    oracle.jdbc.OraclePreparedStatement stmt =
    (oracle.jdbc.OraclePreparedStatement) conn.prepareStatement( sql );
    The connection pool sets up fine, no errors. I am getting the connection in the
    servlet through the JNDI lookup ... (see code)
    From the config.xml, the jdbc setup ...
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="3" MaxCapacity="10" Name="9iR2Pool"
    Properties="user=kr;password=*****;dll=ocijdbc9;protocol=oci8"
    Targets="myserver" URL="jdbc:oracle:oci8:@ora9i"/>
    Has anyone done this before? Is there another way? Does bea have 9i release
    2 jdbc drivers?
    [huh.java]

    Hi Rick,
    JDBC objects obtained via a connection pool
    can not be cast to anything oracle.jdbc.*.
    In order to use oracle-specific functions of
    prepared statements you need to use oracle
    extensions provided by weblogic. Documentation
    and examples can be found here:
    http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html#1043705
    Regards,
    Slava Imeshev
    "Rick Bradshaw" <[email protected]> wrote in message
    news:3d6cfa2c$[email protected]..
    >
    I am attempting to retrieve CLOBs and XMLTypes in a servelet from a 9irelease
    2 database. Using sampe code from oracle, I am getting ClassCastExceptionwhen
    I attempt to cast ...
    oracle.jdbc.OraclePreparedStatement stmt =
    (oracle.jdbc.OraclePreparedStatement) conn.prepareStatement( sql );
    The connection pool sets up fine, no errors. I am getting the connectionin the
    servlet through the JNDI lookup ... (see code)
    From the config.xml, the jdbc setup ...
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="3" MaxCapacity="10" Name="9iR2Pool"
    Properties="user=kr;password=*****;dll=ocijdbc9;protocol=oci8"
    Targets="myserver" URL="jdbc:oracle:oci8:@ora9i"/>
    Has anyone done this before? Is there another way? Does bea have 9irelease
    2 jdbc drivers?

  • Major performance problem in weblogic jdbc

    I ran a test which selected ~1000 rows from an oracle database table. The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL, "XXX", "XXX");
    When I changed the code to get the connection from weblogic, it took 128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, if I executed
    "select column from table" it took 128 seconds, but "select * from table"
    only took 32 seconds. Why would it take longer to process less data?
    And more importantly, why does the weblogic connection take so damn long?
    Thanks for your help.
    Sean Rohead

    Hey, I finally managed to get JDBC logging up and running! Had to do with
    permission setting, adding the following entry to weblogic.policy:
    permission java.sql.SQLPermission "setLog";
    Boy are you right; JDBC logging is slow as mud! Good thing we use BMP
    entity beans, so I guess I can log JDBC calls myself in the
    ejbCreate/Load/Store/Remove hooks!
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Gene Chuang wrote:
    Hey, I've tried setting weblogic.jdbc.enableLogFile=true before and
    can't
    even get the server to start up! Since JDBC logging is not only slow,but
    buggy,JDBC logging is slow for the reasons described, but not buggy as such.
    is there a possibility Weblogic can implement a JDBC log for a future
    release?
    Seems like Weblogic can catch SQL calls much easier than we can,
    especially for CMP!It is conceivable that our pool drivers (pool,jts,rmi etc) couldindependently
    log SQL for debugging purposes, but we need to retain the semantics ofturning
    on jdbc logging, which in any case will continue to emanate from any JDBCdriver.
    In any case, we wouldn't do anything differently that DriverManager doesfor
    simply writing to a file, which would be serialized by the stream anyway.
    Joe
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Sean Rohead wrote:
    OK, disregard everything I said in my last post. The REAL reason
    for
    the
    slowdown is that I had "weblogic.jdbc.enableLogFile=true" in my
    weblogic.properties. So, there is nothing wrong with the JNDIDataSource
    object. Sorry if I misled anyone.
    Still, it does seem rather excessive for logging to cause a 30Xslowdown.
    Someone at BEA ought to take a closer look at that...Known issue, not ours.
    JDBC logging collect anything logged by any JDBC driver or by anySQLException.
    These all call DriverManager.println() which is class synchronized in
    the
    JVM,
    so this will serialize most JDBC threads, and slow the server down a
    lot,
    independently of the disk I/O needed to grow the file.
    Joe
    Sean Rohead
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    Nice work, Charlie!
    When I just connected to the pool directly, it ran fine. I am
    guessing
    that
    the DataSource returns a connection that connects first to the
    server
    via
    RMI and then to the database. I am trying to obtain a JDBC
    connection
    for
    use in EJB and servlets, so this is clearly overkill. The
    question I
    now
    have is what is the best way to obtain a transactional
    connection
    without
    the overhead described above? Can I somehow create a
    transactional
    DataSource that doesn't go over RMI? Or, should I just use thejts
    driver
    directly? I tried the following code, but got an error:
    Driver driver = new weblogic.jdbc.jts.Driver();
    Properties properties = new Properties();
    properties.put("connectionPoolID", "pointclick");
    Connection connection = driver.connect("jdbc:weblogic:jts",properties);
    The error was:
    java.sql.SQLException: The url cannot be null
    atjava.sql.DriverManager.getConnection(DriverManager.java:434)
    atjava.sql.DriverManager.getConnection(DriverManager.java:106)
    at weblogic.jdbcbase.jts.Driver.connect(Driver.java:213)
    at
    pointclick.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:24)
    atpointclick.servlet.TestServlet.doGet(TestServlet.java:36)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >>>>>
    >>>>>
    I copied the code above from
    http://www.weblogic.com/docs51/classdocs/jts_driver.html and there
    was
    no
    mention of setting any other properties. If I create the
    connection
    this
    way from an EJB, will it still participate in the transaction
    started
    by
    the
    EJB container?
    Sean Rohead
    "Charlie Crook" <[email protected]> wrote in message
    news:[email protected]...
    Your Oracle example is also using JNDI to obtain the connection;
    not
    just
    getting a connection from a pool. So you've actually changed 2conditions
    ( non-pool to pool, non-JNDI to JNDI ). So both of these should
    be
    considered as suspects for the performance.
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    I ran a test which selected ~1000 rows from an oracle database
    table.
    The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL,
    "XXX",
    "XXX");
    When I changed the code to get the connection from weblogic,
    it
    took
    128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    >>>>>>>
    >>>>>>>
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, ifI
    executed
    "select column from table" it took 128 seconds, but "select *
    from
    table"
    only took 32 seconds. Why would it take longer to process
    less
    data?
    And more importantly, why does the weblogic connection take sodamn
    long?
    Thanks for your help.
    Sean Rohead
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level
    positions
    for
    people who want to work with Java and E-Commerce infrastructure
    products.
    Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for
    Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positionsfor
    people who want to work with Java and E-Commerce infrastructure products.Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html

Maybe you are looking for