1. Create a directory folder for exporting data
create or replace directory oradata as 'E:\data';
Note:
(1) The data folder needs to be installed under the disk.
(2) If the prompt is insufficient, you need to authorize the current user
如:grant read,write on directory oradata;
2. Use expdp to export user data
(1) Only the metadata of the soctt user is exported without statistical information;
expdp system directory=oradata schemas=scott content=metadata_only exclude=statistics dumpfile=scott_meta.dmp logfile=scott_meta.log
(2) Only export data of soctt users
expdp system directory=oradata schemas=scott content=data_only
dumpfile=scott_data.dmp logfile=scott_data.log
(3) Only export the emp and dept data under the scott user
expdp scott directory=oradata tables=emp,dept
dumpfile=scott_emp_dept.dmp logfile=scott_emp_dept.log
(4) Only export the emp and dept table structures under the scott user
expdp scott directory=oradata tables=emp,dept content=metadata_only
dumpfile=scott_emp_dept_meta.dmp logfile=scott_emp_dept_meta.log
(5) Export all content under the soctt user
expdp system directory=oradata schemas=scott dumpfile=scott_all.dmp
logfile=scott_all.log
(6) Export all content under the scott user in parallel
expdp system directory=oradata schemas=scott dumpfile=scott_all%U.dmp
logfile=scott_all.log parallel=2