查找spfile
asmcmd find --type ASMPARAMETERFILE +OCR "*"
asmcmd spget
show parameter spfile;
mkdir -p /u01/oragrid/spfile/
asmcmd spbackup +OCR/ASM/ASMPARAMETERFILE/REGISTRY.253.1080664773 /u01/oragrid/spfile/ASMspfile.backup
strings /u01/oragrid/spfile/ASMspfile.backup
crsctl stat res ora.asm -p | egrep "ASM_DISKSTRING|SPFILE"
create pfile='/u01/oragrid/spfile/pfile+ASM.ora' from spfile;
ll /u01/oragrid/spfile/
这个慢
shutdown abort;
startup pfile='/u01/oragrid/spfile/pfile+ASM.ora';
创建spfile
create spfile='+LH_TEST/spfileASM.ora' from pfile='/u01/oragrid/spfile/pfile+ASM.ora';
asmcmd ls -l +LH_TEST/spfileASM.ora