forcing the drop of object type in a create statement

Hello everyone



We are about to upgrade our customer database with some ddl scripts and to not worry what types of objects (nested tables) are new and which is old (where a drop of water is necessary), I'm looking for a way to do it all in one



CREATE or REPLACE the STRENGTH & lt; Type & gt; AS AN OBJECT (...);



In any case, when there is a type of collection for objects that I get < em > ORA-02303: cannot remove or replace a type of load type or the table < /em >


I thought that the FORCE option will just delete and recreate? I don't want to delete anything manually. The collection type will be updated later with another script.



Thanks in advance


You don't have what I posted.

Ok. Let me explain.

You cannot drop or replace any existing object if it refers to any other type.

So, you I don't think you can do in a simple process.

You should know first of all the type of load on all objects. Then, you have to drop the first types that refer to these objects. And only then will you be able to upgrade your object.

You can find the dependent objects like this->

satyaki>
satyaki>create or replace type sas_demo as object
  2      (
  3        v_nm          number(8),
  4        v_det         varchar2(45)
  5      );
  6  /

Type created.

Elapsed: 00:00:00.29
satyaki>create or replace type sas_rec as table of sas_demo;
  2  /

Type created.

Elapsed: 00:00:04.44
satyaki>
satyaki>
satyaki>exec dbms_utility.get_dependency('TYPE', 'SCOTT', 'SAS_DEMO');
-
DEPENDENCIES ON SCOTT.SAS_DEMO
------------------------------------------------------------------
*TYPE SCOTT.SAS_DEMO()
*   TYPE SCOTT.SAS_REC()

PL/SQL procedure successfully completed.

Elapsed: 00:00:03.27
satyaki>

Made me?

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • doubt about the collection of object type

    Hi all

    I'm a newbie!

    I tried an array of type object index, as follows.

    declare

    type ty_tab is table of the directory index ty_test;

    v_tab ty_tab;

    Start
    v_tab (1): = ty_test ('ashok', 1000);
    v_tab (2): = ty_test ('rashmi', 2000);
    v_tab (3): = ty_test ('baby', 3000);

    for me in v_tab.first... loop of v_tab. Last

    dbms_output.put_line (v_tab (i));

    end loop;

    end;

    /

    While running the script above, I got the following error message.
    ORA-06550: line 14, column 8:
    PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.
    ORA-06550: line 14, column 8:
    PL/SQL: Statement ignored

    Can anyone suggest me where I'm wrong.


    Thanx

    DBMS_OUTPUT. Put_line argument is a scalar value. It does not composite types. You should pass the individual attributes. Assuming that ty_test is:

    SQL> create or replace
      2    type ty_test
      3      as object(
      4                name varchar2(10),
      5                val  number
      6               )
      7  /
    
    Type created.
    
    SQL> 
    

    Use:

    declare
        type ty_tab is table of ty_test index by binary_integer;
        v_tab ty_tab;
    begin
        v_tab(1):=ty_test('ashok',1000);
        v_tab(2):=ty_test('rashmi',2000);
        v_tab(3):=ty_test('baby',3000);
        for i in v_tab.first .. v_tab.last loop
          dbms_output.put_line(rpad(v_tab(i).name,11) || v_tab(i).val);
        end loop;
    end;
    /
    ashok      1000
    rashmi     2000
    baby       3000
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • The Oracle table object type - error

    Hello

    I created an oracle object as

    [CREATE or REPLACE TYPE t_test_obj () IS OBJECT
    TestId INTEGER,
    testdesc VARCHAR2 (64)
    );]

    Then created the type from above table

    [create or replace type t_table in table of the t_test_obj;]

    I want to create the table containing the type above as below

    create the table t_tab_test (test1 t_table); but I got the error as
    ERROR on line 1:
    ORA-22913: must specify the name of the table for the nested table column or attribute

    ---
    Requirement: As my function returns this object of type table and I want to insert these values in a table where I want this. All other pointers are also useful.


    Help, please.

    Kind regards
    Kapil

    and with a function

    create function f_test
    return t_table
    as
    begin
       return t_table (t_test_obj (1, 'first'), t_Test_obj (2, 'seconde'));
    end;
    /
    
    insert into t_tab_test values (10, f_test);
    
  • force the order of execution of code in conditional statements?

    I don't know if the above subject line is the best description, but here's the question.

    I created an image gallery where each "slide" is an image loaded by a UILoader component.  Everything works, except that I noticed that, as a user, it's annoying to wait for each new slide load.

    So, even with my knowledge of AS3, I decided to find a way to load the next image to come until requested by the user. 

    My solution 'dirty' had to have 2 UILoaders - one for odd slips, one for even-numbered slides. In this way, when the user displays a slide with an odd number in the first charger, the following image can be loaded into the charger (currently invisible) second and ready to go when asked. A "next slide" button would simply toggle the visibility of these two loaders.

    Not an elegant solution, but I thought it would work. Unfortunately, this isn't the case. The question lies in the function that is called when the user clicks on the button "next slide":

    function nextButton(event:MouseEvent):void

    {

    imageNumber ++;

    myModulo = imageNumber % 2;

    if (myModulo == 1)

                {

    Loader1.visible = false;

    Loader2.visible = true;

    loadNextSlide();

    //where loadNextSlide() functions load the next image in the currently invisible charger

                }

    Else if (myModulo == 0)

                {

    Loader2.visible = false;

    Loader2.visible = true;

    loadNextSlide();

    //where loadNextSlide() functions load the next image in the currently invisible charger

                }

    }

    Say that the user currently displays slide 3, when they click on the "next slide" button, imageNumber (which was = 3) is now = 4, and which defines myModulo = 0, answering the second condition.

    I assumed that would happen then was the properties of visibility of the Chargers would change immediately and then call the loadNextSlide function. In SIMULATED DOWNLOAD, however, it seems that none of the conditional code executed until the function is loadNextSlide.

    He completely defeated my effort, because when the user (who, in the example, look at slide 3) click on the "next slide" button, they expect to see slide 4 (which is already loaded) due to the loading of slide 5.

    I tried to replace "loadNextSlide();" with "dispatchEvent (new Event ("loadNextSlide"));" and add an eventlistener that calls the function loadNextSlide, but I got the same result.

    Is it just the nature of the AS3 language? Or, more likely, I think this evil? 

    If it really is the 'law of the land", is there a way around it? y at - it a better way to load blades to come with a charger?

    I think that he abandon the current and start the new load.

  • How to pass the number object type to bind the variable in a select statement

    Hello

    I have a scenario like,

    UI, we store the values in the type of object, and this object type must be spent in a select query to retrieve the data accordingly.

    Is it possible to do so.

    If this isn't the case, please let me know how to take the values of object type and pass to the select query.

    Kind regards

    I found it,

    Object_name ('parameters1', 'parameter2');

  • How to convert the column of ROW using DBMS_REDIFINITION object type column

    Hi all
    Suppose I have the following table to convert:
    create table customer as select customer_id cid, cust_first_name name, cust_address street from customers;
    alter table customer modify cid primary key;
    I created the table based on the customers of the OE schema table, while the street column has cust_address_typ with the following attribute object type
    SQL> describe cust_address_typ
     Name                                     Null?     Type
     ----------------------------------------------------- -------- ------------------------------------
     STREET_ADDRESS                               VARCHAR2(40)
     POSTAL_CODE                                   VARCHAR2(10)
     CITY                                        VARCHAR2(30)
     STATE_PROVINCE                               VARCHAR2(10)
     COUNTRY_ID                                   CHAR(2)
    I want to convert the object attribute adresse_rue in a column of RDM. Consider the following temporary table:
    CREATE TABLE INT_CUSTOMER(
    CID NUMBER,
    NAME VARCHAR2(30),
    street varchar2(100)
    );
    First of all, I checked if the table can be redefined:
    --Verify if the table can be redefined
    BEGIN
    DBMS_REDEFINITION.CAN_REDEF_TABLE('OE','CUSTOMER',DBMS_REDEFINITION.CONS_USE_PK);
    END;
     4  /
    
    PL/SQL procedure successfully completed.
    But when I started the redefinition, I got an error:
    BEGIN
    DBMS_REDEFINITION.START_REDEF_TABLE(
    uname => 'OE',
    orig_table => 'CUSTOMER',
    int_table => 'INT_CUSTOMER',
    col_mapping => 'CID CID, NAME NAME, STREET CUST_ADDRESS_TYP(STREET_ADDRESS)'
    );
    END;
      9  /
    BEGIN
    *
    ERROR at line 1:
    ORA-00923: FROM keyword not found where expected
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 52
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 1646
    ORA-06512: at line 2
    What seemed to be the problem?

    Best regards
    Val

    Published by: Valerie good-natured October 9, 2011 21:43

    Have you tried this one:

    BEGIN
    DBMS_REDEFINITION.START_REDEF_TABLE(
    uname => 'OE',
    orig_table => 'CUSTOMER',
    int_table => 'INT_CUSTOMER',
    col_mapping => 'CID CID, NAME NAME,"CUSTOMER".STREET.STREET_ADDRESS STREET'
    );
    END;
    

    Looking at your trace file, I claim that when you use the call above to START_REDEF_TABLE, the inner workings of this procedure will create this SQL statement:

    select CID CID, NAME NAME,"CUSTOMER".STREET.STREET_ADDRESS STREET from "OE"."CUSTOMER" "CUSTOMER"
    

    (You can prove or disprove my claim by tracing it ;-)))

    And this statement has had an alias - even if the alias is the same as the name of the table...

  • Problems force the wsus updates to clients

    Hi there I just installed my wsus and work very well and pick up all the PCs on the network but I can't force the updates down to customers. I created my gpo and all pcs and get the Group Policy object, but updates are not realized from wsus. any ideas that I can check?

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Sansa clip-drag &amp; drop shockwave object corrupts - the error of the operating system "refreshing database".

    If by mistake, you drag and drop an object flash shockwave from your local directory from the PC to the sansa clip, corrupt you the operating system of the sansa clip. When re - start the sansa clip, clip progresses by up to 70% with error message "refreshing database", but fails to start successfully. If the press-'hold' button on sansa clip, the appliance does not start. It crashes with the error message "refreshing database' but doesn't load is not the operating system.»

    It was a user error to drag - move all the MP3 files in the directory of the PC, one of whom was of type shockwave flash object file.

    Help!

    André

    Try the clip board.  This is the map of the e200 series.

  • Where can I set the preference for the "Drop Force' in SQL Developer?

    Hello

    When removing a SQL Developer 4.1 type, I get the following message:

    ORA-02303: cannot drop or replace a type load type or table. SQLDev advises the preference setting "Drop Type Force"

    I know how to force the type with a SQL command drop - so this isn't a problem.

    My question is "where can I configure the preference 'Drop Type Force'?"

    Thank you very much for the help with this.

    Niall.

    IN 4.1.1.19.59 it is on the page of compiler for PL/SQL tools-> preferences-> database

  • How to return data using the object type?

    Hello all - I have an obligation to return the values object type.

    In the same way as

    list - Plan1, Subplan1, Fund1, 2 Fund Fund 3

    list - Plan2, Subplan2, Fund2

    list - plane3, Subplan3, not funds


    To achieve this I wrote below proc but its giving as response below which is does not correspond with my requirement. Someone has an idea how to write code to get the list of funds against each plan in each line?



    Output:

    PDB01. () T_T_CONTRACT

    PDB01. T_O_CONTRACT ('p1', 's1', PDB01. T_O_FUND ('p1', 's1', 'f1')),

    PDB01. T_O_CONTRACT ('p1', 's1', PDB01. T_O_FUND ('p1', 's1', 'f2')),

    PDB01. T_O_CONTRACT ('p1', 's1', PDB01. T_O_FUND ('p1', 's1', 'f3')),

    PDB01. T_O_CONTRACT ('p2', 's2', PDB01. T_O_FUND ('p2', 's2', 'f2')),

    PDB01. T_O_CONTRACT ('p3', 's3', PDB01. T_O_FUND (NULL, NULL, NULL))

    )




    DROP TYPE T_T_fund;

    create or replace

    TYPE T_O_fund

    AS OBJECT)

    argument plan_id Varchar2 (128).

    subplan_id Varchar2 (128).

    fund_id Varchar2 (128)

    )

    No final;

    /

    create or replace

    type T_T_FUND

    as the table of T_O_FUND;

    /

    type of projection T_T_CONTRACT;

    create or replace

    TYPE T_O_contract

    AS OBJECT)

    argument plan_id Varchar2 (128).

    SUBPLAN_ID varchar2 (128).

    ov_fund T_o_fund

    )

    no final;

    /

    create or replace

    type T_t_contract as the T_O_contract table;

    /

    -------------------------

    / * Remove T_T_FUND;

    DROP TYPE T_O_fund;

    type of projection T_T_CONTRACT;

    DROP TYPE T_O_contract; * /

    ----------------

    create or replace

    procedure test_cursor (o_c1 OUT sys_refcursor) is

    V_T_T_FUND T_T_FUND;

    v_T_t_contract T_t_contract;

    Start

    WITH (CONTRACTS AS

    SELECT "p1" PLAN_ID, "s1" SUBPLAN_ID FROM DUAL UNION ALL

    SELECT "p2" PLAN_ID, 's2' SUBPLAN_ID FROM DUAL UNION ALL

    SELECT "p3" PLAN_ID, 's3' SUBPLAN_ID FROM DUAL

    ),

    Fund)

    Select "p1" PLAN_ID, SUBPLAN_ID 's1', 'f1' FUND_ID of all the DOUBLE union

    Select "p1" PLAN_ID, SUBPLAN_ID 's1', 'f2' FUND_ID of all the DOUBLE union

    Select plan_id "p1", "s1" subplan_id argument, "f3" fund_id Union double all the

    Select the argument plan_id 'p2', 's2' subplan_id, 'f2' double fund_id

    )

    Select T_O_contract (c.PLAN_ID, c.SUBPLAN_ID, T_o_FUND (f.PLAN_ID, f.SUBPLAN_ID, f.FUND_ID))

    TO COLLECT FEES IN BULK

    in v_T_t_contract

    c CONTRACTS, FUND F

    where C.PLAN_ID = F.PLAN_ID

    and c.SUBPLAN_ID = f.SUBPLAN_ID (+);

    Open the O_C1 for

    SELECT 't' TYP, v_T_t_contract contract_LST

    FROM DUAL;

    end;

    /

    impression o_test

    You can declare the attribute OV_FUND as T_T_FUND data type:

    create or replace type t_o_contract as object (
      plan_id     varchar2(128)
    , subplan_id  varchar2(128)
    , ov_fund     t_t_fund
    );
    /
    

    You will be able to do this:

    with contracts as (
      select 'p1' plan_id, 's1' subplan_id from dual union all
      select 'p2' plan_id, 's2' subplan_id from dual union all
      select 'p3' plan_id, 's3' subplan_id from dual
    ),
    funds as (
      select 'p1' plan_id , 's1' subplan_id, 'f1' fund_id from dual union all
      select 'p1' plan_id , 's1' subplan_id, 'f2' fund_id from dual union all
      select 'p1' plan_id , 's1' subplan_id, 'f3' fund_id from dual union all
      select 'p2' plan_id , 's2' subplan_id, 'f2' fund_id from dual
    )
    select t_o_contract(
             c.plan_id
           , c.subplan_id
           , cast(
               multiset(
                 select t_o_fund(f.plan_id, f.subplan_id, f.fund_id)
                 from funds f
                 where f.plan_id = c.plan_id
                 and f.subplan_id = c.subplan_id
               )
               as t_t_fund
             )
           )
    from contracts c ;
    
  • In the attached VI why looping force the type of data while the other does not?

    In the attached VI why looping force the type of data while the other does not?

    I'm guessing that you have created the Enum on the front panel.  If you right click and create an indicator, it corresponds to the type and be an enum.  LabVIEW represents enums as U16, but because the types are not the same (for example, your enum has 3 values, but a U16's 65 536 values), LabVIEW automatically converts value (or converts) the smallest representation (enum) in the largest value (U16).

  • Define a map or ORDER method for the object type

    Hi gurus

    I created an object and then its type and then I use this object and type based on line, see below:

    Create the object

    CREATE OR REPLACE

    TYPE test_object

    IS

    OBJECT

    (

    next_appearance_dt DATE, - next_appearance_dt

    youth_adult VARCHAR2 (5) - youth_adult

    ) ;


    /

    Create the object Type

    CREATE or REPLACE TYPE t_docket_object IS TABLE OF THE test_object;

    /

    Create function Pipeline

    FUNCTION to CREATE or REPLACE f_report (p_dt date, p_c_cd VARCHAR2)
    return t_test_object pipeline
    IS
    BEGIN
    FOR J IN)
    Select distinct test_object)
    next_appearance_dt,--862,
    'YOUTH '.
    ) AS test_object
    Jen.next_appearance base
    WHERE 1 = 1
    AND (base.next_appearance_dt = p_dt)
    AND (base.circuit_point_cd = p_c_cd)
    - and cse.information_id = 322
    -ORDER 15 - alias_name
    )

    loop
    PIPE ROW (J.test_object);
    END loop;
    END;

    /

    Run function

    SELECT * FROM TABLE (F_REPORT (TO_DATE('25-sep-2015','dd-mon-yyyy'),'1 '))

    Error

    ORA-22950: cannot ORDER objects without map or ORDER method

    ORA-06512: at "F_REPORT", line 5

    22950 00000 - "cannot ORDER objects without map or ORDER method.

    * Cause: an object type must have a defined for map or ORDER method

    all comparisons other than equality and inequality comparisons.

    * Action: Define a map or ORDER method for the object type

    I know the reason of this error and the reason is that I use the clause separate in my pipeline service, but do not know how to get rid of this error...

    Confuse you the type of table with the object type. He forge

    Select test_object (next_appearance_dt) test_object

    Not:

    Select t_test_object (next_appearance_dt) test_object

    Then:

    SQL > CREATE OR REPLACE
    FUNCTION f_report (DATE p_dt 2,
    3 P_C_CD VARCHAR2
    4                   )
    5 t_test_object of RETURN
    6 IN PIPELINE
    7 EAST
    BEGIN 8
    9 FOR (IN) v_rec
    10 WITH () DID
    11. SELECT TO_DATE('01-jan-2015','dd-mon-yyyy') NEXT_APPEARANCE_DT
    the double 12
    13                                  )
    14 select test_object (next_appearance_dt) test_object
    15                          from  t
    16                      ) LOOP
    PIPE 17 ROW (v_rec.test_object);
    18 END OF LOOP;
    END 19;
    20.

    The function is created.

    SY.

  • How to fill the value in the nested table by using the object type


    Hi gurus

    I created an object type and able to fill the values in it, now I want to create a nested table type of this object and fill it but looks like I'm doing something wrong, see my code below.

    Code example

    CREATE or REPLACE TYPE countries_o
    AS
    OBJECT
    (
    COUNTRY_ID TANK (2 BYTES),
    COUNTRY_NAME VARCHAR2 (40 BYTE),
    REGION_ID NUMBER);
    /

    create or replace type countries_t is table of the countries_o;

    /

    CREATE OR REPLACE

    ABC of the PROCEDURE

    IS

    v_print countries_t; -: = arr_countries_t('01','Aus',1);

    BEGIN

    v_print: = countries_t('01','A',11);

    DBMS_OUTPUT. Put_line (v_print. COUNTRY_ID | v_print. COUNTRY_NAME | v_print. REGION_ID);

    END;

    /

    Error

    • Error (6.3): PL/SQL: statement ignored
    • Error (6,12): PLS-00306: wrong number or types of arguments in the call to 'COUNTRIES_T '.
    • Error (7.3): PL/SQL: statement ignored
    • Error (7.32): PLS-00302: component 'COUNTRY_ID' must be declared

    Thanks in advance

    Concerning

    Muzz

    Hi user,

    Here is another method that you can try-

    CREATE OR REPLACE

    ABC of the PROCEDURE

    IS

    v_print countries_t: = countries_t (countries_o('01','A',11));

    BEGIN

    DBMS_OUTPUT. Put_line (v_print (1).) COUNTRY_ID | v_print (1). COUNTRY_NAME | v_print (1). REGION_ID); -you're accessinf the first element of the nested table, which in turn points to the object.

    END;

    In the sections of the declaration you have assigned values to the nested table.

    Kind regards
    Maxou

  • The procedure with parameter output from test object type

    I have the sub object created with spec and body type.

    I need to test the procedure seen ino parameter object type.

    could you please help me test the procedure!

    create or replace type typ_obj_test as object
    (
       a_date   date,
       a_type   varchar2(10),
       a_status varchar2(2),
       descr    varchar2(10),
       a_id     number(10),
       constructor function typ_obj_test(a_date   date
                                        ,a_type   varchar2 default null
                                        ,a_status varchar2 default null
                                        ,descr    varchar2 default null
                                        ,a_id     number default null) return self as result
    );
    /
    create or replace type body typ_obj_test is
       constructor function typ_obj_test(a_date   date
                                        ,a_type   varchar2 default null
                                        ,a_status varchar2 default null
                                        ,descr    varchar2 default null
                                        ,a_id     number default null) return self as result is
          v_test varchar2(1);
          v_id   number(10);
       begin
          self.a_date   := a_date;
          self.a_type   := a_type;
          self.a_status := a_status;
          self.descr    := descr;
          self.a_id     := a_id;
          return;
       end;
    end;
    /
    create or replace procedure p_obj_test(p_obj_param in out typ_obj_test) is
    begin
       dbms_output.put_line('Checking the object type' || p_obj_param.a_date || '@' || p_obj_param.a_type || '@' || p_obj_param.a_status || '@' ||
                            p_obj_param.descr || '@' || p_obj_param.a_id);
    end;
    /
    

    You seem to be missing a table that could hold the object. See the next topic, especially the line # 43:

    Connected to:
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    
    SQL> create or replace type typ_obj_test as object
      2  (
      3    a_date  date,
      4    a_type  varchar2(10),
      5    a_status varchar2(2),
      6    descr    varchar2(10),
      7    a_id    number(10),
      8    constructor function typ_obj_test(a_date  date
      9                                      ,a_type  varchar2 default null
    10                                      ,a_status varchar2 default null
    11                                      ,descr    varchar2 default null
    12                                      ,a_id    number default null) return self as result
    13  );
    14  /
    
    Type created.
    
    SQL> create or replace type body typ_obj_test is
      2    constructor function typ_obj_test(a_date  date
      3                                      ,a_type  varchar2 default null
      4                                      ,a_status varchar2 default null
      5                                      ,descr    varchar2 default null
      6                                      ,a_id    number default null) return self as result is
      7        v_test varchar2(1);
      8        v_id  number(10);
      9    begin
    10        self.a_date  := a_date;
    11        self.a_type  := a_type;
    12        self.a_status := a_status;
    13        self.descr    := descr;
    14        self.a_id    := a_id;
    15        return;
    16    end;
    17  end;
    18  /
    
    Type body created.
    
    -- Create a Nested table type array of above object type
    SQL> create or replace type nt_typ_obj_test as table of typ_obj_test;
      2  /
    
    Type created.
    
    -- Keep in out parameter's type as the nested table type
    -- modified the proc to do loop so that multiple records can be passed via object type
    SQL> create or replace procedure p_obj_test(p_obj_param in out nt_typ_obj_test) is
      2  begin
      3  for i in p_obj_param.first..p_obj_param.last
      4  loop
      5    dbms_output.put_line('Checking the object type' || p_obj_param(i).a_date || '@' || p_obj_param(i).a_type || '@' || p_obj_param(i).a_status || '@' ||
      6                          p_obj_param(i).descr || '@' || p_obj_param(i).a_id);
      7  end loop;
      8  end;
      9  /
    
    Procedure created.
    
    --Call the procedure
    SQL> set serveroutput on
    SQL> declare
      2  i_nt_typ nt_typ_obj_test ;
      3  begin
      4  i_nt_typ:=nt_typ_obj_test(typ_obj_test(sysdate,'A','Y','Descr',23),typ_obj_test(sysdate,'X','Z','ewe',55));
      5  p_obj_test(i_nt_typ);
      6  end;
      7  /
    Checking the object type26-MAR-15@A@Y@Descr@23
    Checking the object type26-MAR-15@X@Z@ewe@55
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • dbAdapter fails during the call to procedure package oracle object type in the parameter out

    JDeveloper 1.1.1.6

    Oracle 11g

    Existing package procedure is defined with the table of objects in input parameters and.

    Package myPackage

    procedure processRecon (numero_projet VARCHAR2,

    INST_ID select NUMBER,

    recon_type VARCHAR2,

    gis_design_stock GMPVT. GMPVT_GIS_DESIGN_STOCK_T,

    stock_uop GMPVT. GMPVT_STOCK_CODES_T,

    x_status OUT VARCHAR2,

    x_escalation OUT VARCHAR2,

    x_recon_error ON GMPVT. GMPVT_GIS_RECON_ERR_T) IS

    GMPVT. GMPVT_GIS_RECON_ERR_T is an array of GMPVT objects. GMPVT_GIS_RECON_ERR, who has 12 fields including the new I added it.

    I have added a new field to the GMPVT object. GMPVT_GIS_DESIGN_STOCK, where GMPVT. GMPVT_GIS_DESIGN_STOCK_T is a table of GMPVT. GMPVT_GIS_DESIGN_STOCK, no problems encountered during the test.

    Next, I added a new field for the object of type GMPVT. GMPVT_GIS_RECON_ERR, the following error below occurs when the DBAdapter is called

    < Summary > Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run operation 'processStockRecon' failed due to the reference: Interaction processing error." Error in the processing of applications from running. GMP_SOA_RECON_PKG. Interaction of the PROCESSRECON API. An error occurred during the processing of the interaction to invoke APPS. GMP_SOA_RECON_PKG. PROCESSRECON API. Cause: java.lang.ArrayIndexOutOfBoundsException: 12 check to make sure that the XML file containing the data of the parameter matches the parameter definition in the XSD. This exception is considered non reproducible, probably due to an error of modeling. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution. < / Summary >

    I confirmed that the XSD for the stored procedure has in fact change, which has been generated by JDeveloper as I refreshed the database adapter.

    The statement "Cause: java.lang.ArrayIndexOutOfBoundsException: 12" I can't that assume somehow SOA has 12 parameters but the 12 setting was not saved.

    Any thoughts on what I might be missing. I can provide more information if necessary.

    Hello

    This problem has been resolved. Not deployed SOA composite and then deployed to the server of the SOA. For some reason, SOA has been either you see does not changes in the file XSD (cached?) or the XSD was not get updated.

    Thank you

Maybe you are looking for

  • Satellite A100 - no sound with Windows XP Pro SP3

    Hello I'm the reconstruction of a laptop Toshiba A100-PSAA9A-10U038 with a new installation of Windows XP Pro SP3. At this point, I have not all sounds (Yes, the volume is set to the top). As this is my first post I covered I hope that most of the ba

  • P3K49EA: How do you know which wireless adapter you have?

    Hey,. I was looking at the Wi - Fi drivers for this specific unit but for many other portable, I can find the drivers for the network for a series of adapters Wi - Fi, like Intel, Realtek, and Qualcomm. Many times, a way to solve the problem of falli

  • I changed the power supply on HP Media Center m470n, because he wouldn't come, it will not

    the computer would not come, he ran but quit, I changed the power supply, but it will always fuel not at all, no fans no lights.

  • 4402 delivered without SFP 1000BASE-T controller

    I just received my controller 4402 and a ton of AP for my wireless application. Unfortunately, I have not received the 1000BASE-T SFP to hook the thing up to my network. Anyone has any suggestions for getting this going while I wait for my upcoming p

  • Bootable DVD of Windows 7 Home Premium

    Dear Sir I bought last laptop and there is a half of the year. I used Windows 7 Home premium. Now, because of a problem I format my PC. How can I download Windows 7 Home premium bootable version. I don't have Windows DVD with me. I have only my windo