When using Oracle --impdp import data table already exists

background

  • In doing data migration, you need to integrate different parts of the dmp file to a database, when importing, the target table already exists, how to append the data into the target table

Methods Introduction

  • When IMPDP complete database import, while in case of the table already exists, Oracle provide us with the following four treatments:
    • SKIP: Skip existing tables, to continue introducing the next object, if CONTENT DATA_ONLY set parameters, can not use the SKIP
    • APPEND: does not affect the existing data in the original data table on the data continues to increase
    • REPLACE: deleted table first, and then create a table, insert the data to finalize
    • TRUNCATE: delete the existing line, and then insert all the data

use

  • We need to specify the mode used to import the data import statement TABLE_EXISTS_ACTION parameters, as follows
    impdp zcgl/system dumpfile=GUIDONG.DMP  directory=data_pump_dir REMAP_TABLESPACE=ASSETS:ZCGL REMAP_SCHEMA=TESTUSER:ZCGL TABLE_EXISTS_ACTION=APPEND logfile=TEST20191111.log
    
  • Next

Guess you like

Origin www.cnblogs.com/zuiyue_jing/p/11839441.html