exp empty table processing

exp aa/aa@orcl file=D:\.....
Export empty table data
1.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO';Find out empty table
Then insert data into the empty table, and delete it after exporting.

2. Configure the environment
alter system set deferred_segment_creation=false scope=both;
this can only export the empty table after configuration, that is, the empty table before configuration cannot be exported!

3.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO'; find out the empty table to allocate space for the empty table,
query the empty table and execute the result of the query,

and then exp aa/aa @orcl file=D:\AA.DMP can export empty tables together

imp aa/aa file=d:\... Import data
exp Exported data can be imported to different users in different tablespaces

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326446692&siteId=291194637