How to insert more than one row in an Oracle table in one go

Hi All,
I am working on a file-XI(BPM)-Oracle scenario.
I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
How can i insert all the other recordsets in the database at the same time.
Pls guide
Thanks in advance.
Regards
Neetu

Hi,
As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
Can there be some other problem.
The transformation is being dane in the BPM.
As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
The two formats are given below
<b>Input:</b>     
        <?xml version="1.0" encoding="utf-8"?>
     <ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
     <EmpGenRecord>
          <APPLICANT_NO>20</APPLICANT_NO>
          <FIRST_NAME>abc</FIRST_NAME>
          <LAST_NAME>xyz</LAST_NAME>
          <FUNCTION>ADMIN</FUNCTION>
          <DESIGNATION>ZA</DESIGNATION>
          <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
          <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
          <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
          <STATUS>A</STATUS>
          <***>M</***>
     </EmpGenRecord>
     <EmpGenRecord>
          <APPLICANT_NO>14</APPLICANT_NO>
          <FIRST_NAME>abc</FIRST_NAME>
          <LAST_NAME>xyz</LAST_NAME>
          <FUNCTION>ADMIN</FUNCTION>
          <DESIGNATION>ZA</DESIGNATION>
          <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
          <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
          <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
          <STATUS>A</STATUS>
          <***>M</***>
     </EmpGenRecord>
</ns:MT_Test_File>
<b>Output</b>
        <?xml version="1.0" encoding="UTF-8"?>
     <ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
     <Statement>
          <SAP_EMPGEN action="INSERT">
               <access>
               <APPLICANT_NO>20</APPLICANT_NO>
               <FIRST_NAME>abc</FIRST_NAME>
               <LAST_NAME>xyz</LAST_NAME>
               <FUNCTION>ADMIN</FUNCTION>
               <DESIGNATION>ZA</DESIGNATION>
               <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
               <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
               <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
               <STATUS>A</STATUS>
               <***>M</***>
               </access>
          </SAP_EMPGEN>
     </Statement>
     </ns0:MT_Emp_No_Generation>
This is a bit urgent.
Pls help
Regards
Neetu

Similar Messages

  • How to insert more than 32k xml data into oracle clob column

    how to insert more than 32k xml data into oracle clob column.
    xml data is coming from java front end
    if we cannot use clob than what are the different options available

    Are you facing any issue with my code?
    String lateral size error will come when you try to insert the full xml in string format.
    public static boolean writeCLOBData(String tableName, String id, String columnName, String strContents) throws DataAccessException{
      boolean isUpdated = true;
      Connection connection = null;
      try {
      connection = ConnectionManager.getConnection ();
      //connection.setAutoCommit ( false );
      PreparedStatement PREPARE_STATEMENT = null;
      String sqlQuery = "UPDATE " + tableName + " SET " + columnName + "  = ?  WHERE ID =" + id;
      PREPARE_STATEMENT = connection.prepareStatement ( sqlQuery );
      // converting string to reader stream
      Reader reader = new StringReader ( strContents );
      PREPARE_STATEMENT.setClob ( 1, reader );
      // return false after updating the clob data to DB
      isUpdated = PREPARE_STATEMENT.execute ();
      PREPARE_STATEMENT.close ();
      } catch ( SQLException e ) {
      e.printStackTrace ();
      finally{
      return isUpdated;
    Try this JAVA code.

  • How to insert more than 12 items using BDC for MB1C

    Hi,
    When we use LSMW for data transfer of MB1C transaction, more than 12 items can be  inserted in a document.
    But using BDC only 12 and below is possible, if the flat file system has more that 12 item, then the document is not created.
    How to insert more than 12 item in a document.
    Regards

    Hi Gow,
    I have uploaded the MB1C through a BDC and it is working fine for n no of items.
    Here is the code. May be this will be of your help.
    *& Report  ZMB1C
    report ZMB1C
           no standard page heading line-size 255.
    type-pools : slis.
    tables : t100.
    data: begin of record,
            MATNR(018),
            ERFMG(017),
            EXBWR(016),
          end of record.
    data : itab like table of record with header line.
    data : w_bdcdata type bdcdata.
    data : t_bdcdata type standard table of bdcdata initial size 1.
    data : messtab type standard table of bdcmsgcoll with header line.
    data : mstring(300).
    data : vf_index type i,
           no_lines type i,
           count type i value 0.
    data : v_bldat(20),
           v_budat(20).
    *Excel Sheet Data Upload Details
    data : vf_start_col type i value '1',      "start column
           vf_start_row type i value '2',      "start row
           vf_end_col   type i value '100',    "maximum column
           vf_end_row   type i value '10000'.  "maximum row
    */ Internal Table For Excel Data
    data : it_excel type  kcde_cells occurs 0 with header line.
    */ Field symbol
    field-symbols : <fs>.
    data : begin of it_messtab occurs 0,
           plant(10) type c,
           status(10) type c,
           message(90) type c,
           end of it_messtab.
    *Data for ALV display
    data : wa_fcat type slis_fieldcat_alv,
           colcnt type i.
    data : it_fieldcat type slis_t_fieldcat_alv,
           i_events type slis_t_event.
    data : l_title type sychar70.
    data : l_repid like sy-repid.
    * Selction Screen
    selection-screen begin of block b1 with frame title text-000.
    parameters : p_file like ibipparms-path obligatory,
                 p_mode like ctu_params-dismode default 'A'.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-001.
    parameters : p_bldat like MKPF-BLDAT obligatory,
                 p_budat like MKPF-BUDAT obligatory,
                 p_bwart like RM07M-BWARTWA obligatory,
                 p_werks like RM07M-WERKS obligatory,
                 p_lgort like RM07M-LGORT obligatory.
    selection-screen end of block b2.
    * At Selction Screen
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ''
        IMPORTING
          file_name     = p_file.
    *Start of Selection Event
    start-of-selection.
      call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = vf_start_col
          i_begin_row             = vf_start_row
          i_end_col               = vf_end_col
          i_end_row               = vf_end_row
        TABLES
          intern                  = it_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          others                  = 3.
      if sy-subrc <> 0.
    * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      if it_excel[] is initial.
        MESSAGE I000(ZCL_TCSABAP).
      else.
        sort it_excel by row col.
        loop at it_excel.
          move : it_excel-col to vf_index.
          assign component vf_index of structure itab to <fs>.
          move : it_excel-value to <fs>.
          at end of row.
            append itab.
            clear itab.
          endat.
        endloop.
      endif.
      if not itab[] is initial.
        DESCRIBE TABLE itab LINES no_lines.
        clear messtab.
        refresh messtab.
        CONCATENATE p_bldat+6(2) '.' p_bldat+4(2) '.' p_bldat(4) into v_bldat.
        CONCATENATE p_budat+6(2) '.' p_budat+4(2) '.' p_budat(4) into v_budat.
        perform map_rec.
        call transaction 'MB1C' using t_bdcdata mode p_mode update 'A'
        messages into messtab .
        clear t_bdcdata.
        refresh t_bdcdata.
        loop at messtab where msgtyp = 'E' or msgtyp = 'S' .
          select single * from t100 where sprsl = messtab-msgspra
                                    and   arbgb = messtab-msgid
                                    and   msgnr = messtab-msgnr.
          if sy-subrc = 0.
            mstring = t100-text.
            if mstring cs '&1'.
              replace '&1' with messtab-msgv1 into mstring.
              replace '&2' with messtab-msgv2 into mstring.
              replace '&3' with messtab-msgv3 into mstring.
              replace '&4' with messtab-msgv4 into mstring.
            else.
              replace '&' with messtab-msgv1 into mstring.
              replace '&' with messtab-msgv2 into mstring.
              replace '&' with messtab-msgv3 into mstring.
              replace '&' with messtab-msgv4 into mstring.
            endif.
            condense mstring.
            it_messtab-message = mstring(300).
            it_messtab-plant = p_werks.
            if messtab-msgtyp = 'E'.
              it_messtab-status = 'Error'.
            else.
              it_messtab-status = 'Success'.
            endif.
            append it_messtab.
            clear it_messtab.
          endif.
        endloop. "messtab
        if not it_messtab[] is initial.
          perform buildcatalog.
          perform display.
        endif.
      endif.
    *&      Form  Map_Rec
    *       text
    form  map_rec.
      perform bdc_dynpro      using 'SAPMM07M' '0400'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RM07M-WVERS3'.
      perform bdc_field       using 'BDC_OKCODE'
                                    'NPE'.
      perform bdc_field       using 'MKPF-BLDAT'
                                    v_bldat.
      perform bdc_field       using 'MKPF-BUDAT'
                                    v_budat.
      perform bdc_field       using 'RM07M-BWARTWA'
                                    p_bwart.
      perform bdc_field       using 'RM07M-WERKS'
                                    p_werks.
      perform bdc_field       using 'RM07M-LGORT'
                                    p_lgort.
      perform bdc_field       using 'XFULL'
      perform bdc_field       using 'RM07M-XNAPR'
                                    'X'.
      perform bdc_field       using 'RM07M-WVERS2'
      perform bdc_field       using 'RM07M-WVERS3'
                                    'X'.
      loop at itab.
        count = count + 1.
        perform bdc_dynpro      using 'SAPMM07M' '0410'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'MSEG-EXBWR'.
        if count <> no_lines.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=NPE'.
        elseif count = no_lines.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=BU'.
        endif.
        perform bdc_field       using 'MSEG-MATNR'
                                      itab-MATNR.
        perform bdc_field       using 'MSEG-ERFMG'
                                      itab-ERFMG.
        perform bdc_field       using 'MSEG-EXBWR'
                                      itab-EXBWR.
      endloop. "itab
    endform. "Map_Rec
    **      Form  BDC_DYNPRO
    form bdc_dynpro using program dynpro.
      clear w_bdcdata.
      w_bdcdata-program  = program.
      w_bdcdata-dynpro   = dynpro.
      w_bdcdata-dynbegin = 'X'.
      append w_bdcdata to t_bdcdata.
    endform.                    "bdc_dynpro
    **      Form  BDC_FIELD
    form bdc_field using fnam fval.
      if fval <> space.
        clear w_bdcdata.
        w_bdcdata-fnam = fnam.
        w_bdcdata-fval = fval.
        append w_bdcdata to t_bdcdata.
      else.
        clear w_bdcdata.
        w_bdcdata-fnam = fnam.
        w_bdcdata-fval = fval.
        append w_bdcdata to t_bdcdata.
      endif.
    endform.                    "bdc_field
    *       FORM buildcatalog                                             *
    form buildcatalog.
      clear wa_fcat.
      clear it_fieldcat.
      colcnt = colcnt + 1.
      wa_fcat-col_pos      = colcnt.
      wa_fcat-fieldname    = 'PLANT'.
      wa_fcat-tabname      = it_messtab.
      wa_fcat-seltext_l    = 'PLANT'.
      wa_fcat-key          = 'X'.
      wa_fcat-outputlen  = '10'.
      append wa_fcat to it_fieldcat.
      clear wa_fcat.
      colcnt = colcnt + 1.
      wa_fcat-col_pos      = colcnt.
      wa_fcat-fieldname    = 'STATUS'.
      wa_fcat-tabname      = it_messtab.
      wa_fcat-seltext_l    = 'STATUS'.
      wa_fcat-outputlen  = '10'.
      append wa_fcat to it_fieldcat.
      clear wa_fcat.
      colcnt = colcnt + 1.
      wa_fcat-col_pos      = colcnt.
      wa_fcat-fieldname    = 'MESSAGE'.
      wa_fcat-tabname      = it_messtab.
      wa_fcat-seltext_l    = 'Message'.
      wa_fcat-outputlen  = '90'.
      append wa_fcat to it_fieldcat.
    endform.                    "buildcatalog
    *       FORM display                                                  *
    form display.
      l_title = text-002.
      l_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = l_repid
          i_grid_title       = l_title
          it_fieldcat        = it_fieldcat
          it_events          = i_events[]
        TABLES
          t_outtab           = it_messtab
        EXCEPTIONS
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "display
    Regards,
    Amit

  • Unable to insert more than 9 rows at a time

    Hi there,
    I have to insert more than 5000 rows in my table at a time,but i am not able to insert more than 10 ROWS AT ATIME.
    Do we need to do some that at the data base level for this to happen??????
    Thanks in Advance.

    Rather than give us unhelpful comments like "still its not taking", why don't you show us exactly what you're doing? We can't help you if you don't give us enough information.
    I've tried it and it works fine:
    SQL> create table customer (dealership_id number,
      2  region varchar2(100),
      3  customer_no number,
      4  firstname varchar2(100),
      5  lastname varchar2(100),
      6  address varchar2(100),
      7  city varchar2(100),
      8  state varchar2(100),
      9  zip varchar2(100),
    10  country varchar2(100),
    11  phone_number varchar2(100),
    12  email varchar2(100),
    13  gender varchar2(1),
    14  age number,
    15  transaction_date date);
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1  begin
      2  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
      3  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
      4  TRANSACTION_DATE ) VALUES (
      5  1, 'West', 546, 'Maria L', 'Umali', '515 W 59th St', 'San Francisco', 'California'
      6  , 10019, 'United Sta', '2122478223', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
      7  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
      8  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
      9  TRANSACTION_DATE ) VALUES (
    10  24, 'East', 547, 'Justa', 'Viafara', '66 Avenue C', 'Charleston', 'West Virginia'
    11  , 10009, 'United Sta', '2126736156', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    12  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    13  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    14  TRANSACTION_DATE ) VALUES (
    15  22, 'East', 548, 'C', 'Vignola', '41 Carmine St', 'Miami', 'Florida', 10014, 'United Sta'
    16  , '2122436687', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    17  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    18  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    19  TRANSACTION_DATE ) VALUES (
    20  2, 'West', 549, 'Catherine', 'Vignola', '16 Barrow St', 'San Diego', 'California'
    21  , 10014, 'United Sta', '2129297697', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    22  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    23  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    24  TRANSACTION_DATE ) VALUES (
    25  10, 'West', 550, 'Ashley', 'Weare', '275 W 96th St', 'Oakland', 'California', 10025
    26  , 'United Sta', '2128652935', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    27  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    28  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    29  TRANSACTION_DATE ) VALUES (
    30  9, 'West', 551, 'Shamire A', 'Zobadi', '446 W 46th St', 'San Jose', 'California', 10036
    31  , 'United Sta', '2129740994', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    32  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    33  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    34  TRANSACTION_DATE ) VALUES (
    35  20, 'East', 552, 'Iride', 'Ciaccio', '130 Wisner Ave', 'Baltimore', 'Maryland', 12550
    36  , 'United Sta', '9145612058', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    37  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    38  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    39  TRANSACTION_DATE ) VALUES (
    40  17, 'Central', 553, 'Cecil', 'Jackson', '30 Lake Dr', 'Houston', 'Texas', 12550, 'United Sta'
    41  , '9145617354', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    42  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    43  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    44  TRANSACTION_DATE ) VALUES (
    45  4, 'West', 554, 'M P', 'Prabhu', '590 River Rd', 'Scottsdale', 'Arizona', 12550, 'United Sta'
    46  , '9145656155', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    47  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    48  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    49  TRANSACTION_DATE ) VALUES (
    50  16, 'Central', 555, 'Jacob', 'Agam', '221 E 61st St', 'Ann Arbour', 'Michigan', 10021
    51  , 'United Sta', '2127524408', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    52  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    53  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    54  TRANSACTION_DATE ) VALUES (
    55  23, 'East', 556, 'Alkis', 'Agaphogleous', '208 W 15th St', 'Fairfax', 'Virginia', 10011
    56  , 'United Sta', '2126478725', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    57  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    58  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    59  TRANSACTION_DATE ) VALUES (
    60  19, 'East', 557, 'Ponti C', 'Cia', '251 Central Park W', 'New York', 'New York', 10024
    61  , 'United Sta', '2128777400', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    62  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    63  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    64  TRANSACTION_DATE ) VALUES (
    65  27, 'West', 558, 'Steve', 'Ciabbatoni', '71 Broadway', 'Phoenix', 'Arizona', 10006
    66  , 'United Sta', '2128639140', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    67  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    68  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    69  TRANSACTION_DATE ) VALUES (
    70  13, 'Central', 559, 'Pascale', 'Coadou', '307 E 89th St', 'Austin', 'Texas', 10028
    71  , 'United Sta', '2128769343', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    72  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    73  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    74  TRANSACTION_DATE ) VALUES (
    75  21, 'East', 560, 'Arthur G', 'Coake', '95 W 95th St', 'Boston', 'Massachusetts', 10025
    76  , 'United Sta', '2122221851', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    77  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    78  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    79  TRANSACTION_DATE ) VALUES (
    80  15, 'Central', 561, 'B P', 'Coakley', '139 W 35th St', 'Minneapolis', 'Minnesota'
    81  , 10001, 'United Sta', '2126863187', 'null', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    82* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select count(*) from customer;
      COUNT(*)
            16

  • Can't insert more than 8000 rows to excel via JOB

    Hello, 
    I have SSIS package where I have two tasks.
    File System task copies file (with header names) to destination folder.
    Data flow task export data from table to copied Excel file. Select are simple "select * from table" without any filters.
    There are about 100 000 rows in the table.
    When I run this task through Visual studio everything works fine. Data to Excel file is exported.
    When I run this package in JOB (Job Activity Monitor) the file is created but 0 rows is exported.
    One interesting thing, that when I use select "select top 7000 * from table" 7000 rows is inserted but when I try to export more than 8000 rows then 0 rows is exported. The JOB generates 0 errors. In fact he tries to export. Because all the time
    Excel's file "Date modified" is changing.
    It seems like data is exported but the final "commit" isn't done. Anybody knows where could be a problem?

    Out of curiosity I have had a go at reading 70K lines of data from a table in a sql server and exporting them to an excel 2007 file:
    SSIS 2012 project deployment
    2 project connections: sql database connection for source
    and an Excel 2007 connection for destination:
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\Data\Outbox\ExcelOut.xlsx;Extended Properties="Excel 12.0 XML;HDR=YES";
    I have an empty excel 2007 file as template with header rows in the first sheet.
    I test the project in VS 2012, ran without problems. 
    I set DelayValidation to true on package level, data flow level.
    In data flow, excel distination, ValidataExternal metadata to False. 
    I deploy the project with the package to an Integration Services catalog on a SQL 2012 server (not my development machine)
    I copy an empty excel 2007 file (with the headers in the first row) in the correct file location.
    I execute the package from SSMS in the Integration services catalogs, with 32 bit checked.
    The package runs without errors. 
    I can open the excel file and see 70K records.
    Last thought: I have no NULL values in my data. Do you have null values after the first 7000 records? Or is one of the excel columns expecting numerical data where it suddenly finds alfanumeric after 7000 rows?
    Another suggestion: if you run the package with SSMS from the catalog, you can set the verbose reporting mode on, does that tell you anything more?
    Jan D'Hondt - SQL server BI development

  • How to display more than 10 rows in an Auto Updating Report

    I followed Carl Backstorm's example, http://htmldb.oracle.com/pls/otn/f?p=11933:40:525653462286833::NO:RP:: to create a page with an auto update report/region. It's working fine (thanks, Carl) but I can't have the report display all rows (38 rows in total). Everytime I press the "Manual Refresh" button, it shows 10 (the first 10) rows only.
    When the report displays at the first time, it shows all the rows (38 rows). Number of Rows and Maximum Row Count are set to 999999 and "No Pagination Selected" in the report region. But after I press the "Manual Refresh" button or specifiy an update time value (like 1 second) to have it auto update, then it only display the first 10 rows.
    Is there a way to display more than 10 rows in an Auto Updating Report using Carl's example auto update report/page? Anyone can help? Thank you.
    -Michele
    Edited by: 106451 on Jun 30, 2010 10:12 AM

    Yes, I changed it to:
    function table_object(pId){
         this.id = pId;
         this.start_record = 1;          //optional
         this.num_record = 50; //optional
         this.num_record2 = 50;          //optional
    I don't quite understand how these vaiables are used for though. Thanks.

  • How to display more than 200 rows in the table?

    Hi Experts,
    Is that possible to display more than 200 rows in a Table.
    when i query from table, it has 1000 rows, i want to display all the 1000 rows in the Table.
    when i query, the values are displaying up to 201 rows only,
    when i click next on 200 - 201 it throws Exception says
    *"Query has exceeded 200 rows. Potentially more rows exist, please restrict your query."*
    let me know how to display all the 1000 rows in a table without Exception.
    Any idea will be highly appreciated.
    Thanks
    Aswath

    The number of rows retrieved is controlled by profile option "FND: View Object Max Fetch Size". I believe 200 is the default value. Pl see these MOS Docs
    386402.1- Query Has Exceeded 200 Rows
    275876.1 - Oracle Application Framework Profile Options Release 11i (11.5.10)
    HTH
    Srini

  • How to insert more than 4000 bytes in BLOB column

    Hi all,
    My oracle version is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0.
    I have checked in google and in this forum also, but did not find the answer.
    When inserting into less than 4000 bytes, it is inserting without any issues. If i am inserting more than that, it is throwing
    error like this ORA-01460: unimplemented or unreasonable conversion requested.
    Can anybody guide me how to do this or link.
    Thanks in advance.
    Thanks,
    Pal

    user546710 wrote:
    Hi,
    Thank you very much for your reply.
    Before, I have not worked with BLOB column, so I don't know much about its using. Currently, I am using direct
    insert statement only. Its a normal stored procedure written in a package. I am calling this SP with other columns and
    with this BLOB column. I am able to insert into table, if the inserted file is less than 4000 bytes. If it is more than that,
    I am getting that problem.
    Thanks,
    VenuSQL variables can only hold 4000 bytes.
    PL/SQL can hold up to 32767
    I am getting that problem. 100% lacking in actionable detail
    post code & COMPLETE error message & code

  • How to display more than 5000 rows in JClient JUTableBinding?

    I have to show more than 5000 rows by JClient JUTableBinding? on that I get PassivationError, I use JDev 9.0.2. Is it possible?

    FYI,
    In a future release, BC4J will also allow VOs that use oracle-database ROWNUM features to fetch only a range full of rows rather than the entire set of rows. For queries that return thousands of rows and you want to display them in a table or pages, this option on the VO should come in handy.

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to Insert more than one record at a time

    How to insert multiple records at a time?
    If someone can advise on this, then the actual problem is described below:
    I have a MS access database with one table. The table has three fields. The
    first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One
    set of records consists of 7 records containing all the seven types of
    predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such
    a way that he enters one set of records at a time in one single screen. This
    way he will not have to remember that he has /has not entered all the seven
    set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as
    it will increase the number of fields drastically.
    Please help with inserting multiple records at a time.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to insert more than one values

    Oracle 9i
    Hi all
    I have 80 values how to insert it in a single time, it is in production
    This is my insert statement
    Insert into FND_LOOKUP_VALUES
    (LOOKUP_TYPE,LANGUAGE,LOOKUP_CODE,MEANING,DESCRIPTION,ENABLED_FLAG,
    START_DATE_ACTIVE,END_DATE_ACTIVE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,L
    AST_UPDATE_LOGIN,
    LAST_UPDATE_DATE,SOURCE_LANG,SECURITY_GROUP_ID,VIEW_APPLICATION_ID,TERRITORY
    _CODE,
    ATTRIBUTE_CATEGORY,ATTRIBUTE1,ATTRIBUTE2,ATTRIBUTE3,ATTRIBUTE4,ATTRIBUTE5,AT
    TRIBUTE6,ATTRIBUTE7,ATTRIBUTE8,ATTRIBUTE9,ATTRIBUTE10,ATTRIBUTE11,ATTRIBUTE1
    2,ATTRIBUTE13,ATTRIBUTE14,ATTRIBUTE15,TAG,LEAF_NODE)
    values ('XXHDNL_SHIPPABLE_POSTCODES','US','CF47 9','CF47 9','CF47 9','Y',
    to_date('23-JUL-09','DD-MON-RR'),null,1090,to_date('23-JUL-09','DD-MON-RR'),
    1090,47626,to_date('23-JUL-09','DD-MON-RR'),'US',0,3,null,null,null,null,nul
    l,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
    I need to change the values in the field LOOKUP_CODE,MEANING,DESCRIPTION
    there are 80 values it takes time to insert one one value each time.
    The values are like this
    DE1,DE1,DE1
    D3,D3,D3
    DE5,DE5,DE5
    DE11,DE11,DE11
    DE12,DE12,DE12
    DE13,DE13DE13
    How to do this?
    Any help is highly appricatble
    Thanks & regards
    Srikkanth.M
    Edited by: Srikkanth.M on Jan 14, 2011 6:04 PM

    If the code is autonumeric ... then try
    insert into FND_LOOKUP_VALUES (LOOKUP_TYPE,
                                                      LANGUAGE,
                                                      LOOKUP_CODE,
                                                      MEANING,
                                                      DESCRIPTION,
                                                      ENABLED_FLAG,
                                                      START_DATE_ACTIVE,
                                                      CREATED_BY,
                                                      CREATION_DATE,
                                                      LAST_UPDATED_BY,
                                                      LAST_UPDATE_LOGIN,
                                                      LAST_UPDATE_DATE,
                                                      SOURCE_LANG,
                                                      SECURITY_GROUP_ID,
                                                      VIEW_APPLICATION_ID                                                 
    SELECT 'XXHDNL_SHIPPABLE_POSTCODES',
               'US',
               'DE' || level,
               'DE' || level,
               'DE' || level,
               'Y',
                to_date('23-JUL-09','DD-MON-RR'),
               1090,
               to_date('23-JUL-09','DD-MON-RR'),
               1090,
               47626,
               to_date('23-JUL-09','DD-MON-RR'),
               'US',
               0,
               3
    from dual connect by level < 81

  • Cannot insert more than 1 row

    The insert statement is insert as select, and select is restricted by rownum. When rownum < 2 then it works (ie. only one row is inserted). When rownum < 3 and more it doesn't work (and without rownum condition there are over 200k rows, and it doesn't work either).
    Why could it be like that? The process is logged and it clearly shows for rownum < 2 that one row is inserted:
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 20 10:46:02 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
    10:46:02 SQL> set serveroutput on
    10:46:02 SQL>
    10:46:02 SQL> WHENEVER SQLERROR EXIT SQL.SQLCODE
    10:46:02 SQL>
    10:46:02 SQL> insert into tmp2 select x,y from tmp where rownum < 2;
    1 row created.
    Elapsed: 00:00:00.00
    10:46:02 SQL>
    10:46:02 SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    10:46:02 SQL>
    10:46:02 SQL> exit sql.sqlcode
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing optionswhile for rownum < 3 it ends and doesn't insert anything:
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 20 10:50:03 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
    10:50:03 SQL> set serveroutput on
    10:50:03 SQL>
    10:50:03 SQL> WHENEVER SQLERROR EXIT SQL.SQLCODE
    10:50:03 SQL>
    10:50:03 SQL> insert into tmp2 select x,y from tmp where rownum < 3;Any guesses about it? I don't have idea where to start.

    Well I find that hard to believe.but this is what I can read from the log.. it ends after insert statement.
    When you run scripts from a command window and the script 'ends' you get returned to the command window and you will get whatever prompt has been configured. So there has to be 'something' - it it just ended it would be hung and you would have to use ctrl-c to get out.not exactly. I tried to run it from shell as typing sqlplus user/pass @/path/script.sql, and it worked. but after reading your answer I also ran it as executing original KSH script (which calls sql script inside), and it ran successfully too.
    But you say that this is the very last thing you see on the screen for the nonworking example. [..] So you now say 'thre is no more output than shown. it just ends after "insert ... where rownum < 3".yes, this is correct. the last line I see in log is just insert statement.
    So explain how it can 'just end' without your system being hung, without the script exiting, without the Oracle connection being disconnected and without the command window displaying some kind prompt (either SQL or OS). You also did not indicate whether you removed the WHENEVER SQLERROR line and you appear to be piping into a log file but haven't posted that either.OK, I overlooked this. here is the detailed situation. we have a propertiary scheduling tool. you just point a KSH file in this tool and it runs it at specified time. how it actually runs it I don't know, but I don't see command window, I just see logs. and when I look into the log it shows just insert statement as last line for rownum < 3. it shows other lines like elapsed, commited etc for rownum < 2. And yes, of course, I followed your suggestion and removed whenever line. what I was reffering earlier was after this removal: no change in log.
    let me summarize:
    1) sql runs in 3rd party sql tool
    2) sql runs from inside sqlplus
    3) runs when KSH is executed directly in shell manually
    4) runs from shell when sqlplus is called with user/pass and @/path/scriipt.sql
    5) doesn't run when executed with scheduling tool for rownum < 3, runs for rownum < 2
    You gave me quite a good hint about the cause. nothing comes to my mind except.. calling the support of this scheduling tool :)
    do you see other possibilities other that you mentioned? key violation is not causing it, I can load the whole table manually.
    thank you

  • How use insert more than query (select)

    insert into FISH_FAMILIES (id,code ,SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
    SELECT ROWNUM,to_char(ROWNUM) FROM dual CONNECT BY LEVEL <= 43,
    select distinct FAMILY, ARABIC_DESCRIPTION,LATIN_DESCRIPTION from FISH_SPECIES ,
    select distinct IS_FAMILY from FISH_SPECIES
    iam dont know format insert use
    More than select ??????

    ali_alkomi wrote:
    ORA-01427: single-row subquery returns more than one row
    insert into FISH_FAMILIES(SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
    values ( (select distinct FAMILY from FISH_SPECIES) ,(select ARABIC_DESCRIPTION from FISH_SPECIES) ,(select LATIN_DESCRIPTION from FISH_SPECIES),(select distinct IS_FAMILY from FISH_SPECIES
    ))You were given an answer to that over on your other question:
    How Generating Series Of Numbers Without  use Sequences
    If you are haivng a problem understanding the answers, do not start a new thread, otherwise the same people who were helping you originally may not know you are still having a problem.
    To insert multiple rows of data you cannot use the VALUES clause of the INSERT statement (as it tells you in the documentation if you read it).
    You need:
    INSERT INTO ...
    SELECT ... FROM ... UNION ALL
    SELECT ... FROM ... UNION ALL
    SELECT ... FROM ... etc.or, in your case you would need something more simply like
    insert into FISH_FAMILIES(SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
    select fs.family, fs.arabic_description, fs.latin_description, fs.is_family
    from   fish_species fs

  • How to show more than 1 row

    N > iSupplier Portal Full Access > Account (Tab) > Create Invoices > Update Invoices
    Under “Other Charges” you have “Line Charge Type” of Tax, Freight and Miscellaneous. Freight and Miscellaneous have “Add Another Row” button. I added “Add Another Row” to Tax by changing code in “LinesMainRNCO.java”.
    if(oatablebean != null)
    oatablebean.setInsertable(true); // Added this to enable “Add Another Row”
    oatablebean.prepareForRendering(oapagecontext); // Added this to enable “Add Another Row”
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oatablebean.findIndexedChildRecursive("TaxAmount");
    if(oamessagetextinputbean != null)
    oamessagetextinputbean.setPrompt(oamessagetextinputbean.getPrompt() + " (" + s1 + ")");
    Problem is when I add a new row it shows only one row and I get “Previous” “Next” buttons for navigation. For Freight and Miscellaneous when I add new rows up to 10 rows get displayed and from 11th row on I get the “Navigation” buttons “Previous” “Next”.
    How do I enable displaying “10” rows for Tax.
    I tried to fix this in “$AP_TOP/mds/invoice/isp/pages/ApInvLinesPG.xml”
    <oa:table id="TaxLineTable" blockSize="1" shortDesc="Tax Lines Table" width="100%">
    Removed blockSize=”1”; also tried blockSize=”10”
    But that did not help.
    So, how can I control display of rows?
    Any pointers would be really appreciated.
    Thanks.

    Did you import the page xml to MDS after modification?
    --Shiv                                                                                                                                                                                               

Maybe you are looking for

  • View by cover flow not working in Itunes 8.1

    Hi all, I don't know what's Happened but view by cover flow has stopped working for some reason . view by list & view by grid still works but when i goto select view by cover flow, all I get is a blank screen where the albums should be & a empty spac

  • Contract Creation in SRM 7.0 classic scenario

    Hi All, We are using SRM 7.0 Classic scenario with ECC 6.0 EHP 4 and CLM 2. We are creating contracts in SAP CLM and pushing into as Global outline agreement. Question is  - 1)  Can we  create  contracts in SRM 7.0 Classic scenario ? 2) Instead of tr

  • I tried to update my iPad but when I switched it on it was in recovery mode?

    I don't know what to do now. I just pressed 8.0.2 update because I wanted to get an app that required it, and then the screen went black. I turned it on again, and tried updating it again, but it still did the same thing. Then, the next time, I switc

  • When I try to play music on itunes....

    it skips songs repeatedly and won't quit until I restart my computer.  I have already looked through the articles, and asked for help from Apple.  They've told me to uninstall Itunes and all components then reinstall them after a computer restart and

  • Background Images on Frame

    I'need put a Image as a background of my Frame (.java) and not see on awt, swing and otrher user controls this option. How i'do to make this?