oracle全数据库还原,ORACLE数据库全库备份与恢复——exp,imp,expdp,impdp

exp

exp 用户名/密码@数据库SID

owner=用户名

file=路径/exp_2018.dmp

log=路径/log_2018.log

imp

imp用户名/密码@数据库SID

file=路径/exp_2018.dmp(已存在)

log=路径/imp_2018.log

full=y

ignore=y

expdp

1.创建目录

mkdir /hoem/oracle/oracle_bak

连接数据库

sqlplus /nolog

conn sys/7961314@orcl as sysdba

create directory aa as '/hoem/oracle/oracle_bak'

drop directory aa

2.授权

grant read,write on directory aa to system;

3.执行导出

expdp用户名/密码@数据库SID

directory=aa

dumpfile=路径/expdp_2018.dmp

logfile=路径/log_2018.log

schemas=hs_user

impdp

1.连接数据库

sqlplus /as sysdba

create directory aa as '/hoem/oracle/oracle_bak'

drop directory aa

2.授权

grant read,write on directory aa to system;

3.执行导入

impdp用户名/密码@数据库SID

directory=aa

dumpfile=路径/expdp_2018.dmp

logfile=路径/log_2018.log

schemas=hs_user

table_exists_actiom=truncate/replace

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值