中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

單機ASM替換存儲和主機

發布時間:2020-07-23 23:31:52 來源:網絡 閱讀:449 作者:llc018198 欄目:關系型數據庫

oracle ASM替換存儲和主機:

1.在新的主機當安裝單機GRID,和數據庫軟件,可以從源主機上拷貝,然后克隆操作

2.把新的存儲掛在舊的主機上,建立新的磁盤組,用back as copy 把數據庫備份到新的磁盤組上,然后

新的存儲從舊的主機上取消映射,

3.把舊的OCR 導出,并導入新的主機上,

./ocrconfig -export /tmp/033_asm.ocr

./ocrconfig -export /tmp/053_asm.ocr


./ocrconfig -import /tmp/ocr.bak


4.重新啟動crs,可以看到磁盤組已經在新的主機上掛載了。


5.修改控制文件和數據文件路徑:

SQL> ALTER SYSTEM SET DB_CREATE_FILE_DEST='+DATA' SID='*';
System altered.
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=100G SID='*';
System altered.
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='+FRA' SID='*';




SQL>  ALTER SYSTEM SET CONTROL_FILES='+DATA','+FRA' SCOPE=SPFILE SID='*';
System altered.


從源主機上拷貝控制文件,恢復到目標主機上


alter database mount;


SWITCH DATABASE TO COPY;

recover database

;;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/22/2016 20:35:05
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 2274 and starting SCN of 64377780446 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2273 and starting SCN of 64375042569 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2272 and starting SCN of 64371781040 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2271 and starting SCN of 64369148011 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2270 and starting SCN of 64367907974 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2269 and starting SCN of 64366653696 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2268 and starting SCN of 64363294087 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2267 and starting SCN of 64358391536 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2266 and starting SCN of 64352846715 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2265 and starting SCN of 64352844045 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2264 and starting SCN of 64352832699 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2263 and starting SCN of 64352555519 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2262 and starting SCN of 64349448092 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2261 and starting SCN of 64348058197 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2260 and starting SCN of 64346601983 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2259 and starting SCN of 64344758678 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2258 and starting SCN of 64343087188 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2257 and starting SCN of 64340524960 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 2256 and starting SCN of 64340493278 found to restor

在源主機上備份這些日志

backup as copy archivelog sequence between 2248 and 2274 thread 1 format '/app/bak0622_arch/archivelog_%U.%T';


拷貝到目標機;

然后catalog start with


RMAN>  catalog start with '/app/oracle/bak_arch/';

searching for all files that match the pattern /app/oracle/bak_arch/

List of Files Unknown to the Database
=====================================
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2256_T-1_A-909648652_2gr8qaih.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2257_T-1_A-909648652_2hr8qaj0.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2258_T-1_A-909648652_2ir8qajf.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2259_T-1_A-909648652_2jr8qaju.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2260_T-1_A-909648652_2kr8qakd.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2261_T-1_A-909648652_2lr8qaks.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2262_T-1_A-909648652_2mr8qall.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2263_T-1_A-909648652_2nr8qam4.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2264_T-1_A-909648652_2or8qamt.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2265_T-1_A-909648652_2pr8qanm.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2266_T-1_A-909648652_2qr8qaof.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2267_T-1_A-909648652_2rr8qap8.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2268_T-1_A-909648652_2sr8qaq1.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2269_T-1_A-909648652_2tr8qaqh.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2270_T-1_A-909648652_2ur8qara.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2271_T-1_A-909648652_2vr8qas3.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2272_T-1_A-909648652_30r8qasi.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2273_T-1_A-909648652_31r8qat1.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2274_T-1_A-909648652_32r8qatg.20160622

Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2256_T-1_A-909648652_2gr8qaih.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2257_T-1_A-909648652_2hr8qaj0.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2258_T-1_A-909648652_2ir8qajf.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2259_T-1_A-909648652_2jr8qaju.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2260_T-1_A-909648652_2kr8qakd.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2261_T-1_A-909648652_2lr8qaks.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2262_T-1_A-909648652_2mr8qall.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2263_T-1_A-909648652_2nr8qam4.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2264_T-1_A-909648652_2or8qamt.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2265_T-1_A-909648652_2pr8qanm.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2266_T-1_A-909648652_2qr8qaof.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2267_T-1_A-909648652_2rr8qap8.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2268_T-1_A-909648652_2sr8qaq1.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2269_T-1_A-909648652_2tr8qaqh.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2270_T-1_A-909648652_2ur8qara.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2271_T-1_A-909648652_2vr8qas3.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2272_T-1_A-909648652_30r8qasi.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2273_T-1_A-909648652_31r8qat1.20160622
File Name: /app/oracle/bak_arch/archivelog_arch_D-TEST_id-2207710614_S-2274_T-1_A-909648652_32r8qatg.20160622


再RECOVER database;


處理臨時表空間和日志文件




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

兰西县| 吉首市| 自贡市| 临城县| 农安县| 青龙| 城步| 都江堰市| 淄博市| 密山市| 宁明县| 闸北区| 山阳县| 南通市| 小金县| 木兰县| 禹州市| 堆龙德庆县| 新巴尔虎左旗| 怀安县| 绥化市| 黄梅县| 芒康县| 扎囊县| 旬邑县| 思南县| 永顺县| 都江堰市| 铜梁县| 大冶市| 睢宁县| 梅河口市| 偏关县| 曲麻莱县| 玉门市| 十堰市| 泰兴市| 志丹县| 烟台市| 大厂| 略阳县|