1 创建目录并授权
create or replace directory DUMP_DIR as '/data/dump';
#注意这边的/data/dump目录oracle用户必须是属主
grant read or write on DUMP_DIR to huoran;
# 给这个数据库用户赋予对这个路径(即/data/dump)的读写权限
2 创建par参数文件
[oracle@DB expdp_backup]$ cat huoran_tables_20240426.txt
dumpfile=huoran_20240424_%U.dmp
parallel=8
compression=all
CLUSTER=no
logfile=huoran_20240424.log
directory=DUMP_DIR
tables=
huoran.laagent,
huoran.lcaddress,
huoran.lcappnt,
huoran.lccont,
huoran.lccontstate,
huoran.lcgrpaddress,
huoran.lcgrpbala,
huoran.lcgrpbalaedoritem,
huoran.LCGrpBnf,
huoran.lcgrpcont,
huoran.lcgrpcontstate,
huoran.lcgrppol,
huoran.lcinsured,
huoran.LCLEAVINGMONEY,
huoran.lcpol,
huoran.ldcode,
huoran.ldcom,
huoran.ldgrp,
huoran.ldgrpholdperson,