-
Repeat the import database already exists, the following two methods IMP and introducing IMPDP;
-
When IMP import : If the table already exists, it will tell you can not create this table, because the table already exists. Meanwhile parameter full = y ignore = y that is all imported, all the data inserted into the table in dmp inside. In other words there is repeated, if the table has a primary key, because of the constraint violation is repeated, introducing unsuccessful, but can not be repeated in, this case is added into the cover.
-
Data Backup, use the command:
exp user/user file=d:\user.dmp full=y
When recovery, use the command:
imp user/user FILE=d:\user.dmp fromuser=user touser=user full=y ignore=y
-
When introduced IMPDP : parameter table_exists_action = replace deleted after coverage;
table_exists_action options: {skip if the table already exists, skip and the next object; append data to increase table; truncate table is cut off, and give it to add new data; replace the existing table is deleted, and re-build the table additional data}
-
Data Backup, use the command:
expdp user/user directory=dump_dir dumpfile=schema.dmp logfile=schema.log schemas=user job_name=exp_user_schema恢复时,使用命令:impdp user/user directory=dump_dir dumpfile=schema.dmp logfile=schema.log table_exists_action=replace schemas=user content=all job_name=imp_schema
-
How to import oracle dmp file and overwrite the original data
Guess you like
Origin www.cnblogs.com/hsz1124/p/11648109.html
Recommended
Ranking