oracle crs 命令,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 { [...]|-w ]|-all}

[-n ] [-k ] [-d ] [-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

[...]]]

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

{|}//

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 ] [-port

][-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} [|-w

]

[-g]

where
name  CRS entity

name

-w  CRS entity

filter

-g

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/503856.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

一直未运行_【直击一线】延一转三相分离器投运成功,盘活全区生产运行一盘棋...

喜 讯4月30日上午17点30点,新安边作业区延一接转注水站上新更换的三相分离器一次投运成功,这个好消息不胫而走传遍了全区收获获赞声一片,这也是对连日来奋战在施工作业现场的新安边人最大的褒奖。 延一接转注水站全貌延一接转注水站是新安边…

python字符串长度_在python中如何获取字符串的长度

python中如何获取字符串的长度?本篇文章就给大家介绍4种在python中计算并输出字符串长度的方法。有一定的参考价值,有需要的朋友可以参考一下,希望对你们有所帮助。 Python中的字符串是Unicode代码点的不可变序列。给定一个字符串&#xff0c…

python的py文件打包成exe_将python项目.py文件打包成.exe文件

安装pyinstaller包pip3 install pyinstaller如果不行pip3 install pyinstaller -i https://pypi.doubanio.com/simple准备一个你要打包的.py文件,cd到该文件路径下,打开cmd在命令行中输入:pyinstaller -F xxx.py或者pyinstaller.exe -F xxx.p…

python处理字典的方法_python字典的常用操作方法小结

Python字典是另一种可变容器模型(无序),且可存储任意类型对象,如字符串、数字、元组等其他容器模型。本文章主要介绍Python中字典(Dict)的详解操作方法,包含创建、访问、删除、其它操作等,需要的朋友可以参考下。 字典由键和对应值成对组成。字典也被称作…

oracle rowed,oracle bitmap索引内部揭密,欢迎补充

位图(bitmap)索引是另外一种索引类型,它的组织形式与B树索引相同,也是一棵平衡树。与B树索引的区别在于叶子节点里存放索引条目的方式不同。从前面我们知道,B树索引的叶子节点里,对于表里的每个数据行,如果被索引列的值…

linux 谷歌浏览器设置代理_linux下chrome+Proxy Switchy+ssh和firefox+autoproxy+ssh | 学步园...

继之前firefoxautoproxytorprivoxy失效之后,找到了更简单更快速的ssh代理方法:chromeProxy Switchyssh和firefoxautoproxyssh。两种方法都需要一个ssh用户,到这里免费申请:http://www.cjb.net/cgi-bin/shell.cgi?actionsignup。1…

asp.mvc 4项目发布文件目录结构_Spring Boot项目搭建与启动

Spring Boot简介Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。通过这种方式,Spring Boot致力于在蓬勃发…

主成分分析碎石图_主成分分析大全

1 背景主成分分析法是数据挖掘中常用的一种降维算法,是Pearson在1901年提出的,再后来由hotelling在1933年加以发展提出的一种多变量的统计方法,其最主要的用途在于“降维”,通过析取主成分显出的最大的个别差异,也可以用来削减回归分析和聚类分析中变量的…

oracle中删除表字段 sql语句怎么写,oracle使用sql语句增加字段示例(sql删除字段语句)...

添加字段的语法:alter table tablename add (column datatype [default value][null/not null],….);修改字段的语法:alter table tablename modify (column datatype [default value][null/not null],….);删除字段的语法:alter table table…

windows7系统适合哪个python_Python3.6.4在Windows7系统下安装配置教程

Python3.64在Windows7系统下安装配置教程 工具/原料 Windows7系统 python3.6.4版本 方法/步骤 1 双击应用程序打开如图所示的界面这里是应用程序向导界面 这里建议勾选底部的自动写入path,然后点击自定义选项(如图)(当然你也可以选…

ios 获取沙河文件夹_iOS开发之获取沙盒路径

iOS开发之沙盒机制(SandBox)详细讲解了沙盒的一些机制。在开发中,我们需要对沙盒进行操作,所以我们需要获取到沙盒路径。沙盒里的文件夹包括Documents、Library、tmp。这三个文件夹的作用请点击这里。接下来我们来讲解如何获取Documents、Library、tmp的…

php软删除代码,PHP laeavel软删除以及软删除还原 易错点

PHP laeavel软删除以及软删除还原 易错点PHP laeavel软删除以及软删除还原 易错点首先 数据库字段添加deleted_at字段然后在模型层中引入 SoftDeletes类 并引用use Illuminate\Database\Eloquent\SoftDeletes;控制器正常执行删除代码//软删除public function del(int $id){//$r…

为何控件删除不了_过不好又离不了的婚姻,不如这样去处理

你是否常常感慨,走过了那么长的路,看遍了那么多的繁花,听过了那么多的道理,却依然过不好这一生?明明已经很用心的去生活了,明明已经尽了最大的努力了,生活依然如同一团乱麻,处理不好…

oracle命令行原理,Oracle命令行操作方式

(1) 进入sqlplus界面 sqlplus user/passworddbname (2)进入sqlplus界面 sqlplus /nolog SQL>conn sys/jiaxiaoaiorcl as sysdba; (4)查看当前所有的数据库 select * from v$database; 或 select name from v$database; (5)查看哪些用户拥有sysdb…

编辑器eslint格式_ESlint 代码格式大坑vscode vetur,eslint 冲突

解决冲突:① vscode 设置页面设置需要使用 ESlint 的格式化,就要将 vscode 编辑器默认的格式化去掉、把 vetur 插件的格式化改写JSON"vetur.validation.template": false // 把 vetur 扩展的 template 格式化去掉"editor.formatOnSave…

单基因gsea_10个细胞系仅1个表达你的基因

遇到了粉丝的一个超级好的问题:感兴趣的一个基因A,研究它在10种乳腺癌细胞系中的表达情况,跑了western和qpcr 。 发现它只在一种乳腺癌细胞系中表达,其他9种都不表达。 结果是一致的,确认自己的实验没有问题&#xff…

大数据学情分析_多分学情大数据分析

多分学情大数据分析云上大数据仓库解决方案阿里云为企业提供稳定可靠离线数仓和实时数仓的解决方案,包括数据采集、数据存储、数据开发、数据服务、数据运维、数据安全、数据质量、数据地图等完整链路。离线数仓基于Serverless的云上数据仓库解决方案。架构特点开箱…

oracle修改成olap模式,的Oracle OLAP Java实现 - 正确源加入

为此,我使用的是默认的模式/例如从Oracle OLAP下载部分GLOBAL 。这是从Oracle OLAP的Java引导代码的修改后的版本:MdmCube unitsCube (MdmCube)mdmDBSchema.getTopLevelObject("PRICE_CUBE_AWJ");MdmBaseMeasure mdmUnits (MdmBaseMeasure)uni…

c 定义结构体时提示应输入声明_C++|了解结构体的内存对齐(成员声明的顺序影响占用空间大小)...

我们使用的电子计算机绝大部分都是冯诺依曼结构的机器,遵循“存储程序”的概念。数据处理以存储为前提,在编程中数据如何“存得进去,取得出来”,并且符合空间、时间效率的要求,在考虑数据结构和算法时,都要…

oracle to char trim,to_char前面多出空格

to_char前面多出空格用to_char对数字时前面会多出一个空格。SQL> select to_char(10,00) from dual;TO_---10 --前面有一个空格,这是一个正数的符号位SQL> select length(to_char(10,00)) from dual;LENGTH(TO_CHAR(10,00))------------------------3 …