问题描述
在今日单实例ASM的测试环境下进行了一些实验,在主机上增加/dev/shm
的大小,发现ASM实例已经无法打开的情况。
问题复现
最初的数据库都是OK的
[grid@asm:/home/grid]$ sqlplus / as sysasm
SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 9 16:22:36 2023
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
执行shm挂载操作
[root@asm ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.8G 1001M 823M 55% /dev/shm
#执行操作
[root@asm ~]# mount -t tmpfs shmfs -o size=3g /dev/shm
[root@asm ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.8G 0 1.8G 0% /dev
shmfs 3.0G 0 3.0G 0% /dev/shm
ASM实例出现问题
[grid@asm:/home/grid]$ sqlplus / as sysasm
SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 9 16:40:53 2023
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to an idle instance.
startup报错信息
SQL> startup;
ORA-39511: Start of CRS resource for instance '223' failed with error:[CRS-5702: Resource 'ora.asm' is already running on 'asm'
CRS-0223: Resource 'ora.asm' has placement error.
clsr_start_resource:260 status:223
clsrapi_start_asm:start_asmdbs status:223
]
监听状态
[grid@asm:/u01/app/19c/grid]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 09-MAY-2023 16:51:24
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.88.81)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 09-MAY-2023 16:21:47
Uptime 0 days 0 hr. 29 min. 36 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/19c/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/asm/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.88.81)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "86b637b62fdf7a65e053f706e80a27ca" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "fad59df3160b663de0558df00550a5e0" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "pdb_orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle 实例
[oracle@asm db_1]$ sqlplus / as sysdba;
SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 9 16:50:49 2023
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
解决
解决方法很简单,直接重启主机就好了。
验证
经重启后发现/dev/shm重回正常,ASM实例可以正常打开。