千家信息网

ASM下如何迁移spfile

发表于:2025-01-20 作者:千家信息网编辑
千家信息网最后更新 2025年01月20日,这篇文章主要讲解了"ASM下如何迁移spfile",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"ASM下如何迁移spfile"吧!How to move
千家信息网最后更新 2025年01月20日ASM下如何迁移spfile

这篇文章主要讲解了"ASM下如何迁移spfile",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"ASM下如何迁移spfile"吧!

How to move ASM spfile to a different disk group [ID 1082943.1]适用于11R2有两种方法:采用create pfile/spflie通过中间文件迁移;适用asmcmd自带的spcopy命令;第一种方法比较简单,步骤如下create pfile='/tmp/pfile+ASM.ora' from spfile;create spfile='+PLAY' from pfile='/tmp/pfile+ASM.ora';crsctl stop hascrsctl start has --重启验证下面介绍一下spcopy命令由于GPnP profile记录有spfile路径信息,因此需添加-u选项自动更新1. Copy spfile with -u option - to update GPnP profile in RAC environment$ asmcmd spget+DATA/asm/asmparameterfile/registry.253.722601213$ asmcmd lsdgState Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Votin g_files NameMOUNTED EXTERN N 512 4096 1048576 14658 9814 0 9814 0 N DATA/MOUNTED EXTERN N 512 4096 1048576 9772 8507 0 8507 0 N PLAY/MOUNTED EXTERN N 512 4096 1048576 9772 9212 0 9212 0 N RECO/$ asmcmd spcopy -u +DATA/asm/asmparameterfile/registry.253.722601213 +PLAY/spfileASM.ora2. Restart the HA stack to verify that ASM starts up fine with copiedspfile$ crsctl stop hasCRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ''...CRS-4133: Oracle High Availability Services has been stopped.$ crsctl start hasCRS-4123: Oracle High Availability Services has been started.$ asmcmd spget+PLAY/spfileASM.ora3. Remove the original spfile$ asmcmd ls -l +DATA/asm/asmparameterfileType Redund Striped Time Sys NameASMPARAMETERFILE UNPROT COARSE JUN 25 10:00:00 Y REGISTRY.253.722601213$ asmcmd rm +DATA/asm/asmparameterfile/registry.253.722601213NOTE: The disk group that holds ASM spfile has to have COMPATIBLE.ASM value of 11.2 or higher.

感谢各位的阅读,以上就是"ASM下如何迁移spfile"的内容了,经过本文的学习后,相信大家对ASM下如何迁移spfile这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!

0