Error PLS get a REF to an object and assigning to a "reference table".

Hi all

I have the following types. As you can see, the other refers to the other (circular reference). The only way I found to compile these two types is by using the 'TABLE OF THE REF IS". The case is more complex, but I show you here a test case that focus on the problem.

----------------
create or replace the force
type item_type as object)
Identification number,
VARCHAR2 (200) text.
item_list elements,
item_type function constructor return self as result);

create or replace the force
type item_list is item_type ref table;

change the compilation of type item_type.

change the compilation of type item_list;

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

She ended up compiling well... but when I need to use, and then pops up the error:

------------
declare
I have item_type;
He item_list;
Start
i:=item_type();
i.ID: = 1;
i.Text: = 'hello';
IL.extend;
He (il.last): = i; -PLS-00382 expression is of the wrong type
il(il.) Last): = REF (i); PLS-00306. wrong number of arguments in the call to "REF".
end;
-----------

Note: I'm on an 11g database

Thanks in advance

resteller wrote:

I agree, it sounds crazy, but I need the ability to store an ITEM_LIST in an ITEM

As I said, you need a table of persisnet:

SQL> drop table item_tbl
  2  /

Table dropped.

SQL> drop type item_list force
  2  /

Type dropped.

SQL> drop type item_type force
  2  /

Type dropped.

SQL> create or replace force
  2    type item_type
  3      as object(
  4                id number,
  5                text varchar2(200),
  6                items item_list
  7               )
  8  /

Warning: Type created with compilation errors.

SQL> create or replace force
  2    type item_list
  3      is table of ref item_type
  4  /

Type created.

SQL> alter type item_type compile
  2  /

Type altered.

SQL> alter type item_list compile
  2  /

Type altered.

SQL> create table item_tbl of item_type
  2    nested table items store as items_ntbl
  3  /

Table created.

SQL> insert
  2    into item_tbl
  3    values(
  4           1,
  5           'hello',
  6           null
  7          )
  8  /

1 row created.

SQL> insert
  2    into item_tbl
  3    values(
  4           2,
  5           'bye',
  6           null
  7          )
  8  /

1 row created.

SQL> insert
  2    into item_tbl
  3    values(
  4           3,
  5           'hello and bye',
  6           (
  7            select  cast(collect(ref(t)) as item_list)
  8              from  item_tbl t
  9           )
 10          )
 11  /

1 row created.

SQL> select  *
  2    from  item_tbl
  3  /

        ID TEXT                 ITEMS
---------- -------------------- ----------------------------------------
         1 hello
         2 bye
         3 hello and bye        ITEM_LIST(0000220208E499CBCA1C5C4AC3BF8C
                                5DB2A793788A52BA08E86F44417E9E9E88DAD37E
                                5A01, 0000220208963685994E5040CCB2E0DEB5
                                F0D48DE152BA08E86F44417E9E9E88DAD37E5A01
                                )

SQL> select  id,
  2          text,
  3          deref(column_value) items
  4    from  item_tbl,
  5          table(items)(+)
  6  /

        ID TEXT                 ITEMS(ID, TEXT, ITEMS)
---------- -------------------- ----------------------------------------
         3 hello and bye        ITEM_TYPE(1, 'hello', NULL)
         3 hello and bye        ITEM_TYPE(2, 'bye', NULL)
         2 bye
         1 hello

SQL>  

SY.

Tags: Database

Similar Questions

  • To refer to an object on board in an onclick = "" in a file loaded into an iFrame in the animation .html "

    HI, I'm trying to understand the edge predetermined by stumble my way through the attempts of coding reference. I hit a wall...

    How can I refer to an object and a global function in my animation Board an onclick = "" located in a .html file loaded into an iFrame created in animation master/parent edge. " Here's what I have...

    My main index.html is an animation on board. A single object < div > is a box created within the Edge. I've added an iFrame with the benefit code:

    SYM. $("MenuPanelScreen") .html ("< iframe src ="list_images_cemetery.html "width ="267"height =" 670 "sandbox =" allow-same-origin allow scripts allow-top-navigation"> < / iframe > ');

    This .html file that loads into the iframe in the animation contains thumbnails in < a > tags and contain onclick = "" instructions that must call a function in the file Edge. "

    Finally, I want to as statements read something like... ( onclick = "changePic ('Dragon.jpg ', 'le Dragon)", "Holy and worm") "

    However, I had no idea how reference to the changePic() function in the entertainment on board. So, just to understand how to make reference to the animation of parent of a html element in an iFrame, I change the onclick = "" statements to... "

    < a onclick = "alert ("trying to hide the nameplate"); SYM.$('NamePlate_sym').hide (); " > < img src =" gallery/TheyGaveUpTheirDead.jpg' width = '80' alt = "Angel and worm" / > < / a > "

    First of all, I wanted to see if I could hide a symbol of edge or a div element / child html code. I tried the following...

    OnClick = "alert ('try to hide the plate'); SYM. $('NamePlate_sym',_window.parent.document).hide (); »

    I tried a few other variations that I won't bore you with. Can someone help me with the proper reference to achieve an element of edge?

    Moreover, I ultimately want the onclick = "" declaration to reference a global function on attached to the step edge in the event compositionReady of the scene. " The function is...

    window.changePic = function (myFileCurr, myLabelCurr, myDescriptionCurr) {}

    Alert ("in changePick");

    document.getElementById("myImage").src = "Gallery /" + myFileCurr;

    document.getElementById("myImageLabel").innerHTML = myLabelCurr;

    document.getElementById("myImageDescr").innerHTML = myDescriptionCurr;

    }

    I hope someone can point me in the right direction. Please forgive my ignorance. I'm just to come back in coding and learn the intricacies of Jscript and jQuery. Thank you!

    Well, after nearly sawing my head with a Pocket comb, I tried this...

    COMP. $("Rectangle").html ("test");

    and

    window.parent. changePic(); to call the global function

    At the same time, it worked.

    Thanks, Elaine. Your example helped!

  • Get the error PLS-00103 while specifying the Type of package

    Hey bud,
    All by specifying a Type which is the table of a different type, in the same package, I get an error in my PL Sql Developer, saying:


    Errors of compilation for the OASIS_TST PACKAGE. PK_OA
    Error: PLS-00103: encountered the symbol "TABLE" when awaits one of the following values:
    opaque object
    Line: 61
    Text: as a table of tp_report;

    Here are the specs of my package where the respective Types are declared:

    ************************************************************************
    create or replace package pk_oa
    is
    function (report)
    as in pd_date)
    return tp_tab in pipeline;

    type tp_report
    as an object
    *(*
    ID INT,
    last_nm VARCHAR2 (50).
    first_nm VARCHAR2 (50).
    full_nm VARCHAR2 (50));

    type tp_tab
    as the table of tp_report;

    end;
    **************************************************************
    Could you find where I'm wrong with this piece.
    Thank you

    HP

    You must create types of objects outside packages:

    SQL> create or replace type tp_report
      2  as object(
      3     id INT,
      4     last_nm VARCHAR2(50),
      5     first_nm VARCHAR2(50),
      6     full_nm VARCHAR2(50));
      7  /
    
    Typ wurde erstellt.
    
    SQL> create or replace package pk_oa
      2  is
      3
      4  type tp_tab
      5  is table of tp_report;
      6
      7  function report (
      8  pd_date in date)
      9  return tp_tab pipelined;
     10
     11  end;
     12  /
    
    Package wurde erstellt.
    

    URS

  • for windows update make me number error msg: 0 x 80240036 and solve this problem poblem with fixit get msg w xp sp3 rendered and nework Framework 2 or lator should be installed pls can help you

    for windows update make me number error msg: 0 x 80240036 and solve this problem poblem with fixit get msg w xp sp3 rendered and nework Framework 2 or lator should be installed pls can help you

    See your other thread the same. http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/to-make-Windows-Update-am-getting-MSG-error-number/3f579859-ecb0-408D-9db3-804044a21fb7

  • Error 21. Undefined, is not an object. Can't get management to work

    When I try to use picture frames, I get this message... Error 21. Undefined is not an object

    Harold, it seems that the bug has not been fixed, but I worked on a temporary fix for this issue. See my comment to you in the other post about it:

    error message 21 under filter/rendering/image

  • I have monthly CC and LR and I try to download the new LR6 on my Mac. The error I get is "you run an operating system supporting Lightroom is more." Refer to the system requirements for a full list of supported platforms

    I have monthly CC and LR and I try to download the new LR6 on my Mac. The error I get is "you run an operating system supporting Lightroom is more." See the system requirements for a complete list of the supported platforms. "I checked that my requirements and LR should be supported. Don't know what else to do I can't download.

    Hi Jenn,

    Please check the help below document for the technical specifications for the purpose of Lightroom:

    The system configuration required

    Kind regards

    Sheena

  • Cannot run SP with error PLS-00201

    I have a stored procedure called CAL_TAX that create by schema EMP_DBA, I want to give now run right on this SP for the USER1 user. I have run below stated:

    CREATE THE USER1 USER IDENTIFIED BY USAGER1234;

    GRANT CONNECT USER1;

    RESOURCE GRANT TO USER1;

    GRANT CREATE SESSION USER1;

    GRANT EXECUTE ON EMP_DBA. CAL_TAX TO USER1;

    DECLARE

    CURSOR C1 IS SELECT TABLE_NAME FROM USER_TABLES;

    CMD VARCHAR2 (200);

    BEGIN

    FOR C IN C1 LOOP

    CMD: = "GRANT SELECT ON" | C.TABLE_NAME | "TO USER1;

    RUN THE IMMEDIATE CMD;

    END LOOP;

    END;

    When I connect as User1 and run SP CAL_TAX, I received the error messages below. Can someone help me on this? I have no problem to run SP so log in as EMP_DBA

    BEGIN CAL_TAX; END;

    *

    ERROR ON LINE 1:

    ORA-06550: LINE 1, COLUMN 7:

    PLS-00201: IDENTIFIER 'CAL_TAX' MUST BE DECLARED.

    ORA - 06550:LINE 1, COLUMN 7:

    PL/SQL: STATEMENT IGNORED

    This is the part of MS CAL_TAX, could he what AUTHID CURRENT_USER caused this problem?

    CREATE OR REPLACE PROCEDURE CAL_TAX

    AUTHID CURRENT_USER

    IS

    .

    .

    .

    When I connect as User1 and run SP CAL_TAX, I received the error messages below. Can someone help me on this? I have no problem to run SP so log in as EMP_DBA

    BEGIN CAL_TAX; END;

    You are logged in as User1 tries to run a procedure named CAL_TAX.

    But User1 does not provide any object named CAL_TAX so that you get the exception.

    EMP_DBA the user is the owner of object CAL_TAX USER1 must provide the schema prefix to refer to this object

    BEGIN

    EMP_DBA. CAL_TAX;

    END;

    /

    If you create a public synonym USER1 then allows the synonym to reference the object.

  • Error [PLS-00103: encountered the symbol "CREATE"] using PACKAGE

    Hi guys!
    When I compile this package, I get this error:
    PLS-00103: encountered the symbol "CREATE".

    How can I solve this problem?
    The compiled code is below:


    CREATE OR REPLACE
    PACKAGE CAMPO_PACK AS

    TYPE T_CURSOR IS REF CURSOR;

    PROCEDURE DeleteCode (OSDP NUMBER);

    END CAMPO_PACK;
    -body-
    CREATE or REPLACE PACKAGE BODY CAMPO_PACK as

    PROCEDURE DeleteCode(pCod NUMBER) AS
    BEGIN
    DELETE FROM campo
    WHERE cod = OSDP;
    END DeleteCode;

    END CAMPO_PACK;


    Thanks for the help,
    Anderson



    Published by: user8723300 on 08/13/2009 17:03

    Published by: user8723300 on 08/13/2009 17:04

    I use Oracle SQL Developer

    I know very well of this tool.

    The packet header and body are two separate objects and must be compiled separately. I suspect that the package body is somehow have included in package header and Developer SQL tries to compile all of these at once. You must understand how to compile the header first, then the body. Your code compiles if I use sqlplus. I had to first create the table, so I have included a slash (/) after the packet header and the other after that body. The slash tells sql more to run the buffer (in this case, to compile the object).

    SQL> create table campo (cod number);
    
    Table created.
    
    SQL> CREATE OR REPLACE
      2  PACKAGE CAMPO_PACK AS
      3
      4  TYPE T_CURSOR IS REF CURSOR;
      5
      6  PROCEDURE DeleteCode(pCod NUMBER);
      7
      8  END CAMPO_PACK;
      9  /
    
    Package created.
    
    SQL> CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS
      2
      3  PROCEDURE DeleteCode(pCod NUMBER) AS
      4  BEGIN
      5  DELETE FROM campo
      6  WHERE cod = pcod;
      7  END DeleteCode;
      8
      9  END CAMPO_PACK;
     10  /
    
    Package body created.
    

    If I remove the slash after the package header, sql more trying to compile all this at once, and I get the same error you get:

    SQL> CREATE OR REPLACE
      2  PACKAGE CAMPO_PACK AS
      3
      4  TYPE T_CURSOR IS REF CURSOR;
      5
      6  PROCEDURE DeleteCode(pCod NUMBER);
      7
      8  END CAMPO_PACK;
      9
     10  CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS
     11
     12  PROCEDURE DeleteCode(pCod NUMBER) AS
     13  BEGIN
     14  DELETE FROM campo
     15  WHERE cod = pcod;
     16  END DeleteCode;
     17
     18  END CAMPO_PACK;
     19  /
    
    Warning: Package created with compilation errors.
    
    SQL> sho err
    Errors for PACKAGE CAMPO_PACK:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    9/1      PLS-00103: Encountered the symbol "CREATE"
    
  • : Error 35 call external function of the object

    I get "error 35: error when calling external object function driverinit on line 302 of the event open"and impossible to open a program. " A few solutions that I found for this search refer to an update to the SQL Server.  The only thing I tried to do lately is to update a printer driver, all was working fine before this.  I got an SQL error on a website trying to access the FAQ section.  I found an article to download an update to the original version of SQL Server 2005 SP2 but not sure if that's what I really do.  Can anyone help?

    CRTet,

    Error 35 is not a common Windows error. It is very likely that the registry scanner above will only cause more problems.
    The error you get is from your application. Given that this is not generated by Windows, I highly recommend directly contacting the support of bookkeeper.

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Convert number to Varchar for printing the Type of table in a loop error: PLS-00306:

    Hello

    I am trying to print a number of the Table that I get from a ref cursor But cannot convert the number to Varchar to print. What I'm doing wrong here

    Thank you

    Ken

    OUT_REFCURSOR FETCH BULK COLLECT INTO theTBL_RCRD_ID ;

    So THAT (theTBL_RCRD_ID IS NOT NULL)

    LOOP

    strRCRDID: = TO_CHAR (onTBL_RCRD_ID (indx), "99999");    -This line throws error message

    dbms_output.put_line (strRCRDID);

    INDX: = indx + 1;

    END LOOP;

    • Error: PLS-00306: wrong number or types of arguments in the call to "TO_CHAR.

    Try this...

    strRCRDID: = TO_CHAR (outTBL_RCRD_ID (indx). RCRD_ID, "99999");

  • ActiveX error message: "run-time error '429': ActiveX component can't create object" when running FSX 2004

    Hello, I hope someone can help. I use Windows 7 64-bit. on a high spec pc. When you run FS2004 (Flight Sim program) I get the error message "" run-time error '429': ActiveX component can't create object ". " That seems to relate to the flight or the CMF management computer program. This error seems to inhibit access to the CMF. I tried to load the latest ATI driver, but that makes things worse. Has anyone encountered this problem before? Hope it

    Thanks in advance

    Ianzee

    Hello Diana

    Unfortunately, none of the above worked. However, I downloaded a file recommended by Flight1 (the creators of one of the 2 games I had problems with) surprisingly, thisinstantly solved the problem it is called http://www.flight1.com/dx7vb.exe.

    Perhaps in the future someone else have this same problem with Vista 64-bit where the game, they could also try this "correction". Of course, it worked for me!

    Thank you very much for your help & trouble in front of me, it is appreciated.

    Cordially Ianzee

  • Can u explain someone on table mutation error pls...

    Can u explain someone on table mutation error pls...

    Hello

    Explain what, exactly?

    As always, if you get an error, check the manual for Oracle error messages: http://docs.oracle.com/database/121/ERRMG/toc.htm

    Use a search engine to find related sites, such as Tom ask: https://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936

  • Error "operations is not supported on the object." when importing .ovf in the vCloud Director 5.5 machine

    I am trying to import a virtual machine (composed of three .mf, hard, .ovf files), when I try to download the VM, it gets downloaded 100% in the catalogs, but gives an error "Cannot create" as condition to the end and when I check the error in detail, it gives me that "operations is not supported on the object.". Checked the Virtaul Center, I get the same error that 'operations is not supported on the object."in the taskbar. Google it a lot but could not find a relevant solution.

    Just for the record I have DRS activated in full auto mode and only in the aggressive State.

    Can someone help me what I can do to remedy the problem.

    There are two parts to the upload.

    5.5 download dialog box represents the progression to the record of transfer vCloud Director of the FVO.  The download method is via the integration of Client plug-in (which uses the OVF tool).

    If the pop-up window can 100% success, I think that the element of the catalogue shows 50% and tries to download files to vCenter/ESXi as an import job.  If the import job fails, then you need to investigate the newspapers of vCenter/ESXi side for more details.

  • Please help solve the problem error: PLS-00306: wrong number or types of a

    Hello

    Please see my statement of types and the procedure. Object and the nested table that is declared at the schema level

    I'm using the oracle version 11.2
    CREATE OR REPLACE TYPE T_COPY_EVNT_DTL IS OBJECT
    
    ( 
    
    eventId varchar2(100),
    
    eventDescription varchar2(100),
    
    promoMonthDescription varchar2(100),
    
    promoStartDate varchar2(100),
    
    promoEndDate varchar2(100),
    
    PROMOCOSTSTARTDATE varchar2(100)
    
    );
    
    
    CREATE OR REPLACE TYPE T_EVENT_TABLE IS TABLE OF T_COPY_EVNT_DTL;
    
    create or replace PROCEDURE Pr_Event_Details_new(ip_xml          CLOB,
                                                                                                                                                     op_sections_xml OUT XMLTYPE) AS
         
         event_list     t_copy_evnt_dtl;
         event_data_sec t_event_table := t_event_table();
         
         
         CURSOR get_event_cur IS
              SELECT cast(collect(t_copy_evnt_dtl(evnt.event,                                                                                                                    evnt.event_desc,
                        mth.promo_month_desc,
                        TO_CHAR(evnt.start_date,
                        'DD/MM/YYYY'),
                        TO_CHAR(evnt.end_date,
                        'DD/MM/YYYY'),
                        TO_CHAR((evnt.start_date - 21),
                        'DD/MM/YYYY'))) as
                        t_event_table)
                   FROM RETEK_PROMO_EVENT_MST evnt
               INNER JOIN  .....
               WHERE ... 
               ORDER BY evnt.event_desc,
                                       mth.promo_month_desc,
                                       dtl.promo_start_date,
                                       dtl.promo_end_date,
                                       dtl.promo_cost_start_date;
    
         type get_event_tab is table of get_event_cur%rowtype index by Binary_Integer;
         l_get_event_tab get_event_tab;
    BEGIN
    
         ....
         
         
              OPEN get_event_cur;
              fetch get_event_cur
                   into event_data_sec;
         
              event_data_sec := set(event_data_sec);
              ...
              
              
              
    EXCEPTION
              --log_errors...                                                                 
              Raise;
    END Pr_Event_Details_new;
    Error: PLS-00306: wrong number or types of arguments in the call to 'SET '.
    Online: 117
    Text: event_data_sec: = set (event_data_sec);

    Error: PL/SQL: statement ignored
    Online: 117
    Text: event_data_sec: = set (event_data_sec);

    You will raise a wrong number or types of argument error, or an exception of PLS-00306, if you use the fixed operator with the collection of user-defined object types.

    The collection must contain SQL scalar data types - single values without internal components...

    Numeric values, on which you can perform arithmetic operations.
    Alphanumeric values that represent individual or strings of characters, characters that you can manipulate.
    Logical values, on which you can perform logical operations.
    Dates and times, you can manipulate.
    Time intervals, you can handle.

    Published by: stefan nebesnak on January 24, 2013 13:22

  • I am receving oracle error PLS-00201

    Hi all
    When I call a procedure stored beside another stored procedure I get the below error

    PLS-00201: identifier 'P_IN_USER_NAME' must be declared.

    CREATE OR REPLACE PACKAGE BODY VABOSS. VABOSS_ODM_CHNG_PKG
    AS
    PROCEDURE VABOSS_DEL_UPL_CHNG (P_IN_UPD_NO IN VARCHAR2, P_IN_RELEASE IN P_IN_RECREATE IN P_IN_USER IN VARCHAR2, BOOLEAN, BOOLEAN)
    IS
    /*******************************************************************************************************************
    Module name: VABOSS data, delete and insert
    Package Name: VABOSS_ODM_CHNG_PKG
    Program name: VABOSS_DEL_UPL_CHNG
    Program description: this processing of drop table VABOSS_PLAN_ODM_BOM and insertion of data in the VABOSS_PLAN_ODM_BOM.
    Created by: Maria - touati
    Creation date: 14 October 2011
    PROJECT_NAME: VABOSS
    First version: 1.0
    Input parameters: all THE
    Output parameters: no
    Return the parameters: no
    ********************************************************************************************************************/
    CURSOR C_DEL
    IS
    SELECT GENERATION_ID, ODM_BOM_ID
    OF VABOSS_PLAN_ODM_BOM
    WHERE GENERATION_ID IN (SELECT GENERATION_ID
    OF VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE UPD_NO = P_IN_UPD_NO);

    CURSOR C_INST
    IS
    SELECT *.
    OF VABOSS_INTR_ODM_BOM
    WHERE ODM_BOM_ID IN SELECT (SEPARATE ODM_BOM_ID
    Of
    ADELINE VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE PUAH. UPD_NO = P_IN_UPD_NO;)

    CURSOR C_UPD
    IS
    SELECT *.
    OF VABOSS_PLAN_ODM_BOM_FILE
    WHERE ODM_BOM_ID IN SELECT (SEPARATE ODM_BOM_ID
    Of
    ADELINE VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE PUAH. UPD_NO = P_IN_UPD_NO;)


    V_UPD_NO VARCHAR2 (15);
    V_ERROR_MSG VARCHAR2 (20);
    NUMBER OF V_INS_CNT;

    BEGIN

    FOR T_UPD_NO IN C_DEL
    LOOP

    BEGIN

    REMOVE FROM VABOSS_PLAN_ODM_BOM
    WHERE GENERATION_ID = T_UPD_NO. GENERATION_ID;

    UPDATE VABOSS_PLAN_ODM_BOM_FILE
    SET CURRENT_STATUS = '99'
    WHERE ODM_BOM_ID = T_UPD_NO. ODM_BOM_ID;
    COMMIT;

    EXCEPTION
    WHILE OTHERS
    THEN
    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    FOR T_INST_NO IN C_INST
    LOOP
    BEGIN

    INSERT INTO VABOSS_PLAN_ODM_BOM (GRT_SEQ_NO,
    ODM_BOM_ID,
    SEQ_NO,
    STATUS,
    AGENDA,
    BLOCK_ID,
    BLOCK_NAME,
    SPEC_CATEGORY_ID,
    SPEC_CATEGORY_NAME,
    SPEC_ID,
    SPEC_NAME,
    LEVEL_01,
    LEVEL_02,
    LEVEL_03,
    LEVEL_04,
    LEVEL_05,
    LEVEL_06,
    LEVEL_07,
    LEVEL_08,
    LEVEL_09,
    MODULE_ID,
    MODULE_NAME,
    SONY_ASSY_NUMBER,
    LOCAL_PARTS_NUMBER,
    LOCAL_PARTS_NAME,
    SONY_MP_PARTS_NUMBER,
    SONY_SERVICE_PARTS_NUMBER,
    SONY_SERVICE_PARTS_NAME,
    PARTS_QUANTITY,
    SERVICE,
    SUBSTITUTE,
    SERVICE_MANUAL_REF,
    CRP,
    SAFETY_PART,
    ELECTRONIC_KEY_PART,
    PROVISION,
    ACL_TYPE,
    $VENDOR_NAME,
    VENDOR_DESCRIPTION,
    GENERATION_ID,
    PROTOTYPE_MODEL_NUMBER,
    REMARKS1,
    REMARKS2,
    SERVICE_MANUAL_REMARK1,
    SERVICE_MANUAL_REMARK2,
    EFFECTIVE_START_DATE,
    EFFECTIVE_END_DATE,
    TECHNICAL_NEWS,
    CREATE_USER,
    CREATE_DATE,
    MODULE_A_NO,
    COMBINATION_PARTS,
    EXPLOSION_CODE_FOR_SERVICE,
    SERVICE_MANUAL_BLOCK,
    SUBSTITUTE_PART_INFO,
    USER_ADD_FLAG
    )
    VALUES (VB_PLAN_ODM_BOM_SEQ. NEXTVAL,
    T_INST_NO. ODM_BOM_ID,
    T_INST_NO. SEQ_NO,
    '00',
    T_INST_NO. AGENDA,
    T_INST_NO. BLOCK_ID,
    T_INST_NO. BLOCK_NAME,
    T_INST_NO. SPEC_CATEGORY_ID,
    T_INST_NO. SPEC_CATEGORY_NAME,
    T_INST_NO. SPEC_ID,
    T_INST_NO. SPEC_NAME,
    T_INST_NO. LEVEL_01,
    T_INST_NO. LEVEL_02,
    T_INST_NO. LEVEL_03,
    T_INST_NO. LEVEL_04,
    T_INST_NO. LEVEL_05,
    T_INST_NO. LEVEL_06,
    T_INST_NO. LEVEL_07,
    T_INST_NO. LEVEL_08,
    T_INST_NO. LEVEL_09,
    T_INST_NO. MODULE_ID,
    T_INST_NO. MODULE_NAME,
    T_INST_NO. SONY_ASSY_NUMBER,
    T_INST_NO. LOCAL_PARTS_NUMBER,
    T_INST_NO. LOCAL_PARTS_NAME,
    T_INST_NO. SONY_MP_PARTS_NUMBER,
    T_INST_NO. SONY_SERVICE_PARTS_NUMBER,
    T_INST_NO. SONY_SERVICE_PARTS_NAME,
    T_INST_NO. PARTS_QUANTITY,
    T_INST_NO. SERVICE,
    T_INST_NO. SUBSTITUTE,
    T_INST_NO. SERVICE_MANUAL_REF,
    T_INST_NO. CRP,
    T_INST_NO. SAFETY_PART,
    T_INST_NO. ELECTRONIC_KEY_PART,
    T_INST_NO. PROVISION,
    T_INST_NO. ACL_TYPE,
    T_INST_NO. $VENDOR_NAME,
    T_INST_NO. VENDOR_DESCRIPTION,
    T_INST_NO. GENERATION_ID,
    T_INST_NO. PROTOTYPE_MODEL_NUMBER,
    T_INST_NO. REMARKS1,
    T_INST_NO. REMARKS2,
    T_INST_NO. SERVICE_MANUAL_REMARK1,
    T_INST_NO. SERVICE_MANUAL_REMARK2,
    T_INST_NO. EFFECTIVE_START_DATE,
    T_INST_NO. EFFECTIVE_END_DATE,
    NULL,
    p_in_user,
    VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST,
    T_INST_NO. MODULE_A_NO,
    T_INST_NO.COMBINATION_PARTS,
    T_INST_NO. EXPLOSION_CODE_FOR_SERVICE,
    T_INST_NO. SERVICE_MANUAL_BLOCK,
    T_INST_NO. SUBSTITUTE_PART_INFO,
    T_INST_NO. USER_ADD_FLAG
    );

    v_ins_cnt: = v_ins_cnt + sql % ROWCOUNT;

    IF MOD (v_ins_cnt, 500) = 0
    THEN
    COMMIT;
    END IF;


    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    FOR T_UPD_FILE IN C_UPD
    LOOP

    BEGIN

    UPDATE VABOSS_PLAN_ODM_BOM_FILE
    SET CURRENT_STATUS = '90',
    UPDATE_USER = P_IN_USER,
    UPDATE_DATE = VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST
    WHERE ODM_BOM_ID = T_UPD_FILE. ODM_BOM_ID;
    EXCEPTION
    WHILE OTHERS
    THEN
    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    -VALIDATION;

    -IMMEDIATE EXECUTION "VABOSS_INTR_ODM_BOM";

    FOR T_DEL_INTR IN C_DEL

    LOOP

    BEGIN

    DELETE
    OF VABOSS_INTR_ODM_BOM
    WHERE ODM_BOM_ID = T_DEL_INTR. ODM_BOM_ID;

    UPDATE VABOSS_PLAN_ODM_BOM
    SET STATUS = '99',
    UPDATE_USER = P_IN_USER,
    UPDATE_DATE = VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST
    WHERE ODM_BOM_ID = T_DEL_INTR. ODM_BOM_ID;
    COMMIT;

    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);

    END;

    END LOOP;

    / * Calls a procedure SERVICE_PARTS_LIST_RELEASE_ODM * /.

    VABOSS_SERVICE_BOM_PKG. SERVICE_PARTS_LIST_RELEASE_ODM-> >HERE I am GETTING the ERROR
    (P_IN_UPD_NO,
    P_IN_USER_NAME);

    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);

    END VABOSS_DEL_UPL_CHNG;





    END VABOSS_ODM_CHNG_PKG;
    /


    your help is apprecited

    Thank you
    Krupa

    879534 wrote:
    PLS-00201: identifier 'P_IN_USER_NAME' must be declared.

    CREATE OR REPLACE PACKAGE BODY VABOSS. VABOSS_ODM_CHNG_PKG
    AS
    PROCEDURE VABOSS_DEL_UPL_CHNG (P_IN_UPD_NO IN VARCHAR2, IN BOOLEAN P_IN_RECREATE, IN BOOLEAN P_IN_RELEASE, * P_IN_USER * IN VARCHAR2)

    ... snip...

    VABOSS_SERVICE_BOM_PKG. SERVICE_PARTS_LIST_RELEASE_ODM---> >HERE I am GETTING the ERROR
    (P_IN_UPD_NO,
    ( P_IN_USER_NAME ) ;

    Spot the difference

Maybe you are looking for