Problem w/ 8.1.6 Thin Driver and Oracle 8.0.5

I am attempting to connect to two data hosts.
One is Oracle 8.1.6, the other is Oracle 8.0.5. The DB Admin insists the user name and passwords are the same for both.
I am using the v8.1.6 100% Java thin driver under both JDK v1.2 and v1.3. My OS is Windows2K Professional.
I can always connect to the 8.1.6 database but never to the 8.0.5 database under any circumstances. The error I receive when attempting to connect to the 8.0.5 database is:
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=134238208)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Does any one have some insights here?
My test code fragment is as follows:
try{
Class.forName( "oracle.jdbc.driver.OracleDriver" ).newInstance();
String dbURL = "";
//dbURL = "jdbc:oracle:thin:@host1:1521:data_source_8_1_6";
dbURL = "jdbc:oracle:thin:@host2:1521:data_source_8_0_5";
Connection con = DriverManager.getConnection(dbURL, "test_user", "test_user");
java.sql.Statement stmt = con.createStatement();
String sq1String = "SELECT * FROM DUAL";
java.sql.ResultSet res = stmt.executeQuery(sq1String);
int rows = 0;
while(res.next()) {
rows++;
System.out.println("rows = " + rows);
catch(Exception e) {
System.out.println(e);
null

tnsping is working correctly. We can ping the host and it is listening on port 1521. Likewise, there are other applications inhouse using this datasource.
Since first posting my question, I have also tried running the test program on WinNT. Same problem arises.
Other suggestions?

Similar Messages

  • JDBC Thin driver and Oracle names server

    Hi
    Any managed to get the Thin driver to user the Names Server aliases, ie I want to connect to service xxx like
    jdbc:oracle:thin:@xxxx and not specify instance and port as the DB is running in a multiple machine cluster and can be switched to a different machine...
    With OCI driver I have managed on NT but having problem with OCI/Linux and Beta 10g...
    Tks
    Andre

    I don't have much experience with OCI from JDBC, but should work like any other kind of connection via SQL*Net. I.e. I would check if connection can be made using SQLPlus, check environment variables (ORACLE_HOME etc.) of 9iAS instance, check version of JDBC classes and their readme.txt. There are also some settings in sqlnet.ora file which might affect this (like default domain - try to use full name of alias - OCRL.WORLD or whatever alias you have there). You may also want to switch tracing for SQLNet and/or listener on (it's not easy to find in doc how to do it, though) to check if there is at least some traffic between klient and server...
    Myrra

  • JDBC Thin-Driver and Oracle Stored Procedure

    I've got a Oracle stored procedure which returns a Oracle record.
    How can I retrieve the record in java using the JDBC Thin-Driver ?
    Record:
    TYPE messagerec IS RECORD
    (log_level VARCHAR(2), timestamp VARCHAR2(19), text VARCHAR2(200));

    Using PL/SQL BOOLEAN, RECORD Types, and TABLE Types:
    Oracle SQLJ and JDBC do not support calling arguments or return values of the
    PL/SQL BOOLEAN type or RECORD types. Also, when using the Thin driver, they
    do not support calling arguments or return values of PL/SQL TABLE types (known
    as indexed-by tables). TABLE types are supported for the OCI driver.
    Check the following guide,
    http://otn.oracle.com/tech/java/sqlj_jdbc/pdf/a96655.pdf

  • JDBC thin driver and Oracle 8.1.6

    Hi,
    I have installed Oracle 8.1.6 on Windows NT 4.0 with service pack 4 and using Oracle JDBC thin driver driver (classes111.zip). My application is multithreaded, but each thread maintains its own connection (and own set of Statements). Things are okay in single threaded mode, but in multi threaded mode, I get weird errors!
    1. My resultsets are SCROLL_SENTITIVE and UPDATABLE
    2. Sometimes, while updating a row, "No current row" SQLException is thrown, although a row exists that satisfies my select criteria
    3. I am also calling executeUpdate() for inserting new rows and such rows are not seen by successive resultsets!
    Appreciate any hints! Thanks!

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

  • Thin driver and Oracle 8i

    Hi,
    Helpful suggestion needed,
    I have around 7 LIVE sites running on a single server .the database we are using is oracle 8i .When the 7th site was not launched everything was working fine .But when we launched the 7th site .the 7th site is very slow.We traced it and found that the connection to oracle database is making it slow.We are using the same methods and drivers for all the sites to conect to the database.Sometimes it takes even less then a second to connect to the database but sometimes it take more then a minute just to get a connection to the oracle database. if i am going through the 7th site, then some times it is normal, but after accessing it for around few mins, it starts crawling. even if i click on a link it freezes for at least 8-10 mins. and in the meantime the other sites are also affected, i mean they also become slow. but as soon the 7th site gives some result, the others get back normal.
    We are using thin drivers for connection in all the sites.
    what could be the possible reason for this?
    Thanks

    What webserver are you using? Could be you don't have enough idle instances
    of your server standing by to serve requests?
    Rick.

  • JDBC Thin Client and Oracle Long Datatype

    I am using Wepshere 4.0.2 , JDBC 2.0 (thin driver) and oracle 9i.
    I have a procedure which takes Oracle Long Datatype as its parameter.
    I use following code to execute procedure.
    String dataforsql="AAA000000003 123123 07/01/200301/01/2003";
    byte[] bytes = dataforsql.getBytes();
    InputStream is = new ByteArrayInputStream(bytes);
    cstmt=conn.prepareCall("call nscw.CPPF_SAVEPDCRAWTABLE2(?,?,?)");
    cstmt.setAsciiStream (1, is,bytes.length);
    The above code works perfectly for data upto 4000 bytes. Once the data crosses the 4000 mark.
    i get a procedure error
    ORA-01460: unimplemented or unreasonable conversion requested

    cstmt.setAsciiStream (1, is,bytes.length);Oracle's support for CLOB (and BLOB) columns using set{Ascii,Binary}Stream() generally s*cks. You'll have to read Oracle's own JDBC manual (you can read it online at http://technet.oracle.com) for whatever sequence they recommend.
    E.g. for insertion and updation of CLOBS, you're supposed to use an oracle-specific function (EMPTY_CLOB()) as the value in the INSERT/UPDATE statement, and then do a SELECT, getClob(), and use Clob APIs to update the actual column value. At least officially. Or you have to use some Oracle-specific APIs in oracle.sql.Connection and oracle.sql.CLOB.

  • My iMac suddenly has a USB problem. I can connect to drives and printers. I am able to pul info off from drives. When I try to send info to a drive or printer, the connection is lost. All USB ports appear to have the same problem. Can anyone help?

    My iMac suddenly has a USB problem. I can connect to drives and printers. I am able to pul info off from drives. When I try to send info to a drive or printer, the connection is lost. All USB ports appear to have the same problem. Can anyone help?

    Please do 2-3 SMC and PRAM resets back to back and retest. Also use new cables, they can go bad.
    Intel iMac SMC and PRAM resets

  • Compatibility of Weblogic 6.1 Oracle Thin Driver for Oracle 9i. - URGENT Reply Needed..Thanks.

    Hi, We are using Weblogic 6.1. We are currently using JDBC Oracle Thin Driver (ClassName
    : oracle.jdbc.driver.OracleDriver) that is built into Weblogic 6.1 (weblogic.jar).
    Our database is Oracle 8.1.7.4. We want to upgrade to Oracle 9i (Oracle version
    9.2.0.4). I would like to know the compatibility of this built-in Driver for Weblogic
    6.1 with Oracle 9i (9.2.0.4) and can I continue to use the same JDBC driver. Also
    we have plans to upgrade our Weblogics to 8.1 version. Can we continue to use
    the same Oracle Thin driver that comes as part of WLS 8.1, for Oracle 9.2.0.4.
    I need this reply ASAP. I appreciate any help in this regard.
    Thanks, Venkatesan.

    Thank you very much for your reply.
    Joe Weinstein <[email protected]> wrote:
    Hi. The driver we shipped will still work with the later DBMS, but there
    have been many improvements and fixes to Oracle's dirver since then,
    so I highly recommend that you download Oracle's latest appropriate
    thin driver, and make sure it gets into the -classpath argument that
    the weblogic startup script creates for the server.
    Every release of weblogic will tend to include the latest oracle
    thin driver available at the time, so the 8.1 will contain a newer one
    than
    the 6.1.
    Joe
    Venkatesan wrote:
    Hi, We are using Weblogic 6.1. We are currently using JDBC Oracle ThinDriver (ClassName
    : oracle.jdbc.driver.OracleDriver) that is built into Weblogic 6.1(weblogic.jar).
    Our database is Oracle 8.1.7.4. We want to upgrade to Oracle 9i (Oracleversion
    9.2.0.4). I would like to know the compatibility of this built-in Driverfor Weblogic
    6.1 with Oracle 9i (9.2.0.4) and can I continue to use the same JDBCdriver. Also
    we have plans to upgrade our Weblogics to 8.1 version. Can we continueto use
    the same Oracle Thin driver that comes as part of WLS 8.1, for Oracle9.2.0.4.
    I need this reply ASAP. I appreciate any help in this regard.
    Thanks, Venkatesan.

  • Oracle JDBC Thin Driver for oracle 9.2.0.4

    Hi,
    It would be nice if someone please guide me to the download of Oracle JDBC Thin Driver for oracle 9.2.0.4.
    Thanks in anticipation

    user566773,
    As far as I know, all Oracle JDBC drivers are meant to be backward compatible.
    According to the table on the following Web page, the latest Oracle JDBC driver can be used with Oracle 9.2.0.x DBMS.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • Oracle JDBC Thin Driver and Firewall Problem

    Hi!
    We have Oracle 8.1.5 and Websphere App Server. There is a
    firewall between the two. A servlet creates a connection pool
    (not that of Wesphere's). The frontend is JSP/HTML (no applets).
    The servlet uses the Oracle JDBC Thin Driver for DB Connections.
    The problem is - Once the connection is freed, the connection
    pool is not being able to retrieve it and hence it created
    another one, thus reaching the max. # of connections and the
    system hangs. Restarting the DB service flushes the connection
    and the application starts running again...
    There was a similar problem discussed in this forums long ago. I
    have not yet tried mentioning the firwall port and IP in the
    connection string. But apart from that, is there any other
    setting I need to do (on firewall or for the connectionstring)
    to deal with this problem?
    Someone had suggested to punch a hole in the firewall for the DB
    port - but we can not really do that in the current scenario...
    I would appreciate if anyone could share their experience
    regarding how they resolved this issue.
    Thanks in advance,
    Vijaya.

    One more question -
    Can we use Oracle JDBC OCI driver? We do not have any appletes...
    Does it have firewall issues too? Is there any other driver that
    we can use?
    Thanks,
    Vijaya.

  • Problem with thin driver and tnsname syntax

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

  • Jdbc thin driver and bulk binding slow insertion performance

    Hello All,
    We have a third party application reporting slow insertion performance, while I traced the session and found out most of elapsed time for one insert execution is sql*net more data from client, it appears bulk binding is being used here because one execution has 200 rows inserted. I am wondering whether this has something to do with their jdbc thin driver(10.1.0.2 version) and our database version 9205. Do you have any similar experience on this, what other possible directions should I explore?
    here is the trace report from 10046 event, I hide table name for privacy reason.
    Besides, I tested bulk binding in PL/SQL to insert 200 rows in one execution, no problem at all. Network folks confirm that network should not be an issue as well, ping time from app server to db server is sub milisecond and they are in the same data center.
    INSERT INTO ...
    values
    (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17,
    :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29, :30, :31, :32,
    :33, :34, :35, :36, :37, :38, :39, :40, :41, :42, :43, :44, :45)
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.02 14.29 1 94 2565 200
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.02 14.29 1 94 2565 200
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 25
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net more data from client 28 6.38 14.19
    db file sequential read 1 0.02 0.02
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.00 0.00
    ********************************************************************************

    I have exactly the same problem, I tried to find out what is going on, changed several JDBC Drivers on AIX, but no hope, I also have ran the process on my laptop which produced a better and faster performance.
    Therefore I made a special solution ( not practical) by creating flat files and defining the data as an external table, the oracle will read the data in those files as they were data inside a table, this gave me very fast insertion into the database, but still I am looking for an answer for your question here. Using Oracle on AIX machine is a normal business process followed by a lot of companies and there must be a solution for this.

  • 8.1.6 thin driver and Netscape plug in 1.2.2

    Hi.
    I'm trying to use the latest Oracle thin driver in an applet
    using Netscapes plug-in 1.2.2.
    I am getting the error below when I call
    DriverManager.getConnection
    The error seems to be a security error.
    The code and driver works fine in a standalone application under
    JDK 1.2.
    The database I am connecting to is the same machine as the web
    server and I am not using a firewall so there should be no
    security violations. I have tried using both DNS name and IP
    address for the target machine but I always get the same error.
    Has anyone been able to use the 8.1.6 thin driver in an applet on
    Netscape?
    Thanks in advance, Sean.
    -------Error message ------
    java.lang.ExceptionInInitializerError:
    java.security.AccessControlException: access denied
    (java.util.PropertyPermission JdbcTrace read)
    at
    java.security.AccessControlContext.checkPermission(Unknown
    Source)
    at java.security.AccessController.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown
    Source)
    at java.lang.System.getProperty(Unknown Source)
    at
    oracle.jdbc.driver.OracleLog.<clinit>(OracleLog.java:604)
    at
    oracle.jdbc.dbaccess.DBConversion.<init>(DBConversion.java:87)
    at
    oracle.jdbc.ttc7.TTCConversion.<init>(TTCConversion.java:75)
    at
    oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1126)
    at
    oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:182)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:
    156)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDrive
    r.java:231)
    at
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:208)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at JDBCTest.init(JDBCTest.java:10)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    null

    It appears that your may be turning tracing on which is in turn requiring access to properties on the local file system. Use JDK 1.2.2's policytool to add a policy for either the Codebase, or sign your applet and then by Codebase and Sign By, adding a PropertyPermission, A Target of *, and an Action of read.

  • Problem in mixing DB2 V8 type4 driver and DB2 V7 type3 driver

    Hello,
    I have an application using CMP on Weblogic server 6.1 SP4. This application connects to 2 datasources on DB2 V7 with a type3 driver.
    One of the Database is migrating to DB2 V8 and we need to use type4 driver.
    Then we have one datasource on DB2 V7 with type3 driver and one on DB2 V8 with type4 driver :
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="COM.ibm.db2.jdbc.net.DB2Driver"
    InitialCapacity="5"
    MaxCapacity="60" Name="pasrelv3Pool"
    Properties="user=db2pasv3;password=db2pasv3;language=fr_FR"
    RefreshMinutes="5" Targets="pasrelv3Server"
    TestConnectionsOnReserve="true"
         URL="jdbc:db2://db2_srv:60000/PASREL"/>
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="com.ibm.db2.jcc.DB2Driver"
    InitialCapacity="5"
    MaxCapacity="60" Name="pasrelv3ArchiPool"
    Properties="user=db2;password=db2;language=fr_FR"
    RefreshMinutes="5" Targets="pasrelv3Server"
    TestConnectionsOnReserve="true"
    URL="jdbc:db2://db2_srv:50002/E_PRO"/>
    When we start Weblogic , it seems that weblogic.jdbc.common.internal.ConnectionEnvFactory register the type4 driver but try to use type3 for connection (bold code in the following).
    Here is an extract of jdbc log :
    JDBC log stream started at Wed Mar 28 14:25:23 CEST 2007
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    DriverManager.getDriver("jdbc:db2://db2_srv:60000/PASREL")
    trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    DB2 Peak statements = 1
    registerDriver: driver[className=com.ibm.db2.jcc.DB2Driver,com.ibm.db2.jcc.DB2Driver@3789b4ac]
    DriverManager.getDriver("jdbc:db2://db2_srv:50002/E_PRO")
    trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    Server db2_srv port 50002 source E_PRO
    SQLException: SQLState(08S01) vendor code(-99999)
    COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0615E Erreur lors de la r?ception de donn?es provenant du socket. Le ser
    veur ne r?pond pas. SQLSTATE=08S01
    at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.throwReceiveError(SQLExceptionGenerator.java:500)
    at COM.ibm.db2.jdbc.net.DB2Request.receive(DB2Request.java:727)
    at COM.ibm.db2.jdbc.net.DB2Request.sendAndRecv(DB2Request.java:587)
    at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Connection.java:245)
    at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:215)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java(Compiled Code))
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java(Compiled Code))
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java(Compiled Code))
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:283)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:671)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java(Compiled Code))
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:286)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:239)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:199)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:3015)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:376)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:164)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at $Proxy41.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.ja
    va:480)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1309)
    at weblogic.management.Admin.finish(Admin.java:650)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:547)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:214)
    at weblogic.Server.main(Server.java:35)

    Cedric BEURTHERET wrote:
    Hello,
    I have an application using CMP on Weblogic server 6.1 SP4. This application connects to 2 datasources on DB2 V7 with a type3 driver.
    One of the Database is migrating to DB2 V8 and we need to use type4 driver.
    Then we have one datasource on DB2 V7 with type3 driver and one on DB2 V8 with type4 driver :
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="COM.ibm.db2.jdbc.net.DB2Driver"
    InitialCapacity="5"
    MaxCapacity="60" Name="pasrelv3Pool"
    Properties="user=db2pasv3;password=db2pasv3;language=fr_FR"
    RefreshMinutes="5" Targets="pasrelv3Server"
    TestConnectionsOnReserve="true"
         URL="jdbc:db2://db2_srv:60000/PASREL"/>
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="com.ibm.db2.jcc.DB2Driver"
    InitialCapacity="5"
    MaxCapacity="60" Name="pasrelv3ArchiPool"
    Properties="user=db2;password=db2;language=fr_FR"
    RefreshMinutes="5" Targets="pasrelv3Server"
    TestConnectionsOnReserve="true"
    URL="jdbc:db2://db2_srv:50002/E_PRO"/>Hi. I see the problem. We are loading both your
    driver classes, but we are calling DriverManager.getDriver(URL)
    to get the driver we use for making connections, and
    unfortunately both the drivers you name take the same
    URL, and the second pool is being given the first driver
    by DriverManager. I suggest making an official support case
    for this. This could be quickly fixed.
    Joe
    >
    >
    When we start Weblogic , it seems that weblogic.jdbc.common.internal.ConnectionEnvFactory register the type4 driver but try to use type3 for connection (bold code in the following).
    Here is an extract of jdbc log :
    JDBC log stream started at Wed Mar 28 14:25:23 CEST 2007
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    DriverManager.getDriver("jdbc:db2://db2_srv:60000/PASREL")
    trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    Server db2_srv port 60000 source PASREL
    DB2 Peak statements = 1
    registerDriver: driver[className=com.ibm.db2.jcc.DB2Driver,com.ibm.db2.jcc.DB2Driver@3789b4ac]
    DriverManager.getDriver("jdbc:db2://db2_srv:50002/E_PRO")
    trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
    Server db2_srv port 50002 source E_PRO
    SQLException: SQLState(08S01) vendor code(-99999)
    COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0615E Erreur lors de la r?ception de donn?es provenant du socket. Le ser
    veur ne r?pond pas. SQLSTATE=08S01
    at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.throwReceiveError(SQLExceptionGenerator.java:500)
    at COM.ibm.db2.jdbc.net.DB2Request.receive(DB2Request.java:727)
    at COM.ibm.db2.jdbc.net.DB2Request.sendAndRecv(DB2Request.java:587)
    at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
    at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Connection.java:245)
    at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:215)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java(Compiled Code))
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java(Compiled Code))
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java(Compiled Code))
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:283)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:671)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java(Compiled Code))
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:286)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:239)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:199)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:3015)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:376)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:164)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
    at $Proxy41.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.ja
    va:480)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1309)
    at weblogic.management.Admin.finish(Admin.java:650)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:547)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:214)
    at weblogic.Server.main(Server.java:35)

  • Problem using JDBC Thin driver with Oracle 8i Personal Edition

    Hi all, I have an issue I have been unable to figure out. In order to make my code as portable as possible I am using the JDBC thin driver to access my database. I have been able to connect to an instance of Oracle 8i on a Sun box by hardcoding the following string into getConnection() call:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=<myhostname>)(Port=1521))(ADDRESS=(COMMUNITY=tcp.w orld)(PROTOCOL=TCP)(Host = <myhostname>)(Port = 1526)))(CONNECT_DATA = (SID = <mysidname>)))", <myuser>, <mypassword>);
    My problem is that I cannot figure out what string to use to connect to my local instance of Oracle 8i Personal. I used the following string (the sid I got from the looking at the init.ora file):
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=localhost)(Port=1521))(ADDRESS=(COMMUNITY=tcp.world)(PRO TOCOL=TCP)(Host = localhost)(Port = 1526)))(CONNECT_DATA = (SID = orcl)))", "scott", "tiger");
    That didn't work, so I took the only entry found in my tnsnames.ora file in as:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)))(CONNECT_DATA = (SID = PLSExtProc)(PRESENTATION = RO)))", "scott", "tiger");
    I am not knowing what is wrong, but that didn't work neither. Any suggestions would be highly appreciated.
    Thanks....
    null

    try this:
    conn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger:@hostname:1521:sid");
    or use system/manager as username/passward
    null

Maybe you are looking for

  • Unable to get Euro symbol in excel output

    Hi, I have developed one template which will be used in EBS.I am getting Euro symbol correctly in PDF output but not able to see the Euro symbol in Excel output. Please Help!!!! Thanks, Mahesh

  • Exit a loop when the condition in if succeed

    Hello everbody: LOOP .... IF ... "If the sentence here succeed I want to exit of the loop. ENDIF. ENDLOOP. Some ideas please

  • Finding where my iweb site files are saved

    I need help. My original hd crashed so I have a new one to run my computer. I dragged and dropped all my apps to the new hd as told by a I.T. friend and now I am supposed to format the old hd to use a storage space. Will my website files be gone. Are

  • Redirect only prints Location to screen...

    I am trying to redirect to a form based on the value of a field using pl/sql in the "before the page..." block. So far my test is proving to work except for the redirect. I can test the code (below) and the if statement fires correctly but it doesnt

  • How to restore ipod without updating to itunes 7.0

    How can I restore ipod that uses itunes 6.05. I do not want to update to itunes 7.0 since I tried that recently with disasterous results.I want to stay in 6.05 and start over with my ipod. Compaq   Windows XP Pro