日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle crs 命令,ORACLE RAC CRSCTL 命令使用 及 执行的用户

發布時間:2024/7/23 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

whereresName [...]

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

whereDefault ?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

WhereIP_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

WhereIP_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]

wherename ?CRS entity

name

-w ?CRS entity

filter

-g

總結

以上是生活随笔為你收集整理的oracle crs 命令,ORACLE RAC CRSCTL 命令使用 及 执行的用户的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 国产伦精品一区三区精东 | 玖草视频在线观看 | 91精品视频免费观看 | 成人综合区一区 | 成人手机看片 | 国产伦精品一区二区三区高清版禁 | 日韩免费影视 | 亚洲成人av在线播放 | 台湾男男gay做爽爽的视频 | 草女人视频 | chinese国产精品 | 国产性―交―乱―色―情人 | 欧美日韩免费做爰视频 | 中文字幕在线视频一区 | 91jk制服白丝超短裙大长腿 | 亚洲五月花 | 毛片在线免费播放 | av丝袜在线| 伊人精品在线观看 | 亚洲国产v | av在线网站观看 | 亚洲av综合色区无码一区 | 国产亚洲精品久久久久久青梅 | 亚洲福利久久 | 亚洲乱码日产精品bd在线观看 | 久久久久久久毛片 | 麻豆久久久久久久久久 | 麻豆国产精品一区 | 久久看片网 | 无码国产精品一区二区高潮 | 无码aⅴ精品一区二区三区 精品久久在线 | 精品国产999久久久免费 | 在线免费观看黄色小视频 | 一区二区伊人 | 天天操天天爽天天干 | 欧美xxxx精品 | 亚洲一区二区三区 | 亚洲精品成人无码 | 日本69式三人交 | 色香蕉在线视频 | 99精品在线 | 欧美日韩免费高清一区色橹橹 | 78日本xxxxxxxxx59| 午夜一本 | 欧美熟妇一区二区 | 岛国伊人 | 熟女俱乐部五十路六十路av | 国产三级免费观看 | 欧美五月激情 | 免费在线观看视频 | 国产区视频在线观看 | 欧美aⅴ在线观看 | 国精产品一区一区三区 | 欧美一区在线观看视频 | 九九av在线 | 国产精品操 | 老牛影视av一区二区在线观看 | 色站在线| 亚洲老老头同性老头交j | 亚洲成人精 | 欧美乱妇高清无乱码 | 不卡中文字幕在线观看 | 午夜影院男女 | www免费网站在线观看 | 一久久久久 | 人妻少妇精品一区二区三区 | 免费黄色看片网站 | 亚洲伦理影院 | 十八禁视频网站在线观看 | 国产午夜精品在线 | 久久激情网 | 欧美日韩性视频 | 四川少妇xxx奶大xxx | 天堂网一区二区 | 免费看v片| 日韩成人短视频 | 久在线观看视频 | 日本免费一区二区在线 | 久久亚洲国产精品 | 91国自产精品中文字幕亚洲 | 91精品国产一区二区三区香蕉 | 日韩精品久久久 | 不卡一二区 | 最新中文字幕一区 | 美国少妇性做爰 | 九九热精彩视频 | av资源首页 | 高h1v| av在线天堂 | 波多野结衣三区 | 91啦中文 | 欧美黄大片 | 欧美日韩一卡二卡三卡 | 成人3d动漫一区二区三区 | 亚洲一区欧美日韩 | 美女黄页在线观看 | 精品视频999 | 国产欧美一区二区三区白浆喷水 | 九九色网 |