Append data to existing tables when performing an IMPORT

Hi,
I am using oracle 10g.
I have a dump for a table employees from schema A which i need to import into a schema B.
The employees table already exists in schema B.
I want to append the data from the dump to the existing rows in schema B.
Which parameter do we need to set to do this ??
Thanks.
Edited by: Amm-K on Nov 24, 2008 12:37 PM

If your and my definition of append is the same, a normal import would fail to import the rows which already exist in target table but would import the rows which do not exist in the target table (which is APPEND). So you don't need to specify any special parameter in this case.
If you need to modify the existing rows with the data in the dump file, import does not provide such a option.

Similar Messages

  • How to import and append data on existing table ?

    Hi..
    I have done export data from tmp_nv2_nrm_ain table into some file using the command as below:-
    exp username/password tables=TMP_NV2_NRM_AIN file=TMP_NV2_NRM_AIN log=test.log constraints=no
    The question is how could i import the data from file back to database without overwrite any data on the TMP_NV2_NRM_AIN table.
    And what is the query..
    This is my query... please correct me if I am wrong..
    imp username/passwrod tables=TMP_NV2_NRM_AIN file=/acec/nv2am/monitor/backup/test/AIN/MAR-2010/TMP_NV2_NRM_AIN.dmp log=/acec/nv2am/monitor/backup/test/test.log ignore=y
    Thank you,
    Baharin
    Edited by: baharin on Jul 1, 2010 7:51 PM

    Hi,
    Please go through this link,
    http://wiki.sdn.sap.com/wiki/display/ABAP/CreationofView+Cluster
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Compress all dat ain existing table

    Hi,
    We are using oracle 11.2.0.3 and wish to evaluate performance of compression in terms of reducing time takes for reports aganis the tables to run.
    Have had a quick serach and can see alter table compress but talks about only data inserted/updated after the compress operationexecute is compressed.
    Don't want to have to create separate table, compressed and replace other table with this.
    Is it possible to compress all existing dat aof existing table?
    Also what sort of magntitudes of performance gain coudl we expect on report performance by using compression versus identical tabel but uncompressed?
    Also this is a data warehouse and the large fact table already has bitmpa indexes which by default compressed.
    Tlamking about table compression here.
    Thanks
    Edited by: user5716448 on 05-Mar-2013 05:57

    >
    Trying to make reports as fast as possible.
    >
    Such a blanket 'fast as possible' goal is unrealistic and unattainable. Sounds like a requirement from a business user.
    A goal needs to be specific to be attainable. An index that makes one report faster might make several others slower.
    A report might run fast one day and slow another, or fast the first week of a new month and slow the last week. The cause might be as simple as the varying amount of monthly data at the start versus the end of the month.
    I suggest you itemize your reports and identify a specific goal (SLA - service-level agreement) for each one. Base the goal on the performance you are getting now and state it explicitly: returns results in less than 30 seconds during peak-usage periods (identify a sample peak period).
    >
    Believe do not need to have a problem in oredr to loook for the most effcient solution.
    >
    You might want to read that again now that you've had a good night's sleep and a cup of coffee.
    A 'solution' cannot exist without a problem: what would it be the solution for?
    >
    If have quick reports, but can make even quicker that is something we would wnat to do.
    >
    Back to that again? You need to establish an SLA for each report and only worry about it if it starts failing to meet that SLA.
    In other words, for any individual report determine what is 'quick enough' and let it go at that. Things can almost always be made quicker but there can be a big price to pay. Without an SLA for a goal you will have a moving target that can never be met because you can NEVER prove that it couldn't be quicker if you just tweaked it some more.
    >
    In your experience, all other thinsg being indentical as is good practice with any experment, what sort of performance gains coudl we expect with comnpression and report performance compare to non-compressed data?
    Also, in such star queries is it advisable just to compress the central fact table or would the dimesnions benefit from compression?
    >
    Yes - the benefits can be greater for indexes and dimension tables than for the fact tables themselves. Indexes benefit because fewer index blocks are needed so hot blocks are more likely to be in cache. Same thing with the small dimension (lookup) tables. Fact tables using star-schema data get an additional benefit from the compression of the multiple key values that compress more readily than arbitrary text data like addresses.
    The key missing piece of information is that you haven't specified what compression options are availlable to you.
    Are you only considering BASIC compression? Or have you licensed Oracle's advanced compression?
    http://www.oracle.com/technetwork/database/storage/advanced-compression-whitepaper-130502.pdf

  • Appending data from one table to another

    Hello
    How to append data from one table t1 to another table t2.
    t1 and t2 have the same structures .
    t2 contains already data so i don't want do delete it and create it as select * from t1.
    If there is a mean to add t1 content without altering t2 content.
    Thanks in advance

    insert into t2
      select * from t1

  • Ipod deleted existing songs when performing a sync

    Hi,
    My Ipod deleted existing songs when performing a sync. Please advise on how to restore the files that have been deleted from the IPod.
    Best Regards,
    John Joseph

    Hey there,
    How do you have your iPod set to sync music? Are the 825 songs still taking up space as other on your iPod? To look, just head in the your iPod's settings and click on About to view details.
    I would try restoring the iPod in iTunes and setting it up to "automatically sync" with your iTunes library. Also, if you have it set to sync all checked songs and videos that each song you are trying to sync has a check mark next to it and that disk use is not enabled on it.
    Hope this helps.
    B-rock

  • How to append data  runtime in Table in MIDlet

    Hi Friends,
    i am having 2 queries..
    1st:: How can i append data runtime in table in MIDlet ( like web )which are coming from Database.
    2: requirement is that 1st row of table should for headings like StartDate,EndDate,Resources and Status.
    From the 2nd row ,Columns for runtime data.(Like any Table how u all got my query).
    Plz send me reply as early as possible.
    Waiting for reply
    Best regards
    karan

    Presently you cannot use AJAX kind of stuffs in J2ME.
    If you want to achieve the functionality better to look at articles wriiten on writing custom items in J2ME. That will help you achieve the kind of requirement that you are expecting.
    ~Mohan

  • SQL Loader to append data in same table but using differnet WHEN clauses

    In my data file i have a header record and a detail record identified by Record_type = 1 and 2 respectively.
    The Database table has all the columns to capture detail records but i want to capture jus one column of header record now also in my existing table. So i have added that column (DATA_DATE)in my table but how to capture that value ?
    im writing my control file using two WHEN clauses, something like -
    load data
    into table t_bdn
    append
    when RECORD_TYPE = '2'
    FIELDS TERMINATED BY "|" TRAILING NULLCOLS
    SEQUENCE_NO
    , RECORD_TYPE
    , DISTRIBUTOR_CODE
    , SUPPLIER_CODE
    , SUPPLIER_DISTRIBUTOR_CODE
    , DISTRIBUTOR_SKU
    , SUPPLIER_SKU
    when RECORD_TYPE = '1'
    FIELDS TERMINATED BY "|" TRAILING NULLCOLS
    SEQUENCE_NO FILLER
    , RECORD_TYPE FILLER
    , CREATE_DATE FILLER
    , DATA_DATE "NVL(to_date(:DATA_DATE, 'YYYY/MM/DD'),to_date('9999/12/31', 'YYYY/MM/DD'))"
    im getting error " expecting INTO and foung WHEN RECORD_TYPE = '1' "
    if i give iNTO second time it will append a new row altogether in my table but i want the same row to be updated with this DATA_DATE value coming from RECORD_TYPE =1 and header record has 4 delimited data text fields only and i am interested in fetching just the 4th column..
    KIndly suggest what to do ?

    Ravneek, I could be wrong but sqlldr is a 'load' program, that is, it inserts data. I am unaware of any ability to update existing rows as you seem to want. What you appear to want to do is more the job of a merge statement.
    I would look at writing a pro* language, a .net, or a java program to perform inserts where some or all of the newly inserted rows are also to be updated.
    From the manual: (Oracle® Database Utilities 10g Release 2 (10.2) Part Number B14215-01)
    Updating Existing Rows
    The REPLACE method is a table replacement, not a replacement of individual rows. SQL*Loader does not update existing records, even if they have null columns. To update existing rows, use the following procedure:
    1. Load your data into a work table.
    2. Use the SQL language UPDATE statement with correlated subqueries.
    3. Drop the work table.
    HTH -- Mark D Powell --

  • Urgent - Append data to internal table from Application server

    Hi All,
    I encountered the problem while read the input file from Application server...then append it to internal table. I manage to read the input file from presentation and append the data to internal table.
    Below are my coding which cause me not able the append data from Application server. Please kindly help me to solving/correct my coding. Thanks in advance .
    PARAMETERS : p_inpfl LIKE rlgrap-filename.  "Material Input File
    SELECTION-SCREEN BEGIN OF LINE.
    Application Server
    SELECTION-SCREEN COMMENT 1(19) text-002 FOR FIELD rb_ux.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: rb_ux RADIOBUTTON GROUP g1.
    Presentation Server
    SELECTION-SCREEN COMMENT 40(21) text-003 FOR FIELD rb_pc.
    SELECTION-SCREEN POSITION 65.
    PARAMETERS: rb_pc RADIOBUTTON GROUP g1 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN  SKIP.
    SELECTION-SCREEN END OF BLOCK b01.
    FORM f_Input_file.
      CLEAR: v_f_exists.
      CHECK NOT p_inpfl IS INITIAL.  "input file exist
      IF NOT rb_pc IS INITIAL.  " Pc check
        PERFORM f_read_tab_delimited_file TABLES i_input
                               USING    c_09
                                        p_inpfl
                                        rb_ux
                               CHANGING v_ifile_str_with_tab
                                        v_f_exists
                                        v_ifile_record_count
                                        v_message.
        IF v_f_exists EQ '1' .
      UPLOAD FILE could not be read
          MESSAGE e546 .
        ENDIF .
        IF v_ifile_record_count EQ 0 .
      Zero records in upload file
          MESSAGE e547 .
        ENDIF.
      ELSE.
        OPEN DATASET p_inpfl FOR INPUT IN TEXT MODE.
        DO.
          READ DATASET p_inpfl INTO i_input.
          IF sy-subrc EQ 0.
            APPEND i_input.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        CLOSE DATASET p_inpfl.
      ENDIF.

    Hi,
    Refere the following code for the poulating internal from the application server.
    PARAMETERS :  pr_sfile TYPE  filename-fileintern,
    Here give the logical file name from the application serevr.
    data :        w_param_1 LIKE  filename-fileintern,
                   x_file(500),
                   w_move_file LIKE  epsf-epsfilnam,
                   w_from_dir  LIKE epsf-epsdirnam,
                   w_path LIKE rlgrap-filename,
                  input_line(1000),
                  w_path LIKE rlgrap-filename,
                  w_file LIKE rlgrap-filename,
                  w_dir LIKE  rlgrap-filename,
                  w_dir1 LIKE epsf-epsdirnam,
                  w_file1 LIKE  epsf-epsfilnam,
    **************Start of the code***************
      MOVE '*' TO w_param_1.
      PERFORM get_file_name USING pr_sfile w_param_1.
        LOOP AT it_file WHERE name CP w_file1.
          CLEAR : x_file, w_path,
                  w_move_file, w_from_dir.
          REFRESH : it_input,
                    it_input_err.
       IF w_flag IS INITIAL.
          CONCATENATE w_dir it_file-name INTO x_file.
          CONDENSE  x_file.
    TO Move file from sever for backup storing the file name and path
          w_path = x_file.
          CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH'
            EXPORTING
              full_name     = x_file
            IMPORTING
              stripped_name = w_move_file
              file_path     = w_from_dir
            EXCEPTIONS
              x_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.
    ********here it_input will be the structure of the file present on the application server
          PERFORM read_file TABLES it_input
                            USING  x_file.
          CLEAR it_input_err.
          REFRESH it_input.
        ENDLOOP.
    *******************end of the code****************
    *&      Form  read_file
          text
         -->P_X_FILE  text
    FORM read_file  TABLES it_tab
                    USING  x_file.
      OPEN DATASET x_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        WRITE : / text-006.
      ELSE.
        DO.
          READ DATASET x_file INTO input_line.
          IF sy-subrc = 0.
            CLEAR: it_input, count.
            DO.
              ADD 1 TO count.
              ASSIGN COMPONENT count OF STRUCTURE it_tab TO <fs>.
              IF sy-subrc = 0.
                SPLIT input_line AT separator INTO <fs> input_line.
              ELSE.
                EXIT.
              ENDIF.
            ENDDO.
            APPEND it_tab.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
      CLOSE DATASET x_file.
    *&      Form  get_file_name
          text
         -->P_P_SFILE  text
         -->P_W_PARAM_1  text
    FORM get_file_name USING    p_sfile
                                w_param_1.
                               CHANGING x_file.
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = sy-mandt
          logical_filename = p_sfile
          parameter_1      = w_param_1
        IMPORTING
          file_name        = x_file
        EXCEPTIONS
          file_not_found   = 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.
      w_path = x_file.
      CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH'
        EXPORTING
          full_name     = w_path
        IMPORTING
          stripped_name = w_file
          file_path     = w_dir
        EXCEPTIONS
          x_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.
      w_dir1 = w_dir.
      w_file1 = w_file.
      CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          dir_name               = w_dir1
          file_mask              = w_file1
        TABLES
          dir_list               = it_file
        EXCEPTIONS
          invalid_eps_subdir     = 1
          sapgparam_failed       = 2
          build_directory_failed = 3
          no_authorization       = 4
          read_directory_failed  = 5
          too_many_read_errors   = 6
          empty_directory_list   = 7
          OTHERS                 = 8.
      IF sy-subrc <> 0.
        WRITE : / text-006.
      ENDIF.
    Hope this will help you.

  • Want to copy/append data in one table to another

    Hi,
    I have two similar tables Alo_table and Alo_table_test with different indexes, partitions etc.
    Alo_table has some data. I want to copy/append this data in to Alo_table_test for further testing. How to copy/append data without changing the other settings from Alo_table to Alo_table_test?
    Thanks in advance,
    S

    May be you are Looking for MERGE statement
    It will Insert New Record if not Found to your Destinamtion table or Update if Record Found
    MERGE INTO bonuses B
    USING (
      SELECT employee_id, salary
      FROM employee
      WHERE dept_no =20) E
    ON (B.employee_id = E.employee_id)
    WHEN MATCHED THEN
      UPDATE SET B.bonus = E.salary * 0.1
    WHEN NOT MATCHED THEN
      INSERT (B.employee_id, B.bonus)
      VALUES (E.employee_id, E.salary * 0.05);

  • How can we append data in existing flat file

    how can we append data to a existing flat file (Text file).

    just fill the itab from data which suppose to append to text file.than read text file from GUI_UPLOAD and loop on itab and with the use of read statements you may append the data.

  • Append data from one table to another.

    Hi,
    I want to insert/append some or all the data from one table to another table.
    For eg: Data from table table1 to be appended to table2 with the same constraints, indexes etc. The columns are same for both the tables.
    I am using 10g version 2.
    Please specify which method would be good for this process.
    Thanks
    Jafar

    INSERT INTO TABLE1 SELECT * FROM TABLE2;The above command would insert data into table2 and it also contain the old data.Is that right,
    Thanks
    Jafar

  • Can Acrobat Standard append to an existing file when saving?  Can Pro?

    Hello all,
    I'm wondering if Adobe Acrobat Standard has the function to save to an existing file. I don't mean append two PDF's together after they are already created. I mean I already have a PDF document which I need to add lots of additional pages to. So when creating additional PDF's, I want to be able to tell Acrobat to add those files to the end of the document I already have.
    PrimoPDF has this feature which would be a real time-saver in my line of business. In that program, you simply choose the same filename when asked to save the document. It then prompts you to overwrite or append-to the existing file. For business reasons, it would be very advantageous to use Acrobat rather than Primo. Does anyone know if Acrobat Standard can do this? If not, does Pro do it? Thanks for your time. I appreciate any feedback I get.
    Chris

    Never tried that... you might read in the Acrobat Pro User Guide Online
    http://www.adobe.com/support/documentation/en/acrobatpro/

  • Append data to internal table

    i m calling one FM inside the loop, this FM will return data in internal table. for each loop count i want to save this data to same other internal table, how to do that?
    i want to append the one internal tables data to another internal table how to do that?
    Thanks

    Hi Lucky,
                  Refer this code :
    LOOP AT I_TAB1.
      CALL FUNCTION <FUNCTION NAME>
          EXPORTING
          IMPORTING
          TABLES = I_TAB2.
      APEEND LINES OF I_TAB2 to I_TAB3.
      REFRESH I_TAB2.
    ENDLOOP.
    REWARD POINTS IF HELPFUL.
    Regards,
    Hemant

  • Save data into Z TABLE when save button is clicked on BPS web application

    Hi gurus,
    Recently i've been working with SEM-BPS and now i have an issue,
    I had to modify the BPS layout to show an input field where the user could write a comment, that was done modifying the layout in the transaction SE80 manipulating the BSP application, but now i have to save the content of those fields in a Z table when the SUBMIT event is triggered which save the content of all other standard fields. Before the saved is done i must send a pop up to confirm the action.
    The trouble is where and how i must modify the code to achieve that.
    Or if there's another way to solve my problem please let me know.
    Best regards.
    Tony Montes.

    Hi Andrey,
    Thanks for your time and response.
    Let me told you, i was traying to implement what you say in your last post but now i'm facing a new problem,
    The way i used to create the new field from HTML for the comment is not correct because the data in the GRIDLAYOUT are paged, so, when i change the page all data that i introduced in the field are ereased and i must save that values before change the page in a kind of buffer or something like that.
    so my new question is this, Do you know a right way to add that field to GRIDLAYOUT?  and then save this values in a Z table before save al plan data into the infocube.
    Sorry for all this questions but ive read a lot of articles and I can't find anything really helpful
    I've read some articles what talk about this issue but in IP, sincerely i'm NEW in this topic.
    Regards.
    Tony Montes.

  • Cannot add data to existing table

    Hello All,
    I have a very trivial issue.  I have an existing test table in SQL and I use DBVisualizer client to connect to the server.
    I have only six records in the table that I am testing.  I have a field called "SITE".  Within this field I have the following data:
    Site:
    NYC
    LA
    BOS
    I am trying to import a csv file with 6 row of records, where I have records in there where 'site' = "BOS".
    But when  I try to import, I get the following error:
    "Violation of Unique Key constraint 'ix1_test'. Cannot insert duplicate key in object 'dbo.test'."
    When I try to add the records manually, SQL allows me to add all data into the row, except when I try to add "BOS" into the site field.  Then the error happens.
    What I do not understand is, I imported a previous csv with nine (9) records with multiple rows of records with "BOS" in the site field and had no issues.
    Why is this occurring now?
    Any help would be great!
    Thanks everyone!

    Thanks for the help Dan.  But it seems like I need the SQL admin to make some changes to the table.  What should I tell the SQL Admin to do on my test table?
    Or since this is a test table, and I believe I have full access to it, is there anything I can run not to make those fields part of a unique constraint?
    I can't really make a recommendation without knowing more about the data.  I see that this is a test table, but is the intent to model something in the real world? In the latter case, you might want more than one table (e.g. rooms, devices,
    and device types).  That would allow you to keep an inventory of computer devices and their locations with any number of devices per room.
    If your intent is to just play around inserting and selecting data without regard to data integrity, you can drop the constraint with the command below, assuming you have permissions to do so.
    ALTER TABLE dbo.test DROP CONSTRAINT idx1_test;
    I do have one minor recommendation for your admin about the constraint naming, though.  Although primary key and unique constraints are implemented as a unique index, I suggest a naming convention other than one that suggests an index.  This will
    help avoid confusion with indexes that are used to improve performance rather than ensure data integrity.  For example, you could name this unique constraint something like UQ_test_1 rather than ix1_test.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Maybe you are looking for

  • WiFi works at home not abroad

    I have a 2g iPod Touch. I verified that I coudl connect via wifi from home and from a public wifi location before leaving on a trip to UK. However once I left I could never get net access on nay public or pasword wifi spot. I could get connected acco

  • T61 no longer recognizes DVD super-multi drive

    My T61 for some reason has stopped recognizing my DVD super-multi drive (GSA-U10N).  I do not use the optical drive often, so I am not sure when during the past couple of months this occured.  I have tried finding it using Lenovo System Toolbox and D

  • After an Archive Install?!

    Hi There, I recently completed an Archive Re-install of OS X 10.4 due to problems I was having with Itunes. I was just wandering...can I trash the Old System Folder that the re-install created? Cheers

  • Strange Leopard happenings

    I have been having a lot of trouble since I installed Leopard onto the new 20" I-Mac I got at xmas. Discovered that none of the programs show or will allow the creation of PDF files (Word etc.) even tho they all worked when the same computer was stil

  • I Tunes, I have tried to install this program for 2 days.

    I have been trying for 2 days to install i Tunes on a WIndows Vista Home Premium 64 bit laptop. All updates current, have never had so much as a hiccup with this laptop. I have received one error after the other, Error 4204, was the first. I read all