0% found this document useful (0 votes)
220 views

CRSCLT Commands: Su - Grid - Oraenv +ASM1

The commands crsctl stat res -t and crsctl stat res resource_name display the target state, actual state and state details of Oracle Clusterware resources on both servers. crsctl stop cluster stops all resources and services managed by Cluster Ready Services on both servers in the cluster.

Uploaded by

Raj Srujan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views

CRSCLT Commands: Su - Grid - Oraenv +ASM1

The commands crsctl stat res -t and crsctl stat res resource_name display the target state, actual state and state details of Oracle Clusterware resources on both servers. crsctl stop cluster stops all resources and services managed by Cluster Ready Services on both servers in the cluster.

Uploaded by

Raj Srujan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CRSCLT COMMANDS

[root@server1 Desktop]# su – grid

[grid@server1 ~]$ . oraenv


ORACLE_SID = [grid] ? +ASM1
The Oracle base has been set to /u01/app/grid

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


--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.FRA.dg
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.asm
ONLINE ONLINE server1 Started,STABLE
ONLINE ONLINE server2 Started,STABLE
ora.net1.network
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.ons
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE server2 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE server1 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE server1 STABLE
ora.cvu
1 ONLINE ONLINE server1 STABLE
ora.oc4j
1 OFFLINE OFFLINE STABLE
ora.orcl.db
1 ONLINE ONLINE server1 Open,STABLE
2 ONLINE ONLINE server2 Open,STABLE
ora.scan1.vip
1 ONLINE ONLINE server2 STABLE
ora.scan2.vip
1 ONLINE ONLINE server1 STABLE
ora.scan3.vip
1 ONLINE ONLINE server1 STABLE
ora.server1.vip
1 ONLINE ONLINE server1 STABLE
ora.server2.vip
1 ONLINE ONLINE server2 STABLE
--------------------------------------------------------------------------------

[grid@server1 ~]$ su - oracle


Password: <oracle>

[oracle@server1 ~]$ . oraenv


ORACLE_SID = [oracle] ? +ASM1
ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID oracle.
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base has been set to /u01/app/12.1.0/grid

[oracle@server1 ~]$ crsctl stat res -t


--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.FRA.dg
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.asm
ONLINE ONLINE server1 Started,STABLE
ONLINE ONLINE server2 Started,STABLE
ora.net1.network
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
ora.ons
ONLINE ONLINE server1 STABLE
ONLINE ONLINE server2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE server2 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE server1 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE server1 STABLE
ora.cvu
1 ONLINE ONLINE server1 STABLE
ora.oc4j
1 OFFLINE OFFLINE STABLE
ora.orcl.db
1 ONLINE ONLINE server1 Open,STABLE
2 ONLINE ONLINE server2 Open,STABLE
ora.scan1.vip
1 ONLINE ONLINE server2 STABLE
ora.scan2.vip
1 ONLINE ONLINE server1 STABLE
ora.scan3.vip
1 ONLINE ONLINE server1 STABLE
ora.server1.vip
1 ONLINE ONLINE server1 STABLE
ora.server2.vip
1 ONLINE ONLINE server2 STABLE
--------------------------------------------------------------------------------

[oracle@server1 ~]$ crsctl stat res ora.orcl.db


NAME=ora.orcl.db
TYPE=ora.database.type
TARGET=ONLINE , ONLINE
STATE=ONLINE on server1, ONLINE on server2

[oracle@server1 ~]$ crsctl stat res ora.orcl.db -p


NAME=ora.orcl.db
TYPE=ora.database.type
ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
ACTIONS=
ACTION_FAILURE_TEMPLATE=
ACTION_SCRIPT=
ACTION_TIMEOUT=60
ACTIVE_PLACEMENT=0
AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
ALERT_TEMPLATE=
ALIAS_NAME=
AUTO_START=restore
CARDINALITY=2
CHECK_INTERVAL=1
CHECK_TIMEOUT=30
CLEAN_TIMEOUT=60
CLUSTER_DATABASE=true
DATABASE_TYPE=RAC
DB_UNIQUE_NAME=orcl
DEFAULT_TEMPLATE=PROPERTY(RESOURCE_CLASS=database) PROPERTY(DB_UNIQUE_NAME=
CONCAT(PARSE(%NAME%, ., 2), %USR_ORA_DOMAIN%, .)) ELEMENT(INSTANCE_NAME=
%GEN_USR_ORA_INST_NAME%) ELEMENT(DATABASE_TYPE= %DATABASE_TYPE%)
DEGREE=1
DELETE_TIMEOUT=60
DESCRIPTION=Oracle Database resource
ENABLED=1
FAILOVER_DELAY=0
FAILURE_INTERVAL=60
FAILURE_THRESHOLD=1
GEN_AUDIT_FILE_DEST=/u01/app/oracle/admin/orcl/adump
GEN_START_OPTIONS=
GEN_USR_ORA_INST_NAME=
GEN_USR_ORA_INST_NAME@SERVERNAME(server1)=orcl1
GEN_USR_ORA_INST_NAME@SERVERNAME(server2)=orcl2
HOSTING_MEMBERS=
INSTANCE_FAILOVER=0
INTERMEDIATE_TIMEOUT=0
LOAD=1
LOGGING_LEVEL=1
MANAGEMENT_POLICY=AUTOMATIC
MODIFY_TIMEOUT=60
NLS_LANG=
NOT_RESTARTING_TEMPLATE=
OFFLINE_CHECK_INTERVAL=0
ONLINE_RELOCATION_TIMEOUT=0
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_2
ORACLE_HOME_OLD=
PLACEMENT=restricted
PROFILE_CHANGE_TEMPLATE=
PWFILE=+DATA/orcl/orapworcl
RELOCATE_BY_DEPENDENCY=1
RESTART_ATTEMPTS=2
ROLE=PRIMARY
SCRIPT_TIMEOUT=60
SERVER_CATEGORY=
SERVER_POOLS=ora.orcl
SERVER_POOLS_PQ=
SPFILE=+DATA/orcl/spfileorcl.ora
START_CONCURRENCY=0
START_DEPENDENCIES=hard(ora.FRA.dg,ora.DATA.dg)
weak(type:ora.listener.type,global:type:ora.scan_listener.type,uniform:ora.ons,global
:ora.gns) pullup(ora.FRA.dg,ora.DATA.dg)
START_TIMEOUT=600
STATE_CHANGE_TEMPLATE=
STOP_CONCURRENCY=0
STOP_DEPENDENCIES=hard(intermediate:ora.asm,shutdown:ora.FRA.dg,shutdown:ora.DATA.dg)
STOP_TIMEOUT=600
TYPE_VERSION=3.3
UPTIME_THRESHOLD=1h
USER_WORKLOAD=yes
USE_STICKINESS=0
USR_ORA_DB_NAME=orcl
USR_ORA_DOMAIN=
USR_ORA_ENV=
USR_ORA_FLAGS=
USR_ORA_INST_NAME=
USR_ORA_INST_NAME@SERVERNAME(server1)=orcl1
USR_ORA_INST_NAME@SERVERNAME(server2)=orcl2
USR_ORA_OPEN_MODE=open
USR_ORA_OPI=false
USR_ORA_STOP_MODE=immediate
VERSION=12.1.0.1.0

[oracle@server1 ~]$ crsctl stop cluster


CRS-4563: Insufficient user privileges.
CRS-4000: Command Stop failed, or completed with errors.

[oracle@server1 ~]$ exit


Logout

[grid@server1 ~]$ exit


Logout
[root@server1 Desktop]# crsctl stop cluster
CRS-2673: Attempting to stop 'ora.crsd' on 'server1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'server1'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'server1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN2.lsnr' on 'server1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'server1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN3.lsnr' on 'server1'
CRS-2673: Attempting to stop 'ora.cvu' on 'server1'
CRS-2677: Stop of 'ora.cvu' on 'server1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'server2'
CRS-2677: Stop of 'ora.LISTENER_SCAN2.lsnr' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.scan2.vip' on 'server1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.server1.vip' on 'server1'
CRS-2677: Stop of 'ora.LISTENER_SCAN3.lsnr' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.scan3.vip' on 'server1'
CRS-2676: Start of 'ora.cvu' on 'server2' succeeded
CRS-2677: Stop of 'ora.scan2.vip' on 'server1' succeeded
CRS-2672: Attempting to start 'ora.scan2.vip' on 'server2'
CRS-2677: Stop of 'ora.orcl.db' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'server1'
CRS-2677: Stop of 'ora.server1.vip' on 'server1' succeeded
CRS-2672: Attempting to start 'ora.server1.vip' on 'server2'
CRS-2676: Start of 'ora.scan2.vip' on 'server2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN2.lsnr' on 'server2'
CRS-2677: Stop of 'ora.scan3.vip' on 'server1' succeeded
CRS-2672: Attempting to start 'ora.scan3.vip' on 'server2'
CRS-2676: Start of 'ora.server1.vip' on 'server2' succeeded
CRS-2676: Start of 'ora.scan3.vip' on 'server2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN3.lsnr' on 'server2'
CRS-2676: Start of 'ora.LISTENER_SCAN2.lsnr' on 'server2' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN3.lsnr' on 'server2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'server1'
CRS-2677: Stop of 'ora.FRA.dg' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'server1'
CRS-2677: Stop of 'ora.asm' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'server1'
CRS-2677: Stop of 'ora.ons' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'server1'
CRS-2677: Stop of 'ora.net1.network' on 'server1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'server1' has
completed
CRS-2677: Stop of 'ora.crsd' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'server1'
CRS-2673: Attempting to stop 'ora.evmd' on 'server1'
CRS-2673: Attempting to stop 'ora.storage' on 'server1'
CRS-2677: Stop of 'ora.storage' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'server1'
CRS-2677: Stop of 'ora.ctssd' on 'server1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'server1' succeeded
CRS-2677: Stop of 'ora.asm' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'server1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'server1'
CRS-2677: Stop of 'ora.cssd' on 'server1' succeeded

[root@server1 Desktop]# crsctl check crs


CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager

[root@server1 Desktop]# crsctl start cluster


CRS-2672: Attempting to start 'ora.cssdmonitor' on 'server1'
CRS-2672: Attempting to start 'ora.evmd' on 'server1'
CRS-2676: Start of 'ora.cssdmonitor' on 'server1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'server1'
CRS-2672: Attempting to start 'ora.diskmon' on 'server1'
CRS-2676: Start of 'ora.diskmon' on 'server1' succeeded
CRS-2676: Start of 'ora.evmd' on 'server1' succeeded
..............
..............
..............

[root@server1 Desktop]# crsctl check cluster


CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[root@server1 Desktop]# crsctl stop crs


CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on
'server1'
CRS-2673: Attempting to stop 'ora.crsd' on 'server1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'server1'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'server1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'server1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'server1'
CRS-2677: Stop of 'ora.orcl.db' on 'server1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'server1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'server1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'server1' succeeded
............
............

[root@server1 Desktop]# crsctl check crs


CRS-4639: Could not contact Oracle High Availability Services

[root@server1 Desktop]# crsctl start crs


CRS-4123: Oracle High Availability Services has been started.

[root@server1 Desktop]# 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@server1 Desktop]# crsctl check cluster -all
**************************************************************
server1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
server2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[root@server1 Desktop]# crsctl query css votedisk


## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 38fb3afdd20b4f21bf40879ef9007609 (ORCL:DISK1) [DATA]
Located 1 voting disk(s).

You might also like