广告
返回顶部
首页 > 资讯 > 数据库 >oracle rac crsctl命令怎么用
  • 518
分享到

oracle rac crsctl命令怎么用

2024-04-02 19:04:59 518人浏览 薄情痞子
摘要

这篇文章主要介绍了oracle rac crsctl命令怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

这篇文章主要介绍了oracle rac crsctl命令怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

oracle rac crsctl命令使用


查看crs资源状态

[grid@db1 ~]$ crs_stat -t

Name           Type           Target    State     Host      

------------------------------------------------------------

ora.DATA.dg    ora....up.type ONLINE    ONLINE    db1       

ora.FRA.dg     ora....up.type ONLINE    ONLINE    db1       

ora....ER.lsnr ora....er.type ONLINE    ONLINE    db1       

ora....N1.lsnr ora....er.type ONLINE    ONLINE    db1       

ora.OCR.dg     ora....up.type ONLINE    ONLINE    db1       

ora.asm        ora.asm.type   ONLINE     ONLINE    db1       

ora.cvu        ora.cvu.type   ONLINE     ONLINE    db1       

ora....SM1.asm application    ONLINE    ONLINE    db1       

ora....B1.lsnr application    ONLINE    ONLINE    db1       

ora.db1.gsd    application    OFFLINE   OFFLINE             

ora.db1.ons    application    ONLINE    ONLINE    db1       

ora.db1.vip    ora....t1.type ONLINE    ONLINE    db1       

ora....SM2.asm application    ONLINE    ONLINE    db2       

ora....B2.lsnr application    ONLINE    ONLINE    db2       

ora.db2.gsd    application    OFFLINE   OFFLINE             

ora.db2.ons    application    ONLINE    ONLINE    db2       

ora.db2.vip    ora....t1.type ONLINE    ONLINE    db2       

ora.dmzdb.db   ora....se.type ONLINE    ONLINE    db1       

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE             

ora....network ora....rk.type ONLINE    ONLINE    db1       

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    db1       

ora.ons        ora.ons.type   ONLINE    ONLINE    db1       

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    db1       

查看资源状态

 [grid@db1 ~]$ crsctl stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETaiLS     

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.DATA.dg

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.FRA.dg

               ONLINE  ONLINE       db1                                         

               ONLINE  ONLINE       db2                                        

ora.LISTENER.lsnr

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                         

ora.OCR.dg

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.asm

               ONLINE  ONLINE       db1                      Started           

               ONLINE  ONLINE       db2                      Started           

ora.gsd

               OFFLINE OFFLINE      db1                                        

               OFFLINE OFFLINE      db2                                         

ora.net1.network

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.ons

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1        ONLINE  ONLINE       db1                                        

ora.cvu

      1        ONLINE  ONLINE       db1                                         

ora.db1.vip

      1        ONLINE  ONLINE       db1                                        

ora.db2.vip

      1        ONLINE  ONLINE       db2                                        

ora.dmzdb.db

      1        ONLINE  ONLINE       db1                      Open              

      2        ONLINE  ONLINE       db2                      Open              

ora.oc4j

      1        ONLINE  ONLINE       db1                                        

ora.scan1.vip

      1        ONLINE  ONLINE       db1                                        

[grid@db1 ~]$

查看资源

[grid@db1 ~]$ crs_stat

NAME=ora.DATA.dg

TYPE=ora.diskgroup.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.FRA.dg

TYPE=ora.diskgroup.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.LISTENER.lsnr

TYPE=ora.listener.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.LISTENER_SCAN1.lsnr

TYPE=ora.scan_listener.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.OCR.dg

TYPE=ora.diskgroup.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.asm

TYPE=ora.asm.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.cvu

TYPE=ora.cvu.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.db1.ASM1.asm

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.db1.LISTENER_DB1.lsnr

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.db1.gsd

TYPE=application

TARGET=OFFLINE

STATE=OFFLINE

NAME=ora.db1.ons

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.db1.vip

TYPE=ora.cluster_vip_net1.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.db2.ASM2.asm

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db2

NAME=ora.db2.LISTENER_DB2.lsnr

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db2

NAME=ora.db2.gsd

TYPE=application

TARGET=OFFLINE

STATE=OFFLINE

NAME=ora.db2.ons

TYPE=application

TARGET=ONLINE

STATE=ONLINE on db2

NAME=ora.db2.vip

TYPE=ora.cluster_vip_net1.type

TARGET=ONLINE

STATE=ONLINE on db2

NAME=ora.dmzdb.db

TYPE=ora.database.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.gsd

TYPE=ora.gsd.type

TARGET=OFFLINE

STATE=OFFLINE

NAME=ora.net1.network

TYPE=ora.network.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.oc4j

TYPE=ora.oc4j.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.ons

TYPE=ora.ons.type

TARGET=ONLINE

STATE=ONLINE on db1

NAME=ora.scan1.vip

TYPE=ora.scan_vip.type

TARGET=ONLINE

STATE=ONLINE on db1

[grid@db1 ~]$

check  crs 状态

[grid@db1 ~]$ crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

root用户下加入如下内容

export ORACLE_HOME=/u01/app/11.2.0/grid/

PATH=${PATH}:$ORACLE_HOME/bin

[root@db1 ~]# cat .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_HOME=/u01/app/11.2.0/grid/

PATH=${PATH}:$ORACLE_HOME/bin

[root@db1 ~]#

停crs之前一般要停监听,停库(先停监听,在停库,防止新会话上来)

[grid@db1 ~]$ srvctl stop listener  -n db1

[grid@db1 ~]$ srvctl stop   instance -d dmzdb  -i dmzdb1

停db1  crs

[root@db1 ~]# crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'db1'

CRS-2673: Attempting to stop 'ora.crsd' on 'db1'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.dmzdb.db' on 'db1'

CRS-2673: Attempting to stop 'ora.oc4j' on 'db1'

CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'db1'

CRS-2673: Attempting to stop 'ora.cvu' on 'db1'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'db1'

CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.db1.vip' on 'db1'

CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.scan1.vip' on 'db1'

CRS-2677: Stop of 'ora.db1.vip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.db1.vip' on 'db2'

CRS-2677: Stop of 'ora.scan1.vip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.scan1.vip' on 'db2'

CRS-2677: Stop of 'ora.FRA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.dmzdb.db' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db1'

CRS-2676: Start of 'ora.db1.vip' on 'db2' succeeded

CRS-2676: Start of 'ora.scan1.vip' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'db2'

CRS-2677: Stop of 'ora.DATA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.oc4j' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.oc4j' on 'db2'

CRS-2677: Stop of 'ora.cvu' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.cvu' on 'db2'

CRS-2676: Start of 'ora.cvu' on 'db2' succeeded

CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'db2' succeeded

CRS-2676: Start of 'ora.oc4j' on 'db2' succeeded

CRS-2677: Stop of 'ora.OCR.dg' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'db1'

CRS-2677: Stop of 'ora.ons' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db1'

CRS-2677: Stop of 'ora.net1.network' on 'db1' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed

CRS-2677: Stop of 'ora.crsd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.crf' on 'db1'

CRS-2673: Attempting to stop 'ora.ctssd' on 'db1'

CRS-2673: Attempting to stop 'ora.evmd' on 'db1'

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'db1'

CRS-2677: Stop of 'ora.crf' on 'db1' succeeded

CRS-2677: Stop of 'ora.evmd' on 'db1' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'db1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db1' succeeded

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db1'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.CSSd' on 'db1'

CRS-2677: Stop of 'ora.cssd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'db1'

CRS-2677: Stop of 'ora.gipcd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.gpnpd' on 'db1'

CRS-2677: Stop of 'ora.gpnpd' on 'db1' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'db1' has completed

CRS-4133: Oracle High Availability Services has been stopped.

[root@db1 ~]#

另一种停crs方法,停db1:

[grid@db1 ~]$ srvctl stop listener  -n db1

[grid@db1 ~]$ srvctl stop   instance -d dmzdb  -i dmzdb1

[root@db1 ~]# crsctl stop  cluster -n db1

CRS-2673: Attempting to stop 'ora.crsd' on 'db1'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'

CRS-2673: Attempting to stop 'ora.db1.vip' on 'db1'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db1'

CRS-2677: Stop of 'ora.db1.vip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.db1.vip' on 'db2'

CRS-2677: Stop of 'ora.FRA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.DATA.dg' on 'db1' succeeded

CRS-2676: Start of 'ora.db1.vip' on 'db2' succeeded

CRS-2677: Stop of 'ora.OCR.dg' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'db1'

CRS-2677: Stop of 'ora.ons' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db1'

CRS-2677: Stop of 'ora.net1.network' on 'db1' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed

CRS-2677: Stop of 'ora.crsd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'db1'

CRS-2673: Attempting to stop 'ora.evmd' on 'db1'

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.evmd' on 'db1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db1' succeeded

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db1'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'db1'

CRS-2677: Stop of 'ora.cssd' on 'db1' succeeded

[root@db1 ~]#

启动crs  ,db1为例子

[root@db1 ~]#

[root@db1 ~]# crsctl start  cluster -n  db1

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'db1'

CRS-2676: Start of 'ora.cssdmonitor' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'db1'

CRS-2672: Attempting to start 'ora.diskmon' on 'db1'

CRS-2676: Start of 'ora.diskmon' on 'db1' succeeded

CRS-2676: Start of 'ora.cssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'db1'

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'db1'

CRS-2676: Start of 'ora.ctssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'db1'

CRS-2676: Start of 'ora.evmd' on 'db1' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'db1'

CRS-2676: Start of 'ora.asm' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'db1'

CRS-2676: Start of 'ora.crsd' on 'db1' succeeded

[root@db1 ~]#

crsctl stop 全部节点(先停监听,停库,再停crs)

[grid@db1 ~]$ srvctl stop listener  -n db1

[grid@db1 ~]$ srvctl stop   instance -d dmzdb  -i dmzdb1

[grid@db2 ~]$ srvctl stop listener  -n db2

[grid@db2 ~]$ srvctl stop   instance -d dmzdb  -i dmzdb2

 [root@db1 ~]# crsctl stop  cluster -all

CRS-2673: Attempting to stop 'ora.crsd' on 'db1'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'

CRS-2673: Attempting to stop 'ora.db1.vip' on 'db1'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db1'

CRS-2677: Stop of 'ora.db1.vip' on 'db1' succeeded

CRS-2677: Stop of 'ora.FRA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.DATA.dg' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.crsd' on 'db2'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db2'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.db2.vip' on 'db2'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'db2'

CRS-2673: Attempting to stop 'ora.oc4j' on 'db2'

CRS-2673: Attempting to stop 'ora.cvu' on 'db2'

CRS-2677: Stop of 'ora.db2.vip' on 'db2' succeeded

CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.scan1.vip' on 'db2'

CRS-2677: Stop of 'ora.scan1.vip' on 'db2' succeeded

CRS-2677: Stop of 'ora.FRA.dg' on 'db2' succeeded

CRS-2677: Stop of 'ora.DATA.dg' on 'db2' succeeded

CRS-2677: Stop of 'ora.oc4j' on 'db2' succeeded

CRS-2677: Stop of 'ora.cvu' on 'db2' succeeded

CRS-2677: Stop of 'ora.OCR.dg' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'db1'

CRS-2677: Stop of 'ora.ons' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db1'

CRS-2677: Stop of 'ora.net1.network' on 'db1' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed

CRS-2677: Stop of 'ora.crsd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'db1'

CRS-2673: Attempting to stop 'ora.evmd' on 'db1'

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.evmd' on 'db1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db1' succeeded

CRS-2677: Stop of 'ora.OCR.dg' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db2'

CRS-2677: Stop of 'ora.asm' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'db2'

CRS-2677: Stop of 'ora.ons' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db2'

CRS-2677: Stop of 'ora.net1.network' on 'db2' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db2' has completed

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db1'

CRS-2677: Stop of 'ora.crsd' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'db2'

CRS-2673: Attempting to stop 'ora.evmd' on 'db2'

CRS-2673: Attempting to stop 'ora.asm' on 'db2'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'db1'

CRS-2677: Stop of 'ora.evmd' on 'db2' succeeded

CRS-2677: Stop of 'ora.cssd' on 'db1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db2' succeeded

CRS-2677: Stop of 'ora.asm' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db2'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'db2'

CRS-2677: Stop of 'ora.cssd' on 'db2' succeeded

[root@db1 ~]#

启动全部节点命令

[root@db1 ~]# crsctl start cluster -all

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'db1'

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'db2'

CRS-2676: Start of 'ora.cssdmonitor' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'db1'

CRS-2672: Attempting to start 'ora.diskmon' on 'db1'

CRS-2676: Start of 'ora.cssdmonitor' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'db2'

CRS-2672: Attempting to start 'ora.diskmon' on 'db2'

CRS-2676: Start of 'ora.diskmon' on 'db1' succeeded

CRS-2676: Start of 'ora.diskmon' on 'db2' succeeded

CRS-2676: Start of 'ora.cssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'db1'

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'db1'

CRS-2676: Start of 'ora.cssd' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'db2'

CRS-2676: Start of 'ora.ctssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'db1'

CRS-2676: Start of 'ora.ctssd' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'db2'

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'db2'

CRS-2676: Start of 'ora.evmd' on 'db1' succeeded

CRS-2676: Start of 'ora.evmd' on 'db2' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'db1'

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'db2'

CRS-2676: Start of 'ora.asm' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'db1'

CRS-2676: Start of 'ora.crsd' on 'db1' succeeded

CRS-2676: Start of 'ora.asm' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'db2'

CRS-2676: Start of 'ora.crsd' on 'db2' succeeded

查看crs状态(实例与监听,后面启动)

[root@db1 ~]# crsctl  stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS     

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.DATA.dg

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.FRA.dg

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.LISTENER.lsnr

               OFFLINE OFFLINE      db1                                        

               OFFLINE OFFLINE      db2                                        

ora.OCR.dg

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                        

ora.asm

               ONLINE  ONLINE       db1                      Started           

               ONLINE  ONLINE       db2                      Started           

ora.gsd

               OFFLINE OFFLINE      db1                                        

               OFFLINE OFFLINE      db2                                        

ora.net1.network

               ONLINE  ONLINE       db1                                         

               ONLINE  ONLINE       db2                                        

ora.ons

               ONLINE  ONLINE       db1                                        

               ONLINE  ONLINE       db2                                         

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1        ONLINE  ONLINE       db1                                         

ora.cvu

      1        ONLINE  ONLINE       db1                                        

ora.db1.vip

      1        ONLINE  ONLINE       db1                                        

ora.db2.vip

      1        ONLINE  ONLINE       db2                                        

ora.dmzdb.db

      1        OFFLINE OFFLINE                               Instance Shutdown 

      2        OFFLINE OFFLINE                               Instance Shutdown 

ora.oc4j

      1        ONLINE  ONLINE       db1                                        

ora.scan1.vip

      1        ONLINE  ONLINE       db1                                        

[root@db1 ~]#

[

crsctl   -h 查看帮助

[root@db1 ~]# crsctl -h

Usage: crsctl add       - add a resource, type or other entity

       crsctl check     - check a service, resource or other entity

       crsctl config    - output autostart configuration

       crsctl debug     - obtain or modify debug state

       crsctl delete    - delete a resource, type or other entity

       crsctl disable   - disable autostart

       crsctl discover  - discover DHCP server

       crsctl enable    - enable autostart

       crsctl get       - get an entity value

       crsctl getperm   - get entity permissions

       crsctl lsmodules - list debug modules

       crsctl modify    - modify a resource, type or other entity

       crsctl query     - query service state

       crsctl pin       - pin the nodes in the node list

       crsctl relocate  - relocate a resource, server or other entity

       crsctl replace   - replaces the location of voting files

       crsctl release   - release a DHCP lease

       crsctl request   - request a DHCP lease

       crsctl setperm   - set entity permissions

       crsctl set       - set an entity value

       crsctl start     - start a resource, server or other entity

       crsctl status    - get status of a resource or other entity

       crsctl stop      - stop a resource, server or other entity

       crsctl unpin     - unpin the nodes in the node list

       crsctl unset     - unset an entity value, restoring its default

[root@db1 ~]# crsctl start -h

Usage:

  crsctl start resource {<resName> [...]|-w <filter>]|-all} [-n <server>] [-k <cid>] [-d <did>] [-env "env1=val1,env2=val2,..."] [-f] [-i]

     Start designated resources

where

     resName [...]    One or more blank-separated resource names

     -w               Resource filter

     -all             All resources

     -n               Server name

     -k               Resource cardinality ID

     -d               Resource degree ID

     -env             Attribute overrides for this command

     -f               Force option

     -i               Fail if request cannot be processed immediately

  crsctl start crs [-excl [-nocrs]|-nowait]

     Start OHAS on this server

where

     -excl        Start Oracle Clusterware in exclusive mode

     -nocrs       Start Oracle Clusterware in exclusive mode without starting CRS

     -nowait      Do not wait for OHAS to start

  crsctl start cluster [[-all]|[-n <server>[...]]]

    Start CRS stack

where

    Default         Start local server

    -all            Start all servers

    -n              Start named servers

    server [...]    One or more blank-separated server names

  crsctl start ip -A {<IP_name>|<IP_address>}/<net_mask>/<interface_name>

    Start an IP on the given interface with specified net mask

Where

    IP_name              Name which resolves to an IP. If it is not a fully qualified domain name then standard name search will be used.

    IP_address           IP address

    net_mask             Subnet mask for the IP to start

    interface_name       Interface on which to start the IP

  crsctl start testdns [-address <IP_address>] [-port <port>][-domain <GNS_domain>] [-once][-v]

    Start a test DNS listener that listens on the given address at the given port and for specified domain

Where

    IP_address          IP address to be used by the listener (defaults to hostname)

    port                The port on which the listener will listen. Default value is 53.

    domain              The domain query for which to listen. By default, all domain queries are processed.

    -once               Flag indicating that DNS listener should exit after one DNS query packet is received

    -v                  Verbose output

[root@db1 ~]# crsctl status -h

Usage:

  crsctl status {resource|type|serverpool|server} [<name>|-w <filter>] [-g]

where

    name   CRS entity name

    -w     CRS entity filter

    -g     Check if CRS entities are reGIStered

  crsctl status ip -A {<IP_name>|<IP_address>}

     Check if the IP is alive

Where

     IP_name        Name which resolves to an IP. If name is not fully qualified domain name then standard name search will be used.

     IP_address     IP address

  crsctl status testdns [-address <IP_address>] [-port <port>] [-v]

     Check status of DNS server for specified domain

Where

     IP_address          DNS server address (defaults to hostname)

     port                The port on which the DNS server is listening. Default value for the port is 53.

     -v                  Verbose output

感谢你能够认真阅读完这篇文章,希望小编分享的“oracle rac crsctl命令怎么用”这篇文章对大家有帮助,同时也希望大家多多支持编程网,关注编程网数据库频道,更多相关知识等着你来学习!

您可能感兴趣的文档:

--结束END--

本文标题: oracle rac crsctl命令怎么用

本文链接: https://www.lsjlt.com/news/64112.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • oracle rac crsctl命令怎么用
    这篇文章主要介绍了oracle rac crsctl命令怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 ...
    99+
    2022-10-18
  • oracle11gRAC中crsctl命令怎么用
    这篇文章将为大家详细讲解有关oracle11gRAC中crsctl命令怎么用,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 oracle11gRAC之crsctl命令:...
    99+
    2022-10-19
  • crsctl 常用命令
     [oracle@rac01 ~]$ crsctl Usage: crsctl check  crs   ...
    99+
    2022-10-18
  • oracle 11g 中crsctl的替换命令是什么
    这篇文章将为大家详细讲解有关oracle 11g 中crsctl的替换命令是什么,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。oracle 11g 中 (ora...
    99+
    2022-10-19
  • oracle RAC 检查命令
    1、--查询RAC中数据库实例的信息srvctl config database -d yjdd(实例名)-aDatabase unique name: yjddDatabase name: yjddOra...
    99+
    2022-10-18
  • oracle 11g RAC 命令整理
    使用 SRVCTL 启动/停止所有实例:  ...
    99+
    2022-10-18
  • Oracle Rac常用命令有哪些
    这篇文章主要介绍“Oracle Rac常用命令有哪些”,在日常操作中,相信很多人在Oracle Rac常用命令有哪些问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Oracle...
    99+
    2022-10-18
  • ORACLE 11G RAC常用命令有哪些
    这篇文章给大家分享的是有关ORACLE 11G RAC常用命令有哪些的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。ORACLE 11G RAC常用命令(grid用户查看)1:检查...
    99+
    2022-10-18
  • Oracle RAC基本维护命令有哪些
    今天就跟大家聊聊有关Oracle RAC基本维护命令有哪些,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。Oracle RAC日常基本维护命令所有实例和服务的状态$ srvctl st...
    99+
    2023-06-06
  • RAC常用的管理命令
    这篇文章主要介绍“RAC常用的管理命令”,在日常操作中,相信很多人在RAC常用的管理命令问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”RAC常用的管理命令”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!&n...
    99+
    2023-06-06
  • oracle 10g RAC怎么升级到oracle 11g RAC
    oracle 10g RAC怎么升级到oracle 11g RAC,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。 ...
    99+
    2022-10-19
  • oracle常用命令
    修改密码alter user DBUSER identified by 123456;查询表空间中数据文件具体位置select name from v$datafile;查询表空间中数据文件具体位...
    99+
    2022-10-18
  • oracle sqlplus常用命令
    一、sys用户和system用户Oracle安装会自动的生成sys用户和system用户(1)、sys用户是超级用户,具有最高权限,具有sysdba角色,有create database的权限,该用户默认的...
    99+
    2022-10-18
  • oracle常用命令2
    一、连接数情况:查看当前的连接数select count() from v$process;查看设置的最大连接数(默认值为150):select value from v$paramet...
    99+
    2022-10-18
  • oracle 12c 常用命令
    1、查看有多少pdb数据库:SQL> show pdbs;2、切换到指定容器数据库:SQL> alter session set container=ORCLPDB;3、启动容器数据库:SQL&...
    99+
    2022-10-18
  • Linux常用命令groupdel命令怎么用
    这篇文章主要介绍Linux常用命令groupdel命令怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!Linux常用命令groupdel命令用于删除群组需要从系统上删除群组时,可用groupdel(group d...
    99+
    2023-06-28
  • Linux常用命令bzless命令怎么用
    这篇文章主要介绍Linux常用命令bzless命令怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!Linux常用命令bzless命令是增强 .bz2 压缩包查看器,bzless比bzmore命令功能更加强大语法&...
    99+
    2023-06-28
  • oracle删除用户命令和部分命令
    oracle删除用户命令和部分命令drop user user_name cascade;drop user user_name cascade;建立表空间CREATE TABLESPACE da...
    99+
    2022-10-18
  • Oracle中怎么配置RAC + SingleADG
    这篇文章主要介绍“Oracle中怎么配置RAC + SingleADG”,在日常操作中,相信很多人在Oracle中怎么配置RAC + SingleADG问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操...
    99+
    2022-10-18
  • oracle rac序列乱怎么办
    小编给大家分享一下oracle rac序列乱怎么办,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!sequence创建方法:CRE...
    99+
    2022-10-19
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作