–查看数据泵地址
select * from all_directories;
–创建数据泵地址
create directory cs_lx as ‘/backup/lxx’;
–授予用户读写权限
grant read,write on directory cs_lx to bbsp;
–导出表 只倒表结构加(rows=n),不打印日志加上参数(nologfile=y)
Expdp lxx/lxx directory=cs_lx dumpfile=lxx.dmp tables= CPPM_AUTHLIST_DATA,CPPM_BANK_DATA rows=n
exp bbsp2/bbsp2@BEMS_49 file=E:\pzw\dmp\move_data_20171102.dmp tables=(ACCEPTIMPAWN,ACCEPTPLEDGE)
导入表
imp bbsp8/bbsp8@BEMS_49 fromuser=bbsp2 touser=bbsp8 ignore=y file=e:\init_data_20171102.dmp full=y
impdp bbsp7/bbsp7 directory=cs_lx dumpfile=lxx.dmp parallel=4 remap_schema=bbsp2:bbsp7
–当前用户导出导入
expdp bbsp7/bbsp7 directory=cs_lx dumpfile=bbsp7_20171122_%U.dmp parallel=4
impdp bbsp7/bbsp7 directory=cs_lx dumpfile=bbsp7_20171122_%U.dmp parallel=4
–全库导出 --不打印日志加上参数nologfile=y
expdp bbsp7/bbsp7 directory=cs_lx dumpfile=bbsp77_20171122_%U.dmp parallel=4 job_name=bbsp_export
来源:CSDN
作者:进化吧皮卡丘
链接:https://blog.csdn.net/m0_37643351/article/details/103579449