table of globle vs vs record object in function in pipeline

I want to do pipeline function, it can be made in one of the following ways, I show
Please suggest one is better in performance and maintenance.

1)
Create the my_tab_type type is object
(prodid number, varchar2 (1), b varchar2 (1))
VARCHAR2 (1) c, varchar2 (1) d, varchar2 (1)) e
.
/

Create the type my_tab_type_coll is table of the my_tab_type;
/

create or replace function get_some_data (p_val in number)
my_tab_type_coll return pipeline is
Start
I'm in (select * from my_table where prodid = p_val) loop
pipe row (my_tab_type (i.prodid, i.a, i.b, i.c, i.d, i.e));
end loop;
return;
end;
/

SELECT * FROM table (get_Some_Data (3));

2)
You can create globle tem table 'Tlb_3 '. then make a bundle as fllowing
create or replace
The PACKAGE pk1
AS
TYPE T_type IS the TABLE OF Tlb_3% ROWTYPE;
END;

and the rest of the thing will be same as the first.

3)
TYPE outrec_typ () IS RENDERING
var_num NUMBER (6).
var_char1 VARCHAR2 (30),
var_char2 VARCHAR2 (30)
);
TYPE outrecset IS TABLE OF THE outrec_typ;

and the rest of the thing will be same as the first

so the main question is relative to each table that is returned.


Yours sincerely

Published by: 944768 on January 2, 2013 04:23

>
Thank you
as you filed it, ' to make responses.
I am not able to see my messages
How I can see them.
>
Click on "Your Control Panel" link in the top right of the page.

Then click on the 'Your Questions' link at the top right of this page

Who will list your questions in sets (for example issues of perhaps 10 per page.)
Questions without a green star are still pending.

Visit these "outstanding" issues and mark them ANSWERED if they were.

Really, they have NOT been resolved and are old issues, then add another answer to them, so they'll get hit to the top of the list where people will notice them once again.

Tags: Database

Similar Questions

  • Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Mr President.

    Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Because I change the size property of the table 5 range and my new record is inserted at no 10.

    When I click the addRecord button the new parallel line does not appear, do scroll down to see it.

    I want that we don't have to scroll down.

    The line is displayed automatically.

    as shown in the photo my behavior of page.

    scrolling.png

    Concerning

    If you just need the newly created line to be visible,

    You can simply set contentDelivery = 'immediate' and displayRow = "selected".

    P.S. the blog mentioned above only.

    See you soon

    AJ

  • I need to implement Drag N Drop between two tables that saves the two records

    I need to implement Drag N Drop between two tables that saves the two records on a third page, using drag 'n drop.

    Check out this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html

  • AF:table does not display the records to make the updating of the view object iter

    Hi Experts,

    I use JDeveloper 11.1.1.4 and I have a page that shows a view object records one particular reading as an af:table. When I run the page to everything first he shows all the data at all. But there are 2 folders when I run the query that only read the view object. In my page there is a link called "Refresh" which calls the operation "Execute" in the view of my view object iterator. When I click on this link the table shows two records. Why the table shows no files once when the page is rendered?

    Please help me.

    Hi user,

    Yes use component query to display criteria. Please let me know if something specific I need to check when I use the query component. If you have already faced this problem please help me to solve it.

    you are looking to do this,
    http://www.4shared.com/photo/B36OTSl9/check.html

    Published by: Les on November 22, 2011 12:26 AM

  • LOV opened from column in the table always showing only 25 records

    Hello. I'm on Jdev 11 g R1.

    I have main VO with an attribute with LOV (entry LOV). The LOV VO defined in tuning as 'all lines' and range is set to-1

    Main LOV fell into the page and column is made in the form of entry-level LOV as expected. Everything works ok.

    But when I opened the LOV is showing 25 records. I have to scroll to the end and click on the button "Search" once again to see the rest of the records (total 48). It shows not all records and scrolls automatically when I start to scroll down, but stops at 25 records.

    I can't change the size of the beach of LOV since it is located in the table, so there is no access to the iterator LOV.

    How can I force LOV to see all records?

    As far as I KNOW, there is a bug in 11.1.2.x (and if you have a support contract, you can request the fix for it)

    Also associated with R1: list of input values does not fetch all records of documents only 25 are read

    Dario

  • Vertical scroll bar table ADF issue when multiple records.

    Hello!

    I use Oracle JDeveloper version 11.1.1.6.0.

    I have a search engine and a simple loan table show only about 1 million records.

    At the top of my search engine, I have navigation buttons (first, previous, next, last).

    So when I click the next button for example, my table will highlight the next line as expected.

    But here's the question. When I click the last button, vertical scroll bar of the table do not scroll (automatically) at the end and show, for me, the last row of table.

    How can I achieve this? When I manually scroll to the last row, I'd find highlighted but I need the vertical scroll bar in response to the last and first buttons click on even though I have a lot of lines.

    What should I do?

    Any suggestion will be highly appreciated

    Life.

    Hi Frank,.

    I found the answer. This is for anyone who ever or encounter the same problem.

    In the table properties Jsf Inspector

    I have linked my table to my java bean (I called it myRichTable).

    I added the first and last buttons as partial of my table triggers

    Java bean

    In my method last() I encluded the following line of code: myRichTable.setDisplayRow (myRichTable.DISPLAY_ROW_LAST).

    And in the first(): myRichTable.setDisplayRow (myRichTable.DISPLAY_ROW_FIRST);

    Thank you!

  • Display with the Table function in pipeline object

    I try to use a read only View object with a pipeline function table which takes in and defined by the user returns the objects. I work with an OraclePreparedStatement, but want to use a view object.

    This is the query:
    SELECT test_pkg.test_function(?,?) FROM DUAL;

    How can I configure the input parameters of the View object? The only method I can find available is setWhereClauseParam, but there is no where clause.
    Is it possible to use an object view in this situation?

    Any help is greatly appreciated. Thank you.
    S

    This can be done very easily. The query of your view object should be:

    SELECT *
      FROM TABLE(test_pkg.test_function(:bind1, :bind2))
    

    Then create variable bind for both parameters.
    You will set the bind variable in the same way that you define bind variables for any other question.

    Published by: jflack on April 9, 2013 16:28

  • the table of dataProvider for a ComboBox object icon

    Hello

    I try to get a ComboBox control whose items consist in a label and an icon.

    If I place the static code, it works well, I get my icon and label.

    http://j.imagehost.org/0018/dataProvider_manuel.png

    <mx:ComboBox ... >
        <mx:dataProvider>
            <mx:Array>
             <mx:Object label="Français" icon="@Embed(source='assets/pays/France.png')" />
            </mx:Array>
        </mx:dataProvider>
    </mx:ComboBox>     
    

    BUT if I try to do this dynamically, I can't do anything else than the labels:

    http://j.imagehost.org/0180/dataProvider_function.png

    < mx:ComboBox... dataProvider = "{getlanguages ()}" / >

    and here's my getlanguages() function:

    public function getlanguages():Array{
    
         var myList:Array=["France"];
         var lang:Array = [];
    
         for(var i:int = 0; i<myList.length; i++){
              var theLanguage:Object= {
                        label:myList[i],
                        icon:"@Embed(source='assets/pays/France.png')"
                        };
              lang.push(theLanguage);
    
         }
         return lang;
    }
    

    No idea why?

    TIA Loïc

    Hello

    I do things a little differently to examples of "text-book" how to make, I made a small example of what I thing you want, take a look and see if it would work for you. One of the reasons that do this sort of thing using a class is so I can extend the options in table of dataprovider with sorting routines filter routines etc.

    http://gumbo.flashhub.net/languages/ - source included

    David.

  • How to record object type type cast

    Tbl table (col1, col2 number number)
    type the object obj (col1, col2 number number)

    in the package I
    obj1 obj;
    for rec_test in (select * from tbl) loop

    Here, I wanted to make an assignment

    obj1 = cast (rec_test as obj)

    His giving compile error

    Error (301,29): PLS-00382: expression is of the wrong type

    How about you put together a better example, something like that, so we have a real idea of what you're talking about (the exact commands you use and your version of Oracle).

    ME_XE?create table table1
      2  (
      3     col1 number,
      4     col2 number
      5  );
    
    Table created.
    
    Elapsed: 00:00:01.03
    ME_XE?
    ME_XE?insert into table1 select level, mod(level, 4) from dual connect by level <= 100;
    
    100 rows created.
    
    Elapsed: 00:00:00.96
    ME_XE?
    ME_XE?create type  table1_type as object
      2  (
      3     col1 number,
      4     col2 number
      5  );
      6  /
    
    Type created.
    
    Elapsed: 00:00:01.21
    ME_XE?
    ME_XE?declare
      2  begin
      3     for x in
      4     (
      5        select
      6           table1_type(col1, col2) as some_values
      7        from table1
      8        where col1 = 10
      9     )
     10     loop
     11        dbms_output.put_line(x.some_values.col1 || '-' || x.some_values.col2);
     12     end loop;
     13  end;
     14  /
    10-2
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:01.76
    ME_XE?
    ME_XE?select * from v$version;
    
    BANNER
    ----------------------------------------------------------------------------------------------
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    5 rows selected.
    
    Elapsed: 00:00:03.23
    
  • automatic refresh of the secondary table ADF on the main record in the table selection

    Hello
    I use adf table for all master detail.
    My requiremant is as such when I select any master record its coresponding details should auto refresh in the secondary table
    PL. help if you have any solution for it.

    Thanks in advance.

    Ajit

    You use what version of jdeveloper?

    Why you cannot create the component master table table-details directly by drag and drop from the data control palette. If you want to continue cannot achieve this goal, and then set the property autosubmit to the option button in a master table to true. give the name of id in the table msater. And for the details table, set the property partialtrigger to the id of the main table.

    Vikram

  • Dictionary of table with info on subsidies on objects for user roles

    Hi all

    I use a package, sequence, and we have a different set of roles and users.
    I want to know what user or role is seen to execute privilege or right to select the package and order.

    Can someone tell me which table data dictionary will hold this information.

    Appreciate your help.

    Thank you
    Maddy

    Hi, Maddy,

    These rights are stored (confusion) in all_tab_privs (and dba_tab_privs and user_tab_privs, of course).
    Column in table_name is the name of the object, whether a table, a packet or sequence.

    If the sequence is used inside the package, users with privileges running on the package need not privileges on the sequence (assuming AUTHID DEFINE, which is the default). The owner of the package needs the privileges on the sequence.

  • Expdp tables a schema and all the objects in another schema

    Hello

    Is there a way we can export tables to a diagram and everything else a diagram? I tried below, but none of them did the job.

    Table = A.Table1, A.table2

    schemas = b, c

    include = table: "in (a. 'Table1'., 'Table2')" "

    schemas = b, c

    Thank you

    The datapump has several modes:

    "Full import mode.

    "Schema Mode".

    "Table mode".

    'Space Mode '.

    "Transportable Tablespace mode."

    It seems that datapump cannot be in one mode at a time.

    So you have to choose the mode of table first, then for the following export select pattern mode.

  • Comparison of the data of the huge table effectively (on 30 million records)

    In my application status is to find the difference between 2 tables (two tables with the same structure) and store that data to another difference table

    Let's say the source table name is T_S, the target table is T_T and difference table is T_D.

    To do this there are 3 written motions, they are

    1) insert into T_D (select * from T_S), 'INSERTS' where the data not T_T;

    This query to find the pads

    2) insert into T_D (select * from T_T), "DELETES" where the data not T_S;

    This request is to find deletions


    3) insert into T_D (select * from T_S), "UPDATE" where (data T_S)! = (data T_T);


    This request is to find updates


    These queries take more than an hour to run, is there any other way of send to this problem OR any other way to write these queries efficiently?

    Thank you

    Divi

    This gives a test

    insert into nc_t1

    (

    col1

    col2

    sys_nc_type

    )

    Select decode (sys_nc_type, 'INSERT', a_col1, 'DELETE', b_col1, 'UPDATE', a_col1) col1

    decode col2 (sys_nc_type, 'INSERT', a_col2, 'DELETE', b_col2, 'UPDATE', a_col2)

    sys_nc_type

    BeO

    Select a.col1 a_col1

    b.col1 b_col1

    a.col2 a_col2

    b.col2 b_col2

    , where b.col1 is null then 'INSERT '.

    When a.col1 is null then 'DELETE '.

    When (a.col1 is not null and b.col1 is not null) and

    (

    (a.col2! = b.col2) or

    (a.col2 is null and b.col2 is not null) or

    (a.col2 is not null and b.col2 is null)

    ) and then "UPDATE".

    end sys_nc_type

    of in_t1 one

    full

    Join mst_t1 b

    On a.col1 = b.col1

    )

  • issue update a table using a function in pipeline

    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    OK, I have an example simplified below what is happening
    I try to make updates or inserts in the tables and I use a function pipeline for this bed of the same tables of the to do.
    and it gives me
    ORA-04091: table DSAMSTRC.T is mutating, trigger/function may not see it
    ORA-06512: at "DSAMSTRC.GET_T_ARRAY", line 6
    My solution was to do a slider and update record row by row, but I was wondering if there is a way around this error?


    Here's my example
    DROP TABLE t;
    ------------------------------------------------------------------------------------
    
    CREATE TABLE t
    AS
           SELECT LEVEL id, 'A' txt
             FROM DUAL
       CONNECT BY LEVEL <= 10;
    
    -------------------------------------------------------------------------------------
    
    CREATE OR REPLACE TYPE t_table_type AS OBJECT
                      (id NUMBER, txt VARCHAR2 (200));
    ------------------------------------------------------------------------------------
    
    CREATE OR REPLACE TYPE t_array AS TABLE OF t_table_type;
    -----------------------------------------------------------------------------------
    
    CREATE OR REPLACE FUNCTION get_t_array (v_txt IN t.txt%TYPE)
       RETURN t_array
       PIPELINED
    IS
    BEGIN
       FOR EACH IN (SELECT id, txt
                      FROM t
                     WHERE t.txt = v_txt)
       LOOP
          PIPE ROW (t_table_type (EACH.id, EACH.txt));
       END LOOP;
    
       RETURN;
    END;
    ---------------------------------------------------------------------------------------
    
    UPDATE t
       SET txt = 'B'
     WHERE id IN (SELECT id FROM TABLE (get_t_array ('A')));
     

    You can create a global temporary table that has the same columns that use your function to insert in there, and then use it to update t.

    CREATE GLOBAL TEMPORARY TABLE t_temp
    (id    INTEGER,
     txt  VARCHAR2(100))
    ON COMMIT DELETE ROWS;
    
    INSERT INTO t_temp
      (SELECT id, txt FROM get_t_array('A'));
    
    UPDATE t
       SET t.txt = (SELECT txt FROM t_temp
                     WHERE t_temp.id = t.id)
     WHERE t.id IN (SELECT id FROM t_temp);
    
  • Web App point record and present functions is possible?

    I created a web application I want the user to be able to record without trigger a workflow, then go back and change the content and save again if necessary, then when all is complete submit so that it launches a workflow and web app submitted can be verified.

    This should be used for a course so that assignments can be submitted online.

    Thanks for your help

    Eamon

    To do this, is to use a form in line/update - details - form to collect and record data, they can continue to come back and update the form, you need SAR = false on the form action, if you want to stop the answering machine, and you can easily define the workflow against zero on the form itself with in the admin. The thing to note is that you must use system fields or extended CRM fields in the online form that you can not use form fields custom Web in a form of updating details. Also note that the person needs to be registered to do it all.

    the next thing is to send them to the form of submission Web App (which should be a mirror of your previous form fields) preloads all fields with their customer data and data CRM extended, configure the fields to read only so they can not make changes, do as "final review" page, then all they need to do is to hit the submit button.

    Hope this helps - Billy. P.S. Let me know if you need clarification or expansion on any of the points

Maybe you are looking for