Getting exception using 11G oracle driver

upgraded oracle database from 10G to 11G, and I made the following changes in my application for 11G:
- Updated [ORACLE_HOME]/jdbc/lib/ojdbc6.jar to the CLASSPATH
- Application uses JDK 1.6 (compilation & runtime)
I started 20 instances of my application on Linux box and half of the application instances failed & threw the following exceptions, but when I used 10G Oracle client jar, all the instances comes up fine. Why is 11G Oracle client jar behaving differently than 10G jar? Why am I able to bring only 10 instances up and not all (20) when i used 11G Oracle jar file?
Oracle 11G version: 11.1.0.6.0
Oracle 10G version: 10.2.0.3.0
Oracle 11G client jar: ojdbc6.jar
Oracle 10G version: ojdbc14.jar
Here is the exception I'm getting:
ERROR 02 Aug 2009 01:24:23,488 [main] DelegatingDataSource - java.sql.SQLRecoverableException: Io exception: Connection reset
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:281)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:118)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:296)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:611)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:455)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:494)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:199)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:494)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:398)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:287)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:268)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:136)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:2188)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeOneConnection(OracleImplicitConnectionCache.java:640)
at oracle.jdbc.pool.OracleImplicitConnectionCache.defaultUserPrePopulateCache(OracleImplicitConnectionCache.java:239)
at oracle.jdbc.pool.OracleImplicitConnectionCache.<init>(OracleImplicitConnectionCache.java:198)
at oracle.jdbc.pool.OracleConnectionCacheManager.createCache(OracleConnectionCacheManager.java:390)
at oracle.jdbc.pool.OracleDataSource.cacheInitialize(OracleDataSource.java:617)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:572)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:251)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:204)
at com.cme.fest.framework.persistence.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:98)
Any help or ideas would be really appreciated.

java.sql.SQLRecoverableException: Io exception: Connection reset
Please refer
Closed connection error when connection isn't being closed

Similar Messages

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Using the Oracle Driver for the Engine DataSource

    Hi -
    When we try to use the Oracle driver (not the WebLogic Oracle Driver) we get the following exception. We would like to use the Oracle driver and not the WebLogic driver. Is this possible with 10gR3?
    fuego.transaction.DatabaseException: An error occurred while accesing the database.
    Detail:SQL statement: 'SELECT WKTDKEY, DUETIME, ID, PROCESSID FROM PWKTODO WHERE WKTDKEY = ?'
    at fuego.server.persistence.jdbc.JdbcToDoItemPersMgr.getWKItem(JdbcToDoItemPersMgr.java:548)
    at fuego.server.persistence.Persistence.getWKToDoItem(Persistence.java:518)
    at fuego.server.service.DirectoryListener.stopDirectoryPollingToDoItem(DirectoryListener.java:282)
    at fuego.ejbengine.service.EJBDirectoryListener.access$100(EJBDirectoryListener.java:26)
    at fuego.ejbengine.service.EJBDirectoryListener$1.execute(EJBDirectoryListener.java:70)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:79)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
    at fuego.ejbengine.service.EJBDirectoryListener.start(EJBDirectoryListener.java:56)
    at fuego.server.service.AbstractService.changeRunLevel(AbstractService.java:99)
    at fuego.server.service.AbstractService.setRunLevel(AbstractService.java:52)
    at fuego.ejbengine.service.EJBDirectoryListener.initialize(EJBDirectoryListener.java:42)
    at fuego.ejbengine.Engine.startServices(Engine.java:414)
    at fuego.ejbengine.Engine.start(Engine.java:126)
    at fuego.ejbengine.ItemExecutionBean.ejbCreate(ItemExecutionBean.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.manager.MessageDrivenManager.createBean(MessageDrivenManager.java:307)
    at weblogic.ejb.container.pool.MessageDrivenPool.createBean(MessageDrivenPool.java:174)
    at weblogic.ejb.container.pool.Pool.createInitialBeans(Pool.java:300)
    at weblogic.ejb.container.manager.MessageDrivenManager.start(MessageDrivenManager.java:581)
    at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.mdManagerStart(MessageDrivenBeanInfoImpl.java:1163)
    at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.deployMessageDrivenBeans(MessageDrivenBeanInfoImpl.java:1143)
    at weblogic.ejb.container.deployer.EJBDeployer.deployMessageDrivenBeans(EJBDeployer.java:1587)
    at weblogic.ejb.container.deployer.EJBDeployer.start(EJBDeployer.java:1410)
    at weblogic.ejb.container.deployer.EJBModule.start(EJBModule.java:589)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: Invalid column type
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7931)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7511)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:7984)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:237)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:287)
    at fuego.jdbc.FaultTolerantPreparedStatement.setString(FaultTolerantPreparedStatement.java:436)
    at fuego.server.persistence.jdbc.JdbcToDoItemPersMgr.getWKItem(JdbcToDoItemPersMgr.java:479)
    ... 56 more

    Only the weblogic oracle drivers are supported in 6.0 and 10gR3 for the Directory and Engine datasources.

  • Using the Oracle Driver on the portal box

    I wrote a server API application that uses the DataDirect oracle driver (as I didn't want to install the whole (*#$$*$ oracle client install on my portal box) but cleverly, it pops up a warning saying it should only be used for the portal. Is there some param I can pass to this driver to remove the popup/block?
    After all, I AM using it for the portal. ;)
    Thanks,
    Jesse

    Plumtree.dll contains the licensing infomation necessary to use the Datadirect driver and when plumtree connects to the db...this licensing information is passed through. You will only be able to create applications that use Datadirect through plumtree.dll.
    Are you accessing the server API through plumtree.dll directly? How was this installed on the machine?------- Jesse Wolfe wrote on 5/28/04 2:01 AM -------
    I wrote a server API application that uses the DataDirect oracle driver (as I didn't want to install the whole (*#$$*$ oracle client install on my portal box) but cleverly, it pops up a warning saying it should only be used for the portal. Is there some param I can pass to this driver to remove the popup/block?
    After all, I AM using it for the portal. ;)
    Thanks,
    Jesse

  • How does a Date Parameter get interpreted using an Oracle Query

    I have a SSRS Report which utilizes an Oracle Data Source and the following query...
    select TRIM(to_char(TO_DATE(:mydate),'Month')) || ' ' || TRIM(to_char(TO_DATE(:mydate),'YYYY')) as compare_month,
    cs.contract_nbr,
    m.hcfa_nbr,
    m.fname,
    m.lname,
    cs.group_nbr,
    cs.division_nbr,
    to_char(to_date(cs.ymdeff,'yyyymmdd'),'mm/dd/yyyy') as date_eff,
    to_char(to_date(cs.ymdend,'yyyymmdd'),'mm/dd/yyyy') as date_end,
    ssw.num_months,
    ssw.ssa_premium_collected,
    ssw.ssa_penalty_collected
    from amiown.contract_span cs
    left join (select distinct
    m.member_nbr,
    m.contract_nbr,
    trim(m.firstname) as fname,
    trim(m.lastname) as lname,
    m.hcfa_nbr
    from amiown.member m
    inner join amiown.member_span ms
    on ms.member_nbr = m.member_nbr
    and trunc(to_date(:mydate),'Month') <= to_date(ms.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(ms.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    and ms.void = ' '
    and ms.class_x = 'CH' -- contract-holders only
    ) m
    on cs.contract_nbr = m.contract_nbr
    left join (select hno.member_id,
    substr(hno.member_id,1,9) as contract_nbr,
    pw.hic_number,
    pw.report_date,
    pw.start_date,
    pw.end_date,
    pw.num_months,
    pw.part_c_collected + pw.part_d_collected as ssa_premium_collected,
    pw.penalty_collected as ssa_penalty_collected
    from SC_BASE.hcfa_arch_premiumwithhold pw
    left join SC_BASE.hcfa_name_org hno
    on pw.name_id = hno.name_id
    where pw.report_date between pw.start_date
    and pw.end_date -- filter out adjustments
    and trunc(to_date(:mydate),'Month') <= pw.end_date -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= pw.start_date -- end of month is >= than beginning of span
    order by substr(hno.member_id,1,9)
    ) ssw
    on trim(cs.contract_nbr) = trim(ssw.contract_nbr)
    where cs.division_nbr like '%SSW%'
    and cs.void <> 'V'
    and trunc(to_date(:mydate),'Month') <= to_date(cs.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(cs.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    The :mydate parameter is defined in the .rdl with a Data type: of Date/Time
    I am trying to trouble shoot this by using a Linked Server to Oracle and even going against Oracle itself...providing the following syntax because I believe this is what's being sent over via SSRS...
    WHERE   TRUNC(TO_DATE(11/30/2014 00:00:00), 'Month')        <=      HCFA_ARCH_PREMIUMWITHHOLD.END_DATE
    However, every time I try this, I get an Oracle error...ORA-01843: not a valid month
    Can anyone help me out in the data transformation from SSRS to Oracle and the syntax that actually gets passed over so that I can try and troubleshoot this?
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyp,
    Please add the myDate field in the report to check if the myDate have the format like:'MM/DD/YYYY hh:mm:ss AM' or 'MM/DD/YYYY hh:mm:ss PM', If so, your issue can be caused by the format of the :mydate  parameter which is like 'MM/DD/YYYY hh:mm:ss AM'
    or 'MM/DD/YYYY hh:mm:ss PM' in the report ,so it have extra ' AM' or ' PM' compare with that in the TRUNC(TO_DATE('11/30/2014 00:00:00'), 'Month').
    You can get the format wanted 'MM/DD/YYYY hh:mm:ss' from 'MM/DD/YYYY hh:mm:ss AM' as below:
    You can create an new calculated field to get the new date by using expression as below and then create the parameter based on this calculated field:
    =Fields!DateTime.Value.ToString().Replace(" AM","").Replace(" PM","")
    You can also hide the :myDate parameter and then create an new parameter(NewMyDate) based on the :myDate
    parameter which will have the format like 'MM/DD/YYYY hh:mm:ss':
    Specify the available value and default value using below expression:
    =Parameters!myDate.Value.ToString().Replace(" AM","").Replace(" PM","")
    Then you can use the @NewMyDate to add in the query to filter the data.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to create a connection pooling in Netbeans 6.0 using the oracle driver

    hi all,
    I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
    I tried to create a connection pooling using tomcat web server.
    I have included the following code in context.xml and web.xml.
    CONTEXT.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/network1">
    <Resource name="jdbc/myoracle"
    auth="Container"
    type="javax.sql.DataSource"
    username="scott"
    password="tiger"
    factory="BasicDataSourceFactory"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
    maxActive="20"
    maxIdle="10"
    maxwait="-1"/>
    </Context>
    WEB.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
    classes 111.jar,
    classes 111_g.jar
    classes12.jar
    classes 12_g.jar
    classes12dms.jar
    classes12dms_g.jar
    nls_charset11.jar
    nls_charset12.jar
    ocrs12.jar
    ojdbc14.jar
    ojdbc14_g.jar
    Then i stop the tomcat web server and start it again.
    In jsp page i have included the following code:
    Context ctx=new InitialContext();
    Context envctx=(Context)ctx.lookup("java:comp:env");
    DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
    Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
    please help me how to create a connection pooling and rectify the error in conneciton.
    Thanks in advance

    Please refer
    http://www.netbeans.org/kb/60/web/customer-book.html

  • Classic ASP - "ORA-01722: invalid number" using OraOLEDB.Oracle driver

    I am working on doing some maintenance updates to a Classic ASP website, and I need to be able to run an insert/update statement for putting values into a lookup table. I am currently running into an "ORA-01722: invalid number" error when trying to use ADO and bind variables for my insert statement.
    Below is an example of a table that I am having problems with:
    CREATE TABLE "MATMGR"."TEST_SWING_TABLE"
    (     "TABLE1_ID" NUMBER(4,0) NOT NULL ENABLE,
         "TABLE2_ID" NUMBER(4,0) NOT NULL ENABLE,
         CONSTRAINT "TEST_SWING_TABLE_PK" PRIMARY KEY ("TABLE1_ID", "TABLE2_ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    Here is some snippet code of the basic functionality I am trying to get to work:
    ''START CODE''
    Dim connDb, cmdDoseInsert
    Set connDb = Server.CreateObject("ADODB.Connection")
    connDb.CursorLocation = adUseClient ' Setup to return RecordSet
    connDb.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source={host};User ID={user id};Password={password}"
    connDb.Open()
    Set cmdDoseInsert = Server.CreateObject("ADODB.command")
    Set cmdDoseInsert.ActiveConnection = connDb
    cmdDoseInsert.CommandType = adCmdText
    cmdDoseInsert.NamedParameters = true ' Set the command object to use named parameters
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.CommandTimeout = 0
    cmdDoseInsert.CommandText = "INSERT INTO TEST_SWING_TABLE (TABLE1_ID, TABLE2_ID) VALUES (:P_TABLE1_ID, :P_TABLE2_ID)"
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE1_ID", adNumeric, adParamInput)
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE2_ID", adNumeric, adParamInput)
    '... START: While Looping
         cmdDoseInsert.Parameters(0).Value = {some numeric value}
         cmdDoseInsert.Parameters(1).Value = {some numeric value}
         cmdDoseInsert.Execute
    '... END: Looping
    ''END CODE''
    What I have been able to find out so far is that there is some type of issue with numeric values getting translated right when sending two and retrieving from Oracle in ASP. So, does anyone have any thoughts on how to resolve this as I would like to use parameterized SQL to improve application performance?
    I am connecting to a developmental server running Oracle 9.2

    Ok, in my slightly larger example I found out that for what ever reason my named parameters are not being enforced, and so I had to make sure that the parameters were in the same order as they appeared in the SQL. To be on the save side, I did this when they were added as well as when I was assigning values to them.
    Can anyone tell me if this is an Oracle issue or a ASP issue?

  • Why getting WebLogic Connection when using Oracle Driver?

    Does anyone know why I would be getting back an instance of weblogic.jdbc.rmi.SerialConnection
    when retrieving a connection out of the connection pool, via my JDBC TX DataSource,
    when my JDBC Connection pool is configured to use oracle.jdbc.OracleDriver. Seems
    that since I'm using the Oracle driver I should not be getting back this WebLogic
    connection.
    Any insight is appreciated :)
    thanks,
    Dan

    innumonenu wrote:
    Even we are facing the same problem of ClassCastException when we try to cast to
    OracleCallableStatement from the weblogic pool made of Oracle JDBC driver.
    What is the URL which explains,
    "Our wrappers do provide access to various non-standard
    Oracle methods, and we document how to cast (to our concret class or to an interface
    we define) in order to access these calls." as said by Joseph.http://e-docs.bea.com/wls/docs70/jdbc/thirdparty.html#1043705
    >
    >
    "Dan Branley" <[email protected]> wrote:
    Joseph,
    Thanks for the insight. This answers a lot of questions. I appreciate
    the thorough
    explanation. Your assumption is correct. I am trying to use an Oracle
    extension,
    specifically I need to call PreparedStatement.setBlob() passing an instance
    of
    an Oracle BLOB.empty_lob(). I'll take a look at the WLS documentation
    for an
    alternative.
    thanks,
    Dan Branley
    Joseph Weinstein <[email protected]> wrote:
    We never give application code direct access to pooled connections.We
    always
    supply a wrapper class. These wrapper classes have various extra functionality,
    such as cooperating under-the-covers with the transaction coordinator
    to provide
    EJB/UserTransaction transactional semantics/guarantees, regardless of
    the number
    of EJBs involved in a given transaction. For instance, when in an EJB/UserTransaction,
    our wrapper will cheerfully ignore if application code calls a Connection.commit().
    The
    application code has no idea really when the transaction is done and
    commitable, only
    the transaction coordinator does. Most simply, our pools guarantee that
    whatever
    application reserves a pool connection will have sole use of it until
    they close the connection
    to return it to the pool. If we allowed direct access to a pooled connection,
    one application
    could cache the reference, and re-use it later when we presumed to allow
    another user to
    use it from the pool. Some of our wrapper objects are RMI-enabled so
    they work in
    external client JVMs and will do JDBC over the wire to the weblogicserver
    and it's
    pool connections. This wayt application code need not change to work
    inside or
    outside weblogic.
    I suspect this question is because you want to use some of Oracle's
    non-standard
    extensions to JDBC. Our wrappers do provide access to various non-standard
    Oracle methods, and we document how to cast (to our concret class or
    to an interface we
    define) in order to access these calls. Not all calls can be successfully
    proxied by our wrappers
    because some Oracle methods (which claim to take java.sql object asarguments)
    actually
    require oracle specific classes, and reject our proxies, even if they
    are standard JDBC objects.
    Joe
    Dan Branley wrote:
    Does anyone know why I would be getting back an instance of weblogic.jdbc.rmi.SerialConnection
    when retrieving a connection out of the connection pool, via my JDBCTX DataSource,
    when my JDBC Connection pool is configured to use oracle.jdbc.OracleDriver.Seems
    that since I'm using the Oracle driver I should not be getting backthis WebLogic
    connection.
    Any insight is appreciated :)
    thanks,
    Dan

  • Oracle Driver in weblogic.jar - 6.1

    I was browsing through the weblogic.jar file in Weblogic 6.1 and I saw there were
    some oracle.jdbc.* classes in there. Can someone explain what these drivers are?
    Are these just to support the OCI drivers? Is there a Type 4 driver included?
    I didn't see any mention of these in the documentation.

    brian koh wrote:
    >
    I have used the oracle driver from the oracle site ie classes12.zip for oracle 9i. However, I could not get the connection pool to work. When initializing, it throws an sqlException with the error "Invalid arguments in call". Also just before the exception is thrown there is a line which says "sleeping in createResource()".
    This is the url I am using:
    jdbc:oracle:thin:@192.168.10.254:1521:orcl
    Would appreciate any help to solve the error.
    thanx
    BrianHi. Do you have the Oracle driver ahead of all weblogic jar files in the server's
    classpath? Show me the whole stacktrace of the exception.
    Joe
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX

  • Fail to bind Java Short/Byte type in  Oracle Driver in WLS6.1

    Hi,
    In Oracle, the field is defined as Number(5), but we failed to bind
    the Java Short/Byte object to the PreparedStatement in WLS.
    WLS 6.1 with SP2.
    Any hint here? Or other people can succeed with Oracle's own driver.
    I have noticed a post about WLS's Oracle Driver support will be ceded
    in the future. Can we still get support on the Oracle Driver from WLS?
    Thanks,
    Sheng Song

    We get this exception thrown from WLS:
    java.sql.SQLException: Cannot bind object type: java.lang.Short
         at weblogic.jdbc.oci.Statement.setObject(Statement.java:1412)
         at weblogic.jdbc.jts.Statement.setObject(Statement.java:952)
         at
    weblogic.jdbc.rmi.internal.PreparedStatementImpl.setObject(PreparedStatementImpl.java:304)
         at
    weblogic.jdbc.rmi.SerialPreparedStatement.setObject(SerialPreparedStatement.java:386)
    The method is like
         pStmt.setObject(1, new Short(2));
    Seems like the driver failed to bind Short type correctly to Number
    type.
    Thanks
    Sheng Song
    On Thu, 24 Jan 2002 21:11:47 -0800, "Slava Imeshev"
    <[email protected]> wrote:
    Hi Simon,
    Could you show us your code?
    Do you get any exceptions?
    Regards,
    Slava Imeshev
    "Simon Song" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    In Oracle, the field is defined as Number(5), but we failed to bind
    the Java Short/Byte object to the PreparedStatement in WLS.
    WLS 6.1 with SP2.
    Any hint here? Or other people can succeed with Oracle's own driver.
    I have noticed a post about WLS's Oracle Driver support will be ceded
    in the future. Can we still get support on the Oracle Driver from WLS?
    Thanks,
    Sheng Song

  • Remote connect  / Oracle driver

    Using Oracle 10g and Perl 5.8.0 on linux, I'm connecting remotely using a Oracle driver compile in Perl. When I run my script I receive the following error:
    "install_driver(Oracle) failed: Can't load '/usr/local.....site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1; cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229."
    Both the Oracle.so and the DynaLoader.pm are on the machine I'm running the connect script from.
    Any help is appreciated!

    Place some debugging code and see if URL is null. Also, although it is nice practice, you don't need to catch every type of exception. Try (no pun intended):
    catch (Exception e) {
    System.err.println(e.getClass().getName() + ":" + e.getMessage());
    - Saish
    "My karma ran over your dogma." - Anon

  • ClassNotFoundException using jdbc thin driver & JDK 1.2.2

    Hi
    I have written an applet to connect to an Oracle 8.0 Data Base
    using the OracleDriver.class, and compiled it using JDK1.1.8.
    However, when I switched to the later JDK1.2.2 (to use the swing
    libraries) I found that I could no longer use the Oracle
    Driver. I get an error:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I know that my ClassPath is set correctly, so can anyone suggest
    the cause?
    Regards,
    Rich
    null

    Rich (guest) wrote:
    : Hi
    : I have written an applet to connect to an Oracle 8.0 Data Base
    : using the OracleDriver.class, and compiled it using JDK1.1.8.
    : However, when I switched to the later JDK1.2.2 (to use the
    swing
    : libraries) I found that I could no longer use the Oracle
    : Driver. I get an error:
    : java.lang.ClassNotFoundException:
    oracle.jdbc.driver.OracleDriver
    : I know that my ClassPath is set correctly, so can anyone
    suggest
    : the cause?
    : Regards,
    : Rich
    I had to unzip the file and then it worked.
    null

  • Oracle Drive, dav_portal and accents

    Hi everyone.
    I am using the DAV protocol to have access to some of my documentation in Portal.
    The thing is when I use some accent in the archives names like "documentaciónuno.doc" and try to access to the DAV with Oracle Drive, the archive is listed like "documentaciónuno" and wont let me even open it. If I try to open it, word say something like there is an error opening the file.
    Any idea why is this happening?

    I have the exact same problem on Oracle Portal 10.1.4 while I'm using Windows XP. I never had the webdav problem when I was using Windows 2000/NT on older versions of the portal. There is a note on Metalink (Note:338932.1) that seems relevant to this issue but I haven't been able to try WebDAV while using a different OS than Windows XP to confirm that is the bug I've encountered. The solution in that note says "Wait for the bug fix (no earlier than Portal 11.0) OR Use a client other than Windows XP."
    I found another note (Note:367860.1) with the solution being to install and use the Oracle Drive client. Did that, and still got an "Error 5: Access is denied" alert when trying to add a file to a plain portal page with NO tabs and a single Items region that allows users to add content to it. Next, under that page's properties on the Items tab, in the Default WebDAV Types section, changed Default Regular Files to Simple File and tried adding a file using WebDav and ta-daaaa! It worked. However, I don't want to use the Simple File item type, I want to use the regular File!!! And yes, I have made some customizations to the File item (changed defaults, re-order attributes, etc.) Not sure what to do next. Any ideas???

  • Oracle drive and oradav - ORA-20504: User not authorized to perform the req

    Anyone have any idea why we may not be allowed to copy files to portal?
    We have checked the edit region to allow all files, quota is unlimited and we're using portal as a priviledged user (manage) for the page group.
    For some reason we are globally blocked from copying files to /dav_portal/portal.
    Any suggestions?

    I have the exact same problem on Oracle Portal 10.1.4 while I'm using Windows XP. I never had the webdav problem when I was using Windows 2000/NT on older versions of the portal. There is a note on Metalink (Note:338932.1) that seems relevant to this issue but I haven't been able to try WebDAV while using a different OS than Windows XP to confirm that is the bug I've encountered. The solution in that note says "Wait for the bug fix (no earlier than Portal 11.0) OR Use a client other than Windows XP."
    I found another note (Note:367860.1) with the solution being to install and use the Oracle Drive client. Did that, and still got an "Error 5: Access is denied" alert when trying to add a file to a plain portal page with NO tabs and a single Items region that allows users to add content to it. Next, under that page's properties on the Items tab, in the Default WebDAV Types section, changed Default Regular Files to Simple File and tried adding a file using WebDav and ta-daaaa! It worked. However, I don't want to use the Simple File item type, I want to use the regular File!!! And yes, I have made some customizations to the File item (changed defaults, re-order attributes, etc.) Not sure what to do next. Any ideas???

  • Do i need oracle portal to install Oracle Drive ?

    Hi,
    Sorry for this dumber question, I am now to this.
    I am using an enterprise oracle database and I want to use the Oracle Drive feature.
    Do I need to install Oracle Portal only for doing this ?
    Thank you for your kind answer.
    Regards,
    Christian

    I think you do because this is a WebDAV tool and allows you to see the page groups and pages as folders/directories.
    AMN

Maybe you are looking for

  • Windows - No Disk Error - Please help!

    Windows - No Disk Error - Please help! Hi, I have the following set up: * Lenovo T-61p * Windows XP Pro, SP 3 * HP Photosmart 8250 printer (with nothing plugged into the various card readers, and USB slot in the printer) I am getting the following er

  • Firefox and Camino will no longer run in Leopard

    I updated my 15" mpb to Leopard last week and everything went well. Then yesterday suddenly firefox would immediately crash and lock up the system completely. I reinstalled firefox, no good. I reinstalled Leopard, no change. I erased the drive and di

  • Re: Write-through caching in Forte

    Hello Mark, Just one point more. May be you can add an Event Notifier to the lock manager to send the new instance of Obj1 to the clients (here client2) who use it in their cache. Hope this helps. Daniel Nguyen. Mark S. Potts wrote: > Andrew This is

  • Are you kidding me!! On launch Day!!

    Just went to verizon to buy the Nokia 928...want to know why Nokia is WAY behind Android and Apple>. their marketing people must be working for the competition. They launched a new phone today on verizon..the Lumia 928 in only 2 colors(white/black).

  • R12 SLA drilldown security:How to restrict drilldown based on source/AppI

    Hi All, We are on R12 and SLA is configured and working fine. However we have a special requirement while performing drilldown from GL- SLA Navigation GL Super user -->Inquiry--> Journal -->Review Journal--> Line Drilldown Currently we can drilldown