Export/import ORACLE database data

Export and import data (similar to the interface)

1. Backup data export ORACLE database

su - oracle

expdp XIBU_WMS/XIBU_WMS directory=dp_dir dumpfile=XIBU20220622.dmp logfile=XIBU20220622.log schemas=XIBU_WMS;

2. Import the backup data into the ORACLE database

su - oracle

impdp XIBU_WMS/XIBU_WMS@orcl directory=dp_dir dumpfile=XIBU20220622.dmp logfile=XIBU20220622.log schemas=XIBU_WMS table_exists_action=replace ignore=y;

************************************* Notes and Partial Explanations************ *****************************

1. Backup data export ORACLE database

su - oracle

expdp XIBU_WMS(username)/XIBU_WMS(password) directory=dp_dir dumpfile=XIBU20220622(username_time).dmp logfile=XIBU20220622(username_time).log schemas=XIBU_WMS(username);

2. Import the backup data into the ORACLE database

su - oracle

impdp XIBU_WMS (user name)/XIBU_WMS (user name) @orcl directory=dp_dir dumpfile=XIBU20220622 (backup file name).dmp logfile=XIBU20220622 (backup file name).log schemas=XIBU_WMS table_exists_action=replace ignore=y;

******************************************************************************

————————————————

Copyright statement: This article is an original article of CSDN blogger "Xin_shou__", following the CC 4.0 BY-SA copyright agreement, please attach the original source link and this statement for reprinting.

Original link: https://blog.csdn.net/Xin_shou__/article/details/118961739

see part five

Guess you like

Origin blog.csdn.net/Xin_shou__/article/details/128549987