Starting and Stopping Oracle ASM instance 19c
Here will see the ASM start and shutdown steps in different methods
- ASM
Command-Line Utility (ASMCMD)
- Sqlplus using sysasm utlity
- Server
control utility (Srvctl)
- Clusterware
Control (CRSCTL) Utility
- Stop
start ASM suing systemctl
Start & Stop using ASM Command-Line Utility (ASMCMD) Utility
[oracle@oraclelab1 ~]$ asmcmd
ASMCMD> shutdown
ASM diskgroups dismounted
ASM instance shutdown
Connected to an idle instance.
ASMCMD>
ASMCMD> startup
ASM instance started
Total System Global Area 1137173320 bytes
Fixed Size
8905544 bytes
Variable Size
1103101952 bytes
ASM Cache
25165824 bytes
ASM diskgroups mounted
ASMCMD>
Start & Stop using sqlplus
Utlity
[oracle@oraclelab1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 19.0.0.0.0 - Production on Mon Aug 29 13:57:46 2022
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
SQL> shutdown
ASM diskgroups dismounted
ASM instance shutdown
SQL>
SQL> startup
ASM instance started
Total System Global Area 1137173320 bytes
Fixed Size
8905544 bytes
Variable Size
1103101952 bytes
ASM Cache
25165824 bytes
ASM diskgroups mounted
Start & stop using Clusterware Control (CRSCTL) Utility
I am always using ASM start and stop crsctl utility.
Check the cluster component status
[oracle@oraclelab1 ~]$ crsctl stat res -t
Stop the High availability services (HAS)
This command attempts to stop resources managed by Oracle Clusterware while attempting to stop Oracle High Availability Services.
[oracle@oraclelab1 ~]$ crsctl stop has
Start the High availability services (HAS)
This command attempts to start resources managed by Oracle Clusterware
while attempting to stop Oracle High Availability Services.
[oracle@oraclelab1 ~]$ crsctl start has
Stop& start ASM Using
Server control utility(SRVCTL)
SRVCTL stop& start command it will shutdown and start database also.
[oracle@oraclelab1 ~]$ . oraenv
ORACLE_SID = [+ASM] ? +ASM
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@oraclelab1 ~]$ srvctl stop asm -f
[oracle@oraclelab1 ~]$ srvctl start asm -o mount
Stop start ASM using systemctl
systemctl status oracle-ohasd.service
systemctl stop oracle-ohasd.service
systemctl start oracle-ohasd.service
Stop & Start Database
Using Server control utility(SRVCTL)
Syntax:-
srvctl stop database -db db_unique_name[-stopoption stop_options]
Finding the db unique name
SQL> show parameter db_unique_name
NAME TYPE VALUE
------------------------------------ -----------
---------------
db_unique_name string TESTCDB
SQL> exit
SRVCTL Command
srvctl status database -d TESTCDB
srvctl stop database -d TESTCDB -o immediate
srvctl start database -d TESTCDB -o nomount
srvctl start database -d TESTCDB -o mount
srvctl start database -d TESTCDB -o open
srvctl start database -d TESTCDB
Note:- ASM will not go for open mode only it will open mount mode only. Because ASM don't have any control file.
Understanding of ASM Startup
sequence
OS init Daemen process (init)
Grid Infrastructure Wrapper Script(init.ohasd)
Grid Infrastructure Daemen process
- ohasd.bin
- oraagent.bin
- orarootagent.bin
- diskmon.bin
- cssdagent
- ocssd.bin
ASM Instance
Listener
DB Instance
Comments
Post a Comment