Oracle19C—asm_diskstring设置错误,集群不能启动

Oracle19C—asm_diskstring设置错误,集群不能启动
解决方式:
1.1修改参数 G R I D H O M E / g p n p / GRID_HOME/gpnp/ GRIDHOME/gpnp/HOSTNAME/profile/peer/profile.xml
将参数文件中的启动路径修改为:/dev/oracleasm/disks/*
1.2彻底关闭OHASD服务:# crsctl stop has -f
1.3仅启动ASM 实例,不启动CRS服务: # crsctl start crs -excl -nocrs
1.4Grid用户下修改asm_diskstring路径
$ sqlplus / as sysasm
SQL> alter system set asm_diskstring=’/dev/oracleasm/disks/*’;
SQL> alter diskgroup asmvg1 mount;
SQL> create spfile from memory;
SQL> shut immediate
SQL> startup
SQL> show parameter spfile
SQL> show parameter disk
SQL> create pfile from spfile;
SQL> create spfile=’+asmvg1’ from pfile;
SQL> startup force;
SQL> show parameter spfile
NAME TYPE VALUE


spfile string +asmvg1/testdb-cluster/asmparameterfile/registry.256.3526
由此看出asm_diskstring已成功修改。
在执行 create spfile=’+asmvg1’ from pfile时有次没有找到pfile文件
手动编辑PFILE文件:
pfile.ora
Sm1._oracle_base=’/oracle/grid’
+asm1._oracle_base=’/oracle/grid’
+asm2._oracle_base=’/oracle/grid’
.asm_diskstring=’/dev/oracleasm/disks/
*.asm_power_limit=1
*.large_pool_size=12m
*.remote_login_passwordfile=’EXCLUSIVE’
1.5用crsctl replace votedisk 命令重置votedisk
[root@maclean1 ~]# crsctl replace votedisk +asmvg1
[root@maclean1 ~]# crsctl query css votedisk
[root@maclean1 ~]# ocrcheck
replace votedisk到新的 ASM DISK,确认votedisk和OCR均为可用状态。
1.6重启CRS服务:
[root@maclean1 ~]# crsctl stop crs
[root@maclean1 ~]# crsctl start crs

你可能感兴趣的:(Oracle数据库,数据库)