由于涉及的节点、实例多于一个,因此RAC环境下的ORACLE数据库升级包含多个步骤,某些操作执行的先后顺序也有讲究,不是想停就停、想升就升、想启就启的,这点与单实例数据库的操作有很大差异。
[oracle@jssdbn1 ~]$ $ORA_CRS_HOME/bin/srvctl stop asm -n jssdbn1
[oracle@jssdbn1 ~]$ $ORA_CRS_HOME/bin/srvctl stop asm -n jssdbn2
[oracle@jssdbn1 ~]$ $ORA_CRS_HOME/bin/srvctl stop listener -n jssdbn1
[oracle@jssdbn1 ~]$ $ORA_CRS_HOME/bin/srvctl stop listener -n jssdbn2
[oracle@jssdbn1 ~]$ $ORA_CRS_HOME/bin/crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.jssdb.db application OFFLINE OFFLINE
ora....n1.inst application OFFLINE OFFLINE
ora....n2.inst application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....N1.lsnr application OFFLINE OFFLINE
ora....bn1.gsd application ONLINE ONLINE jssdbn1
ora....bn1.ons application ONLINE ONLINE jssdbn1
ora....bn1.vip application ONLINE ONLINE jssdbn1
ora....SM2.asm application OFFLINE OFFLINE
ora....N2.lsnr application OFFLINE OFFLINE
ora....bn2.gsd application ONLINE ONLINE jssdbn2
ora....bn2.ons application ONLINE ONLINE jssdbn2
ora....bn2.vip application ONLINE ONLINE jssdbn2