HELP!! SDO_RELATE inside Oracle procedure - ORA-13207: incorrect use of the

Hello,
I need help !
I have a problem with queries inside procedures/packages.
When execute sql
SQL> SELECT LOC_OBJ_ID
2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
LOC_OBJ_ID
2211379
i have results - it's OK
The next sql is same, but with agregation
SQL> SELECT COUNT(*) ILOSC
2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
ILOSC
1
it's OK
But when i want use this SQL inside proedurees in store result in variable i have problem
SQL> declare
2 V_NUMBER_NEI_LOC number;
3 begin
4 SELECT COUNT(*) ILOSC
5 INTO V_NUMBER_NEI_LOC
6 FROM VORO_LOC X, LBS_OZ_AREAS OZ
7 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
8 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
9 end;
10 /
declare
ORA-13207: incorrect use of the [SDO_RELATE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259
ORA-06512: at line 4
ORA-06512: at line 4
Please help!

This might be some issue with SQL in PL/SQL. We will check into this.
In the meantime, can you try the dynamic SQL to execute that
sdo_relate query to see if it works?
Here is the example with dynamic SQL:
declare
V_NUMBER_NEI_LOC number;
begin
EXECUTE IMMEDIATE
' SELECT COUNT(*) ILOSC ' ||
' FROM VORO_LOC X, LBS_OZ_AREAS OZ ' ||
' WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, ' ||
' ''MASK=ANYINTERACT'') = ''TRUE'' ' ||
' AND OZ.OZ_NAME=''PTK'' AND OZ.OZ_GROUP=''GORCZEWSKA'' '
INTO V_NUMBER_NEI_LOC;
end;
/

Similar Messages

  • ORA-13207: incorrect use of the [More than 2D not supported] operator

    Oracle 8.1.7.4:
    The same query works in an Oracle DB on Linux and Windows, but in a Solaris it gives me the following error:
    cc_redes_met_coaxial@ORAG2> SELECT lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    2 G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    3 AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    4 AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version > 0 OR lot_f.g_next_version IS NULL)
    5 AND pedestal_f.g_version+0 = 0
    6 AND (pedestal_f.g_next_version > 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,'distance = 100' ) = 'TRUE';
    7 8 9 10 11 12 13 14 SELECT lot_f.lot_id id,
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [More than 2D not supported] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
    ORA-06512: at line 1
    The data is in 3D. I took a look at the trace file but no useful information. It does not have to be 2d, right?
    I can use SDO_WITHIN_DISTANCE with data in 3d, can't I?
    Does anyone know what is going on? Maybe a bug?
    Regards,
    Alex

    Daniel,
    I created the spatial index in 2d, but if I collect stats on all tables the optimizer doesn't use the spatial index.
    I tried to influence the optimizer using hints, but it seems to ignore the hint clause. The query I did is above:
    SELECT /*+ INDEX(lot_geom G_GEOMETRY_0_SI) INDEX(ped_geom G_GEOMETRY_0_SI) */
         lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version > 0 OR lot_f.g_next_version IS NULL)
    AND pedestal_f.g_version+0 = 0
    AND (pedestal_f.g_next_version > 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,
    'distance = 100' ) = 'TRUE';
    So I "forced" a plan that uses the spatial indexes deleting the statistics from the tables that have geometry columns. The execution plan looks like this:
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2652 Card=10182 Bytes=79969428)
    1 0 CONCATENATION
    2 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    3 2 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    4 3 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    5 4 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    6 4 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    7 6 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    8 3 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    9 8 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    10 2 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    11 10 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    12 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    13 12 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    14 13 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    15 14 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    16 14 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    17 16 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    18 13 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    19 18 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    20 12 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    21 20 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    But when I executed the query, I got:
    cc_redes_met_coaxial@ORAG2> /
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    ERROR at line 2:
    ORA-03113: end-of-file on communication channel
    Collecting stats on geometry tables makes the query work only because it doesn't use the spatial index.
    I took a look the trace file, but I didn't see any interesting information. I can send you if you want.
    Do you have any clue?
    Regards,
    Alex

  • Oracle Alert - ORA-1652 Unable to extend the Temp Segment

    Hi Team,
    During our DB Reorg we have received the Oracle Alert - ORA-1652 Unable to extend the Temp Segment by 15485 in tablespace :PSAPBTABI.
    Our DBReorg got cancelled..
    We would like to know how we can resolve the above error so that we can reschedule the DB Reorg activity..
    Regds,
    Satyanarayana N

    Hi,
    If you are using UNIX OS, the temp files are created as sparse file due to the OS functionality.
    Altough you have assigned 49 GB the actual size will be very very less.
    You can check the actula file size with du or df command. To remove these sparse condition you will need to perform certain steps.
    Read this note and execute the steps given and then see the file size difference.
    548221 - Temporary Files are created as sparse files
    Do update the message if the OS is different.
    Regards,
    Nilesh

  • This error is often caused by incorrect use of the "Strict" document type

    Okay...so I have 6 errors - all the same and has to do with my document type.
    I've searched the code and I am using a transitional doc type so why the errors?
    http://02cada7.netsolhost.com/Stasik_Family_Website/index.html

    Yeah I did that...but the cause doesn't make sense to me.
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    I'm not using a strict document time - I am using transitional and I am not using proprietary extensions.

  • Incorrect use of the TOP clause

    Hi
    I need to demonstrate the use of the TOP clause, however when I run my SQL it says incorrect use of the clause.
    Question: List the top 3 earners in the company( from the employees table). List employee_id, last_name, and the salary in descending order.
    below is my attempt:
    Select TOP 3 employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC;
    Any assistance will be appreciated
    Thanks

    Imtiyaaz wrote:
    Ok i've tried this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary
    WHERE ROWNUM <= 3;
    and it works but I need to display the salary in descending order, if I do this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC
    WHERE ROWNUM <= 3;
    it does not display the top 3 salaries anymore but rather the first 3 rows of the table...?Are you sure that what you ran is what you posted? It works correctly for me:
    SQL > select * from (
      2  select employee_id, first_name, last_name, salary
      3  from hr.employees
      4  order by salary desc )
      5  where rownum <= 3;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME                     SALARY
            100 Steven               King                           24000
            101 Neena                Kochhar                        17000
            102 Lex                  De Haan                        17000John

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

  • Help with calling Oracle Procedure

    First, let me state that I'm new to Oracle and using it with
    ColdFusion, but I've used CF on and off for the past 6 years. So
    this might be a simple "newbie" problem with Oracle and CF.
    My boss wrote the following simple Oracle procedure to
    concatenate three variables together (I know I could do this in CF
    directly, but I need to be able to use his existing procedures in
    Oracle)
    SPEC:
    function ShowCaption(inprecaption in long,
    incaption in long,
    inpostcaption in long,
    method in varchar2,
    xcoord in number,
    ycoord in number)
    return long;
    BODY:
    function ShowCaption(
    inprecaption in long,
    incaption in long,
    inpostcaption in long,
    method in varchar2,
    xcoord in number,
    ycoord in number)
    return long
    is
    begin
    return inprecaption || incaption || inpostcaption;
    end ShowCaption;
    I'm trying to call that procedure using the attached code but
    when I run this code I receive the error "ORA-01008: not all
    variables bound" and I'm not sure why. Searching Google hasn't come
    up with anything and I've used other procedures, but can't seem to
    make this one work. I know the procedure works within Oracle as I'm
    able to run it.
    I would really appreciate any ideas.

    Since he wrote his PL/SQL as a FUNCTION instead of a
    PROCEDURE, it complicates returning the result to ColdFusion. You
    haven't provided any means of capturing the return value of your
    function call in your CFSTOREDPROC call. If he had declared this a
    procedure, then you probably would have added an OUT parameter to
    the PL/SQL and an OUT CFPROCRESULT tag, but since it is a function,
    you are going to have to capture the result differently.
    Try adding a returncode="yes" parameter to your CFSTOREDPROC
    tag, then check the cfstoredproc.statusCode variable for your
    returned result value:
    <cfoutput>#cfstoredproc.statusCode#</cfoutput>
    Normally, I avoid calling Oracle
    functions from ColdFusion because in older versions of CF,
    there was no way of capturing the return value, so I rarely ever do
    it this way. In other words, I strictly write PL/SQL
    procedures for use with ColdFusion. However, if you are
    required to work with an existing function, then the method
    mentioned above may work for you.
    Phil

  • Oracle error ORA-00600 when using Oracle 10g and Sun One Web Server 6.1

    I have a java application that was running under Solaris 8 and Oracle 9i. I am trying to get it up and running on a new server that is configured with Solaris 9 and Oracle 10g. Whenever the application tries to connect to the database it receives the following error: ORA-00600 [ttcgcshnd-1][0]. My research indicates that this is an internal Oracle error that represents a low level unexpected condition. I have looked through my configuration for the Web Server and I have not been able to determine the cause of this problem. My DBA tells me that we have the latest patch installed for Oracle! Has anyone encountered this problem before? Any help would be greatly appreciated!

    If the problem is also present in a SWING app, i.e. outside the web server, then it is porbably something external to the webserver.
    I think you should ensure that the driver and database are compatible with each other. It is very likely that you need a new jdbc driver for the new database.
    download from here http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html
    try the ojdbc14.jar

  • Help:Building a oracle Report in Forms 6i Using dev60cgi - rwcgi60 utility

    Hello All
    I'm developing a form for EMP details .There is a button in the form named 'view PDF', which is used to print the EMP fields in the form(empno,name,job,etc..,). I need to run and render a PDF report(to print EMP fields) using dev60cgi - rwcgi60 utility..
    My scenario is
    i'm having a button(view pdf) in the form i'm creating, when i click the button then it opens a new browser window and displays the report(pdf)., how to do this
    I have no idea about this utility and and don't know how to achieve this. help me to develop this report
    Thanks
    user2233

    Hi,
    You want this report to run in oracle application. Then you have to develop a report using oracle reports and register the report. While defining a concurrent program you have option to select the output format, select pdf format there.
    When user requests using submit request form they can see the output in PDF format.
    Regards
    Yoonas

  • Database trigger to Launch Oracle Procedure

    Hello All,
    I wrote a db trigger (on insert) to launch "apps.fnd_request.submit_request" which in turn launches a custom oracle procedure. Everything works fine, except the user says they cannot wait the 30 seconds to 1 minute for this concurrent request to kick off...
    Question: is there a better way to directly call this custom procedure from a DB trigger ? With the commit/rollback restrictions in the trigger, I am not sure how to get around this ?
    Any help would be appreciated.
    Thanks..

    I used the DBMS_SCHEDULER procedures with great success outside of a DB trigger. Problem is inside the DB trigger it is throwing an exception and does not give me an indication of what the problem is..
    When I run the following queries, I see no entries..
    ========================================
    SELECT to_char(log_date), job_name, additional_info
    FROM all_scheduler_job_run_details
    where job_name = 'LAUNCH_LNVDLVMAN'
    SELECT to_char(log_date), job_name, operation, status, additional_info
    FROM all_scheduler_job_log
    WHERE owner = 'APPS'
    =======================================
    The following code that is called is the same inside and outside of the "After Insert" trigger. I tried use_current_session as both True and False, and I tried to run as Execute Immediate with no luck.
    -- Run job synchronously.
    DBMS_SCHEDULER.run_job (job_name => 'LAUNCH_LNVDLVMAN',
    use_current_session => FALSE);
    Question: Does the DBMS_SCHEDULER work when called from within a DB trigger ? I have not seen anything on the web saying yeah or nay. Has anyone run into this before ?
    Thanks in advance

  • Can we create java_object data type in oracle procedure

    i want to construct java_object like data stucture in oracle procedure, then i have to retrieve the object
    via callable statement. is it possible? or any other solutions?

    i want to construct java_object like data stucture in
    oracle procedure, then i have to retrieve the object
    via callable statement. is it possible? No.
    or any other
    solutions?Of course. Return the data, and construct it in java.

  • Regarding oracle procedure

    Hi,
    I have a oracle procedure . How can i view the creation statement using the name of the procedure?
    thanks
    vivek

    What is the data dictionary that stores the SQL text of stored procedures?

  • ORA-00904 when use column alias in Record Group Query

    Is it possible to use column aliases in Record Group Queries?
    I have a query that runs fine in SQL*Developer, but gives me runtime errors when I use it as a Record Group Query.
    When I use it as a Record Group Query, the Form compiles, but at runtime I receive the following errors:
    FRM-40502: ORACLE error: unable to read list of values
    when I use Help - Display Error, I see:
    ORA-00904:"CHILDNAME":invalid identifier
    The query is something like this
    select decode(complex stuff here) as "childname" ....
    I've tried it with and without the double quotes surrounding the alias name, and have also tried it without using the "as" keyword.
    I would appreciate any suggestions or insights. I'm using Forms 9.0.4.
    Thanks.

    It looks like this is caused by bug 725059:
    "FILTER BEFORE DISPLAY" DOESN'T WORK IF LOV HAS COLUMN ALIASES (TRIAGE1098)
    My LOV does have the Filter Before Display turned on. Here's the text of the bug:
    IF an LOV is created with column aliases in the select statement, (eg: select ename emp_name from emp) and the LOV property "Filter Before Display" is "Yes", THEN when you attempt to filter the LOV at runtime, (eg: type '%' then press the 'Find' button) the internal WHERE clause that forms sends to the database is: WHERE column_alias LIKE '%%' This is incorrect syntax. A client-side sqlnet trace shows this. The correct syntax should be: WHERE column LIKE '%%' . The incorrect syntax results in no rows returned. However no error is displayed by forms to the user.

  • Which Oracle Thin Driver Classes are used at runtime ?

    Hi,
    I am using Weblogic 6.1 sp1 on a WIN 2000 Professional Box and am trying to connect
    to a Oracle 8.1.7 Database that is located on a Solaris Box. I am using the Oracle
    Thin Driver (classes12.zip) supplied by Oracle.
    The relevant portion of config.xml looks like this:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="12" LoginDelaySeconds="1" MaxCapacity="24"
    Name="xxxConnectionPool" Password="xxxxxxxx"
    Properties="user=user123" Targets="xxxserver" URL="jdbc:oracle:thin:@1.2.3.4:1521:xxxx"/>
    The start script for the Server includes a CLASSPATH variable that includes both
    weblogic.jar and classes12.zip (in that order)
    The Database access code is from a singleton that is deployed with the beans and
    looks like :
    Context ctx = new InitialContext();
    Object o = ctx.lookup("resonateDataSource");
    dataSource = (DataSource)o;
    Connection con = dataSource.getConnection();
    PreparedStatement ps = con.prepareStatement(sqlXXX);
    The actual subclasses of DataSource, Connection, PreparedStatement that are called
    at runtime are from weblogic jDriver classes like weblogic.jdbc.rmi.SerialPreparedStatement,
    weblogic.jdbc.rmi.SerialConnection etc and not from oracle thin driver.
    Is this expected ? Why arent the corresponding classes from the Oracle Thin Driver
    loaded ?
    Thanks,
    Praveen

    Praveen wrote:
    Hi,
    I am using Weblogic 6.1 sp1 on a WIN 2000 Professional Box and am trying to connect
    to a Oracle 8.1.7 Database that is located on a Solaris Box. I am using the Oracle
    Thin Driver (classes12.zip) supplied by Oracle.
    The relevant portion of config.xml looks like this:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="12" LoginDelaySeconds="1" MaxCapacity="24"
    Name="xxxConnectionPool" Password="xxxxxxxx"
    Properties="user=user123" Targets="xxxserver" URL="jdbc:oracle:thin:@1.2.3.4:1521:xxxx"/>
    The start script for the Server includes a CLASSPATH variable that includes both
    weblogic.jar and classes12.zip (in that order)Hi. You should have the oracle zip first. This is because our stuff also contains an oracle zip, but
    it's
    older than the latest, and you want yours to be used. Whatever is first in the classpath is what will
    be used.
    The Database access code is from a singleton that is deployed with the beans and
    looks like :...
    The actual subclasses of DataSource, Connection, PreparedStatement that are called
    at runtime are from weblogic jDriver classes like weblogic.jdbc.rmi.SerialPreparedStatement,
    weblogic.jdbc.rmi.SerialConnection etc and not from oracle thin driver.
    Is this expected ? Why arent the corresponding classes from the Oracle Thin Driver
    loaded ?Yes it is expected. The oracle classes are loaded, and used under the covers. All access
    to JDBC connections and JDBC objects via our pools and DataSources will be via a
    wrapper object of ours. This is necessary to allow us to retain control over the pool and
    User Transactions. Also, because the DataSource is supposed to work whether from
    a serverside class or an external client JVM, there will have to be an intermediary JDBC
    object that acts as a proxy from the external client to the real thin driver connection
    in the server. One can't ship JDBC connections across the wire as-is.
    Thanks,
    Praveen

  • Procedures inside Oracle Packages

    Hello All,
    Can I execute an procedure defined inside an Oracle package using jdbc?
    Are the procedures defined inside Oracle packages are same as stored procedures ?
    Any help would be grately appreciated.
    regards,
    Abhishek.

    Yes you can execute a procedure defined inside an Oracle package. Use the prepareCall method eg
    String param1 = 'some value';
    oracleCStmt = oracleConn.prepareCall("begin package_name.proc_name(?); end;");
    oracleCStmt.setString(1,param1);
    oracleCStmt.executeUpdate();Yes a stored procedure in a package is no different to on inside a package. A package is just a collection of PL/SQL objects.
    Richard

Maybe you are looking for