Accessing ORACLE's VARRAY using JDBC

Hi,
I have a created a VARRAY type like following in ORACLE:
CREATE OR REPLACE
TYPE opr_typ_attrib_val_arr AS TABLE OF VARCHAR2 (255)
I am trying to access this VARRAY using the following java code:
ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("opr_typ_attrib_val_arr ", (OracleConnection)connection);
String arrayValues[] = {"123", "234"};
ARRAY array = new ARRAY(arrayDesc, connection, arrayValues);
But in the very first statement, where I am getting the object of ArrayDescriptor, I am getting the java.lang.ClassCastException exception.
I am using oracle type 4 thin driver. And the above mentioned code I have written in EJB.
"connection" is a valid connection object.
Could anybody help me out to resolve this issue.
Thanks in advance.
Amit

Hi,
With a snap shot of your code it would hv been more easier to pinpoint your problem.
However this is how I am doing it:
(the thin driver, classes12.zip must be in the classpath)
--In the Oracle PL/SLQ proc:
type REC_TYPE is ref cursor;
FUNCTION spFindBid(
p_ORDCreateSeq in number,
p_RAT in number,
p_prdID in number,
p_ACCTID in number,
p_LAMT in number) return REC_TYPE
IS
rc REC_TYPE;
begin
open rc for
SELECT * from table_name
return rc;
// in the Java code:
import oracle.jdbc.driver.*;
//besides other imports.
CallableStatement cs
= cn.prepareCall("{? =....}");
cs.registerOutParameter(1,
OracleTypes.CURSOR);
cs.setString(1, "XXXX");
cs.execute();
java.sql.ResultSet rs =
(java.sql.ResultSet)cs.getObject(1);
//this will return a standard resultSet,
//as what is recvd when we execute a
//SELECT via standard, CreateStatement()....
//loop on it while(rs.next()) to get
//the dataI am using the 100% Java thin driver.
I could not figure how to use an OCI 8 driver
with a Standalone Java program (not weblogic). Could not find a driver as a(.zip/.jar) file. OCI8 has more easier ways of accessing OracleDB.
rgds
Jeevan S
null

Similar Messages

  • Passing XMLType Data into oracle stored procedure using JDBC

    Hi Friends,
    I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.
    Following are the environment details
    JDK Version: 1.6
    Oracle: 10g
    Server: Tomcat 6.x
    Thanks in Advance

    user4898687 wrote:
    I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.As stated - no.
    A 'file' is a file system entity. There is no way to pass a 'file' anywhere. Not PL/SQL. Not java.
    Now you can pass a file path (a string) in java and to PL/SQL.
    Or you can pass xml data (a string) in java and to PL/SQL. For PL/SQL you could use eithe a varchar2, if the xml is rather small, or a blob/clob.

  • Can't execute Oracle Stored Procedure using JDBC

    Hi all,
    I'm fairly new to JDBC and Oracle, so pardon my ignorance/lack of knowledge in this subject matter. I am trying to call a stored procedure named get_countries that has no parameters using JDBC. I do this by executing the following lines of code:
    CallableStatement cs = con.prepareCall("{call get_countries}");
    ResultSet rs = cs.executeQuery();But I get the following exception thrown:
    Exception in thread "main" java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GET_COUNTRIES'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.driver.DatabaseError.throwSqlException(_DatabaseError.java:112_)
    at oracle.jdbc.driver.T4CTTIoer.processError(_T4CTTIoer.java:331_)
    at oracle.jdbc.driver.T4CTTIoer.processError(_T4CTTIoer.java:288_)
    at oracle.jdbc.driver.T4C8Oall.receive(_T4C8Oall.java:745_)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(_T4CCallableStatement.java:218_)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(_T4CCallableStatement.java:969_)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(_OracleStatement.java:1190_)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(_OraclePreparedStatement.java:3370_)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(_OraclePreparedStatement.java:3415_)
    at JDBCTest.main(_JDBCTest.java:44_)
    This makes no sense to me because there are no parameters that I need to pass. So I'm guessing this is something that I don't know about JDBC or about Oracle. I've searched Google for the past hour and a half and still haven't found anything that explains what might be the problem. I've also been following this guide ([http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html]) and I'm doing it exactly the same way, but for some reason it works for them.
    Anyone know what I'm doing wrong?
    Thanks for your help in advance. I really appreciate it!

    I went to a few forums and asked the same question. The boys down at Oracle Community Forums shed some light on this subject and, with their help, I was able to figure it out. Here is the thread for those who want to read: [My Thread @ Oracle Community Forums|http://forums.oracle.com/forums/thread.jspa?messageID=2721348?].
    THE SOLUTION
    cs = con.prepareCall("{ call get_countries(?) }");
    cs.registerOutParameter(1, OracleTypes.CURSOR);
    cs.execute();
    ResultSet rs = ((OracleCallableStatement) cs).getCursor(1);

  • Oracle Heterogenous Services using JDBC (not using ODBC)

    Dear Friends,
    I need to configure Oracle HS to connect with MS SQL Server using JDBC as our company don't want to go for ODBC connection.
    Operating System is HP-UX
    Oracle Database Version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Can anyone please help me.

    The options you have for Heterogeneous Services are ODBC and OleDB.
    JDBC is not an option.
    The only other option is Transparant Gateway, a separately licenseable product.
    I don't know whether Transparant Gateway relies on other drivers.
    From the Sqlserver end there is MSDTC.
    Oracle generally doesn't underdocument their products.
    You can safely assume if it isn't documented, it isn't there.
    Sybrand Bakker
    Senior Oracle DBA

  • Memory Leak when TOMCAT connects to Oracle 10g RAC using JDBC Thin driver.

    We had experienced Memory leak when a Oracle 10g (10.2.0.3) RAC node was evicted. TOMCAT app server is connecting to the Oracle 10g RAC database instances using JDBC 10.2.0.3 thin driver.
    Anyone had similar experience?
    Any ideas? Any bugs reported/fixed?
    Thanks,
    Raj

    If you're doing XA, we absolutely do not support
    driver-level load-balancing OR failover. Use neither.
    For non-XA, you can use driver-level failover. For
    non-XA, you could set load-balancing, but it won't
    help because we get connections from the driver,
    and keep them indefinitely, so the driver never gets
    the chance to affect which connections the pool
    uses after that.

  • How to access PL/SQL code using JDBC

    Hi,
    We have stored procedures written in PL/SQL. These stored procs take both IN and OUT parameters. The parameter types are both regular datatypes like NUMBER, VARCHAR etc. So far so good. I know how to handle these data types.
    Some of the stored procs also use parameters that are defined as composite data types like %ROWTYPE or %RECORD. How would I set the values of these data types? Can I use the oracle extension - support for Oracle Objects to accomplish this. If so please let me know with an example. If not any other suggestions or help will be greatly appreciated.
    Thanks
    Karthik

    JDBC (and SQLJ) only support SQL types as stored procedure arguments, not PL/SQL types.
    If your stored procedure uses a PL/SQL-only type, such as BOOLEAN, record types, or index-by tables, then you cannot call it from Java (or, for that matter, from other languages as well).
    There is one exception: scalar index-by table arguments have been supported since JDBC 8.1.7 in the JDBC-OCI driver (refer to the JDBC manual for specifics).
    One workaround is to create wrapper PL/SQL stored procedures that take SQL arguments and convert them to PL/SQL -and vice versa- and call the original PL/SQL stored procedures. For example, a record type could be exploded into individual arguments, or it could be converted into a SQL object type, index-by tables could be represented as SQL collection types, etc.
    You can find a small example of this in the back of the JPublisher manual, where an example is given how to call a PL/SQL stored procedure that takes BOOLEAN arguments.

  • Cann't access oracle 9i with thin jdbc and applet

    Hi..
    I write thin jdbc applet and application programs..
    application programs works well..
    but applet cann't connect...
    error messages below..
    access denied (java.util.PropertyPermission oracle.jserver.version read)
    web server and dbms server are on same machine...
    applet programs is in the demo applet program of oracle's installation folders...
    I hope your comment...
    thanks..

    Hi Hyun,
    This is basically just a guess -- since you didn't provide a lot of information (in my opinion) -- but I assume that "oracle.jserver.version" is some "System" property.
    Due to the security restrictions placed on an applet (and which aren't imposed on an application), an applet cannot access all of the "System" properties -- only some of them (like "java.version", for example). So that's why (I think) your application works, but your applet doesn't.
    There are several workarounds for overcoming an applet's security restrictions -- the most popular (as far as I know) is to "sign" your applet. There are many Internet resources available that explain how to "sign" an applet -- a simple Internet search will be more than enough to get you going (if that's at all relevant to your situation).
    Hope this has helped you.
    Good Luck,
    Avi.

  • Inserting oracle objects / collection using JDBC

    Hi people,
    I want to insert objects with collections(nested tables) into oracle database using my java JDBC. I believe there are two ways, one using strong types and the other as weak. I am using the weak types.
    This is what I have got so far:
    create or replace type town_ty as object(
    name varchar2(20)
    create or replace type country as object (
    name varchar2(20),
    towns town_ty
    create table country_tab of country_ty;
    Can any one kindly give or show me an example how to insert data into the above table using weak typed JDBC?
    Thanks very much

    Hi
    You should find what you are looking for in the samples provided here http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.html.
    HTH
    Chris

  • Access Oracle On Unix using VMS Client

    I am looking for a means to connect a VMS client to an
    Oracle database that is running on any open OS
    What is the current version support available?
    Are there any tools that can be run on a VMS client so as to connect to the Oracle DB.
    Thanks

    deminpa,
    Assuming you have an account on that server and firewall or other networking filters are not in the way, then you should be looking into using SSH or some other modern, secure method of remote connection. I can't imagine that any Oracle server admin would allow telnet connections. If you are not familier with SSH, it is the modern replacement for the very insecure telnet protocol. There are many good SSH tutorials on the web that should get you started.
    I have no Oracle experiance so I'll leave it to someone that does to possibly suggest alternative remote connection methods that Oracle provides.
    Good Luck,
    Tim

  • How can I insert a value into the Oracle Date column using JDBC?

    Suppose I have a table TEST created by "create table TEST (c1 INT, c2 Date);"
    Now I want to insert some proper value into the table TEST's column c2. I couldn't do that by TRYing using Java.sql.Date, Java.Util.Date, Java.String.
    Could anyone give me some suggestions by providing the sample code?
    Many thanks for your help!
    Wendy

    What about building the java string:
    "Insert into test (c1,d1) values ("+
    Integer.toString(var)+
    ", TO_DATE("
    formatYourDateVariableWithCalendarMethods
    ",'DD-MON-YYYY')"
    and executing it ??

  • Empty CLOB field value from Oracle database using JDBC Sender

    Hi All,
    I am selecting a CLOB field from Oracle database table using JDBC Sender adapter and getting error "NullPointerException"
    Seen SAP note 1283089 but its not applicable for my support pack PI 7.0 SP 12 and client dont want to upgrdate SP 17 right now.
    I tried rpad(1,0)Column_Name funciton in JDBC select query but it selcting blank value for every record even those having some value for this CLOB field so not useful
    Could anybody suggest possible way? client dont want to change anything at database side.
    Thanks,
    Dharamveer

    What is the Oracle driver version installed? You might need to install 10.x driver if not already using it.

  • How to use JDBC to connect Oracle databse

    Hi
    I try to connect the oracle databse by using JDBC. But I not sure whether is it correct or not because I learnt from the documentation provided by WWW.JAVA.SUN.
    I have create a ODBC DSN file call TKS username/password : tem/manager
    then I download the source code and enhance a bit as following :
    import java.sql.*;
    public class CreateCoffees
    public static void main(String args[])
         String url = "jdbc:oracle:thin:tem/manager@(
         description=(address_list=(
         address=(protocol=tcp)
         (host=192.9.200.8)(port=1521)))(source_route=yes)
         (connect_data=(sid=tks)))";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
         catch(java.lang.ClassNotFoundException e)
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, "tem", "manager");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
         catch(SQLException ex)
         {  System.err.println("SQLException: " + ex.getMessage());
    After that I saved the file as CreateCoffees.java and compiled it
    D:\KLTAY\JAVA>javac CreateCoffees.java
    CreateCoffees.java:6: unclosed string literal
    String url = "jdbc:oracle:thin:tem/manager@(
    ^
    CreateCoffees.java:10: unclosed string literal
    (connect_data=(sid=tks)))";
    ^
    CreateCoffees.java:30: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    con = DriverManager.getConnection(url, "tem", "manager");
    ^
    CreateCoffees.java:31: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    stmt = con.createStatement();
    ^
    CreateCoffees.java:34: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    con.close();
    ^
    5 errors
    Please give some advise.Thanks
    best regards,
    Tay

         String url = "jdbc:oracle:thin:tem/manager@(
         description=(address_list=(
         address=(protocol=tcp)
         (host=192.9.200.8)(port=1521)))(source_route=yes)
         (connect_data=(sid=tks)))";
    After that I saved the file as CreateCoffees.java and
    compiled it
    D:\KLTAY\JAVA>javac CreateCoffees.java
    CreateCoffees.java:6: unclosed string literal
    String url = "jdbc:oracle:thin:tem/manager@(
    ^
    CreateCoffees.java:10: unclosed string literal
    (connect_data=(sid=tks)))";
    ^I would suggest putting all code between the quotesj(") on one line and then attempting to recompile.

  • Writing Session EJB or BMP access Oracle XMLType

    Hi,
    Has anyone sucessfully implemented EJBs with Oracle 9i new feature, XMLType
    object? The one criteria is to allow large XML document to be inserted or
    retreived. Large document means total characters more than 4000.
    Thanks.
    Danny.

    All,
    Forgot to mention that it's already configured using Oracle thin driver.
    As I mentioned before, the rmi exception is probably due to the dataLookup
    since it's not getting the connection directly from Oracle. Instead, it's
    calling WL's dataSource.
    How to figure out the casting problem??
    Thanks in advance.
    Danny.
    "Danny" <[email protected]> wrote in message
    news:[email protected]...
    Thanks.
    After moving the classes12.zip before the weblogic.jar, I encounteranother
    problem.
    java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection
    at
    oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnectio
    n.java:5043)
    at oracle.sql.CLOB.createTemporary(CLOB.java:960)
    at ... ...DBConnect.getCLOB(DBConnect.java:120)
    Any idea?
    Regards,
    Danny.
    "Ryan LeCompte" <[email protected]> wrote in message
    news:[email protected]...
    Hello Danny,
    Yes, it appears so. Have you tried moving your classes12.zip (from yourOracle
    installation) before the weblogic.jar in the classpath? This should pickup the
    Oracle API before the WebLogic API and thus should work. Let us know ifyou have
    any further problems.
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Danny" <[email protected]> wrote:
    Hi Ryan,
    Please find attached logging message.
    I suspect it is trying to use Weblogic's CLOB instead of Oracle's.
    Thanks.
    Danny.
    "Ryan LeCompte" <[email protected]> wrote in message
    news:[email protected]...
    Hello Danny,
    Could you paste any exceptions or describe in more detail what
    "failed"
    means
    in this case? More information would be more helpful.
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Danny" <[email protected]> wrote:
    Thanks Ryan,
    The example shows how to use JDBC connection directly. Another
    option
    is to
    use Weblogic's TX connection pool. In fact, I've tried this butfailed.
    The idea of using Weblogic's connection pool is to have Weblogichandle
    or
    the pooling and transction since the rest of app are calling it.Let
    me
    know if you have tried it with no error.
    Cheers,
    Danny.
    "Ryan LeCompte" <[email protected]> wrote in message
    news:[email protected]...
    Hey Danny!
    To see how to access Oracle's XMLType via JDBC (which you'll be
    utilizing
    in your
    BMPs), refer to the following code example:
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/XMLType
    S
    ample/XMLTypeSample.java.html
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Danny" <[email protected]> wrote:
    Hi,
    Has anyone sucessfully implemented EJBs with Oracle 9i new
    feature,
    XMLType
    object? The one criteria is to allow large XML document to be
    inserted
    or
    retreived. Large document means total characters more than 4000.
    Thanks.
    Danny.
    begin 666 CLOB.log
    M:F%V87@N96IB+E1R86YS86-T:6]N4F]L;&5D8F%C:TQO8V%L17AC97!T:6]N
    M.B!%2D(@17AC97!T:6]N.CH@:F%V82YL86YG+DYO4W5C:$UE=&AO9$5R<F]R
    M#0HN+BX@+BXN($1"0V]N;F5C="YG971#3$]"*$1"0V]N;F5C="YJ879A.C$R
    M,"D-"@T*#0HO+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
    M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
    M*BHJ*BHJ*BHJ*BHJ*@T*:6UP;W)T(&IA=F$N:6\N5W)I=&5R.PT*:6UP;W)T
    M(&IA=F$N:6\N4F5A9&5R.PT*:6UP;W)T(&IA=F$N=71I;"XJ.PT*:6UP;W)T
    M(&IA=F$N<W%L+E-13$5X8V5P=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y"871C
    M:%5P9&%T945X8V5P=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y297-U;'13970[
    M#0II;7!O<G0@:F%V82YS<6PN4F5S=6QT4V5T365T841A=&$[#0II;7!O<G0@
    M:F%V82YS<6PN0V]N;F5C=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y3=&%T96UE
    M;G0[#0II;7!O<G0@:F%V82YS<6PN4')E<&%R9613=&%T96UE;G0[#0II;7!O
    M<G0@:F%V87@N<W%L+D1A=&%3;W5R8V4[#0II;7!O<G0@;W)A8VQE+G-Q;"Y#
    M3$]".PT*:6UP;W)T(&]R86-L92YJ9&)C+D]R86-L95)E<W5L=%-E=#L-"FEM
    M<&]R="!J879A>"YN86UI;F<N*CL-"@T*<'5B;&EC(&-L87-S($1"0V]N;F5C
    M="![#0H@('!R:79A=&4@<W1A=&EC(&9I;F%L(%-T<FEN9R!D<TYA;64@/2 B
    M:61X1&%T85-O=7)C92([#0H-"B @<'5B;&EC(%-T<FEN9R!E>&5C=71E6$U,
    M475E<GDH4W1R:6YG('%U97)Y+"!3=')I;F<@<W1R:6YG*2!T:')O=W,@17AC
    M97!T:6]N>PT*(" @($-,3T(@8VQO8B ](&YU;&P[#0H-"B @(" O+R!'971S
    M('1H92!#;VYN96-T:6]N#0H@(" @0V]N;F5C=&EO;B!C;VYN(#T@*$-O;FYE
    M8W1I;VXI(&=E=$-O;FYE8W1I;VXH*3L-"B @(" O+R!);FET:6%L:7IE('-T
    M871E;65N="!/8FIE8W0-"B @("!0<F5P87)E9%-T871E;65N="!P<W1M=" ]
    M(&YU;&P[#0H@(" @+R\@26YI=&EA;&EZ92!297-U;'13970-"B @("!297-U
    M;'13970@<G,@/2!N=6QL.PT*(" @($]R86-L95)E<W5L=%-E="!O<G,@/2!N
    M=6QL.PT*#0H@(" @4F5A9&5R(')E861E<CL-"@T*(" @("\O($YO(&]F(&)Y
    M=&5S(')E860@96%C:"!T<FEP('1O(&1A=&%B87-E#0H@(" @:6YT(&)Y=&5S
    M<F5A9#TP.PT*(" @("\O($)U9F9E<B!T;R!H;VQD('1H92!#3$]"(&1A=&$-
    M"B @("!3=')I;F="=69F97(@8VQO8D1A=&$@/2!N97<@4W1R:6YG0G5F9F5R
    M*"D[#0H-"B @("!T<GE[#0H@(" @(" O+R!'970@=&AE('-T871E;65N="!/
    M8FIE8W0-"B @(" @('!S=&UT(#T@8V]N;BYP<F5P87)E4W1A=&5M96YT*'%U
    M97)Y*3L-"@T*+R\@(" @("!I9B H<W1R:6YG+G-T87)T<U=I=&@H(CP_>&UL
    M('9E<G-I;VX]7"(Q+C!<(C\^(BDI>PT*(" @(" @+R\@0W)E871E('1H92!#
    M3$]"(&%N<R!S970@:70@:6X@=&AE(%!R97!A<F5D4W1A=&5M96YT+@T*(" @
    M(" @+R\@5&AI<R!I<R!D;VYE(&%S('1H92!834P@8V%N(&)E(&UO<F4@=&AA
    M;B T,# P(&-H87)A8W1E<G,-"B @(" @("\O('=H:6-H(&ES(&$@;&EM:70@
    M9F]R('1H92!1=65R>0T*(" @(" @("!C;&]B(#T@=&AI<RYG971#3$]"*'-T
    M<FEN9RP@8V]N;BD[#0H@(" @(" @('!S=&UT+G-E=$]B:F5C="@Q+"!C;&]B
    M*3L-"B\O(" @(" @?65L<V5[#0H@(" @(" @("\O(%-E=',@=&AE('!A<F%M
    M971E<B!T;R!T:&4@<')E<&%R9613=&%T96UE;G0-"B\O(" @(" @("!P<W1M
    M="YS971/8FIE8W0H,2P@<W1R:6YG*3L-"@T*+R\@(" @("!]#0H-"B @(" @
    M("\O($5X96-U=&4@=&AE('%U97)Y#0H@(" @("!B;V]L96%N(&ES4F5S=6QT
    M4V5T(#T@<'-T;[email protected]*#0H@(" @("!I9B H:7-297-U;'13
    M970I>PT*(" @(" @(" O+R!4:&ES(&UE86YS('1H870@82!297-U;'13970@
    M:&%S(&)E96X@<F5T<FEE=F5D(&9O<B!T:&ES('%U97)Y#0H@(" @(" @(')S
    M(#T@<'-T;70N9V5T4F5S=6QT4V5T*"D[#0H@(" @("!]#0H-"B @(" @("\O
    M($EN:71I86QI>F5S('1H92!/<F%C;&4@4F5S=6QT4V5T+@T*(" @(" @;W)S
    M(#T@*$]R86-L95)E<W5L=%-E="D@<G,[#0H-"B @(" @('=H:6QE*&]R<RYN
    M97AT*"DI>PT*(" @(" @(" O+R!'971S('1H92!(5$U,(')E='5R;F5D(&EN
    M(&$@0TQ/0@T*(" @(" @("!C;&]B(#T@;W)S+F=E=$-,3T(H,2D[#0H@(" @
    M("!]#0H-"B @(" @("\O($]P96X@=&AE('-T<F5A;2!T;R!R96%D(&1A=&$-
    M"B @(" @(')E861E<B ](&-L;V(N9V5T0VAA<F%C=&5R4W1R96%M*"D[#0H-
    M"B @(" @("\O("!"=69F97(@<VEZ92!I<R!F:7AE9"!U<VEN9R!T:&4@9V5T
    M0G5F9F5R4VEZ92@I(&UE=&AO9"!W:&EC:"!R971U<FYS#0H@(" @(" O+R @
    M=&AE(&]P=&EM86P@8G5F9F5R('-I>F4@=&\@<F5A9"!D871A(&9R;VT@=&AE
    M($Q/0@T*(" @(" @8VAA<EM=(&-H87)B=69F97(@/2!N97<@8VAA<EMC;&]B
    M+F=E=$)U9F9E<E-I>F4H*5T[#0H-"B @(" @("\O($ME97 @<F5A9&EN9R!F
    M<F]M('1H92!#3$]"(&%N9"!A<'!E;F0@:70@=&\@=&AE(%-T<FEN9T)U9F9E
    M<B!T:6QL#0H@(" @(" O+R!T:&5R92!I<R!N;R!M;W)E('1O(')E860-"B @
    M(" @('=H:6QE*"AB>71E<W)E860]<F5A9&5R+G)E860H8VAA<F)U9F9E<BDI
    M(3T@+3$I#0H@(" @(" @(&-L;V)$871A+F%P<&5N9"AC:&%R8G5F9F5R+# L
    M8GET97-R96%D*3L-"@T*(" @(" @+R\@0VQO<V4@=&AE(&EN<'5T('-T<F5A
    M;0T*(" @(" @<F5A9&5R+F-L;W-E*"D[#0H-"B @(" @(')E='5R;B!C;&]B
    M1&%T82YT;U-T<[email protected]*(" @('UC871C:"A344Q%>&-E<'1I;VX@<W%L
    M97AP*7L-"B @(" @('-Q;&5X<"YP<FEN=%-T86-K5')A8V4H*3L-"B @(" @
    M('1H<F]W(&YE=R!344Q%>&-E<'1I;VXH<W%L97AP+F=E=$UE<W-A9V4H*2D[
    M#0H@(" @?0T*(" @(&-A=&-H*$5X8V5P=&EO;B!E>' I>PT*(" @(" @97AP
    M+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W($5X8V5P=&EO
    M;BAE>' N9V5T365S<V%G92@I*3L-"B @("!]#0H@(" @9FEN86QL>7L-"B @
    M(" @('1R>7L-"B @(" @(" @9G)E94-,3T(H8VQO8BD[#0H@(" @(" @(&EF
    M("AR<R A/2!N=6QL*7L-"B @(" @(" @("!R<RYC;&][email protected]*(" @(" @
    M("!]#0H@(" @(" @(&EF("AO<G,@(3T@;G5L;"E[#0H@(" @(" @(" @;W)S
    M+F-L;W-E*"D[#0H@(" @(" @('T-"B @(" @(" @:68@*'!S=&UT("$](&YU
    M;&PI>PT*(" @(" @(" @('!S=&UT+F-L;W-E*"D[#0H@(" @(" @('T-"B @
    M(" @(" @:68@*&-O;FX@(3T@;G5L;"E[#0H@(" @(" @(" @8V]N;BYC;&]S
    [email protected]*(" @(" @("!]#0H@(" @("!](&-A=&-H*%-13$5X8V5P=&EO;B!S
    M<6QE>' I>PT*(" @(" @(" @<W%L97AP+G!R:6YT4W1A8VM4<F%[email protected]*
    M(" @(" @(" @=&AR;W<@;F5W(%-13$5X8V5P=&EO;BAS<6QE>' N9V5T365S
    M<V%G92@I*3L-"B @(" @('T-"B @("!]#0H@('T-"B @<'5B;&EC($-,3T(@
    M9V5T0TQ/0BA3=')I;F<@8VQO8D1A=&$L($-O;FYE8W1I;VX@8V]N;BD@=&AR
    M;W=S(%-13$5X8V5P=&EO;GL-"B @("!#3$]"('1E;7!#;&]B(#T@;G5L;#L-
    M"B @("!T<GE[#0H@(" @(" O+R!)9B!T:&4@=&5M<&]R87)Y($-,3T(@:&%S
    M(&YO="!Y970@8F5E;B!C<F5A=&5D+"!C<F5A=&4@;F5W#0H@(" @("!T96UP
    M0VQO8B ]($-,3T(N8W)E871E5&5M<&]R87)Y*&-O;FXL('1R=64L($-,3T(N
    M1%52051)3TY?4T534TE/3BD[#0H@(" @(" O+R!/<&5N('1H92!T96UP;W)A
    M<GD@0TQ/0B!I;B!R96%D=W)I=&4@;6]D92!T;R!E;F%B;&4@=W)I=&EN9PT*
    M(" @(" @=&5M<$-L;V(N;W!E;BA#3$]"+DU/1$5?4D5!1%=2251%*3L-"B @
    M(" @("\O($=E="!T:&4@;W5T<'5T('-T<F5A;2!T;R!W<FET90T*(" @(" @
    M5W)I=&5R('1E;7!#;&]B5W)I=&5R(#T@=&5M<$-L;V(N9V5T0VAA<F%C=&5R
    M3W5T<'5T4W1R96%M*"D[#0H@(" @(" O+R!7<FET92!T:&4@9&%T82!I;G1O
    M('1H92!T96UP;W)A<GD@0TQ/0@T*(" @(" @=&5M<$-L;V)7<FET97(N=W)I
    M=&4H8VQO8D1A=&$I.PT*(" @(" @+R\@1FQU<V@@86YD(&-L;W-E('1H92!S
    M=')E86T-"B @(" @('1E;7!#;&]B5W)I=&5R+F9L=7-H*"D[#0H@(" @("!T
    M96UP0VQO8E=R:71E<BYC;&][email protected]*(" @(" @+R\@0VQO<V4@=&AE('1E
    M;7!O<F%R>2!#3$]"#0H@(" @("!T96UP0VQO8BYC;&][email protected]*(" @(" @
    M<F5T=7)N('1E;7!#;&]B.PT*(" @('T@8V%T8V@H4U%,17AC97!T:6]N('-Q
    M;&5X<"E[#0H@(" @("!F<F5E0TQ/0BAT96UP0VQO8BD[#0H@(" @("!S<6QE
    M>' N<')I;G13=&%C:U1R86-E*"D[#0H@(" @("!T:')O=R!N97<@4U%,17AC
    M97!T:6]N*'-Q;&5X<"YG971-97-S86=E*"DI.PT*(" @('T-"B @("!C871C
    M:"A%>&-E<'1I;VX@97AP*7L-"B @(" @(&9R965#3$]"*'1E;7!#;&]B*3L-
    M"B @(" @(&5X<"YP<FEN=%-T86-K5')A8V4H*3L-"B @(" @('1H<F]W(&YE
    M=R!344Q%>&-E<'1I;VXH97AP+F=E=$UE<W-A9V4H*2D[#0H@(" @?0T*("!]
    M#0H@('!R:79A=&4@=F]I9"!F<F5E0TQ/0BA#3$]"(&-L;V(I('1H<F]W<R!3
    M44Q%>&-E<'1I;VY[#0H@(" @=')Y>PT*(" @(" @8VQO8BYF<F5E5&5M<&]R
    M87)Y*"D[#0H@(" @?6-A=&-H*%-13$5X8V5P=&EO;B!S<6QE>' I>PT*(" @
    M(" @<W%L97AP+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W
    M(%-13$5X8V5P=&EO;BAS<6QE>' N9V5T365S<V%G92@I*3L-"B @("!]#0H@
    M('T-"B @<'5B;&EC($-O;FYE8W1I;VX@9V5T0V]N;F5C=&EO;B@I('1H<F]W
    M<R!344Q%>&-E<'1I;VX@>PT*(" @($1A=&%3;W5R8V4@9',@/2!G971$871A
    M4V]U<F-E*&1S3F%M92D[#0H@(" @<F5T=7)N(&1S+F=E=$-O;FYE8W1I;VXH
    M*3L-"B @?0T*#0H@('!U8FQI8R!#;VYN96-T:6]N(&=E=$-O;FYE8W1I;VXH
    M4W1R:6YG(&1S3F%M92D@=&AR;W=S(%-13$5X8V5P=&EO;B![#0H@(" @1&%T
    M85-O=7)C92!D<R ](&=E=$1A=&%3;W5R8V4H9'-.86UE*3L-"B @("!R971U
    M<FX@9',N9V5T0V]N;F5C=&EO;[email protected]*("!]#0H-"B @<')I=F%T92!$871A
    M4V]U<F-E(&=E=$1A=&%3;W5R8V4H4W1R:6YG(&1S3F%M92D@=&AR;W=S(%-1
    M3$5X8V5P=&EO;B![#0H@(" @1&%T85-O=7)C92!D<R ](&YU;&P[#0H@(" @
    M=')Y('L-"B @(" @($-O;G1E>'0@:6,@/2!N97<@26YI=&EA;$-O;G1E>'0H
    M*3L-"B @(" @(&1S(#T@*$1A=&%3;W5R8V4I(&EC+FQO;VMU<"AD<TYA;64I
    M.PT*(" @('T@8V%T8V@@*$YA;6EN9T5X8V5P=&EO;B!E*2![#0H@(" @("!E
    M+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W(%-13$5X8V5P
    M=&EO;BAE+F=E=$UE<W-A9V4H*2D[#0H@(" @?0T*(" @(')E='5R;B!D<SL-
    )"B @?0T*?0T*
    `
    end

  • Use JDBC to Access XML Documents in Oracle XML DB

    Hi folks,
    From the Oracle XML DB Developer's Guide 10g Release 1 (10.1) Chapter 12 Java API for XMLType, it show several examples for how java application use JDBC to access xml in XMLDB:
    1. use getOPAQUE() on XMLTYPE table/column and then call XMLTYPE.createXML();
    2. use getCLOBVal()/getStringVal()/getBLOBVal() in SQL statement;
    3.use getObject on the result and cast directly to XMLType;
    Among these 3 options, which is supposed to be the fastest way? Any difference between thin and oci?
    I have run some tests about that and the result is the second option (with thin driver) is the fastest. It surprises me because I think oci should be faster than thin. Does the result make sense?
    Thanks.

    Have you tried to trace your sessions to see how much work is happening? Traces should give you quantifiable information on exact times and access paths to the data.
    Below is a link to an O'Reilly book excerpt on Java programming with JDBC. Slightly data, but may be of assistance.
    http://www.onjava.com/lpt/a//onjava/excerpt/oraclejdbc_19/index.html

  • Calling a stored procedure with VARRAY as out parameter using JDBC

    Hi,
    I want to use the data type VARRAY as an out parameter in an Oracle stored procedure. I want to call the stored procedure from
    my java program using JDBC.
    I'm using Oracle 8.1.5 for Windows NT.
    Please help me.
    Thanks
    Sumanta
    null

    Originally posted by JDBC Development Team:
    It's very similar to other datatype except that it uses OracleTypes.ARRAY typecode and the value is mapped to a oracle.sql.ARRAY instance. The code looks as follows --
    cstmt.registerOutParameter (idx, OracleTypes.ARRAY, "VARRAY_TYPE_NAME_HERE");
    cstmt.execute ();
    ARRAY array = (ARRAY) cstmt.getObject (idx);
    Thanks for your reply.
    I have to use:-
    OracleCallableStatement cs1 = (OracleCallableStatement )conn.prepareCall
    ( "{call proj_array(?)}" ) ;
    for retrieving a collection as an OUT parameter.
    This gives me the errors:-
    C:\jdbc\VarraySQL.java:0: The method oracle.jdbc2.Blob getBlob(int) declared in class oracle.jdbc.driver.OracleCallableStatement cannot override the method of the same signature declared in interface java.sql.CallableStatement. They must have the same return type.
    import java.sql.*;
    ^
    C:\jdbc\VarraySQL.java:0: The method oracle.jdbc2.Array getArray(int) declared in class oracle.jdbc.driver.OracleCallableStatement cannot override the method of the same signature declared in interface java.sql.CallableStatement. They must have the same return type.
    import java.sql.*;
    ^
    C:\jdbc\VarraySQL.java:0: The method oracle.jdbc2.Clob getClob(int) declared in class oracle.jdbc.driver.OracleCallableStatement cannot override the method of the same signature declared in interface java.sql.CallableStatement. They must have the same return type.
    import java.sql.*;
    ^
    C:\jdbc\VarraySQL.java:0: The method oracle.jdbc2.Ref getRef(int) declared in class oracle.jdbc.driver.OracleCallableStatement cannot override the method of the same signature declared in interface java.sql.CallableStatement. They must have the same return type.
    import java.sql.*;
    ^
    How do I get rid of these errors?
    null

Maybe you are looking for

  • Multiple fact tables using one measure

    Hi Experts, Multiple fact tables using single measure .For example Measure name is amount . This measure is using 5 fact tables. By using this info , i have to create bmm layer document . In bmm layer documents columns are like logical table name ,co

  • Help with texting problems??

    hi Im not sure  what to do. I was texting a good friend of mine the other night and he was texting me back too. The next morning I tried texting him again and it just said sent. But when I tried calling it just rings a ton until it eventually goes to

  • Qty sharing of same material b/w 2 suppliers

    Hello experts, we have a scenario where in we have to share same part for two supplers. is it possible through Quto arrangement ?. if it has to be shared for 50% each how to do that. please explain.

  • Raisiing an error message to fill in customised tabscreen in me21n

    hi. i have created one tabscreen in header of me21n and i just want to raise an error message if the use has filled data in all t fields of tabscreens of header in me21n except the customised tabsubscreen that i have created . i came to know that thi

  • Unicode in Forms

    Dear all, How will be the impact in a Form in 6i if the database is migrated to a unicode database? Is enough to change the NLS_LANG to display Unicode fonts or should I to recompile the Form or change de char or varchar fields? Thanks a lot !! Best