Drop type... lost strength body

People,

Running 12cR1 standard for Windows. No changes to the database since the standard install.

Because my type of PL/SQL need one object new interface, other objects being dependant on this subject, I published the following drop < object > TYPE force in SQL Developer.

I don't have the latest version of the body of the object stored elsewhere so I lost the body.

I'd rather not have program in all the changes that I've made since the last change.

Is there a method to me to restore the deleted object?

I took a look at:

Select object_name, original_name, type, can_undrop as "UND" can_purge as "PURE", droptime

of recyclebin

but the object type are only tables, index and lob index: no pl/sql object.

Is that what I can do to restore the body of the object lost?

concerning

Simon

Your only hope is to cancel (return of flame). It depends on your tuned_undoretention.

You might be able to get the source of dba_source using the flashback technology:

select * from dba_source as of timestamp (sysdate-1/24)   -- one hour ago in this example
where name='TEST' and type='PACKAGE'
and owner=;

If for some reason that cancel information are not there because of your data retention and the DML activity, then you are out of luck. Backup and/or appropriate source code control would only be able to help you.

Tags: Database

Similar Questions

  • Generation of object Type method stub body

    Hello

    It is perhaps a little too much, but it would be possible for the generator of file DDL build a method body that will be compiled with a null body? This applies mainly the Oracle 11 g or Oracle database 10g for the DDL generator. The reason for this request is that she would make prototyping go faster. Currently the generator did a good job of creating the object Type and the body of Type object, but if we could have a Null Begin; End; wrapped in the body until we add the code, which would give us a DDL script that would not have to be changed before running in the database. This in turn would allow a half-turn faster trying to prototypes.

    A bit of current sample of the generated code looks like:

    CREATE or REPLACE TYPE t_date_range BODY
    AS
    PROCEDURE of MEMBER set_start_date
    AS
    -PL/SQL blank body
    PROCEDURE of MEMBER set_end_date
    AS
    -PL/SQL blank body
    PROCEDURE of MEMBER validate_date_range
    AS
    -PL/SQL blank body
    END
    ;
    /


    If along with '-empty body of PL/SQL "you could add
    "Start to NULL; END; »

    so the code would look like:

    CREATE or REPLACE TYPE t_date_range BODY
    AS
    PROCEDURE of MEMBER set_start_date
    AS
    -PL/SQL blank body
    NULL BEGIN; END;
    PROCEDURE of MEMBER set_end_date
    AS
    -PL/SQL blank body
    NULL BEGIN; END;
    PROCEDURE of MEMBER validate_date_range
    AS
    -PL/SQL blank body
    NULL BEGIN; END;
    END
    ;
    /

    We have example code which should compile in the right of the box database.

    Thanks in advance,
    ACE

    Published by: ACE on March 23, 2011 18:20

    Published by: ACE on March 23, 2011 18:21

    Hi Scott,.

    Good suggestion. I logged a request for development for this.

    Thank you
    David

  • capacity of the type lost with the background image

    I found the code to load a bitmap as a background (JDE 4.2 so I'm on verticalfieldmanager of riding) but I've lost the ability to use the styles - specifically HCENTER for a horizontal field Manager.

    I thought that the code inline on Mount verticalfieldmanager was only on the functions you specify riding, but somehow styles don't seem to do anything right now.

    My class extends screen.  In addition to setting the style to the LabelField, I tried using a horizontal field with a HCENTER style Manager and adding that to the sublayout but everything continues to show left justified.

    LabelField myField = new LabelField("      ",FIELD_HCENTER){ public void paint(Graphics g){ g.setColor(Color.WHITE); super.paint(g); } };
    
    --- main class code snip ---
      super(NO_VERTICAL_SCROLL);
    
       mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR )
            {
                public void paint(Graphics graphics)
                {
                    graphics.clear();
                    graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, _backgroundBitmap, 0, 0);
                    super.paint(graphics);
                }
            };
    
            //this manger is used for adding the components
            subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR | Manager.FIELD_HCENTER)
            {
                protected void sublayout( int maxWidth, int maxHeight )
                {
                    int displayWidth = deviceWidth;
                    int displayHeight = deviceHeight;
    
                    super.sublayout( displayWidth, displayHeight );
                    setExtent( displayWidth, displayHeight );
                }
            };
    
       subManager.add(myField);
    
       mainManager.add(subManager);
    
       this.add(mainManager);
    }
    

    Thanks for the help,
    Craig

    He finds... styles work but the fields are not the full width so that they were in "centered" relatively close to the left of the screen.

    Thanks for the research.  Fix use of USE_ALL_WIDTH to the verticalfieldmanager (probably could have done this in several places).

    Kind regards
    Craig

  • How to illustrate lose in Drag &amp; Drop Type information

    If you remove the [RemoteClass] of the Car.as on this LiveDocs page and then click on the button in the application, he always says it's a car.

    That seems contrary to the description.

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=dragdrop_4.html

    package
    {
    DragDrop/Car.as

    [RemoteClass]
    SerializableAttribute public class car extends Object
    {
    Manufacturer.
    public void Car()
    {
    Super();
    }

    Properties of the class.
    public var numWheels:int;
    public var model: String;
    public var brand: String;

    public function get label (): String
    {
    back do + "" + model.
    }
    }
    }

    Make sure you have done a copy and not move?  It will fail to copy only.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • When you type the body of the e-mail, it is invisible

    When you try to type a new e-mail message, I can type in the address, subject, but when I try to type in the body of the email, it is invisible, nothing there, but if I highlight, it appears, but it goes away after it is not highlighted more. I can answer emails ok, just no new type.

    What kind of email service do you use? Gmail, Hotmail, Yahoo mail? If none of these, thanks for posting the link to the site where you enter your emails.

    This does not seem normal at all well.

    Alternatively, you can try to disable your addons in the Help menu:


    Help > restart with disabled modules

    Which will restart Firefox with disabled modules. Then connect to your email and try to type again. If the problem has disappeared, trying to figure out what addon is causing the problem by going on Firefox button > Modules or Tools > Add-ons -, by selecting an addon both then choose Activate then click the choice to restart now , when it appears.

    Don't forget to keep logging into your address email to test the typing of the body in the email after each add-on you back on.

    If you find the add-on that caused it, please let us know here so we can warn others. Thank you.

  • Is it possible to migrate an application and drop one of the three types of plans?

    Migrating applications is 11.1.1.3 to 11.1.2.2.300.  Try to migrate an application and a company wants to only 2 of the 3 types of regime to be brought back.  Is there a way to do this?  Or to remove or hide the type of 11.1.2.2.300 if all 3 are migrated on?

    Here is what has been tried, but he cuased a problem in the DB:

    • Migrate an existing application that originally had 3 types of plan. Plan dropped type 1 and kept plan types 2 and 3

    • Created 2 types of plan when creating the application in 11.1.2.2

    • Initially built the contour using 11.1.1.3 LCM export dimensions and had to modify the XML to import. Edited plan 2 and made this plan type 1. Edited plan 3 and made this plan type 2. Had problems with the LCM/xml and finally finished by using the extractor contour and loading by using the outlineload utility. Dimensions are now based.

    • Initially, wrong Bishop Calc. To change the value of the hsp_systemcfg for the type of plan table = 2 instead of 3 as it was in the table.

    • Calc Mgr shows that type of plan 2 and no plan to type 1.

    Any ideas?

    Probably the best way to rebuild the application and then reload the hierarchies or hack files XML of LCM, if 11.1.2.3 then you would be able to create/delete plan types.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Dynamic effects of HTML like Drop Down the legend and the body does not

    I use TC 2.0, soon to be upgrading to TSC 3.0.  When I try to create Drop Down Caption and Drop Down body elements in FrameMaker and Robohelp update, it does not work.

    I have the text as:

    Drop down menu test legend

    Which I note and go to the Adobe RoboHelp-> DHTML Effects-> menu Drop Down Caption and apply the style of paragraph DropDownCaption to.  I then text like:

    Test menu drop-down body

    Which I pointed out and go to the Adobe RoboHelp-> DHTML Effects-> menu Drop Down body and apply the style of paragraph DropDownBody to.

    I update my Robohelp project (related to my project of FrameMaker) and get a 'clickable' of Test Drop Down legend which I click and Interline additional just pop-up. My Test drop down of the body  text is still there, doing nothing.

    You mind, I can do this in RoboHelp directly without any problems, but then I have the problem of update of the project of FrameMaker and that it get rid of all my work of RoboHelp project. Is it possible to get this working in FrameMaker?

    Please check if there is an empty paragraph between paragraph style Drop Down the legend and the paragraph with the style of Drop Down Body in the FrameMaker document. For RoboHelp, to recognize the link between the two, Drop Down body paragraph must immediately follow the Drop Down Caption paragraph. Avoid any empty paragraph between the two.

    MILIN

  • pipeline function and type inside the package

    Hi all

    I'm sorry for the inconvenience, I tried to google my question before asking here...

    The question is:
    I can't compile type in the same package as my function in the pipeline?

    I have an example of a function in the package, everything works fine.
    CREATE OR REPLACE PACKAGE ZOO.pkg_cl_risk_eval  AS
    
    FUNCTION sample (p_date date, p_indicatorid number, p_ismodel number) return cl_risk_act pipelined;
    
    END;
    /
    
    CREATE OR REPLACE PACKAGE BODY pkg_cl_risk_eval is
    
    FUNCTION sample (p_date date, p_indicatorid number, p_ismodel number) return cl_risk_act pipelined IS
    v_obj cl_risk_type := cl_risk_type(NULL,NULL,NULL,NULL);
    BEGIN
    FOR e IN (
    select trunc(sysdate) as adate, 0 as cid, 0 as indicatorid, case when p_ismodel = 0 then 0 else 1 end as value from dual
                  )
    LOOP
    v_obj.adate        := e.adate;
    v_obj.cid            := e.cid;
    v_obj.indicatorid := e.indicatorid;
    v_obj.value        := e.value;
    PIPE ROW (v_obj);
    END LOOP;
    RETURN;
    end;
    
    end;
    /
    SELECT using function statement:
    select * from table(zoo.pkg_cl_risk_eval.sample(date '2011-09-30',4, 0))
    I can't compile type in the same package as my function in the pipeline?
    Currently, it is outside the package:
    DROP TYPE cl_risk_type FORCE;
    CREATE OR REPLACE TYPE cl_risk_type AS OBJECT
    ( adate date,
      cid   number(10), 
      indicatorid number(5), 
      value number(5)
    )
    / 
    
    CREATE OR REPLACE TYPE cl_risk_act AS TABLE OF cl_risk_type
    / 
    As far as I can read from this source, it is impossible, but this information can be updated.
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:4447489221109

    Oracle version: 11g

    UPD:
    I'm sorry, I'm not paying attention... It is possible as noted in the response to my similar question:
    function in pipeline work in the package? (Oracle 11g)

    Published by: marco on December 15, 2011 07:40

    As the following State messages, my post was wrong. I withdraw without reservation.

    Published by: APC on December 15, 2011 15:30

  • Can you record for an object of TYPE input COLLECTION and use it as a table?

    My PL/SQL stored procedure creates a list of employee number and phone record numbers. I don't want to store them in a table. I will pass this list from one procedure to another in my package.

    I created the type (folder) and type of collection (table) using this statement.
    CREATE TYPE obj_emp_phone_rec AS OBJECT
      (
         emp_number   NUMBER,
         emp_phone    VARCHAR2(100)
      )
    /
    
    CREATE TYPE obj_emp_phone_recs_table AS TABLE OF obj_emp_phone_rec
    /
    Thing is, can I use the obj_emp_phone_recs_table 'table type' as an array?

    I.e. can I insert records that in the procedure of package and pass reference to him in called secondary procedures.

    that is something like that
    PACKAGE BODY abc IS
    
      PROCEDURE kdkddk IS
      BEGIN
        -- Insert records to the  obj_emp_phone_recs_table 
        obj_emp_phone_recs_table(1).emp_number := '1';
        obj_emp_phone_recs_table(1).emp_phone   := '0774949494';
    
        obj_emp_phone_recs_table(2).emp_number := '234';
        obj_emp_phone_recs_table(2).emp_phone   := '285494';
    
        -- Pass the table to the sub procedure
        xyx(obj_emp_phone_recs_table);
    
        ........
        ......    
       
      END kdkddk;
    
    END abc;
    If yes how to insert the obj_emp_phone_recs_table?

    Nothing on the net. In the Net I found only where u set normal column of a table as an object type and then insert records him.

    Any help would be greatly appreciated.

    Published by: user12240205 on October 6, 2011 02:08
    mhouri > drop type obj_emp_phone_recs_table;
    
    Type dropped.
    
    mhouri > drop type obj_emp_phone_rec ;
    
    Type dropped.
    
    mhouri > CREATE TYPE obj_emp_phone_rec AS OBJECT
      2    (
      3       emp_number   NUMBER,
      4       emp_phone    VARCHAR2(100)
      5    )
      6  /
    
    Type created.
    
    mhouri > CREATE TYPE obj_emp_phone_recs_table AS TABLE OF obj_emp_phone_rec
      2  /
    
    Type created.
    
    mhouri > create or replace procedure p1(pin_tab IN obj_emp_phone_recs_table)
      2  is
      3   begin
      4     for j in 1..pin_tab.count
      5     loop
      6      dbms_output.put_line('record number '||j ||'-- emp number --'||pin_tab(j).emp_number);
      7     end loop;
      8
      9  end p1;
     10  /
    
    Procedure created.
    
    mhouri > create or replace procedure p2
      2  is
      3  lin_tab  obj_emp_phone_recs_table := obj_emp_phone_recs_table();
      4  begin
      5  FOR i IN 1 .. 5
      6     LOOP
      7        lin_tab.extend;
      8        lin_tab(i) := obj_emp_phone_rec(i, 'i-i-i');
      9     END LOOP;
     10
     11    p1(lin_tab);
     12
     13  end p2;
     14  /
    
    Procedure created.
    
    mhouri > set serveroutput on
    mhouri > exec p2
    record number 1-- emp number -- 1
    record number 2-- emp number --2
    record number 3-- emp number --3
    record number 4-- emp number --4
    record number 5-- emp number --5                                                                                                                                                                                                                          
    
    PL/SQL procedure successfully completed.
    

    Best regards

    Mohamed Houri

  • Why is the "leftmargin" attribute in the HTML body tag ignored by Firefox?

    Check f.i. http://www.vaartips.nl/tipa.htm and see the difference (left margin) between FF and IE.
    "Leftmargin 20" is ignored (doesn't) to FF (see page code)

    Hello, < body leftmargin = "20" > is not compatible html source code.

    you could add body {margin-left: 20px} in the css section, rather style...

    <head>
    <style type="text/css">
    body { margin-left:20px }
    ...
    </style>
    </head>
    

    http://validator.w3.org/check?URI=http%3A%2f%2Fwww.vaartips.nl%2Ftipa.htm & charset = % 28detect + automatically % 29 & DOCTYPE = Inline & Group = 0

  • 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

  • Table generated by the system type: behavior or bug WAITED?

    I understand that Oracle, in the execution of a SQL statement, sometimes automatically generates objects SQL not explicitly created by the user. One such example is with table in pipeline defined functions to return a collection type of PL/SQL (as opposed to SQL): in this case, Oracle will automatically create an equivalent SQL collection type for the PL/SQL collection type. All well and good...

    However, here is an example where it would appear that oracle unnecessarily creates a SQL collection type, even when there is an explicit CONVERSION to an already existing SQL collection type. The problem seems to be related to the use of the function of COLLECTION (http://docs.oracle.com/database/121/SQLRF/functions034.htm#SQLRF06304).

    First the test script...

    prompt    -- The database version...
    
    select    *
    from    v$version
    /
    
    prompt    -- Create the test object and collection types...
    
    create or replace type OMyObject
    is object
    (
        a integer
    )
    /
    
    create or replace type NMyObjectTable
    is table of OMyObject
    /
    
    prompt    -- Check that no system-generated table types currently exist...
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- CAST with MULTISET does not create a system-generated table type...
    
    select    cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable) myObjects
    from    DUAL
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- COLLECT without a CAST creates a new system-generated table type...
    
    select    collect(value(o)) myObjects
    from    table(cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable)) o
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- (Drop the system-generated table type...)
    
    set    feedback off
    
    spool    "temp_drop_table_types.sql"
    
    select    'drop type "' || C.TYPE_NAME || '";'    as "-- Drop statement"
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    spool    off
    
    set    feedback on
    
    @"temp_drop_table_types.sql"
    
    prompt    -- COLLECT with a CAST also creates a system-generated table type...
    
    select    cast(collect(value(o)) as NMyObjectTable) myObjects
    from    table(cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable)) o
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    

    which outputs...

    -The version of database...

    BANNER                                                                               CON_ID

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

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 0

    PL/SQL Release 12.1.0.2.0 - Production 0

    CORE 12.1.0.2.0 Production 0

    AMT for 64-bit Windows: Version 12.1.0.2.0 - Production 0

    NLSRTL Version 12.1.0.2.0 - Production 0

    5 selected lines.

    -Create the test object and collection types.

    Type of creation.

    Type of creation.

    -Check that there is currently no type of system-generated table...

    no selected line.

    -Cast IRON with MULTISET does not create a table generated by the system type...

    MYOBJECTS (A)

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

    NMYOBJECTTABLE (OMYOBJECT (1), OMYOBJECT (2), OMYOBJECT)

    (3), OMYOBJECT (4), OMYOBJECT (5), OMYOBJECT (6), OMYOBJECT

    ((7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJECT (10))

    1 selected line.

    no selected line.

    -At expense LEDGES without a DISTRIBUTION creates a new type of system-generated table...

    MYOBJECTS (A)

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

    SYSTPUBsptM + HT5OlTJUtIcUfgg is (OMYOBJECT (1), OMYOBJEC)

    OMYOBJE, OMYOBJECT (4), (2) T, OMYOBJECT (5), OMYOBJECT (3)

    CT (6), OMYOBJECT (7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJ

    ECT (10))

    1 selected line.

    COLL_TYPE ELEM_TYPE_MOD ELEM_TYPE_NAME TYPE_NAME UPPER_BOUND

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

    TABLE OMYOBJECT SYSTPUBsptM + HT5OlTJUtIcUfgg is

    1 selected line.

    -(Drop the type generated by the system of table...)

    -Drop statement

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

    ' Drop type' SYSTPUBsptM + HT5OlTJUtIcUfgg == ";

    Type fell.

    -At expense LEDGES with a CAST also creates a table generated by the system type...

    MYOBJECTS (A)

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

    NMYOBJECTTABLE (OMYOBJECT (1), OMYOBJECT (2), OMYOBJECT)

    (3), OMYOBJECT (4), OMYOBJECT (5), OMYOBJECT (6), OMYOBJECT

    ((7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJECT (10))

    1 selected line.

    COLL_TYPE ELEM_TYPE_MOD ELEM_TYPE_NAME TYPE_NAME UPPER_BOUND

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

    TABLE OMYOBJECT is SYSTPds/KlYeDTnaiTKLsbcLJpg

    1 selected line.

    This behavior is expected, or should it be considered a bug? Thoughts?

    Gerard

    This known issue and how Oracle offers with him (i.e. the SMON process periodically cleans transitional objects) is described in the Doc ID 1603706.1.

    Gerard

  • 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 ;
    
  • Method of displaying Pl/Sql types

    Hello

    I would like to know how to print all attributes of type pl/sql.

    For example, I created the method of display_address below. I would like to know how to print all attributes rather than give one by one. In my project, we have over 1,000 attributes that are defined under the body. It is therefore difficult to print everything one by one.

    It would be very useful if someone help me on this.

    CREATE or REPLACE TYPE employee_typ AS BODY

    FUNCTION MEMBER card get_idno IS BACK

    BEGIN

    RETURN number;

    END;

    MEMBER display_address (SELF IN OUT NOCOPY employee_typ) PROCEDURE IS

    BEGIN

    DBMS_OUTPUT. Put_line(employee_id ||) ' '  || employee_id);

    DBMS_OUTPUT. Put_line(first_name ||) ' '  || last_name);

    DBMS_OUTPUT. Put_line (Address.Street);

    DBMS_OUTPUT. Put_line(Address.City ||) ', '  || Address.State | ' ' ||

    Address.Postal_Code);

    END;

    END;

    /

    Post edited by: user8367258

    Grand... Thank you... That's what I'm looking for.

    Thank you again...

  • Problem with adding a style of body using CSS Designer

    All,

    I ran across something that's bugging me when writing documentation for beginners to Dreamweaver.

    I use Dreamweaver CC 2015. I want to add a style to the body element. When I make the body tag is selected and click on the + to add a new selector, I get a 'body' selector p, instead of just 'body '.  I don't have a paragraph selected inside the body. I have chosen body. It is actually not a paragraph that is a child of the body element in the code, I work with.

    I tried to use the tag selector and ctrl + [to make sure that the body is selected.  Same thing in the designer or direct.  I know I could write my not just to simply type in the body to replace this place. However, for the rest of the selectors in the page, we create by ensuring that the appropriate item is selected and pressing on the + to add a selector at least provides us with a selector that will work for our purposes. And this is the first switch I want to create, so I would like to the same method works.

    The best work-around, I have found so far is to click in the opening body tag in code view, and then click on the + to add the switch, I can get the selector 'body', but I still think just not there must be something I'm missing.

    No idea why this is happening, or does anyone have a smoother work around?

    Thank you

    Jen

    Post edited by: Jennifer Oakes made the shortcut for select tag parent in live mode view is ctrl + [not shift +]

    Hello

    The question! Yes, this seems to be a bug. As you have already mentioned, for now, you can use the workaround, click the tag body in code view.

    Thank you!

    Kusha

Maybe you are looking for