FORALL insert error

Hi,
I am using 10g.
I am inserting emp table records into emp_temp table using FORALL, i am getting some implementation restriction error while doing this.
DECLARE
CURSOR EMP_CUR IS
SELECT * FROM EMP;
TYPE TAB_EMP_CUR IS TABLE OF EMP%ROWTYPE;
V_TAB TAB_EMP_CUR;
BEGIN
OPEN EMP_CUR;
FETCH EMP_CUR BULK COLLECT
INTO V_TAB;
FORALL I IN 1 .. V_TAB.COUNT
INSERT INTO EMP_TEMP
VALUES
(V_TAB(I).ENO,
V_TAB(I).ENAME,
V_TAB(I).JOB,
V_TAB(I).MGR,
V_TAB(I).SAL,
V_TAB(I).COMM,
V_TAB(I).HIREDATE,
V_TAB(I).DEPTNO);
CLOSE EMP_CUR;
END;
please look into this.
Thanks,
Vinod

Hi User,
The error
implementation restriction: cannot reference fields of BULK In-BIND table of recordsis because bulk bind cannot use table of composite types.
Please See the below,
http://dba-blog.blogspot.com/2005/08/using-of-bulk-collect-and-forall-for.html
And rewrite your code like this,
DECLARE
   CURSOR EMP_CUR
   IS
      SELECT EMPNO, ENAME
        FROM EMP;
   TYPE TAB_EMP_EMPNO IS TABLE OF EMP.EMPNO%TYPE;
   V_TAB_EMPNO   TAB_EMP_EMPNO;
   TYPE TAB_EMP_ENAME IS TABLE OF EMP.ENAME%TYPE;
   V_TAB_ENAME   TAB_EMP_ENAME;
BEGIN
   OPEN EMP_CUR;
   FETCH EMP_CUR BULK COLLECT INTO V_TAB_EMPNO, V_TAB_ENAME;
   FORALL I IN V_TAB_EMPNO.FIRST .. V_TAB_EMPNO.LAST
      INSERT INTO EMP_TEMP
                  (EMPNO, ENAME
           VALUES (V_TAB_EMPNO (I), V_TAB_ENAME (I)
   CLOSE EMP_CUR;
END;Thanks,
Shankar

Similar Messages

  • Insert error message into session

    hi all,
    I need to Insert error message into the log of SM35 session.
    1. I have created a BDC that creates a session in SM35.
    2. The session is scheduled daily and gets executed automatically.
    3. there is a scenario where the session should be stopped manually with a error message.
    the system doesnt generate any error automatically for that scenario
    can any one pls tell me whether its possible to put a manual error into SM35 session log ?
    Thanks in Advance,
    Santhosini

    Hi,
    There's a few ways you could do this;
    Construct your message first (i.e. combine the message text and variables into one string, then move this into the table)
    or
    Don't store the text, instead store the message ID, number and variable parts of the message.  This has the advantage if you're running a multi-language system the log can be used by users of different languages.
    Regards,
    Nick

  • SQL Insert Error Error in allocating a connection. Cause: No PasswordCreden

    Friends,
    While testing my connection in the Sun java Application Server , I get the following error .
    "SQL Insert Error Error in allocating a connection. Cause: No PasswordCredential found "
    Can somebody please guide ?
    regards
    Dhiraj

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • I am getting ORA-20001: Seed insert error while seed translatable text step

    Hi,
    I am getting this error while English to Arabic translation in the Seed translatable text step
    ORA-20001: Seed insert error: WWV_FLOW_ICON_BAR.ICON_IMAGE_ALT ORA-00001: unique constraint (APEX_030200.WWV_FLOW_TRANSLATABLE_TEXT_PK) violated
    Can i get any suggetion from your side.
    Thanks,
    nar

    Did you ever figure this out. Because I also have this error.

  • Insert error in master-detail form

    Probably a stupid question. When I populate the master block of
    a master detail form from an LOV, I am asked to save the form.
    Since the information is loaded from the LOV, there are no
    changes to save. If I answer yes, it gives an Insert error due
    to the primary key violation in the master block table. If I
    answer no, it opens the detail block and gives the correct
    information. The problem is that when I enter information into
    the detail block and try to save it, I get the same error
    message regarding the primary key violation in the master block.
    The form works fine if I do not populate the master block from
    the LOV (or from select statements in triggers). Any suggestions
    will be appreciated.
    LS

    Hi,
    Check for the form or block status.Looks like the status has
    changed.Thats why u r getting the message.If any of the base
    table item has changed then u will get such a message.Try
    working on this an check it out.
    Thanks
    Vinod

  • 750GB Seagate External Drive - Disk Insertion error

    I have two 750 GB Seagate External hard drives, which are daisy chained to my PowerMac G5. I was transfering files between external hard drives, when all of a sudden the computer crashed. Once I restarted, the computer gave a disk insertion error:
    Disk Insertion
    The disk you inserted was not readable by this computer.
    The options are: "Initialize..." "Ignore" and "Eject"
    One of the external hard drives is fine, the one which was directly hooked up to the computer. However, the drive that was daisy chained still gives this error. I have tried connecting the drive to another mac, but it still gave this error. I also tried connecting it to a PC, and it was detected, but it did not show up under "My Computer."
    Is there a way that I could save or re-format the hard drive WITHOUT loosing the data?
    Please let me know. This is very urgent. I have a lot of important data on the hard drive. Any help/ideas/suggestions are greatly appreciated. Thank you very much.

    Hello! Sometimes a large file transfer will lock or crash a computer. With a crash or hard restart the disk's directory is damaged and if disk utility can't repair it then DISKWARRIOR is about the only utility that can fix the problem. The data usually isn't gone. The disk's directory (road map) of where every piece of info is located on the drive has become corrupt hence there's nothing for it to find. Diskwarrior is the best utility for repairing the directory. Regular use of DW will prevent "most" disk problems as it's the directory that gets messed up rather than a physical problem with the disk in most cases. In cases where DW can't fix the problem DataRescue II can sometimes recover valuable data. Tom

  • How do I resolve a disk Insertion error?

    Hello and thank you,
    I recently upgraded my G4 to The tiger OS. All went smooth during the upgrade but, when the computer restarted both of my 17.1 gb quantum Atlas hard drives went missing and I received two disk insertion errors. I selected initialize but was unable to select any options in the disk utilities. Both hard drives still appear.
    I decided to restarted my computer but this time my mac froze on the gray screen and told me to restart once more. I shut it down unplugged all cables and disconnected the hard drives thinking these where the problem and powered up. I saw a file folder with a question mark then it operated as normal.
    After some experimenting I've deduced that when both hard drives are connected the G4 will freeze at the gray screen 75% of the time. If both Hard drives are not connected the machine will run fine with the exception of showing the question mark file.
    Is there a way to have my mac recognize the two hard drives or is tiger not compatible with these hard drives?

    To cure the question mark at startup problem...
    System Preferences>Startup Disk, then select your boot drive.
    What kind of cases are these drives in? FW, USB, Internal, Other?

  • SQL 2005 Insert Error

    Hi Folks-
    It has been a while and I hope this finds you all doing well. 
    I am working oin a customer application and we are experiencing intermitment MS SQL 2005 insert errors.  We have isolated the cause as the use of the special character, the apostrophe (i.e. " " ") in a material/item description.  The underlying MES application can accept the apostrophe along with the SAP MM back-end, but not MII,  The MII version is 12.0.6 Build 14.  The application also uses the Java Plug-in version 1.6.0_07, which is also the Java Runtime version.  I am not sure of the SQL jdbc being used but was hoping that perhaps there was a version that could "handle" this special character issue or if there was a non-programmatic way to address this.  At this point we are anxious about changing Master Data.
    Any insights or suggestions would be appreciated.  Thanks in advance and I look forward to your responses.
    Kevin Fitzgerald
    Invensys Operation Management

    Hi Kedar-
    This is great information and I thank you for your insights.  I do have what I hope are 2 brief follow-on questions:
    1. Does the single quote/apostrophe represent a general escape character that can be used in all cases?  Are there others (i.e. \n, etc.)
    2. Your special characters cited above do not include the asterik, *.  My customer has also decided to use this special character in a new product description (go figure!!).  Can this be "escaped out" via the same means?
    I have been able to successfully use the java function stringreplace to alter the text as you suggest- even for a local and I hope transaction variable.  Any additional comments per my questions above would certainly advance the cause.
    Thanks again and I look forward to your comments.  Take care and be safe.
    Kevin

  • Inserting error: 100500: non-ORACLE exception

    Hi,
    I have bunch of inserts in post_update trigger in Forms. When I commit the changes , i notice the error message inserting error: 100500: non-ORACLE exception. I have 6 inserts and only one insert is fired. Please help. I am using forms 6.0.8
    Thanks,

    Hi,
    Thanks for the help. I had 6 inserts in one stored proc hence the problem. I split it into 3 different procs and it works now.Thanks Again.
    I didn't have any call to next-record etc...

  • How to Ignore Insert Errors in LKM.

    Hi,
    I would Like to know how to Ignore insert errors in Oracle Data Integrator (Something like flat file mechanism, where the errors are located into .bad and .error files). If My Step 'insert new records' thrown an error regarding to Wrong Data, Constraint, etc. I would like to redirect the records with error to another location without affect the performance.
    is this possible throws Interface configuration or something like that?
    Thanks in advance.

    Thanks for your reply. there is 'deprecation warnings' under Project Properties--> Compiler. These errors are not deprecation errors.
    The below code doesn't help either.
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    </jsp-property-group>
    </jsp-config>

  • G5 comes up with Disk Insertion Error

    My G5 will mount CDs and software DVDs without a problem but now when I insert a film DVD I get the 'Disk Insertion Error' and the disk won't mount. The disk appears when I run the Disk Utility but I can't do anything with it.
    Help!!!!!

    HI Tom,
    The error message that you are receiving indicate that your notebook is attempting to boot from the LAN connection rather than from its own hard drive or CD-ROM. I suggest you check that the boot sequence is correctly specified in your BIOS, or alternatively press F12 during your power on and you should get the boot device sequence menu appear so that you can specify that you want to boot from your hard drive.
    regards,

  • Overriding insert error in PL/SQL

    Hi all,
    I have a piece of PL/SQL code that will insert data into a table in a loop.
    Because of some data inconsistency in my original data table, this PL/SQL code does not run at all.
    How do I override the errors?
    By overriding what I mean is that my procedure should not stop at the first point of inconsistancy.
    I dont want to insert inconsistant rows, but all consistant rows must be inserted.
    Again I want to show the details of the no of rows not inserted while running the procedure. How do I do that.
    for eg: 30 Rows Inserted, 20 rows dropped!
    Thanks in advance.

    The following piece of code will insert all the proper data and reject unsupported data till the end -
    DECLARE
      TYPE EMP_REC IS TABLE OF EMP%ROWTYPE INDEX BY BINARY_INTEGER;
      EMP_TAB EMP_REC;
      CURSOR C1
      IS
        SELECT EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO,CODE
        FROM E_EMP;
      CTR  VARCHAR2(30);
      CTR2 VARCHAR2(300);
    BEGIN
      OPEN C1;
      LOOP
        FETCH C1 BULK COLLECT INTO EMP_TAB;
        FORALL I IN 1..EMP_TAB.COUNT SAVE EXCEPTIONS
          INSERT INTO EMP VALUES EMP_TAB(I);
         EXIT WHEN C1%NOTFOUND;
      END LOOP;
      CLOSE C1;
    EXCEPTION
      WHEN OTHERS THEN
        FOR i IN 1 .. SQL%BULK_EXCEPTIONS.COUNT LOOP
             dbms_output.put_line(SQL%BULK_EXCEPTIONS(i)
                                  .ERROR_INDEX || ' : ' ||
                                  SQLERRM(-1 * SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
        CTR := SQL%BULK_EXCEPTIONS(i).ERROR_INDEX;
        CTR2 := -1 * SQL%BULK_EXCEPTIONS(i).ERROR_CODE;
        INSERT INTO EMP_AUD VALUES(CTR,CTR2);
        END LOOP;
         DBMS_OUTPUT.PUT_LINE('NUMBER OF INSERT STATEMENT FAILED : '||SQL%BULK_EXCEPTIONS.COUNT);
    END;I hope you can take an idea from this code.
    Regards.
    Satyaki De.

  • Bulk Insert Error

    Dear ALl
    Here is my Query. Irs gives following Error. Plz help me.
    Both table Structures are same
    1 declare
    2 type bill_rec_tab is table of BILL_PRINT_FORMAT%rowtype;
    3 bill_rec bill_rec_tab;
    4 begin
    5 select * bulk collect into bill_rec from BILL_PRINT_FORMAT where bill_date = '28-dec-2004';
    6 forall i in 1 .. bill_rec.count
    7 insert into temp_BILL_PRINT_FORMAT values bill_rec (i);
    8* end;
    SQL> /
    select * bulk collect into bill_rec from BILL_PRINT_FORMAT where bill_date = '28-dec-2004';
    ERROR at line 5:
    ORA-06550: line 5, column 28:
    PLS-00597: expression 'BILL_REC' in the INTO list is of wrong type
    ORA-06550: line 5, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 7, column 43:
    PLS-00518: This INSERT statement requires VALUES clause containing a
    parenthesised list of values
    ORA-06550: line 7, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 7, column 1:
    PLS-00435: DML statement without BULK In-BIND cannot be used inside FORALL
    ORA-06550: line 6, column 10:
    PL/SQL: Statement ignored
    Regards
    Lakmal

    Based on table structure provided I tried to use bulk collect & the Block is
    runing with out any problems in Oracle 9i.
    17:24:35 SQL> desc BILL_PRINT_FORMAT
    Name Null? Type
    ACCT_NUM NOT NULL VARCHAR2(14)
    BILL_NUM NOT NULL NUMBER(8)
    BILL_DATE NOT NULL DATE
    BILL_PERIOD_START_DATE DATE
    BILL_PERIOD_END_DATE DATE
    BALANCE_LAST_BILL NUMBER(12,2)
    PAYMENT_ON_PERIOD NUMBER(12,2)
    BILL_CURR_MTH NUMBER(12,2)
    RENTAL NUMBER(10,2)
    FEATURE NUMBER(10,2)
    OTHER NUMBER(10,2)
    LOCAL NUMBER(10,2)
    NATIONAL NUMBER(10,2)
    INTERNATIONAL NUMBER(10,2)
    OPERATOR_ASSISTED NUMBER(10,2)
    DEBIT_ADJUST NUMBER(10,2)
    GST NUMBER(10,2)
    NSL NUMBER(10,2)
    CREDIT_ADJUST NUMBER(10,2)
    INTEREST NUMBER(10,2)
    PRE_COL1 NUMBER(10,2)
    PRE_COL2 NUMBER(10,2)
    PRINT_STAT VARCHAR2(1)
    COMMITMENT NUMBER(10,2)
    DISCOUNT NUMBER(9,2)
    VAT NUMBER(10,2)
    ISP NUMBER(10,2)
    VOICE NUMBER(10,2)
    RETURN_CHQUES NUMBER(10,2)
    IDD_COMMITMENT NUMBER(10,2)
    SMS NUMBER(10,2)
    17:24:50 SQL> desc TEMP_BILL_PRINT_FORMAT
    Name Null? Type
    ACCT_NUM NOT NULL VARCHAR2(14)
    BILL_NUM NOT NULL NUMBER(8)
    BILL_DATE NOT NULL DATE
    BILL_PERIOD_START_DATE DATE
    BILL_PERIOD_END_DATE DATE
    BALANCE_LAST_BILL NUMBER(12,2)
    PAYMENT_ON_PERIOD NUMBER(12,2)
    BILL_CURR_MTH NUMBER(12,2)
    RENTAL NUMBER(10,2)
    FEATURE NUMBER(10,2)
    OTHER NUMBER(10,2)
    LOCAL NUMBER(10,2)
    NATIONAL NUMBER(10,2)
    INTERNATIONAL NUMBER(10,2)
    OPERATOR_ASSISTED NUMBER(10,2)
    DEBIT_ADJUST NUMBER(10,2)
    GST NUMBER(10,2)
    NSL NUMBER(10,2)
    CREDIT_ADJUST NUMBER(10,2)
    INTEREST NUMBER(10,2)
    PRE_COL1 NUMBER(10,2)
    PRE_COL2 NUMBER(10,2)
    PRINT_STAT VARCHAR2(1)
    COMMITMENT NUMBER(10,2)
    DISCOUNT NUMBER(9,2)
    VAT NUMBER(10,2)
    ISP NUMBER(10,2)
    VOICE NUMBER(10,2)
    RETURN_CHQUES NUMBER(10,2)
    IDD_COMMITMENT NUMBER(10,2)
    SMS NUMBER(10,2)
    17:25:13 SQL> declare
    17:25:20 2 type bill_rec_tab is table of BILL_PRINT_FORMAT%rowtype;
    17:25:20 3 bill_rec bill_rec_tab;
    17:25:21 4 begin
    17:25:21 5 select * bulk collect into bill_rec from BILL_PRINT_FORMAT where bill_date = '28-dec-2004';
    17:25:21 6 forall i in 1 .. bill_rec.count
    17:25:21 7 insert into temp_BILL_PRINT_FORMAT values bill_rec (i);
    17:25:21 8 end;
    17:25:22 9 /
    PL/SQL procedure successfully completed.
    17:25:24 SQL>

  • Trap Insert error for update

    Hi, I've to insert/update records in pretty large table, and require an efficient way to do this. The majority of actions will be inserts, although there will be updates. How can I trap an insert constraint error and then do an update instead. Also, is this the most efficient way to do this??
    C.

    You can do something like this:
    sql >> CREATE TABLE tbl_numbers
    2 (
    3 num number ,
    4 description varchar2(20) ,
    5 error varchar2(3) default 'NO'
    6 )
    7 tablespace index_4m
    8 /
    Table created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 1 , 'One' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 2 , 'Two' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 3 , 'Three' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 4 , 'Four' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 5 , 'Five' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 6 , 'Six' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 7 , 'Seven' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 8 , 'Eight' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 9 , 'Nine' )
    4 /
    1 row created.
    sql >> insert into tbl_numbers
    2 ( num , description )
    3 values ( 10 , 'Ten' )
    4 /
    1 row created.
    sql >> commit
    2 /
    Commit complete.
    PROCEDURE PR_INSERT_UPDATE
    IS
    TYPE array_n IS TABLE OF NUMBER ;
    TYPE array_v IS TABLE OF VARCHAR2(20) ;
    t_num array_n ;
    t_description array_v ;
    e_ForallError EXCEPTION ;
    PRAGMA EXCEPTION_INIT ( e_ForallError , -24381 ) ;
    CURSOR cur IS
    SELECT num , description
    FROM tbl_numbers ;
    BEGIN
    OPEN cur ;
    LOOP
    FETCH cur BULK COLLECT INTO t_num , t_description LIMIT 100 ;
    BEGIN
    FORALL i IN t_num.FIRST .. t_num.LAST SAVE EXCEPTIONS
    INSERT INTO tbl_numbers
    ( num , description )
    VALUES ( t_num(i) , t_description(i)||'----------------' ) ;
    COMMIT ;
    EXCEPTION
    WHEN e_ForallError THEN
    t_num.DELETE ;
    FOR i IN 1 .. SQL%BULK_EXCEPTIONS.COUNT LOOP
    t_num.EXTEND ;
    t_num(t_num.COUNT) := SQL%BULK_EXCEPTIONS(i).ERROR_INDEX ;
    END LOOP ;
    FORALL i IN 1 .. t_num.COUNT
    UPDATE tbl_numbers
    SET error = 'YES'
    WHERE num = t_num(i) ;
    COMMIT ;
    END ;
    EXIT WHEN cur%NOTFOUND ;
    END LOOP ;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error Code: '||SQLCODE) ;
    dbms_output.put_line('Error Desc: '||SUBSTR(SQLERRM,1,200)) ;
    RAISE ;
    END PR_INSERT_UPDATE ;
    sql >> select * from tbl_numbers;
    NUM DESCRIPTION ERR
    1 One NO
    2 Two NO
    3 Three NO
    4 Four NO
    5 Five NO
    6 Six NO
    7 Seven NO
    8 Eight NO
    9 Nine NO
    10 Ten NO
    10 rows selected.
    sql >> exec PR_INSERT_UPDATE
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    sql >> select * from tbl_numbers;
    NUM DESCRIPTION ERR
    1 One NO
    2 Two NO
    3 Three YES
    4 Four NO
    5 Five NO
    6 Six NO
    7 Seven YES
    8 Eight YES
    9 Nine NO
    10 Ten NO
    1 One---------------- NO
    2 Two---------------- NO
    4 Four---------------- NO
    5 Five---------------- NO
    6 Six---------------- NO
    9 Nine---------------- NO
    10 Ten---------------- NO
    17 rows selected.

  • FORALL & INSERT

    I am using FORALL to insert all the records in a plsql table to DB table. The order in which the columns are present in the PLSQL table is different from the order in which the columns are present in the DB table.
    Is there anyway to specify particular column order??
    CODE:
    DECLARE
         TYPE claimRec IS RECORD (
              col1 NUMBER,
              col2 NUMBER,
    col3 NUMBER);
         TYPE sample_tbl IS TABLE OF claimRec;
    l_sample_tbl sample_tbl;
    BEGIN
         SELECT      1,
              2,
              3
         BULK COLLECT INTO l_sample_tbl
         FROM DUAL;
         FORALL stg_index IN l_sample_tbl.FIRST .. l_sample_tbl.LAST
         INSERT INTO DUMMY (
                   col4, -- <<<- Not allowing to these specify columns
                   col5,
                   col6)
              VALUES      (
                   l_sample_tbl(stg_index).col1,
                   l_sample_tbl(stg_index).col2,
                   l_sample_tbl(stg_index).col3
    EXCEPTION
         WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE ('EXCEPTION' || SQLERRM);
    END;
    The above program is giving following errors
    PLS-00436: implementation restriction; cannot reference fields of BULK In-BIND table of records
    PLS-00382: expression is of wrong type

    It is not immediately obvious but INSERT supports in-line view in the same way as UPDATE and DELETE, for example...
    INSERT INTO (
      SELECT ...
      FROM   table_name)
    VALUES (...);...the knowledge of which renders this a rather trivial problem.
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL> CREATE TABLE dummy (
      2    col1 NUMBER, col2 NUMBER, col3 NUMBER,
      3    col4 NUMBER, col5 NUMBER, col6 NUMBER);
    Table created.
    SQL> DECLARE
      2     TYPE claimrec IS RECORD (
      3        col1 NUMBER, col2 NUMBER, col3 NUMBER);
      4 
      5     TYPE sample_tbl IS TABLE OF claimrec;
      6 
      7     l_sample_tbl sample_tbl;
      8  BEGIN
      9     SELECT 1, 2, 3
    10     BULK COLLECT INTO l_sample_tbl
    11     FROM   dual;
    12 
    13     FORALL stg_index IN l_sample_tbl.FIRST .. l_sample_tbl.LAST
    14        INSERT INTO (
    15          SELECT col6, col4, col5
    16          FROM   dummy)
    17        VALUES l_sample_tbl (stg_index);
    18  END;
    19  /
    PL/SQL procedure successfully completed.
    SQL> SELECT *
      2  FROM   dummy;
          COL1       COL2       COL3       COL4       COL5       COL6
                                              2          3          1
    SQL> Alternatively if you did this repeatedly you might consider creating the view and just inserting into that.

Maybe you are looking for

  • Creative Cloud Desktop App refuses log-in for Windows 8

    I've been getting this "unknown server error" for 4 days on my windows 8 creative cloud desktop app. I cannot install other CC aps until you resolve this. -- This has been a problem ever since creative cloud FORCED me to "upgrade" the creative cloud

  • How to connect java project to sql server 2008 r2 database

    i want to create an java application which has to create a database and later access it. My problem is that i am not able to connect sql server 2008 r2 database driver on to the netbeans.i have sql server 2008 r2 installed on my system.please suggest

  • Can't preserve opacity and gradients when viewing file outside of illy.

    Okay, so my image is basically a series of very intricate geometries, (made up of lines), superimposed over an image of the milky way. Some of the lines have 85 opacity and some have radial gradients applied to them. I'm wanting to email my file to s

  • Posting Key and Document type

    Hello, I have just detected an inconsistency in one of my SAP environment (Development).  I have an invoice posted from the SD module, document type of this invoice is RV. If there is a reason to cancell this invoice, the transaction used is VF11. Th

  • MSVCR80.dll and windows vista, MSVCR80.dll and windows vista?

    Hi I am not technically minded and have searching for a solution to this problem on line but do not understand the solutions on offer.  I have an error message that says ' this appllcation has failed to start because MSCVR80.dll was not fouond. Re-in