Using TABLE() syntax with collection types

Hello

I created a function that returns a collection type in the TABLE of VARCHAR2.

Function works just fine:


SELECT * FROM TABLE (some_fcn ('VALUE1', 'VALUE2'));

Where I am passing static values.

However, I join it with another table, passing the values in this array as parameters:

SELECT f.some_table_key, t.* FROM une_table f, TABLE (some_fcn (f.col1, f.col2)) t;

When I do that, I get the error "ORA-00904:"F".» "Col1": invalid identifier.


I use 11 GR 1 material


Could someone please offer some advice with that?

Thank you!

Published by: odinsride on August 23, 2010 15:30

Published by: odinsride on August 23, 2010 15:39

Maybe things PIPELINED causing a problem?

Should be no problem.

You can also provide the structure of the table... there a column COL1 and COL2?

Tags: Database

Similar Questions

  • Workaround solution for use af:foreach with collection

    Hello

    I have a n to m relationship between the two tables to TRANSFER and the USER. I've implemented this n m relationship with a third table, called USR_ASS_REL.

    I have a page detailedUser.jspx which gives me detailed information on all users. If I drag the DataControls USR_ASS_REL field on the screen, I create an array with all of the responsibilities of the user. But this isn't what I want. Instead, I want to print all the assignments on the screen, just separated by a semicolon (by example, assignment1; assignment2;...). I tried to use af:foreach, but that doesn't support the collections. Will there be a chance to do this in a different way? It would probably work if I create a new query asking for assignments to a user, but I don't want to create an additional query for cases like this.

    Thank you
    Brahim

    Hi John, try instead of foreach and it should work. Recent have been prety much more simply in one of my pages:

    
      
      
    
    

    Kind regards

    ~ Simon

  • Using nilibddc dll with Python types

    I try to use this 'DiaDEM connectivity library' with Python to read files produced by our acquisition of data in the format *.tdms system, but examples of dll are all for C and Matlab. Has anyone else done that could give me advice? I made some progress (see below) by trial and error, but it is slow and I have to get it up and running quickly. I'm trying to reproduce the functions of the C example for reading a file (no need to write again).

    I'm using Python 2.6 on a Windows XP computer.

    Here's what I have so far:

    ------------------------------------
    # Module to manage a *.tdm and a *.tdms National Instruments TDM
    files in the format #.
    #
    types import *.

    #Define of the short names for the required dll functions
    DDCOpen = windll.nilibddc.DDC_OpenFile
    DDCNumGroups = windll.nilibddc.DDC_GetNumChannelGroups
    DDCReadGroups = windll.nilibddc.DDC_GetChannelGroups
    DDCGroupStrPropLen = windll.nilibddc.DDC_GetChannelGroupStringPropertyLength
    DDCGroupProperty = windll.nilibddc.DDC_GetChannelGroupProperty

    # File handles are pointers to 32-bit integer
    Czero = c_int (0)
    File descriptor = point (czero)

    # Retrieve a handle to the file
    DDCErrCode = DDCOpen (' Test_0919.tdms, 'PDM' file descriptor,)
    Print (DDCErrCode) # must be zero
    MyFile = real FileHandle.contents #The file handle

    # Find several groups
    grpnum = c_int (0)
    numPtr = point (grpnum)
    DDCErrCode = DDCNumGroups (myFile, numptr)
    Print (DDCErrCode)
    # Si DDCErrCode == 0: print (numptr.contents, grpnum)

    # Read groups [UNTESTED]
    groups = c_int (0) * grpnum
    grpptr = point (groups) # must be a pointer to the memory to organize grpnum
    Number of fields DDCChannelGrouphandle
    DDCErrCode = DDCReadGroups (myFile, groups, grpnum)
    Print (DDCErrCode)
    If DDCErrCode == 0: Print (groups)

    # Length of name of the Group [UNTESTED]
    namelen = c_int (0)
    nlenptr = point (name)
    DDCErrCode = DDCGroupStrPropLen (groups [0], 'name', namelen)
    Print (DDCErrCode)
    If DDCErrCode == 0: Print (namelen)

    #Make a buffer to hold the name, then get it back [UNTESTED]
    grpname = create_string_buffer(namelen+1)
    nameptr = point (grpname)
    DDCErrCode = DDCGroupProperty (groups [0], 'name', nameptr, namelen + 1)
    Print (DDCErrCode)
    If DDCErrCode == 0: Print (grpname.value)

    # Read the Group channels and get the names [UNTESTED]

    # Read the string # data values [UNTESTED]

    # Read the string of data values [UNTESTED]

    # Process the data values [UNTESTED]

    # Write data processed in a file in a different format [UNTESTED]
    ------------------------------------

    The "TESTED" sections are more or less pseudo-code representing things I have to do for now. The others work. These will be finally in a module.

    Cross-posted on some forums of Python.  Thanks in advance for any help.

    Kind regards
    Allen

    Can find out:

    http://Pypi.Python.org/Pypi/cTDMS/0.9

    or alternative link

    http://code.Google.com/p/ctdms/

    They seem to be exactly what you're looking for... (two years later)

  • Crash when using table hints with structure of the place

    Hello!

    I have a problem with structure of the place. I want to index a matrix of waveform (16 items) and when I run or save this labview close...

    I have no problem with 15 elements of waveform table or less, but I need to index items 16...

    Thanks for your help!

    Same 2009 don't crash after adding index up to 20. Thus, it may be a problem with Version 8.5

  • Variable declaration of liaison for the collection type.

    Hello

    I have a procedue with collection (type) as output parameter.
    How can I run the procedure of the SQL prompt.

    Can I declare a variable binding in the form of a parameter that stores the type of collection.

    Thanks and greetings
    Rambeau

    Monica wrote:
    Yes, it's a typo. I also tried with "STOP_STAT_RES", but the result is the same.

    What are you talking about? Without doubt, one of the two generates a compile exception because the data type is incorrect...

    Monica wrote:
    STOP_STAT_RES is a collection of number abd the data types Date.

    Do you mean that you have created a user-defined type (e.g. CREATE TYPE >) which has attributes NUMBER and DATE? And that STOP_STAT_RES is a collection of such user-defined? Can you post the this user-defined type declaration?

    Justin

  • Bulk collect into a Table nested with Extend

    Hi all
    I want to get all the columns of the table emp and dept. So I use bulk collect into the concept of nested table.

    *) I wrote the function in three different ways. EX: 1 and 2 (DM_NESTTAB_BULKCOLLECT_1 & DM_NESTTAB_BULKCOLLECT_2) does not give the desired result.
    *) It only gives the columns of the EMP table. That means it takes DEPT & columns of the EMP table, but it only gives columns of table EMP.
    ) I think, there is something problem with nested table Extend.
    ) I want to know infested.
    Can we use bulk collect into a table nested with extend?
    If it is yes then fix the below codes (EX: 1 & EX: 2) and can you explain me please?


    Codes are given below *.

    CREATE OR REPLACE TYPE NEST_TAB IS TABLE OF THE VARCHAR2 (1000);

    EX: 1:
    ----
    -Bulk collect into a Table nested with Extend-
    CREATE or replace FUNCTION DM_NESTTAB_BULKCOLLECT_1
    RETURN NEST_TAB
    AS
    l_nesttab NEST_TAB: = NEST_TAB();
    BEGIN
    FOR tab_rec IN (SELECT table_name
    From user_tables
    WHERE table_name IN ('EMP', 'Department')) LOOP
    l_nesttab.extend;

    SELECT column_name
    bulk collect INTO l_nesttab
    Of user_tab_columns
    WHERE table_name = tab_rec.table_name
    ORDER BY column_id;
    END LOOP;

    RETURN l_nesttab;
    EXCEPTION
    WHILE OTHERS THEN
    LIFT;
    END DM_NESTTAB_BULKCOLLECT_1;

    SELECT *.
    TABLE (DM_NESTTAB_BULKCOLLECT_1);

    OUTPUT:
    -------
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO

    * Only the EMP table columns are there in the nested table.
    -----------------------------------------------------------------------------------------------------

    EX: 2:
    -----
    -Bulk collect in the nested with Extend based on County - Table
    CREATE or replace FUNCTION DM_NESTTAB_BULKCOLLECT_2
    RETURN NEST_TAB
    AS
    l_nesttab NEST_TAB: = NEST_TAB();
    v_col_cnt NUMBER;
    BEGIN
    FOR tab_rec IN (SELECT table_name
    From user_tables
    WHERE table_name IN ('EMP', 'Department')) LOOP
    SELECT MAX (column_id)
    IN v_col_cnt
    Of user_tab_columns
    WHERE table_name = tab_rec.table_name;

    l_nesttab. Extend (v_col_cnt);

    SELECT column_name
    bulk collect INTO l_nesttab
    Of user_tab_columns
    WHERE table_name = tab_rec.table_name
    ORDER BY column_id;
    END LOOP;

    RETURN l_nesttab;
    EXCEPTION
    WHILE OTHERS THEN
    LIFT;
    END DM_NESTTAB_BULKCOLLECT_2;

    SELECT *.
    TABLE (DM_NESTTAB_BULKCOLLECT_2);

    OUTPUT:
    -------
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO

    * Only the EMP table columns are there in the nested table.
    -------------------------------------------------------------------------------------------

    EX: 3:
    -----

    -Collect in bulk in a nested Table to expand aid for loop.
    CREATE or replace FUNCTION DM_NESTTAB_BULKCOLLECT_3
    RETURN NEST_TAB
    AS
    l_nesttab NEST_TAB: = NEST_TAB();
    TYPE local_nest_tab
    THE VARCHAR2 ARRAY (1000);
    l_localnesttab LOCAL_NEST_TAB: = LOCAL_NEST_TAB();
    NUMBER x: = 1;
    BEGIN
    FOR tab_rec IN (SELECT table_name
    From user_tables
    WHERE table_name IN ('EMP', 'Department')) LOOP
    SELECT column_name
    bulk collect INTO l_localnesttab
    Of user_tab_columns
    WHERE table_name = tab_rec.table_name
    ORDER BY column_id;

    BECAUSE me IN 1.l_localnesttab. COUNTING LOOP
    l_nesttab.extend;

    L_NESTTAB (x): = L_LOCALNESTTAB (i);

    x: = x + 1;
    END LOOP;
    END LOOP;

    RETURN l_nesttab;
    EXCEPTION
    WHILE OTHERS THEN
    LIFT;
    END DM_NESTTAB_BULKCOLLECT_3;

    SELECT *.
    TABLE (DM_NESTTAB_BULKCOLLECT_3);

    OUTPUT:
    ------
    DEPTNO
    DNAME
    LOC
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO

    * Now, I got the desired result set. DEP. and columns of the Emp Table are in the nested Table.




    Thank you
    Ann

    COLLECTION BULK cannot add values to an existing collection. It can only crush.

  • calling a procedure with nested table as input param type

    Hello

    I have a guy like that table.

    create or replace type table_type like table of the varchar2 (4000);

    I have a procedure like this.

    proc_temp (v_table_type, table_type)

    Start

    key code...

    end;


    I have a table like this.

    tab_test_data

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

    ABCD

    efghd

    MNOP

    XYXX

    I want to move this data in table tab_test_data as param of entry while calling this proc could you please tell me how the procedure that calls the statement will be the writtern.

    I try like this.

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

    declare

    TABLE_TYPE v_table;

    Start

    proce_temp (v_table); - here, I want to pass data to the table as entry

    end;

    /

    You already have the data in a table (tab_test_data), then why don't you just use the table inside the proce_temp? Why should I set a collection type and pass it as a parameter? Collections use the expensive PGA memory. If the application that you build this way may have some serious scalability issues.

    Sort of a technical solution would be like this. You can use BULK COLLECT.

    declare
    TABLE_TYPE v_table;
    Start
    Select to bulk column_name fired in v_table
    of tab_test_data;

    proce_temp (v_table);
    end;
    /

  • How to use a collection type of variable binding to execute dynamic statement

    Hello

    We have a case where we copy selective data from A to B schema of schema in an oracle database. The copy is obtained using
    run immediately 'insert'. target_schema |'. TableA select * from '. from_schema |'. where a.id table (select test_id of ' | from_schema |'.) Table c); " ;

    It works very well it takes an average of 10 seconds to copy around 14 paintings. We have an obligation to bring this time to 2 seconds. An observation was the clause
    "Select test_id of ' | '. from_schema |'. Table c"in the statement sql preceding repeats for many inserts. So, we thought bulk get this set of codes of practice and use a vatiable bind to collection for the immediate run clause type. Any suggestions on how to achieve this?

    Thank you
    Chauvin

    >
    in fact, you cannot use native liaison as table_names in dynamic sql variable.
    >
    True - but OP uses a query string and can factor that string to do what was wanted
    >
    So we thought bulk get this set of codes of practice and use a collection type bind vatiable
    >
    It works

    CREATE OR REPLACE Package PK_BULK as
        Type code_tab_type is table of varchar2(25) index by varchar2(25);
        Type code_list_type is table of varchar2(25);
        FUNCTION  SF_LOAD_CODE_TAB (TAB_NAME IN VARCHAR2, COL_NAME IN VARCHAR2) RETURN CODE_TAB_TYPE;
    End PK_BULK;
    /
    
    CREATE OR REPLACE Package BODY PK_BULK as
        FUNCTION  SF_LOAD_CODE_TAB (TAB_NAME IN VARCHAR2, COL_NAME IN VARCHAR2) RETURN CODE_TAB_TYPE is
        query VARCHAR2(100);
        code_tab CODE_TAB_TYPE;
        code_list code_list_type;
    Begin
        query := 'SELECT ' || COL_NAME || ' FROM ' || TAB_NAME;
        EXECUTE IMMEDIATE query BULK COLLECT INTO code_list;
        FOR i IN code_list.FIRST .. code_list.LAST LOOP
           code_tab(code_list(i))  := code_list(i);
        END LOOP;
        RETURN code_tab;
    End;
    End PK_BULK;
    /
    
    -- test it
    declare
      i VARCHAR2(25);
      code_tab PK_BULK.CODE_TAB_TYPE;
      BEGIN
        CODE_TAB := pk_bulk.sf_load_code_tab ('emp', 'ename');
        i := code_tab.first;
        while i is not null loop
          DBMS_OUTPUT.PUT_LINE (code_tab(i));
           i := code_tab.next(i);
        end loop;
      END;
     
    
  • problems with "importing the catalog" & "incompatibility of collection type.

    I try to keep the 2 catalogues on 2 computers different sunchronized.  I export photos

    and collections (in fact a web gallery) from one computer to another, and

    I get an error "collection type mismatch", which prevents the photos to be a

    Bakery to the collection.  I have exported and imported the flash gallery template

    from one system to the other to ensure that the models are identical.  A

    LL as the photos, keywords and attributes seem to be imported correctly, but the photos are not added

    to the collection. Anyone with successful export/import of collections between computers?

    I use LR 2.7 on Win 7 and Vista.

    Thank you

    Mark

    No. I just quit using all special collections. Only the regular use. Hope it gets fixed in LR3 and I can reuse print collections.

  • Data Modeler: how to create and use the collection type

    Hello
    essentially of departure I don't understand how (for example) create and use the data based on the type of data varray type.

    Please notify.
    Thank you
    Andrew

    Hi André,.

    You can create new types of collection (varray/table) in two ways:
    (1) in the browser - find 'Types of data' > 'Types of Collection' node menu dropdown - there just 'create new collection type' it
    (2) in the types of data model diagram - you can create collection "some type structured" or collection of references to the it - use 'new Collection... '. "tool and click first on sight structured type and after the structured type that will contain the collection - new attribute is added to the latter and if there is none this type of collection already didn't set the new collection type are created and you can change it later.

    Philippe

  • Can I use only the a collection of photographs with Photos Apple '&' Adobe Creative Cloud

    I am new to Adobe Creative Cloud and have used Apple base 'Photos' collect/store my photos (mainly photographs of family more than 40 years) - Great to take pictures on my iPad to show parents.

    I bought Creative cloud not only to improve potentially good photographs of family and finally properly organize them, but to use it with my new found passion for digital SLR photography.

    However, I now seem to have two series double massive photographs. The one with the Photos of the Apple and the other with Lightroom. Is there a simple way, I use two Photos Apple & Lightroom just the single series of photographs, (though that I need to make changes to the image of files/folders exclusively through Lightroom) other than to have to constantly import/export photographs of an application to the hard drive before, before import/export photos to the other application?

    Thanking you in advance,

    M.

    Hello mv.

    The time that you have moved your iPhotos to Lightroom gallery, I believe that you used the Lightroom plugin to move the library

    There is also an option while you import images from iPhoto "keep files referenced in your iPhoto library.

    If this option is not duplicate images.

    Please let us know if it helps.

    Kind regards

    Tanuj

  • Issue with Collections

    I created an obj_cond object and a nested table: nt_cond of type obj_cond. In the select statement, I'm a big collect in the nested table. I have 2 questions on this note
    1. my select statement gives a few duplicate values, but I don't want duplicates. When I use the distinct clause it did not allow me to do. How can we get the separate data in the nested table?
    2. Im trying to print the output of the nested table, but I am not able to print in a syntax unique dbms_output. There is reverse?
    Please, share your ideas.
    --object creation
    CREATE OR REPLACE TYPE obj_cond AS OBJECT (
      c_id number,
      r_id number
    );
    
    --nested table 
    create or replace type nt_cond as table of obj_cond;
    
    --plsql block
    begin
    v_nt_cond nt_cond;
    
    select obj_cond(id, rid) bulk collect into v_nt_cond -- if i give  obj_cond(distinct id, rid): Oracle says distinct clause not allowed here
    from tab1;
    ..
    ..some more statements
    -- trying to print the contents of nested table
    for i in  v_nt_cond.first.. v_nt_cond.last
     loop
          DBMS_OUTPUT.PUT_line(v_nt_cond(i).c_id); -- ||","||v_nt_cond(i).r_id -- this line throws error, but i can print either one of the attributes from the nested table type
     end loop;
    
    end;
    Published by: michaelrozar17 on December 18, 2012 20:59

    Published by: michaelrozar17 on December 18, 2012 21:00

    Published by: michaelrozar17 on December 18, 2012 21:14

    michaelrozar17 wrote:

    Sorry, I was able to solve by giving the comma between single quotes. But when I try to display using the DBMS_OUTPUT, he showed up nothing. However the below statement helped to display the columns in the object

    DBMS_OUTPUT.PUT(v_nt_cond(i).c_id);
    DBMS_OUTPUT.PUT_line(','||v_nt_cond(i).r_id);
    

    Remember that DBMS_OUTPUT is not a display device. It is an array of strings in memory expensive server - use sparingly to save/store text lines, the customer may request from the server and make the server output.

    With regard to the display of the content of an object. It makes more sense to set the display of this once - object using a member method. For example, using the sample code that I posted above:

    Adding a new Member to the type method:

    member function Display return varchar2
    

    Implementation of the method in the body type:

    create or replace type body TSomeObject as
           ..
    
            member function Display return varchar2 is
            begin
                    return(
                            self.property1||','||self.property2
                    );
            end;
    end;
    

    A single definition of the way in which the properties of the object should be displayed as a string. Now, you can simply do the following:

    ..
      DBMS_OUTPUT.put_line( v_nt_cond(i).Display );
    ..
    
  • I used to work with Interbase and Firebird and used databases the keyword "domain". I am now switchig to Oracle as a primary database and would like to find an alternative appropriate "domain" in Oracle, as it appears he does ' t taken in charge the stand

    I used to work with Interbase and Firebird and used databases the keyword "domain".

    I am now switchig to Oracle as a primary database and would like to find a suitable

    Variant of 'area' in Oracle such that it appears he does ' t support the standard SQL syntax.

    for example:

    Create the int2 smallint field;

    create domain id2 int2 default 0 not NULL; / * for the primary key * /.

    create domain rel2 int2 default 0 not NULL; / * foreign key * /.

    I tried a couple of approaches to achieve this "area" is:

    1. create synonym - cannot be used with the basic types;

    2. create the type - type of work, but the implementation is rather clumsy

    and can be costly in terms of performance.

    Is there something else to Oracle that can emulate the feature "domain"?

    Thanks in advence, I got really approciate any help on this.

    Alex.

    Your best approximation is CREATE TYPE, but their is nothing of what is a 100% adjustment.

    For example, if you create a domain with a check constraint you need to implement than separately on each table.

  • Slider with Collection performance comparison

    Dear all,

    In my package (existing production) same cursor is opened and closed many times. What is the performance benefit or impact of this method?  What are all the oracle process will be open and close a cursor?

    In my personal opinion, instead of opening and closing several times, same cursor using the collection preferred. Am I wrong?

    [code]

    DECLARE

    v_account_no VARCHAR2 (20);

    CURSOR c1

    IS

    SELECT FROM test_table WHERE account_id account_no = 121321;

    BEGIN

    OPEN c1;

    FETCH c1 INTO v_account_no;

    -make some process

    CLOSE c1;

    END;

    BEGIN

    OPEN c1;

    FETCH c1 INTO v_account_no;

    -make some process

    CLOSE c1;

    END;

    [code]

    instead of code above can I use code below for the improvement of the performance?

    [code]

    DECLARE

    v_account_no VARCHAR2 (20);

    type v_account_type

    IS

    TABLE OF test_table.account_no%type;

    v_account typ v_account_type;

    BEGIN

    Collect SELECT account_no in bulk

    IN v_account typ

    FROM test_table

    WHERE account_id = 121321;

    FOR I IN 1.v_account typ.count - in a single loop, we can make the entire process

    LOOP

    BEGIN

    -make the entire process

    END;

    BEGIN

    -make the entire process

    END;

    END LOOP;

    END;

    [code]

    Thank you

    S.Balraj

    2781328 wrote:
    
    Dear Billy,
    Yes you are correct. but i could not change existing package.just want to know which logic is better.
    
    Thanks.
    S.Balraj
    

    Well well, or logic is really better, because none are active parallel and thread-safe, in order to scale. This is a serialized approach - I think inevitably a problem in data bases of today as volumes are growing and processing windows are required to be decreased.

    For the existing logic remember the following.

    Hit with a single pass data when possible. Several passages are not only more I/O, but potentially see different versions of what should be a coherent set of data in the same transaction.

    Context for the SQL engine switches are expensive. But the memory of the server assigned to the private use of process, may be MORE expensive. So by all means to reduce context switches. But not at the expense of negatively impacting the server memory.

    And these 2 questions, said that the current approach used, the best approach is one implicit cursor (optimized as an extraction in bulk by the PL/SQL engine) and inside the loop to do "all treatments.

    For example

    begin
      for c in( select .. ) loop  -- use FOR UPDATE if the selected rows are changed in processing
        do all processing;
      end loop;
      commit;
    end;
    

    A minimal code and moving parts. No need for an explicit cursor. Not need to make use of explicit a collection. No need to play stupid games "buffer cache" with collections in PL/SQL.

  • problem with the type of local and global

    Hi the gems...

    I have a plsql package. In the package, I defined a proc that takes two input parameters of type simple number and a parameter of a type of output collection.

    create or replace package pack_1 as body
    procedure proc_1 (p_number1 in number, p_number2 number, p_tt_table to tt_table) as
    v_tt_table tt_table:=tt_table();
    type c_ref_cursor is ref_cursor;
    v_c_ref_cursor c_ref_cursor;
    v_sql varchar2 (20000): = < a large sql using bind variables p_number1 and p_number2 >

    Start
    Open the v_c_ref_cursor for v_sql using p_number1, p_number2;
    loop
    extract the v_c_ref_cursor in v_tt_table;
    When the output v_tt_table.count = 0;
    for idx in 1.v_tt_table.count
    loop
    < business logic >
    end of loop
    end loop;
    close v_c_ref_cursor;
    < excpetion_block >;
    end;

    < several codes for the rest of the package >



    When I execute the proc_1 then he throws me error of data type incosistent while to fetch the v_c_ref_cursor of cursor in the v_tt_table variable.
    ORA-00932: inconsistent data types: expected - was -.
    But I have checked that the output of the query is similar with the type of variable.

    Now, a few facts: the tt_table of the user-defined table type is made from ot_table (create or replace tt_table to ot_table Board).
    The parent type i.e. ot_table has the same columns of this query in v_sql my proc.
    The ot_table and the tt_table are global types.

    But when I did these two types as local types, then the proc works very well. But I need them as global types only according to the condition in java.

    Please help me. The database is 11 GR 2.

    Thanks in advance.

    user12780416 wrote:

    I'm trying to keep it in the simplest form... Please take a look...

    Ah... Easy to solve.

    The projection of SQL must be an object of type ot_test_type for extraction in bulk work.

    Your projection of SQL look like this:
    cursor c1 is select object_name from user_objects;

    object_name is a string - it is not of type ot_test_type.

    You must change the projection to return ot_test_type. This is done by using the default constructor for that type of object.

    For example
    cursor c1 is ot_test_type (object_name) select as the user_objects OBJECT;

    He may now be in bulk recovered in tt_test_type.

Maybe you are looking for

  • Emoticons on the iOS 9.3.2

    Are frequently used emojis pre filled on iOS 9.3.2 when downloaded via iTunes? Thank you

  • Who should be subjected to the App world, Simulator or device?

    Hello I use the SDK of webworks for BB10 command-line to package and sign my apps. I found 2 subfolders named "Simulator" and "peripheral" generated. My first question is what should I submit the .bar file in the subfolder "peripheral" in appworld? I

  • Storm Simulator has Java runtime error

    When I try to use the Simulator for Storm 9500 and 9550 I get a java error message.  "Error Eror - BlackBerry Smartphone Simulator, inside the JVM application: 0x00000008 access violation reading." This occurs when the JDE tries to connect to the Sim

  • update the devulcanization to trial applications

    My apps have returned back to trial versions and now tell to buy me next to them, even if I didn't have my subscription for a few months (I bought a years value) I tried to uninstall the application and reinstall it, uninstall creative cloud using th

  • Duddy experience fair merit answers

    A poster entitled fair play put up a logo, they did and asked for comments. It was called is not a question and promptly locked. I don't think it was fair. A large amount of bandwidth is lost here with questions will answer a quick Google and when a