目的:将数据库数据导出,以便其他人导入自己的数据库中
问题:库中存在空表,导出dmp文件提示失败或是用不了
1.找出对应库的空表(数据库执行)
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0
2.执行找出的空表语句(数据库执行)
alter table SYS_ROLE_DATARULE allocate extent;
alter table TB_PROC_LOG allocate extent;
3.导出dmp文件(cmd执行)
exp 库名/密码 file=D:\kcurd_base.dmp (full=y(完全导出))