Use of Oracle XMLType

When I try to use the Oracle XMLType class out of their XDB package in the following
manner:
// Convert the inventory details XML string into XMLType
XMLType t_inventoryDetails = XMLType.createXML(t_connection, aNewProduct.getInventoryDetails());
I get the following error:
SEVERE: A Throwable Exception occured:: [weblogic.jdbc.wrapper.PoolConnection_or
acle_jdbc_driver_OracleConnection]
java.lang.ClassCastException: weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_d
river_OracleConnection
at oracle.jdbc.driver.OracleConnection.unwrapCompletely(Loracle.jdbc.Ora
cleConnection;)Loracle.jdbc.driver.OracleConnection;(OracleConnection.java:5090)
at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(Ljava.sq
l.Connection;)Loracle.jdbc.internal.OracleConnection;(OracleConnection.java:5141
at oracle.sql.TypeDescriptor.setPhysicalConnectionOf(Ljava.sql.Connectio
n;)V(TypeDescriptor.java:494)
at oracle.sql.TypeDescriptor.<init>(Loracle.sql.SQLName;Ljava.sql.Connec
tion;)V(TypeDescriptor.java:147)
at oracle.sql.OpaqueDescriptor.<init>(Loracle.sql.SQLName;Ljava.sql.Conn
ection;)V(OpaqueDescriptor.java:151)
at oracle.sql.OpaqueDescriptor.createDescriptor(Ljava.lang.String;Ljava.
sql.Connection;)Loracle.sql.OpaqueDescriptor;(OpaqueDescriptor.java:86)
at oracle.xdb.XMLType.<init>(Ljava.sql.Connection;Ljava.lang.String;)V(X
MLType.java:496)
at oracle.xdb.XMLType.createXML(Ljava.sql.Connection;Ljava.lang.String;)
Loracle.xdb.XMLType;(XMLType.java:593)
My assumption is that XMLType does not like the wrapper WebLogic implemented in
8.1. Has anyone used the Oracle XMLType successfully from within WebLogic? If
so, how do you convert the XML document into the Object class?
Perry Hoekstra

Hi Joe,
Both these properties are configured:
Test Reserved Connections
Test Released Connections
Another point which I should have mentioned earlier is that we use OCI drivers. Are there any configuration while making the connection pool or in the tnsnames.ora (failover option) that we need to additionally select in order to make this work?
What would also be helpful is if you can redirect me to any documentation on this type of scenario.
Appreciate your help.
Thanks,
VD

Similar Messages

  • Oracle XMLType deleteXML problem

    Hi,
    I am new using oracle xmltype, got a idiot problem when call deleteXML with xpath. I am hoping I can get help here. Code below describes how I did and what is the problem/
    BTW, My oracle is
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Thanks in advance.
    Zhuang Zuo
    software developer
    [email protected]
    ===================================
    -- step 1. create a table
    create table XML_TABLE
    uname varchar2(50),
    xml_col xmltype
    -- step 2. insert data
    insert into xml_table
    (uname, xml_col)
    values (
    'z1',
    xmltype
    <root>
    <nodes>
    <node attr="a" />
    <node attr="b" />
    </nodes>
    </root>
    -- step3. query data
    select uname,
    extract (xml_col, '/root') root,
    extract (xml_col, '/root/nodes') nodes,
    extract (xml_col, '/root/nodes/node') node,
    extract (xml_col, '/root/nodes/node[@attr="a"]') node_a,
    extract (xml_col, '/root/nodes/node[@attr="b"]') node_b
    from xml_table
    all above return data as expected.
    -- "root" returns:
    <root>
    <nodes>
    <node attr="a"/>
    <node attr="b"/>
    </nodes>
    </root>
    -- "nodes" returns:
    <nodes>
    <node attr="a"/>
    <node attr="b"/>
    </nodes>
    -- "node" returns:
    <node attr="a"/>
    <node attr="b"/>
    -- "node_a" returns:
    <node attr="a"/>
    -- "node_b" returns:
    <node attr="b"/>
    -- no problem so far
    -- step 4. delete a node with xpath using update/deleteXML
    update xml_table
    set xml_col = deleteXML (xml_col, '/root/nodes/node[@attr="a"]')
    where existsnode (xml_col, '/root/nodes/node[@attr="a"]') = 1
    problem occurs here, showing in next step
    -- step5. repeat step3, query data using same sql in step 3
    --"root" returns data as expected:
    <root>
    <nodes>
    <node attr="b"/>
    </nodes>
    </root>
    --"nodes" returns data as expected:
    <nodes>
    <node attr="b"/>
    </nodes>
    --"node_a" return NO data, as expected
    --however, "node", "node_b" return NO data either, even though "root" and "nodes" return correct data
    why?
    PLEASE HELP ....
    Edited by: user10382724 on Apr 17, 2012 8:54 AM

    Hi,
    Looks like there's an issue with XML updating functions used over binary XMLType.
    This thread describes a similar problem : {thread:id=1091574}
    A possible workaround is the NO_XML_QUERY_REWRITE hint, but it's probably worth submitting the problem to Oracle Support anyway.

  • How to map CMP field to an Oracle XMLType?

    How can we map a WLS700 EJB2.0 CMP field to an Oracle XMLType?
    Is there some special configuration needed in the deployment descriptors?
    Thanx,
    Nico

    Hi
    System will prospose the existing object..just check if that the relavent and meaning ful object....if not create your own infoobject and map it...its not mandatory to use the proposed one..as its not the standard one..
    Create a new object and include in the infosource and then map in transfer rule
    Regards
    Ram
    Message was edited by: Ram

  • How to use a proxy; xmltype as a constructor

    How do I set the proxy server that is used by oracle internally, for example, when parsing an xml document that uses a dtd.
    As some background, I have a field in a database that is a varchar2. The content of this field is an xml fragment (actually xhtml).
    My query converts this into an XMLType object by using the XMLType function (as a constructor). To make this into a fragment rooted in a single element, I wrap this in a fresh div.
    So far so good. This all works. :-)
    This content sometimes contains entity references (like "& gt;" or "& nbsp;").
    Oracle could not handle this so I am now includin a DTD DOCTYPE declaration in my XMLType call. I'm using the XHTML 1.0 DTD.
    Here's a simplified version of my query:
    select
    headline,
    XMLType('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><div class="description">' || outage.description || '</div>')
    as description,
    timestamp
    from
    outage
    where
    o.activation_start <= TRUNC(SYSDATE)
    order by
    timestamp desc

    Matthew,
    Set the OS environment variable for the http proxy server.
    There is a metalink note that explains this.

  • Oracle XMLType with CMP EJBs

    Hi!
    I am currently trying to use Oracles XMLType with EJBs. Preferrably I would like to use CMP. Although the documentation http://e-docs.bea.com/wls/docs81/jdbc_drivers/oracle.html#1067224
    says that XMLType is mapped to a CLOB, I get an error
    ORA-00932: inconsistent datatypes: expected NUMBER got CLOB
    when trying to update it. (I marked the bean as dbms-column-type OracleClob). If I do not mark it as OracleClob, I get an SQLException invalid type sqlType=2007 .
    Is there another way to make XMLType work?
    Thanks so much,
    Hans-Peter Stoerr
    PS: We are using Bea Weblogic Portal 8.1, but might migrate to 9. The driver is the oracle thin driver with oracle 9.2.

    Hi Brian,
    Im not sure whats the issue with using DB Triggers. You could possibly have another
    column(s) for created_by and updated_by and still use triggeres for the create_time
    and update_time.
    Inheritance would make it better if u have multiple tables which need the same
    behaviour but the above solution maybe the easy one.
    -Raj
    "Brian Preston" <[email protected]> wrote:
    >
    Our DB has 4 'audit' columns : create_date, created_by, last_update_date,
    last_updated_by.
    We're currently not using ejbs, just J2SE, servlets & jsps, but I'm looking
    into
    using ejbs.
    Is there any kind of design pattern for this? I've been searching the
    newsgroups
    about this. I can't use DB triggers because our application connects
    to the DB
    as the same user, regardless of the application user.
    I'm trying to use inheritance as well, have a 'base' object that has
    these audit
    columns and have all the ejbs extend that base class.
    Another issue is how would I trigger setting these columns? Do I have
    to store
    all the column values in ejbLoad and compare them in ejbStore? I've also
    read
    a little about the javax.ejb.SessionSynchronization interface, can I
    use that?
    Thanks,
    Brian Preston

  • How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?

    I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.

    Hi Rohit,
    Would like to ask you some questions about the oracle report with Visual Basic.
    1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
    2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
    3. Is this activeX control similar to Crystal report object which can found in VB?
    4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
    Your answer will be much appreciated.
    Thanks.
    Regards,
    Hock Leong

  • 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)

  • Want to use single oracle home for multiple database releases

    Hi,
    I have following 3 different databases.
    Oracle7 Server Release 7.3.4.4.0
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit
    I want to access these databases using single oracle home. Please advise which client version I have to install to access these. I tried using Oracle Release 9.2.0.1.0 client but I am not able to connect to oracle 7 by using this.I am ready to have multiple oracle homes.But what client version I have to install and where can I get it.Your help will be highly appreciated.

    ... and 7 is using oracle 8.1.7 client.From your sales representative. 8i is no longer available for downloading,because desupported since many years.
    Werner

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • What are the UI components used in oracle adf?

    what are the UI components used in oracle adf?

    Web.:
    - ADF Faces and Trinidad JSF components
    http://docs.oracle.com/cd/E28280_01/apirefs.1111/e12419/toc.htm
    Desktop:
    - MS Excel
    http://www.oracle.com/technetwork/developer-tools/adf/overview/index-085534.html
    Mobile
    - AMX UI Components for Android and iOS
    Frank

  • What XA JDBC driver should I use with Oracle 8i 8.1.6

    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using the driver in
    a ConnectionPool in a TxDataSource for use by some entity beans using EJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 Server VM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver for Oracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any other drivers
    that I can use for Oracle 8.1.6? Which driver and which version should I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle 8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Which drivers
    are faster, and which support more features? I assume that I should not use the
    type 4 driver since I am not using an applet, but I don't know if there are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use it that prevent
    XA from woking. Which version of the Oracle C OCI library should I use if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

    Hi,
    I think you can't use the 8.1.6 thin driver for XA, you would have to
    use the OCI driver or 2PC-enable your datasource. AFAIK this has been
    changed for 8.1.7
    Check http://e-docs.bea.com/wls/docs61/////jta/thirdpartytx.html.
    Daniel
    -----Original Message-----
    From: Gene Chuang [mailto:[email protected]]
    Posted At: Thursday, August 30, 2001 2:04 AM
    Posted To: jdbc
    Conversation: What XA JDBC driver should I use with Oracle 8i 8.1.6
    Subject: Re: What XA JDBC driver should I use with Oracle 8i 8.1.6
    I've asked this question before. This is the reply from Joe
    Weinstein:
    For reliability and JDBC 2.0 compliance, I recommend the
    Oracle thin driver.
    If not that driver, you should verify that a type-2 driver
    actually does
    deliver better performance, but then I would not have a
    strong preference
    between their type-2 and ours. Theirs may be faster, and JDBC
    2.0 compliant.
    Both are succeptible to OCI bugs, some of which only they can
    fix, but we
    listen.
    Gene
    "Ross Goldberg" <[email protected]> wrote in message
    news:[email protected]...
    >
    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using thedriver in
    a ConnectionPool in a TxDataSource for use by some entity beans usingEJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 ServerVM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver forOracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any otherdrivers
    that I can use for Oracle 8.1.6? Which driver and which versionshould I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Whichdrivers
    are faster, and which support more features? I assume that I shouldnot use the
    type 4 driver since I am not using an applet, but I don't know ifthere are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use itthat prevent
    XA from woking. Which version of the Oracle C OCI library should Iuse if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

  • What are the common APIs we use in oracle interface

    What are the common APIs we use in oracle interface,and any APIs are there for validation Of data During Tranfer to interface table.
    How to find Api s in oracle applications in Individual modules

    For 11i, all public APIS are listed at http://irep.oracle.com
    For R12, use the "Integration Repository" responsibility in your R12 instance to list the APIs available in that instance
    HTH
    Srini

  • 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

  • Using Refcursor in Callable Statement without using the Oracle Drivers

    Hello all,
    Is there anyway to have a stored procedure (Oracle 8i) return a refcursor to my CallableStatement without using the Oracle Thin drivers (i'm now using jdbcodbc). I've tried registering my out parameter with every possible type i can think of...REF, JAVA_OBJECT, OTHER, etc. but with no luck.
    Help!!!!

    Certainly...I connect to the database using the
    jdbcodbc driver and when i execute any of the code, i
    get the following error:
    java.sql.SQLException: [Oracle][ODBC][Ora]ORA-06550:
    line 1, column 7:
    PLS-00306: wrong number or types of arguments in call
    to 'PVISUAL_GET'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It's bombing on the line that i attempt to register
    OracleTypes.CURSOR. It works fine when i use the
    oracle thin drivers, but i want to get this puppy
    working with the JdbcOdbcDriver. Here's the code:
    CallableStatement dbCall =
    nt dbCall =
    (CallableStatement)connection.prepareCall("{ call
    PAK_VISUAL_GET.pvisual_get(?, ?, ?, ?, ?, ?) }");
    dbCall.setString(1, sessionKey);
    dbCall.setInt(2,
    l.setInt(2, Integer.parseInt(storedVizID));
    dbCall.registerOutParameter(3,
    arameter(3, OracleTypes.CURSOR);
    dbCall.registerOutParameter(4,
    arameter(4, OracleTypes.NUMBER);
    dbCall.registerOutParameter(5,
    arameter(5, OracleTypes.VARCHAR);
    dbCall.registerOutParameter(6,
    arameter(6, OracleTypes.NUMBER);
    dbCall.execute();when you don't use oracle thin driver, you cannot use the OracleTypes. but, instead use the java.sql.Types values.Replace dbCall.registerOutParameter(3, OracleTypes.CURSOR); with
    dbCall.registerOutParameter(3,java.sql.Types.OTHER). things should be fine.
    Ganesh

  • What is use of oracle.iam.identity.usermgmt.vo.User class in oim11g

    Hi
    In oim11g in the api packages like below
    oracle.iam.identity.usermgmt.api
    oracle.iam.identity.usermgmt.vo
    From architecture standpoint what is the use of oracle.iam.identity.usermgmt.api and oracle.iam.identity.usermgmt.vo packages.
    How to use them?
    Thanks
    /S

    I want to share some more.
    You will find lots of VOs (Value Objects similar to Transfer Objects) exposed in OIM 11g for efficient data transfer, story behind is that they have implemented well design pattern.
    Transfer Object & Value Objects :-
    http://patternsj2ee.blogspot.com/
    http://rrees.wordpress.com/2007/05/13/transfer-objects-versus-value-objects/

Maybe you are looking for