最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

oracle 11g 通過主機的RMAN備份,測試庫異機恢復(fù)數(shù)據(jù)庫,rman報錯

2022-08-12 17:38 作者:夜灬長夢多  | 我要投稿

忘記保存截圖了,口述事情大概
主機SID:orcl
測試庫SID:test
主庫RMAN備份在本地
通過scp把參數(shù)文件,控制文件,數(shù)據(jù)文件,歸檔文件傳到測試庫相同目錄
測試庫啟動到nomunt狀態(tài)
rman target /
先恢復(fù)控制文件:
rman>restore controlfile from 'scp傳過來的控制文件路徑';
測試庫啟動到mount狀態(tài):
rman>alter database mount;
結(jié)果報錯識別不到控制文件中orcl實例
反應(yīng)過來測試庫的SID時test,主庫的SID是orcl,不同步,沒法恢復(fù)
進入sql,create pfile=‘/home/oracle/initorcl.ora' from spfile; 創(chuàng)建一個pfile
修改initorcl.ora這個pfile文件,創(chuàng)建需要的目錄
再次使用這個pfile文件打開數(shù)據(jù)庫,
startup nomount from pfile=’/home/oracle/initorcl.ora';
再次恢復(fù)控制文件:
rman>restore controlfile from 'scp傳過來的控制文件路徑';
啟動到mount狀態(tài):
rman>alter database mount;
成功
最后通過rman恢復(fù)數(shù)據(jù)庫,指定到/u01/oradata/emr/:
rman>
run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
allocate channel c3 device type disk;
allocate channel c4 device type disk;
set newname for database to '/u01/oradata/emr/%b';
restore database;
switch datafile all;
switch tempfile all;
recover database;
}


oracle 11g 通過主機的RMAN備份,測試庫異機恢復(fù)數(shù)據(jù)庫,rman報錯的評論 (共 條)

分享到微博請遵守國家法律
新安县| 宣化县| 离岛区| 岑巩县| 左贡县| 濮阳市| 南昌市| 上虞市| 临澧县| 武鸣县| 大田县| 监利县| 三明市| 鄂托克前旗| 韶关市| 昭苏县| 磴口县| 遂川县| 新营市| 宜宾县| 哈巴河县| 安义县| 碌曲县| 闸北区| 莎车县| 湘潭县| 共和县| 临沧市| 嵊州市| 鄯善县| 合作市| 陕西省| 华宁县| 宝清县| 雅安市| 定州市| 沙田区| 金山区| 瑞安市| 白银市| 手机|