export ORACLE_BASE=/u
export ORACLE_HOME=/u
export ORACLE_SID=NEWRAC
ORACLE_HOSTNAME=
export PATH=/u
export ORA_CRS_HOME=/u
export PATH=/u
export ORACLE_USER=orarac
crsctl check crs 檢查crs狀態
crsctl start crs 啟動crs
crsctl stop crs
crsctl check crsd
crs_stat
等等
如果你發現crs不能正常工作可以檢查調試一下這些腳本
crs的啟動log 在 $ORA_CRS_HOME/log $ORA_CRS_HOME/log/client 下面可以找到
srvctl start database
查看當前數據庫的狀態
[root@newrac
Instance NEWRAC
Instance NEWRAC
srvctl start instance
/u
/u
另附網絡上找到的幾篇文章
Day
==================================================
Day
CRS management
rnCRSCTL command control of the CRS Services local node (Oracle clusterware processes)
rn stop CRS:
rn $ crsctl stop crs or
rn $ / etc / init
rn $ crs_stop
rn start CRS:
rn $ crsctl start crs or
rn $ / etc / init
rn prohibited Clusterware restart automatically at system startup methods:
rn $ / etc / init
rn start Clusterware restart automatically at system startup methods:
rn $ / etc / init
rn view the status CRS Services
rn $ crsctl check crs
rnOCR resource management
rnOCR resources
rn $ ORA_CRS_HOME / bin / crs_stat
rn general
rn such as the use of the following situations occur:
rn $ crs_stat
rnCRS
rn $ crsctl check boot
rnFailure
rnPROC
rn $ crsctl check crs
rnFailure
rnCannot communicate with CRS
rnCannot communicate with EVM
rn caused this error may be due to a lost OCR configuration
rn # / etc / init
rn # / etc / init
rn before the crs process to ensure that all stopped
rn # su
rn $ cd $ ORA_CRS_HOME / bin
rn $
rn then switch to the root user
rn # / etc / init
Finally reboot both node rn
Introduction rnSRVCTL order
rnSRVCTL order to control the RAC database instance
rn at SRVCTL usually carried out under ORACLE user
rn
rn $ srvctl start | stop | status database
rn
rn $ srvctl start | stop | status instance
rn
rn $ srvctl config database
rn
rn $ srvctl start | stop | status nodeapps
rn
rn $ srvctl start | stop asm
rn
rn $ srvctl getenv database
rn
rn $ srvctl setenv database
rn
rn $ srvctl remove database
rn
rn $ srvctl add database
rn [
rn
rn $ srvctl add instance
rn $ srvctl add instance
rn
rn $ srvctl add asm
rn
rn $ srvctl add service
rn
rn $ srvctl modify service
rn
rnsrvctl relocate service
and related services rnCRS common command demo
rn
rn # su
rn $ crs_stat
rn $ crsctl check crs
rn $ srvctl status nodeapps
rn $ srvctl status database
rn turn off start
rn # su
rn $ crs_start
rn $ crs_stop
rn $ crsctl start crs
rn $ crsctl stop crs
rn $ srvctl start nodeapps
rn $ srvctl stop nodeapps
rn $ srvctl start listener
rn $ srvctl stop listener
rn $ srvctl start instance
rn $ srvctl stop instance
rn $ srvctl start database
rn $ srvctl stop database
=========================================================
RAC common command description 原文地址
oracle rac database of commonly used commands:
srvclt status database
A single instance of state:
srvctl status instance
Global names in the database status of the service:
srvctl status service
Application
srvctl status nodeapps
srvctl status nodeapps
ASM instance state
srvctl status asm
Lists all database configuration:
srvctl config database
Display RAC database configuration information:
srvctl config database
Show all services specified cluster database
srvctl config service
Display node application configuration information (VIP
srvctl config nodeapps
Shows the configuration of ASM instance
srvctl config asm
Cluster all running instances:
select
inst_id
parallel
active_state state
order by inst_id;
In the disk group
select name from v $ datafile
union
select member from v $ logfile
union
select name from v $ controlfile
union
select name from v $ tempfile;
Start and stop RAC databases:
su
hostname
Stop oracle rac
The first step: stop oracle instance
export oracle_sid = orcl
emctl stop dbconsole
srvclt stop instance
srvctl stop asm
srvctl stop nodeapps
Start RAC environment:
The first step is to start the node applications (Virtual IP
)
export oracle_sid = orcl
srvctl start nodeapps
srvctl start asm
srvctl start instance
emctl start dbconsole
Practical srvclt start to stop all instances of:
srvclt start database
srvctl stop database
Start stop the listener:
lsnrctl start listener_hostb
lsnrctl stop listener
**************************************************
************************************************** ************************
Oracle
CRS management
CRSCTL command controls the local node
Stop CRS:
$ Crsctl stop crs or
$ / Etc / init
$ Crs_stop
Start CRS:
$ Crsctl start crs or
$ / Etc / init
Prohibition Clusterware restart automatically after system start method:
$ / Etc / init
Start Clusterware automatically start after reboot the system approach:
$ / Etc / init
See CRS service status
$ Crsctl check crs
OCR resource management
OCR resources
$ ORA_CRS_HOME / bin / crs_stat
Typically
Such as use of the following situations occur:
$ Crs_stat
CRS
$ Crsctl check boot
Failure
PROC
$ Crsctl check crs
Failure
Cannot communicate with CRS
Cannot communicate with EVM
A possible cause of this error because the OCR configuration lost
# / Etc / init
# / Etc / init
First ensure that all of the crs process all the stops
# Su
$ Cd $ ORA_CRS_HOME / bin
$
Then switch to the root user
# / Etc / init
Finally reboot the two nodes
SRVCTL command description
SRVCTL command can control the RAC database instance
Usually SRVCTL executed in the ORACLE user
$ Srvctl start | stop | status database
$ Srvctl start | stop | status instance
$ Srvctl config database
$ Srvctl start | stop | status nodeapps
$ Srvctl start | stop asm
$ Srvctl getenv database
$ Srvctl setenv database
$ Srvctl remove database
$ Srvctl add database
[
$ Srvctl add instance
$ Srvctl add instance
$ Srvctl add asm
$ Srvctl add service
$ Srvctl modify service
srvctl relocate service
CRS and related services
# Su
$ Crs_stat
$ Crsctl check crs
$ Srvctl status nodeapps
$ Srvctl status database
# Su
$ Crs_start
$ Crs_stop
$ Crsctl start crs
$ Crsctl stop crs
$ Srvctl start nodeapps
$ Srvctl stop nodeapps
$ Srvctl start listener
$ Srvctl stop listener
$ Srvctl start instance
$ Srvctl stop instance
$ Srvctl start database
$ Srvctl stop database
===================================================================
From:http://tw.wingwit.com/Article/program/Oracle/201311/17756.html