oracle 备份格式dmp解析,Oracle 数据导入备份(dmp格式)
創(chuàng)建賬戶
進(jìn)入oracle
sqlplus / as sysdba;
查詢 pbd
select?pdb_id,pdb_name,dbid,status,creation_scnfrom?dba_pdbs;
切換PBD模式
alter?sessionset?container=ORCLPDB1;
創(chuàng)建賬戶 newfs
賬戶:newfs ?密碼:123456
create?user?newfs?identifiedby?123456default?tablespace userstemporary?tablespacetemp;
授權(quán)賬戶權(quán)限
grant?create?user,drop?user,alter?user,create?any?view,connect,resource,dba,create?session,create?any?sequence?to?newfs;
創(chuàng)建成功 賬戶(newfs)
地址:192.168.183.240
端口:1521
服務(wù)名:ORCLPDB1
用戶名:newfs
密碼:123456
創(chuàng)建賬戶?enterprise
賬戶:enterprise ?密碼:123456
create?user?enterpriseidentifiedby?123456default?tablespace userstemporary?tablespacetemp;
授權(quán)賬戶權(quán)限
grant?create?user,drop?user,alter?user,create?any?view,connect,resource,dba,create?session,create?any?sequence?to?enterprise;
創(chuàng)建成功 賬戶(enterprise)
地址:192.168.183.240
端口:1521
服務(wù)名:ORCLPDB1
用戶名:newfs
密碼:123456
導(dǎo)入數(shù)據(jù)
授權(quán)oracle權(quán)限:
示例:
chown -R oracle:oinstall expdb_20210305_1.dmp
切換oracle賬戶:
su - oracle
導(dǎo)入數(shù)據(jù):
示例:impdp 賬戶/密碼@IP:PORT/服務(wù)名 ?dumpfile=文件.dmp??grants=no full = y;
impdp newfs/123456@192.168.183.240:1521/ORCLPDB1 dumpfile=expdb_20210305_1.dmp grants=no full = y;
移動(dòng)數(shù)據(jù)到黃線路徑
再次執(zhí)行導(dǎo)入:
示例:
impdp newfs/123456@192.168.183.240:1521/ORCLPDB1 dumpfile=expdb_20210305_1.dmp grants=no full = y;
完成導(dǎo)入
文章來(lái)源: blog.csdn.net,作者:魯先生.,版權(quán)歸原作者所有,如需轉(zhuǎn)載,請(qǐng)聯(lián)系作者。
原文鏈接:blog.csdn.net/lulongji2035/article/details/114526875
總結(jié)
以上是生活随笔為你收集整理的oracle 备份格式dmp解析,Oracle 数据导入备份(dmp格式)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 手动更改oracle监听,详解Oracl
- 下一篇: php crc16校验算法,PHP串口通