Error in configuring Oracle OCI Driver in WLS

My application uses Oracle OCI driver for making JDBC connection from the server application.I have installed Oracle client in the machine.Added the Oracle Bin directory to System Path.But when i try to create the connection Pool Weblogic throws the error saying DLL file is not found in System.Library.Path.Can you help in solving this problem,Config detailsOS - Windows 2000 ProfessionalWeblogic 5.1 serverOracle 8.1.7 clientDriver used Oracle OCI driver...Expecting a reply

You need to set your path to point to the <wls-install-home>/bin/oci8xx_x/
folder as well. I dont think 5.1 supports 817 type 2 driver, you may have to
use the thin driver from oracle instead.
sree
"Varadharajan" <[email protected]> wrote in message
news:3b8f070f$[email protected]..
My application uses Oracle OCI driver for making JDBC connection from theserver application.I have installed Oracle client in the machine.Added the
Oracle Bin directory to System Path.But when i try to create the connection
Pool Weblogic throws the error saying DLL file is not found in
System.Library.Path.Can you help in solving this problem,Config detailsOS -
Windows 2000 ProfessionalWeblogic 5.1 serverOracle 8.1.7 clientDriver used
Oracle OCI driver...Expecting a reply

Similar Messages

  • ORA-01401 error on char column with oracle oci driver

    Hello,
    We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
    shipped as source with Kodo:
    In newer Kodo versions (at least in 3.3.4), the method
    public void setString (PreparedStatement stmnt, int idx, String
    val,          Column col)
    has the following code block:
    // call setFixedCHAR for fixed width character columns to get padding
    // semantics
    if (col != null && col.getType () == Types.CHAR
    && val != null && val.length () != col.getSize ())
    ((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
    This block seems to be intended for select statements but is called on
    inserts/updates also. The latter causes a known problem with the Oracle
    oci driver when settings CHAR columns as FixedCHAR, which reports an
    ORA-01401 error (inserted value too large for column) when definitely no
    column is too long. This does not happen with the thin driver.
    We reproduced this with 8.1.7 and 9.2.0 drivers.
    For us we solved the problem by subclassing OracleDictionary and removing
    the new code block.
    Regards,
    Rainer Meyer
    ELAXY Financial Software & Solutions GmbH & Co. KG

    Rainer-
    I read at
    re:'ORA-01401 inserted value too large for column' - 9i that:
    "This is fixed in Oracle9i Release 2"
    Can you try that version of the driver? Also, does it fail in the Oracle
    10 OCI driver?
    Rainer Meyer wrote:
    Hello,
    We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
    shipped as source with Kodo:
    In newer Kodo versions (at least in 3.3.4), the method
    public void setString (PreparedStatement stmnt, int idx, String
    val,          Column col)
    has the following code block:
    // call setFixedCHAR for fixed width character columns to get padding
    // semantics
    if (col != null && col.getType () == Types.CHAR
    && val != null && val.length () != col.getSize ())
    ((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
    This block seems to be intended for select statements but is called on
    inserts/updates also. The latter causes a known problem with the Oracle
    oci driver when settings CHAR columns as FixedCHAR, which reports an
    ORA-01401 error (inserted value too large for column) when definitely no
    column is too long. This does not happen with the thin driver.
    We reproduced this with 8.1.7 and 9.2.0 drivers.
    For us we solved the problem by subclassing OracleDictionary and removing
    the new code block.
    Regards,
    Rainer Meyer
    ELAXY Financial Software & Solutions GmbH & Co. KG
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Oracle OCI driver stops working after a while of disuse

    I am using wl server 8.1, oracle oci driver (oracle 9i client), on solaris.
    When i create a connection pool using the oci driver, it connects, and i
    test it, and the tests run fine.
    The Application works for a few days. Then eventually after disuse, say over
    the weekend, I get exceptions in the log (the message is at end of email).
    This is because it gives me a sql exception saying it cannot resolve the
    service name. The database is up and running, confirmed.
    I tried testing the connection pool manually through the console, and it
    failed with the service name exception. But it would connect fine when i
    used sqlplus to connect to the databse, using the same service name.
    Why does this deteriorate over time? Is there a specific test that would
    prevent this from happening?
    Once i restart the weblogic server, the connection pool connects fine. But
    this is not a solution, since I can't be restarting the server all the time.
    Any one got any ideas?
    -Ayan
    ------------WEBLOGIC MANAGED SERVER LOG----------
    ####<Mar 27, 2004 4:20:57 AM EST> <Error> <JDBC><<WLS Kernel>> <>
    <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "CRCPool2" failed
    with exception: "java.sql.SQLException: ORA-03113: end-of-file on
    communication channel
    ".>
    ####<Mar 27, 2004 4:20:57 AM EST> <Info> <JDBC> <<WLS Kernel>> <>
    <BEA-001128> <Connection for pool "CRCPool2" closed.>
    ---------- and then eventually this----------
    ####<Mar 28, 2004 4:33:11 AM EST> <Warning> <JDBC> <<WLS Kernel>> <>
    <BEA-001129> <Received exception while creating connection for pool
    "CRCPool2": ORA-12154: TNS:could not resolve service name
    >

    Ayan wrote:
    I am using wl server 8.1, oracle oci driver (oracle 9i client), on solaris.
    When i create a connection pool using the oci driver, it connects, and i
    test it, and the tests run fine.
    The Application works for a few days. Then eventually after disuse, say over
    the weekend, I get exceptions in the log (the message is at end of email).
    This is because it gives me a sql exception saying it cannot resolve the
    service name. The database is up and running, confirmed.
    I tried testing the connection pool manually through the console, and it
    failed with the service name exception. But it would connect fine when i
    used sqlplus to connect to the databse, using the same service name.
    Why does this deteriorate over time? Is there a specific test that would
    prevent this from happening?
    Once i restart the weblogic server, the connection pool connects fine. But
    this is not a solution, since I can't be restarting the server all the time.
    Any one got any ideas?
    -AyanHi. Is there a firewall between the weblogic server and DBMS? There is
    a problem with OCI losing connectivity to the DBMS. OCI may be keeping
    a socket open as long as the process (weblogic) is running.
    Joe
    ------------WEBLOGIC MANAGED SERVER LOG----------
    ####<Mar 27, 2004 4:20:57 AM EST> <Error> <JDBC><<WLS Kernel>> <>
    <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "CRCPool2" failed
    with exception: "java.sql.SQLException: ORA-03113: end-of-file on
    communication channel
    ".>
    ####<Mar 27, 2004 4:20:57 AM EST> <Info> <JDBC> <<WLS Kernel>> <>
    <BEA-001128> <Connection for pool "CRCPool2" closed.>
    ---------- and then eventually this----------
    ####<Mar 28, 2004 4:33:11 AM EST> <Warning> <JDBC> <<WLS Kernel>> <>
    <BEA-001129> <Received exception while creating connection for pool
    "CRCPool2": ORA-12154: TNS:could not resolve service name

  • Using Oracle OCI Driver 8.1.6 in Compaq Tru64 fastVM

    Hi!
    I try to using Oracle OCI Driver in Compaq Tru64.
    I used fast VM (with -fast option weblogic startup) then the result
    during populating Connection Pool, weblogic server down with core dump
    I attached core file.
    is there anyone in this situation?
    [weblogicOCITest.txt]

    Try using the 8.1.7 Thin Driver (the 8.1.6 Thin driver is buggy).
    "jungil, kim" wrote:
    Hi!
    I try to using Oracle OCI Driver in Compaq Tru64.
    I used fast VM (with -fast option weblogic startup) then the result
    during populating Connection Pool, weblogic server down with core dump
    I attached core file.
    is there anyone in this situation?
    ^A^G^A^E}v^A^C^A^R^_!®.E^?^A@˜B^K!@”K!^W
    !°o!ðµ.Ei^A@°R!Ø.E^AX^M^G!@”K!È´.E9i!Iweblogic/common/internal/ResourceAllocato
    r_Descriptor.serX^M^G!@”K!.E"i!2/fsweblogic/weblogic/classes/boot/°R!.E[X^M^G!@-
    ”K!¶.E[^Ai!2/fsweblogic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/b
    oot/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!¶.E[i![/fsweblo
    gic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descriptor.
    ser^T^O!x$^R!p.E^A^A ¸.Eø¸.E`K^R!¸¸.Eظ.E@X^A!^D@X^A!^D^P^M!ðµ.E^Dp.Ei!^Dread—^
    M!ø¸.E0
    !ðµ.E^A˜…^H!^A.Eh@¹.E¹.E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descri
    ptor.ser'^A!^Br'^A![/fsweblogic/weblogic/classes/boot/weblogic/common/internal/R
    esourceAllocator_Descriptor.ser'^A![/fsweblogic/weblogic/classes/boot/weblogic/c
    ommon/internal/ResourceAllocator_Descriptor.ser°R!ø».E[H(^G!^AÀ».Eؤ@л.Eл.Ei!^
    A@X^A!^F0f^G!xB^G!`N^G!^P/^G!HZ^G!:^G!i![/fsweblogic/weblogic/classes/boot/weblo
    gic/common/internal/ResourceAllocator_Descriptor.ser^C!^A^G^B@0
    !H.E^AX^M^G!@”K!p.E[^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/weblog
    ic/classes/boot/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!p.E[
    ˜…^H!^A¾.Eh@ ¾.E ¾.E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/boot/weblogic/common/internal/ResourceAllocator_Descri
    ptor.ser'^A!^Br'^A![/fsweblogic/weblogic/classes/boot/weblogic/common/internal/R
    esourceAllocator_Descriptor.ser°R!p.E; T^M!À.E9^A!]^B^M^C^F^H^N^K^\^A^A^Ll^C
    ^M^V"^^^V&^OE^A^B^AE^A^C^Z^C'^V\^D^AYY^D^PV^D^D^_V^D^B^R(^D^A'^B
    ^A^G^A^E}v^A^C^AX^M^G!@”K!^H.EZ^Ai!^]getResource( i!FgetResource( weblogic/commo
    n/internal/ResourceAllocator_Descriptor.seri!getResource( weblogic/common/intern
    al/ResourceAllocator_Descriptor.ser ) found result null°R!^H.EZX^M^G!@”K!ÈÄ.EX^A
    i!-ServerClassFinder.getSource( i!\ServerClassFinder.getSource( weblogic/common/
    internal/ResourceAllocator_Descriptor.ser )°R!ÈÄ.EXè³^T!(.EV^Ai!,/fsweblogic/web
    logic/license/i!Z/fsweblogic/weblogic/license/weblogic/common/internal/ResourceA
    llocator_Descriptor.ser0
    !øÆ.E^A°R!^P.EVi!V/fsweblogic/weblogic/license/weblogic/common/internal/Resource
    Allocator_Descriptor.ser˜…^H!^AøÇ.Eh@^H.E^H.E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/license/weblogic/common/internal/ResourceAllocator_Descriptor.
    ser'^A!^Br'^A!V/fsweblogic/weblogic/license/weblogic/common/internal/ResourceAll
    ocator_Descriptor.ser°R!^P.E6 0
    !ØÊ.E^AX^M^G!@”K!^X.EV^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblogic/
    classes/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!^X.EV˜…^H!^A
    [email protected]'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/common/internal/ResourceAllocator_Descriptor.
    ser'^A!^Br'^A!V/fsweblogic/weblogic/classes/weblogic/common/internal/ResourceAll
    ocator_Descriptor.ser°R!^X.E6 0
    ! .E^AX^M^G!@”K!H.E\^Ai!2/fsdev/ver/bc/webapp/serverclasses/i!f/fsdev/ver/bc/web
    app/serverclasses/weblogic/common/internal/ResourceAllocator_Descriptor.ser°R!H.
    E\˜…^H!^[email protected]'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    dev/ver/bc/webapp/serverclasses/weblogic/common/internal/ResourceAllocator_Descr
    iptor.ser'^A!^Br'^A!\/fsdev/ver/bc/webapp/serverclasses/weblogic/common/internal
    /ResourceAllocator_Descriptor.ser°R!H.E< X^M^G!@”K! .E5^Ai!A[ServerClassFinder]f
    ound local classpath source: null°R! .E5i!9weblogic/common/internal/resourceallo
    cator_descriptor.ser°R!`.E9i!9weblogic/common/internal/resourceallocator_descrip
    tor.serX^M^G!@”K!ØÒ.EZ^Ai!^]getResource( i!FgetResource( weblogic/common/interna
    l/ResourceAllocator_Descriptor.seri!getResource( weblogic/common/internal/Resour
    ceAllocator_Descriptor.ser ) found source null°R!ØÒ.EZ ^_!H.E0.EX^M^G!@”K!Ô.EI
    ^Ai!^_Failed to find i!IFailed to find /weblogic/common/internal/ResourceAllocat
    or_Descriptor.ser°R!Ô.EI9^A!9\^D^AxY^D^PV^D^D^_V^D^B^R(^D^A'^B
    @^B ?6^D^HT8^D^B^Q6^D^Y^G^D^HN^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AF*!Áå¼ ^PO.E/^\E!!/^\Eh.E°R!.E*i!*weblogic.common.internal.Resou
    rceAllocator¸î!!/^\EøÖ.E°R!^P.E*i!*weblogic.common.internal.ResourceAllocator°R!
    ˆ×.E i! weblogic.time.common.ScheduleDef°R!ˆ×.E^T°R!^H.E i! weblogic/time/common
    /ScheduleDefp^B!p.Eð×.E9^A!?^V^P^V^Q^F^V, ^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
    ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AxA^M!pb^[email protected]! weblogic/time/common/ScheduleDef°R!ˆÙ.E i!&weblo
    gic/time/common/ScheduleDef.class°R!ðÙ.E&T^M!p.E9^A!N^B^M^C^F^H^N^K^\^A^Zl^E
    ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^
    D:^D^A'
    ^A^G^A^E}v^A^C^Ap^B!ÐÛ.Ep.E9^A!B^AEl^E ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^
    E ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    !°o!(.Ei^A@°R!`.EX^M^G!@”K!(.E&i!6weblogic/time/common/ScheduleDef.classX^M^G!@-
    ”K!¸Þ.E"i!2/fsweblogic/weblogic/classes/boot/°R!ðà.EHX^M^G!@”K!.EH^Ai!2/fsweblog
    ic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/boot/weblogic/time/comm
    on/ScheduleDef.class°R!.EHi!H/fsweblogic/weblogic/classes/boot/weblogic/time/com
    mon/ScheduleDef.class^T^O!0
    !^H.E^AX^M^G!@”K!0.EH^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/weblo
    gic/classes/boot/weblogic/time/common/ScheduleDef.class°R!0.EH˜…^H!^AP.Eh@`.E`.E
    '^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/boot/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!
    H/fsweblogic/weblogic/classes/boot/weblogic/time/common/ScheduleDef.class°R!0.E7
    ^QT^M!Èä.E9^A!K^B^M^C^F^H^N^K^\^A^Zl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
    ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^Ap^B!^X.Ep.E9^A!?^AEl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^E
    ^A"^B^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AX^M^G!@”K!x.E+^Ai!^XLoading i!2Loading weblogic.time.common.Sche
    duleDef...°R!x.E+i! weblogic/time/common/ScheduleDef°R!.E X^M^G!@”K!.E&^Ai!0webl
    ogic/time/common/ScheduleDef.class°R!.E&X^M^G!@”K!ˆé.EE^Ai!-ServerClassFinder.ge
    tSource( i!\ServerClassFinder.getSource( weblogic/time/common/ScheduleDef.class
    )°R!ˆé.EEè³^T!èê.EC^Ai!,/fsweblogic/weblogic/license/i!Z/fsweblogic/weblogic/lic
    ense/weblogic/time/common/ScheduleDef.class0
    !¸ë.E^A°R!Ðë.ECi!C/fsweblogic/weblogic/license/weblogic/time/common/ScheduleDef.
    class˜…^H!^A˜ì.Eh@¨ì.E¨ì.E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/license/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
    eblogic/weblogic/license/weblogic/time/common/ScheduleDef.class°R!Ðë.E2^Q0
    [email protected]^AX^M^G!@”K!.EC^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblogic/cla
    sses/weblogic/time/common/ScheduleDef.class°R!.EC˜…^H!^Aˆï.Eh@˜ï.E˜ï.E'^A!^A?@X^
    A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
    eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class°R!.E2^Q˜í^S!ðí.E
    X^M^G!@”K!˜ñ.Et^Ai!A[ServerClassFinder]found local classpath source: i![ServerCl
    assFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/ti
    me/common/ScheduleDef.class°R!˜ñ.EtX^M^G!@”K!0.E2^Ai!"Found local class i!FFound
    local class weblogic.time.common.ScheduleDef°R!0.E2˜…^H!^A^P.Eh@ .E .E'^A!^A?@X
    ^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
    eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^AÊþº¾^C-^T^G
    ^S^G^O^G^M^G^N^A^MConstantValue^A"(Lweblogic/common/T3ServicesDef;)V^A
    Exceptions^A^LscheduleInit^A^OLineNumberTable^A
    SourceFile^A^NLocalVariables^A^DCode^A weblogic/time/common/ScheduleDef^A weblog
    ic/time/common/Schedulable^A^Pjava/lang/Object^A^](Lweblogic/common/ParamSet;)V^
    A^PScheduleDef.java^A^KsetServices^A!weblogic/common/ParamSetException^B^A^C^B^A
    ^D^B^D^A^R^F^D^A^H^P^A^G^D^A^A^A
    ^B^Q(!^D!øÜ^CA@^^.E^Y/Eèß^G!˜…^H!^AP.Eh@`.E`.E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class'^A!^Bs'^A!C/fsw
    eblogic/weblogic/classes/weblogic/time/common/ScheduleDef.class°R!ˆ×.E^TE^A!X^M^
    G!@”K!.Ep^Ai!^WLoaded i!0Loaded weblogic.time.common.ScheduleDef from i!pLoaded
    weblogic.time.common.ScheduleDef from /fsweblogic/weblogic/classes/weblogic/time
    /common/ScheduleDef.class°R!.Ep°R! ú.E^_i!^_weblogic.time.common.TriggerDef°R! ú
    .E^T°R! .E^_i!^_weblogic/time/common/TriggerDefp^B!ˆû.E^H.E9^A!?^V^P^V^Q^F^V, ^V
    ,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AxA^M!pb^A@ˆú.Ei!^_weblogic/time/common/TriggerDef°R! ü.E^_i!%web
    logic/time/common/TriggerDef.class°R!^H.E%T^M!ˆý.E9^A!N^B^M^C^F^H^N^K^\^A^Zl^E
    ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^
    D:^D^A'
    ^A^G^A^E}v^A^C^Ap^B!èþ.Eˆú.E9^A!B^AEl^E ^M^V,*^V,^W^D$^V+^CE^A^M^NE^A^AP^V+^C^A^
    F^D^A"'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AxA^M!^?^A@ˆú.Ei!^_weblogic/time/common/TriggerDef°R!^P/E^_i!%web
    logic/time/common/TriggerDef.class°R!x/E%˜B^K!@”K!^W
    !°o!@^B/Ei^A@°R!x/EX^M^G!@”K!@^A/E%i!5weblogic/time/common/TriggerDef.classX^M^G
    !@”K!^A/E"i!2/fsweblogic/weblogic/classes/boot/°R!^C/EGX^M^G!@”K!^B/EG^Ai!2/fswe
    blogic/weblogic/classes/boot/i!f/fsweblogic/weblogic/classes/boot/weblogic/time/
    common/TriggerDef.class°R!^B/EGi!G/fsweblogic/weblogic/classes/boot/weblogic/tim
    e/common/TriggerDef.class^T^O!0
    !^E/E^AX^M^G!@”K!^P^E/EG^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/we
    blogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/EG˜…^H!^A0^F/Eh
    @@^F/E@^F/E'^A!^A?@X^A!
    !^E/E^AX^M^G!@”K!^P^E/EG^Ai!1/fsweblogic/weblogic/classes/boot/i!d/fsweblogic/we
    blogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/EG˜…^H!^A0^F/Eh
    @@^F/E@^F/E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/boot/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!G
    /fsweblogic/weblogic/classes/boot/weblogic/time/common/TriggerDef.class°R!^P^E/E
    7^PT^M!^G/E9^A!K^B^M^C^F^H^N^K^\^A^Zl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A
    "'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^Ap^B!^H/Eˆú.E9^A!?^AEl^E ^M^V,*^D$^V+^CE^A^M^NE^A^AP^V+^C^A^F^D^A
    "'^D ^D^H^B^D^Mu^B^B^A~^A^B^D:^D^A'
    ^A^G^A^E}v^A^C^AX^M^G!@”K!X
    /E*^Ai!^XLoadingi!2Loading weblogic.time.common.TriggerDef...°R!X
    /E*i!^_weblogic/time/common/TriggerDef°R!
    /E^_X^M^G!@”K!`^K/E%^Ai!/weblogic/time/common/TriggerDef.class°R!`^K/E%X^M^G!@”K
    !h^L/ED^Ai!-ServerClassFinder.getSource( i!\ServerClassFinder.getSource( weblogi
    c/time/common/TriggerDef.class )°R!h^L/EDè³^T!^M/EB^Ai!,/fsweblogic/weblogic/lic
    ense/i!Z/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.class0
    !^N/E^A°R!^N/EBi!B/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.c
    lass˜…^H!^Ap^O/Eh@^O/E^O/E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/license/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/license/weblogic/time/common/TriggerDef.class°R!^N/E2^P0
    !^N/E^A°R!^N/EBi!B/fsweblogic/weblogic/license/weblogic/time/common/TriggerDef.c
    lass˜…^H!^Ap^O/Eh@^O/E^O/E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/license/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/license/weblogic/time/common/TriggerDef.class°R!^N/E2^P0
    !^P^R/E^AX^M^G!@”K!P^Q/EB^Ai!,/fsweblogic/weblogic/classes/i!Z/fsweblogic/weblog
    ic/classes/weblogic/time/common/TriggerDef.class°R!P^Q/EB˜…^H!^AX^R/Eh@h^R/Eh^R/
    E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/classes/weblogic/time/common/TriggerDef.class°R!P^Q/E2^P˜í^S!^P/
    EX^M^G!@”K!`^T/Es^Ai!A[ServerClassFinder]found local classpath source: i![Server
    ClassFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/
    time/common/TriggerDef.class°R!`^T/EsX^M^G!@”K!^U/E1^Ai!"Found local class i!FFo
    und local class weblogic.time.common.TriggerDef°R!^U/E1˜…^H!^A^V/Eh@^V/E^V/E'^A!
    ^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^AÊþº¾^C-^T^G^S
    ^G^O^G^F^G^P^A^MConstantValue^A^_weblogic/time/common/TriggerDef^A^KtriggerInit^
    A"(Lweblogic/common/T3ServicesDef;)V^A
    Exceptions^A^OLineNumberTable^A
    ClassFinder]found local classpath source: /fsweblogic/weblogic/classes/weblogic/
    time/common/TriggerDef.class°R!`^T/EsX^M^G!@”K!^U/E1^Ai!"Found local class i!FFo
    und local class weblogic.time.common.TriggerDef°R!^U/E1˜…^H!^A^V/Eh@^V/E^V/E'^A!
    ^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^AÊþº¾^C-^T^G^S
    ^G^O^G^F^G^P^A^MConstantValue^A^_weblogic/time/common/TriggerDef^A^KtriggerInit^
    A"(Lweblogic/common/T3ServicesDef;)V^A
    Exceptions^A^OLineNumberTable^A
    SourceFile^A^NLocalVariables^A^DCode^A^OTriggerDef.java^A^Pjava/lang/Object^A we
    blogic/time/common/Triggerable^A^](Lweblogic/common/ParamSet;)V^A^KsetServices^A
    !weblogic/common/ParamSetException^B^A^C^B^A^D^B^D^A^R^H^D^A^G^Q^A ^D^A^A^A
    ^K^B^N(!^D!^H^CA@ðö.Eèß^G!˜…^H!^A^H^Z/Eh@^X^Z/E^X^Z/E'^A!^A?@X^A!
    H^H!p^H!L !^L !ˆÍ !8 !, !^Pm !` !°í !'^A!/fs
    weblogic/weblogic/classes/weblogic/time/common/TriggerDef.class'^A!^Bs'^A!B/fswe
    blogic/weblogic/classes/weblogic/time/common/TriggerDef.class°R! ú.E^TE^A!X^M^G!
    @”K!0^\/En^Ai!^WLoaded i!0Loaded weblogic.time.common.TriggerDef from i!nLoaded
    weblogic.time.common.TriggerDef from /fsweblogic/weblogic/classes/weblogic/time/
    common/TriggerDef.class°R!0^\/En(B!CDh(/^\EhüëD/^\E^D^H˜âDX^M^G!@”K!^]/E
    ^Ai!^A+°R!^]/E^Ai!^Q+HncbPool°R!^]/E ^P#!^P^YE^]/E/^\E8R^E!;ˆØ^]/E^]/EX^M^G!@
    ”K!^^/E,^Ai!^XHncbPool created with 1i!^L01°R!^^/E^Ai!^A1i!2HncbPool created wit
    h 1 initial connections.°R!^^/E,^H4^E!@”K! /EK@?^^E!eøÑ6!^_/E /E^H4^E!@”K!!/EK@?
    ^^E!eøÑ6!!/E!/E

  • Problem in executing a SP in Java using Oracle OCI Driver...

    Hi,
    I have a installed the Oracle OCI driver on iPlanet Web Server 4.1. The application has been designed using the Jakarta Struts framework where the dom classes act as an interface between the database and the application(action classes). The dom classes execute stored procedures stored in an SP packages (eg. DDTS_PACK.setContact(..)). Now here's the problem. When a new record is being inserted, the dom executes the 'setContact' stored procedure using a java.sql.CallableStatement. The execution of this stored procedure is successful at times and fails at times. What could be the reason?? Could it be something to do with connection pooling. The default connection pooling class from oracle, oracle.jdbc.pool.OracleConnectionCacheImpl() is being used to get the connection. The funny thing is that the stored procedure gets executed both the time (success/failure) and returns a return status as 'N' when it fails and 'Y' when it is successful.
    I would be greatful to anybody who could give a solution to the above problem. Thanks and have a great day.
    Regards,
    Anand

    Since the pipe '|' is interpreted by the shell then you need the shell to invoke your command
            String[] command = {"sh","-c","find /tmp/reports1 -name " + "\"" + "*" + "\"" + " -mtime +" + strdaysback + " -print|xargs rm -r"};
            final Process process = Runtime.getRuntime().exec(command);
      You should also read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html at least twice and implement the recommendation regarding stdout and stderr.
    P.S. Why are you not using Java to find and delete these files?
    Message was edited by:
    sabre150

  • Can I create connection pool by oracle oci driver?

    Can I create connection pool by oracle oci driver?My weblogic's version is 6.1 sp2 and oracle is 9.0.1.2.
    I have some trouble with connection pool created by weblogic jDriver.
    I try to read Timestamp from table and I always get the exception.It told me that ORA-00932: inconsistent datatypes.
    So I created another pool by oracle thin driver and everything was right.Then I created other pool by oracle oci driver,but something were wrong. 'Could not create pool connection. The DBMS driver exception was:java.sql.SQLException: ORA-06401: NETCMN:Invalid driver designator'
    The oci pool's parameters are below lines.
    url: jdbc:oracle:oci:@COCO
    Driver Classname: oracle.jdbc.driver.OracleDriver
    Properties: user=scott;password=tiger;protocol=oci
    If I get connection directly,don't use connection pool,I can get right connection.But why didn't I create pool by oci driver?Maybe weblogic7 or weblogic8 will work good?

    Venkat Amirineni wrote:
    Hi Joe,
    I am also trying to create a connection pool using Oracle Oci XA. Weblogic
    type 2 oci threads hanging on native calls and suggested to go for thin drivers.
    But we want to try with Oracle Oci drivers.. Can you please tell us how to
    create a conn pool using Oracle Oci.. Just the driverclass and url is enough
    or need any classpath settings etc..
    Thanks in advance for your quick reply.Hi. As far as driver properties, just use what Oracle says to. Any pool properties
    that we recommend for XA would still apply. Note that Oracle themselves recommends
    the thin driver over their OCI one:
    http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979.pdf
    Joe

  • COnfiguring oracle JDBC Driver with Web Sphere

    I have oracle 7.3.4(on Solaris) and IBM Web Sphere standard
    Edition 2.03 (on NT) I want connect to Oracle ina Servlet. Can
    any one help in configuring Oracle JDBC driver in Web
    Sphere?
    Thanks very much
    Tom
    null

    I have oracle 7.3.4(on Solaris) and IBM Web Sphere standard
    Edition 2.03 (on NT) I want connect to Oracle ina Servlet. Can
    any one help in configuring Oracle JDBC driver in Web
    Sphere?
    Thanks very much
    Tom
    null

  • Unsatisfied Link Error when using Oracle OCI (Type II) driver

    Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
    If when creating a connection pool via the console, using the Oracle OCI (Type
    II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
    or format error" then check that the library included in the SHLIB_PATH is pointing
    at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/lib

    We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
    do offer a type 4 driver for Linux.
    In version 5.1, I suggest trying the platform independent type 4 JDBC driver
    available for free from Oracle. It is supported (as is any JDBC driver)
    with WebLogic Server. To download it:
    Go to http://www.oracle.com and select the "Download" option.
    From the resulting page, use the "Select Utility or Driver" dropdown to
    select Oracle JDBC drivers
    From the resulting page, scroll down a little (since SQLJ stuff appears at
    the top).
    Or, to go directly there:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Michael W. Warren, Sr." <[email protected]> wrote in message
    news:[email protected]..
    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]

  • Error while configuring oracle documaker connector.

    We have configured the setting in as per the oracle documaker connector installation document.
    the following actions can be performed after the configuration.
    1. GENTNW32 is working fine.
    2. PDF is generating.
    But we are getting the following error while running the GENDAW32.
    GenData
    Transaction Error Report - System timestamp: Fri Mar 09 19:29:45 2012
    DM17115: Warning : The DownLoadFAP option is set to Yes, this option should be set to No for optimal performance. Check the RunMode control group, DownLoadFAP option.
    DM20401: Warning In RULNoGenTrnTransactionProc(): RunDate provided <01-OCT-2008 04:12:5820120309> is not a valid date in YYYYMMDD format. RunDate will be set to current date <20120309>.
    FormMaker Data Generation (Base)
    Company Name (after ini conversion): abcd-NOT FOUND
    Line of Business (after ini conversion): asd-NOT FOUND
    DM1002: Warning: BATCHINGBYRECIPINI
    Cannot locate INI group <BatchingByRecip> with option <DefaultBatch>.
    DM12041: Error : FAP library error: Transaction:<NB>, area:<..\C\genbannr.c,Dec 11 2010 08:50:55,12,0,0,10703>
    code1:<0>, code2:<0>
    msg:<Script: DEFLIB\AOR_PRET.DAL
    Line: 6 Col: 4 Err: 6 Token: #AOR_Debug Msg: Invalid or unknown symbol>.
    DM12041: Error : FAP library error: Transaction:<NB>, area:<..\C\genbannr.c,Dec 11 2010 08:50:55,12,0,0,10703>
    code1:<0>, code2:<0>
    msg:<Script: DEFLIB\AOR_PRET.DAL
    Line: 6 Col: 4 Err: 6 Token: #AOR_Debug Msg: Invalid or unknown symbol>.
    ==> Warning count: 3
    ==> Error count: 2
    End of Transaction Error Report - System timestamp: Fri Mar 09 19:29:46 2012
    Elapsed Time: 1 seconds
    Please check the INI file configurations:
    < BATCH1 >
    Printer = Printer1
    EnableBatchBanner = True
    EnableTransBanner = TRUE
    BatchBannerBeginScript = AOR_PREB
    BatchBannerEndScript = AOR_POSTB
    TransBannerBeginScript = AOR_PRET
    TransBannerEndScript = AOR_POSTT
    < BATCH6 >
    Printer = Printer2
    < BatchingByRecip >
    Batch_Recip_Def = true;"BATCH2";Office
    Batch_Recip_Def = true;"BATCH1";Client
    Batch_Recip_Def = TRUE;"BATCH6";FILE
    < Environment >
    DO_LOGON = Yes
    FSISYSINI = fsisys.ini
    < Key1Table >
    DOCCDEMO = Key1
    < Key2Table >
    LIFE = Key2
    < PRINT_BATCHES >
    BATCH1 = DATA\BRDPDF.BCH
    BATCH6 = DATA\BSTPDF.BCH
    BATCH2 = DATA\file.bch
    < Printer >
    EnableBatchBanner = YES
    EnableTransBanner = Yes
    PrtType = PDF
    < Printer1 >
    Port = C:\FAP\dll\testwork\DATA\BRDPDF.PDF
    EnableBatchBanner = True
         EnableTransBanner = True
         AORDebug = No
         AORExt = .pdf
         AORFilesPerBatch = 1000
         AORPath = c:\AOR\
    ; Enable a DAL library of scripts to be pre-loaded
    PrtType = PDF
    < Printer2 >
    Port = C:\FAP\dll\testwork\DATA\BSTPDF.PDF
    PrtType = PDF
    < PrinterInfo >
    Printer = Printer1
    Printer = Printer2
    Printer = Printer6
    the error occued while running the AOR_PREB file. it does not write anything on the database.
    Please lhelp us to proceed further on this issue.
    thanks,
    Ilayaraja

    Hi Gaétan/Experts,
    Thanks for the post, we are now able to successfully perform the following :-
    1. Configure Documaker Connector - After changing lot of values that was provided in the Installation Guide, which seems to be outdated. For E.g. While using SQL Server Driver, the document says we need to configure the Connection as jdbc:microsoft:sqlserver, where as the code looks for the string jdbc:sqlserver.
    2. Successfully insert the values to AOR table in SQL Server.
    3. Sucessfully run the connector with mock-file-conn-properties, which creates the documents generated thru Oracle Documaker to the specified destination directory.
    Issue:_
    1. While using the UCM Destination, we are encountering an error which is pasted below.
    2. In UCM we are able to create a new document and sucessfully check in using the credentials. The same used thru Connector throws an error.
    3. We are using Oracle UCM - 11.1.1.5.
    Error_
    1828 [Thread-2] ERROR oracle.documaker.ezridc.ImportRequest processResponse - Error importing document
    oracle.stellent.ridc.protocol.ServiceException: The content item was not successfully checked in. The authorization token is invalid. It has either expired or is not appropriate for the current request.
    You may need to reload an earlier page in order to proceed.
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:116)
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:92)
         at oracle.documaker.ezridc.ImportRequest.processResponse(ImportRequest.java:200)
         at oracle.documaker.ezridc.Request.executeRequest(Request.java:68)
         at oracle.documaker.ecmconnector.ucmdestination.UCMDestination.importDocument(UCMDestination.java:141)
         at oracle.documaker.ecmconnector.connectorapi.Destination.internalImportDocument(Destination.java:156)
         at oracle.documaker.ecmconnector.connectorapi.Destination.importSingleDocument(Destination.java:138)
         at oracle.documaker.ecmconnector.connectorapi.Source.importDocuments(Source.java:169)
         at oracle.documaker.ecmconnector.engine.ImportChannel.run(ImportChannel.java:72)
         at java.lang.Thread.run(Unknown Source)
    Destination Properties_
    destination.administration.name=oracle.documaker.connector.destination.UCMDestinationAdministration
    destination.name=oracle.documaker.ecmconnector.ucmdestination.UCMDestination
    destination.ucm.connectionstring_2000=http\://10.242.196.93/idc/idcplg
    destination.ucm.connectionstring_1=http\://10.242.196.93/idc/idcplg
    destination.ucm.importmethod=1
    destination.ucm.column.map.dRevLabel=1
    destination.ucm.password=XXXXX
    destination.ucm.username=XXXXX
    destination.active.wait=15
    destination.ucm.column.map.EXPDATE=dInDate
    destination.ucm.column.map.PFILE=primaryFile
    destination.ucm.column.map.TYPE=dDocType
    destination.ucm.column.map.TITLE=dDocTitle
    destination.ucm.column.map.AUTHOR=dDocAuthor
    destination.ucm.column.map.NAME=dDocName
    Any thoughts?
    Thanks
    Arumugam

  • Oracle OCI Driver

    Hi all,
    We have a setup accessing an Oracle-database (9.0.1 and 9i) from a
    java program using an Oracle thin driver like this:
    jdbc:oracle:thin:@host:port:sid
    This works fine. Now we wanted to try the OCI-driver for speed
    comparision (mainly bypassing socket communication).
    jdbc:oracle:oci8:@host:port:sid
    This didn't work. We use the classes12.zip for Oracle 9.0.1. downloaded
    from OTN. The error is:
    java.lang.NoSuchFieldError: OCIEnvHandle
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:309)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:287)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:116)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:98)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
    at de.otto.noa.standard.database.backend.ConnectionOracle.connect(ConnectionOracle.java:64)
    The last line given is the first line in our own code.
    The SHLIB_PATH points to the lib32 directories. If we set them to the lib directories
    the error changes to :
    java.lang.UnsatisfiedLinkError: /opt/oracle/app/oracle/product/9i/lib/libocijdbc9.sl: Exec format error
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:294)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:287)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:116)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:98)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
    at de.otto.noa.standard.database.backend.ConnectionOracle.connect(ConnectionOracle.java:64)
    Any suggestions on what to check up on?
    Also I'd like to know whether it is correct that the Oracle 9 driver uses oci8?
    regards,
    Frieder Schenke

    Hi Elango,
    One cannot connect to the database using host:port:sid when using OCI driver. Strange.
    It has to be a TNSname or a url .
    jdbc:oracle:oci8:@(description=(address=(host=myhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl)))I tried this (adapted to our database of course) and also (because we have tnsnames.ora setup too):
    jdbc:oracle:oci8:@tns_name
    With the same effects. ('tnsping tns_name' works)
    I think the problem lies somewhere else. The system doesn't even try to actually connect
    before it throws that exception. Some driver incompatibility, I guess. But I don't know,
    what I did wrong or where to look. Especially that 'Exec format error' is suspicious,
    because we'd like to use 64bit if possible.
    Also, for when this starts to work, I'd like to know how to make sure there is no socket
    connection being used. I vaguely remember something like
    jdbc:oracle:oci8:@beqlocal:tns_name
    but I don't know the exact syntax. There are several database on that machine, so just
    beqlocal wouldn't be enough, unless it also uses the environment-variable
    ORACLE_SID
    regards,
    Frieder Schenke
    PS : Peter is my team chef, I'm using his OTN account

  • WL5.1 with Oracle OCI driver 8.1.6 and 8.1.7

    We have seen different behaviors when using WL5.1 with Oracle's OCI driver
    version 8.1.6 and 8.1.7
    Our application calls the same set of stored procedures, which creates in
    total of 10 reference cursors
    in the database (8.1.7). We close the reference cursor everytime the SP is
    called.
    After running the application for a while, we have the following situation:
    1) Using the 8.1.6. driver, we always have (at any given time) one
    reference cursor opened in the database
    for each connection in the connection pool.
    2) Using the 8.1.7 driver, we always have one reference cursor for each
    stored procedure for each connection in the connection pool(i.e. 10 open
    ref-cursor per connection).
    It seems that between 8.1.6 and 8.1.7, the driver caches ref-cursor
    differently. The 8.1.7 drive doesn't seem to be scalable. Has anyone
    notice the change?
    Is this behavior correct or configurable?
    Thanks.
    -Chuan

    We have seen different behaviors when using WL5.1 with Oracle's OCI driver
    version 8.1.6 and 8.1.7
    Our application calls the same set of stored procedures, which creates in
    total of 10 reference cursors
    in the database (8.1.7). We close the reference cursor everytime the SP is
    called.
    After running the application for a while, we have the following situation:
    1) Using the 8.1.6. driver, we always have (at any given time) one
    reference cursor opened in the database
    for each connection in the connection pool.
    2) Using the 8.1.7 driver, we always have one reference cursor for each
    stored procedure for each connection in the connection pool(i.e. 10 open
    ref-cursor per connection).
    It seems that between 8.1.6 and 8.1.7, the driver caches ref-cursor
    differently. The 8.1.7 drive doesn't seem to be scalable. Has anyone
    notice the change?
    Is this behavior correct or configurable?
    Thanks.
    -Chuan

  • Memory leakage with oracle oci driver

    I have developed a Solaris8 client/server application using the JAVA IDL CORBA implementation. The client sends requests to the server to update the database (database is Oracle 8.1.7 and I connect to it using oci oracle drivers). Requests are sent one at a time. No concurrent connections. I have a static connection that I establish with database once I start the server. If that connection is lost for any reason (timeout or database faliure) the application tries automatically to reconnect to database. I have noticed that if the new connection to database fails and an sql exception is thrown, memory used by the application process increases. This memory is not garbage collected so application hangs. I tried similar behaviour with the oracle thin driver and things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this since I can't use the thin driver because of failover limitations.

    I have noticed
    that if the new connection to database fails and an
    sql exception is thrown, memory used by the
    application process increases.
    How have you noticed this?I noticed this using the command pmap under solaris it operating system
    every time I test reconnecting to database I go and check the memory used by the application before after attepmting to reconnect:
    /usr/proc/bin/pmap [myapp pid] | tail -1
    If I'm using normal connection then the memory will be increased by 100KB. If I'm using the OraclePooledConnection class then the increase will be something like 500KB. Again this is if still there is a problem connecting to database. If connection to database is okay then no memory increase at all.
    This memory is not
    garbage collected so application hangs.
    Then it isn't a java problem. When java runs out of memory it throws a out of memory exception.Well I'm not saying it is a java problem for sure. I suspect that it might be oracle oci8 driver problem. I would appreciate if anyone can help in specifying teh source of the error.
    I tried
    similar behaviour with the oracle thin driver and
    things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this
    since I can't use the thin driver because of failover
    limitations.
    I don't understand that last sentence at all.What I mean here is that instead of using the oci8 driver to connect to database I used the thin driver and kept everything else the same. I simulated the faliure to reconnect to database and based on the pmap command observations there was no memory leakage.
    I want to know what is needed to be done in order to get a normal behavior once using the oci8 drivers.

  • Configure Oracle OCI JDBC drivers

    What is the correct configuration of the connection pools in order to use
    Oracle's OCI JDBC driver:
    DB=8.1.7.3
    thanks,
    catharine

    There is a small machine specific library that's part of the JDBC OCI drivers. But it does you no good unless you have the OCI libraries themselves. And you must have exactly the same versions of the JDBC Java code, and that small machine specific library as you do OCI libraries for the driver to work. Those OCI C libraries are licensed products. If you want to use the JDBC OCI driver you should get the small machine specific library and Java code from the same source as the OCI libraries themselves. The JDBC OCI drivers are on the install CDs.
    I must admit, it's not clear to me what the benefit of having the OCI driver available for download is. If you can use it, then you have access to an Oracle install CD or a downloaded installer which will contain the JDBC OCI driver. I guess that if you already have an OCI install, it's easier to download the driver than it is to find the install CD.
    I'm not an expert on what is packaged where or how it's all licensed so I could be confused about some of this. I've asked Product Management to give me a clue. I could use one. I'll post another reply when I hear back.

  • Error while configuring Oracle 11g Forms/Reports Product during istallation

    Dears,
    We are trying to configuring Oracle 11g Forms / Reports during istallation.
    OS using: Win 7 -- 32 bit
    RAM: 4 GB
    We have installed the following modules successfully.
    Following are the steps which we have followed:
    1. Installation of Oracle jdk's --> Successful
    2. Installation of Oracle web Logic Product --> Successful
    3. Installation of Oracle Forms & reports Products ---> Successful
    4. Configuration of Oracle 11g Forms / Reports Products --> Failed
    After performing step 4, we are getting an error in the .out file
    Can anyone please let us know what we have to do for making the step 4 successful.
    Following is the content present in the "install2012-08-30_04-43-55PM.out" file..
    Setting ORACLE_HOME to C:\Oracle\Middleware\frs11.1.2
    Setting Doracle.config.mode to true
    Adding C:\Users\id821839\AppData\Local\Temp\OraInstall2012-08-30_04-43-55PM for deletion.
    Adding to classpath:file:/C:/Users/id821839/AppData/Local/Temp/OraInstall2012-08-30_04-43-55PM/ext/jlib/classic.jar
    Adding to classpath:file:/C:/Users/id821839/AppData/Local/Temp/OraInstall2012-08-30_04-43-55PM/ext/jlib/template.jar
    [email protected]lassicPage.ScreenRes
    configFileName:C:\Users\id821839\AppData\Local\Temp\OraInstall2012-08-30_04-43-55PM\ext\jlib\footprint.xml
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    Reading response file..
    Parse Warning at line number:15
    MYORACLESUPPORT_USERNAME=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:27
    PROXY_HOST=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:30
    PROXY_PORT=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:33
    PROXY_USER=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:39
    COLLECTOR_SUPPORTHUB_URL=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:75
    DOMAIN_PORT=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:90
    STATICPORT INI FILE LOCATION=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:99
    PROXY HOST NAME=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:102
    PROXY PORT NO=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Parse Warning at line number:105
    PROXY BY PASS ADDRESS=
    Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No value found. Ignoring!
    Validations are enabled for this session.
    Verifying data......
    In processErrorMsgStringOracle Instance
    needWritableDirectory: false
    needWritableDirectory: true
    middlewareHomeLocation:C:\Oracle\Middleware
    weblogicHomeLocation:C:\Oracle\Middleware\wlserver_10.3
    weblogicHome:C:\Oracle\Middleware\wlserver_10.3
    weblogicHomeLocation:C:\Oracle\Middleware\wlserver_10.3
    In processErrorMsgStringInstance Name
    In processErrorMsgStringunknown
    In processErrorMsgStringOracle Home
    In processErrorMsgStringDomain Name
    In processErrorMsgStringunknown
    In processErrorMsgStringAdministrator Password
    In processErrorMsgStringunknown
    In processErrorMsgStringAdministrator User Name
    In processErrorMsgStringunknown
    configuration Failed. Exiting configuration due to data validation failure.+
    outputFile:C:\Program Files\Oracle\Inventory\logs\installProfile2012-08-30_04-43-55PM.log
    in writeProfile method..
    +[ENGINE] Adding C:\Users\id821839\AppData\Local\Temp\OraInstall2012-08-30_04-43-55PM for deletion.+
    Thanks in advance..
    Suhail
    Edited by: 956027 on 30-Aug-2012 23:13
    Edited by: 956027 on 30-Aug-2012 23:14

    Following is the last part of thecontent in .log file
    This is the only part wher I have found the term "error"
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of domainName+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.weblogicQueries.IsValidDomainHome] [SRC_METHOD: executeHandler] domainName: frsDomain+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of wlHome+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.weblogicQueries.IsValidDomainHome] [SRC_METHOD: executeHandler] wlHome: C:\Oracle\Middleware\user_projects\domains+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.weblogicQueries.IsValidDomainHome] [SRC_METHOD: executeHandler] mwHome: C:\Oracle\Middleware+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] errID ====>>>>:INST-07277+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Error:Error in validating Domain name+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Cause:Specified Domain name is either not valid or the domain location already has a domain with the same name.+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Action:Enter a valid Domain name+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.weblogicQueries.isValidDomainHome] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Exiting method executeHandler+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Handler launch end: weblogicQueries.isValidDomainHome+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Handler returned status: FAILED+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Error in validating Domain name+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Setting valueOf(DOMAIN_NAME) to:frsDomain. Value obtained from:USER+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Setting valueOf(DOMAIN_NAME) to:frsDomain. Value obtained from:USER+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Setting valueOf(INVALID_TEXT_CHAR_MSG_STRING) to:unknown. Value obtained from:USER+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Setting valueOf(INVALID_TEXT_CHAR_MSG_STRING) to:unknown. Value obtained from:USER+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Inputs passed to the handler: [ FIELD DOMAIN NAME ( field ) = "Domain Name" ], [ DOMAIN_NAME ( val ) = "frsDomain" ], [ INVALID_TEXT_CHAR_MSG_STRING ( invalidCharMsgString ) = "unknown" ], [ Valid Character List for Farm Name ( regEx ) = "[\p{Alnum}_-]+" ]+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.engine.modules.handler.engine.HandlerLauncher$LaunchHelper] [SRC_METHOD: launch] Handler class: class oracle.as.install.common.handlers.txtQueries.CheckTxtFieldUsingRegEx+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Handler launch begin: txtQueries.checkTxtFieldUsingRegEX+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Entering method executeHandler+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of isCanBeBlank+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of val+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.txtQueries.CheckTxtFieldUsingRegEx] [SRC_METHOD: executeHandler] Value to be tested: frsDomain+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of field+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.txtQueries.CheckTxtFieldUsingRegEx] [SRC_METHOD: executeHandler] Text Field name: Domain Name+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of regEx+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.txtQueries.CheckTxtFieldUsingRegEx] [SRC_METHOD: executeHandler] Regular Expression: [\p{Alnum}_-]++
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of minlength+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of maxlength+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Fetching the value of invalidCharMsgString+
    +[2012-08-31T08:46:03.570+02:00] [as] [TRACE] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] [SRC_CLASS: oracle.as.install.common.handlers.txtQueries.CheckTxtFieldUsingRegEx] [SRC_METHOD: executeHandler] Invalid Char Msg String: unknown+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Checking the value for minimum length+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Checking the value for maximum length+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Checking the value for invalid characters+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation.oracle.as.install.engine.modules.validation.handler.txtQueries.checkTxtFieldUsingRegEX] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Exiting method executeHandler+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Handler launch end: txtQueries.checkTxtFieldUsingRegEX+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.validation] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Handler returned status: SUCCESS+
    +[2012-08-31T08:46:03.570+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 12] [ecid: 0000J_vRUGVCgoL5mRS4yZ1GG5qd000003,0] Setting valueOf(ADMIN_PASSWORD) to:<SECURE>. Value obtained from:USER+

  • Error when changing Oracle thin driver to Bea's Oracle driver

    Hi All !
         I was using this code with WL9.2 and Oracle 10 until recently with an Oracle thin driver
         URL: jdbc:oracle:thin:@[x.x.x.x]:1521:[SID]
         Driver Class: oracle.jdbc.xa.client.OracleXADataSource
         Now this was changed to
         URL: jdbc:bea:oracle://[x.x.x.x]:1521
         Class Driver Name: weblogic.jdbcx.oracle.OracleDataSource
         (Bea's oracle driver)
         but the code is not ok.
         The error is Caused by: java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_weblogic_jdbcx_base_BaseCallableStatementWrapper
         at      com.esi.packages.dataaccess.pagination.ResolvePackageCriteriaPageProvider.getRPCSQLOfPackage(ResolvePackageCriteriaPageProvider.java:1208
         (this is the line where the cast of the result connection.prepareCall() is happenning).
         I tried different CallableStatement objects, from Bea but no success. Any idea/working example about this?
         The code follows:
         org.hibernate.Session session = this.getSession();
         String sqlCode = null;
         OracleThinClob sqlClobCode = null;
         StringBuffer sb = new StringBuffer();
         java.sql.Connection connection = null;
    try {
    connection = session.connection();
    connection.setAutoCommit(false);
    try {
         OracleCallableStatement proc = (OracleCallableStatement) connection.prepareCall("{ ? = call packages_pkg.clob_get_sql_psd_and_package (?,?,?,?,?) }");
         proc.registerOutParameter(1, Types.CLOB);
         proc.setString(2, pkgStatus);
         proc.setLong(3, packageSk); // pkg sk
         proc.setDate(4, new java.sql.Date(date.getTime())); //date
         proc.setString(5, null);
         if(null == provinceSk){
              proc.setNull(6, java.sql.Types.NUMERIC); //province sk
         }else{
              proc.setLong(6, provinceSk); //province sk
    ResultSet rs = null;
    try {
    proc.execute();
    sqlClobCode = (OracleThinClob)proc.getClob(1);
    Writer clobWriter = ((OracleThinClob)sqlClobCode).getCharacterOutputStream();
    if(null != clobWriter){
    try {
         char[] buf = new char[32000];
         buf[0] = '\0';
         sqlClobCode.getChars(1, sqlClobCode.getChunkSize(), buf);
         sb.append(buf);
    } catch(Exception exception) {                           
    logger.debug("Cannot read the SQL from CLOB that resolves the package");
    throw exception;
    sqlCode = sb.toString();
    }catch(Exception e){
         logger.error("Cannot retrieve the benefits types from the database.");
         throw new RuntimeException("Cannot retrieve the benefits types from the database.");
    }finally {               
    if(null != rs){
    rs.close();
    if(null != proc){
         proc.close();
    }

    Horatiu Stanciu wrote:
    Hi All !
         I was using this code with WL9.2 and Oracle 10 until recently with an Oracle thin driver
         URL: jdbc:oracle:thin:@[x.x.x.x]:1521:[SID]
         Driver Class: oracle.jdbc.xa.client.OracleXADataSource
         Now this was changed to
         URL: jdbc:bea:oracle://[x.x.x.x]:1521
         Class Driver Name: weblogic.jdbcx.oracle.OracleDataSource
         (Bea's oracle driver)
         but the code is not ok.
         The error is Caused by: java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_weblogic_jdbcx_base_BaseCallableStatementWrapper
         at      com.esi.packages.dataaccess.pagination.ResolvePackageCriteriaPageProvider.getRPCSQLOfPackage(ResolvePackageCriteriaPageProvider.java:1208
         (this is the line where the cast of the result connection.prepareCall() is happenning).The weblogic.jdbc.vendor.oracle.OracleCallableStatement
    is for obtaining access to some Oracle's non-standard
    methods:
    void registerIndexTableOutParameter(int i, int j, int k, int l) throws java.sql.SQLException;
    void registerOutParameter(int i, int j, int k, int l) throws java.sql.SQLException;
    java.sql.ResultSet getCursor(int i) throws java.sql.SQLException;
    java.io.InputStream getAsciiStream(int i) throws java.sql.SQLException;
    java.io.InputStream getBinaryStream(int i) throws java.sql.SQLException;
    java.io.InputStream getUnicodeStream(int i) throws java.sql.SQLException;
    You're not calling any of those. Good. Just remove the cast. Stick to standard
    JDBC if you can. Also, note the comments I added about your setAutoCommit() call.
    Joe
         I tried different CallableStatement objects, from Bea but no success. Any idea/working example about this?
         The code follows:
         org.hibernate.Session session = this.getSession();
         String sqlCode = null;
         OracleThinClob sqlClobCode = null;
         StringBuffer sb = new StringBuffer();
         java.sql.Connection connection = null;
    try {
    connection = session.connection();
    connection.setAutoCommit(false); // DON'T DO THIS!! I SEE NO COMMIT. LET WEBLOGIC HANDLE ANY TX.
    try {
         OracleCallableStatement proc = connection.prepareCall("{ ? = call packages_pkg.clob_get_sql_psd_and_package (?,?,?,?,?) }");
         proc.registerOutParameter(1, Types.CLOB);
         proc.setString(2, pkgStatus);
         proc.setLong(3, packageSk); // pkg sk
         proc.setDate(4, new java.sql.Date(date.getTime())); //date
         proc.setString(5, null);
         if(null == provinceSk){
              proc.setNull(6, java.sql.Types.NUMERIC); //province sk
         }else{
              proc.setLong(6, provinceSk); //province sk
    ResultSet rs = null; // WHY IS THIS HERE?
    try {
    proc.execute();
    sqlClobCode = (OracleThinClob)proc.getClob(1);
    Writer clobWriter = ((OracleThinClob)sqlClobCode).getCharacterOutputStream();
    if(null != clobWriter){
    try {
         char[] buf = new char[32000];
         buf[0] = '\0';
         sqlClobCode.getChars(1, sqlClobCode.getChunkSize(), buf);
         sb.append(buf);
    } catch(Exception exception) {                           
    logger.debug("Cannot read the SQL from CLOB that resolves the package");
    throw exception;
    sqlCode = sb.toString();
    }catch(Exception e){
         logger.error("Cannot retrieve the benefits types from the database.");
         throw new RuntimeException("Cannot retrieve the benefits types from the database.");
    }finally {               
    if(null != rs){
    rs.close();
    if(null != proc){
         proc.close();

Maybe you are looking for