Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
export PATH=$CRS_HOME/bin:$PATH
cd $CRS_HOME/bin
-bash-3.2$ crs_stat -t
Name
Type
Target
State
Host
-----------------------------------------------------------ora....ER.lsnr ora....er.type ONLINE
ONLINE
rachostc
ora....N1.lsnr ora....er.type ONLINE
ONLINE
rachostd
ora....N2.lsnr ora....er.type ONLINE
ONLINE
rachostc
ora....N3.lsnr ora....er.type ONLINE
ONLINE
rachostc
ora.asm
ora.asm.type OFFLINE OFFLINE
ora.eons
ora.eons.type ONLINE
ONLINE
rachostc
ora.gsd
ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE
ONLINE
rachostc
ora.oc4j
ora.oc4j.type OFFLINE OFFLINE
ora.ons
ora.ons.type ONLINE
ONLINE
rachostc
ora.orcl.db
ora....se.type ONLINE
ONLINE
rachostc
ora....ry.acfs ora....fs.type OFFLINE OFFLINE
ora.scan1.vip ora....ip.type ONLINE
ONLINE
rachostd
ora.scan2.vip ora....ip.type ONLINE
ONLINE
rachostc
ora.scan3.vip ora....ip.type ONLINE
ONLINE
rachostc
ora....SM1.asm application
OFFLINE OFFLINE
ora....UC.lsnr application
ONLINE
ONLINE
rachostc
ora....zuc.gsd application
OFFLINE OFFLINE
ora....zuc.ons application
ONLINE
ONLINE
rachostc
ora....zuc.vip ora....t1.type ONLINE
ONLINE
rachostc
ora....SM2.asm application
OFFLINE OFFLINE
ora....UD.lsnr application
ONLINE
ONLINE
rachostd
ora....zud.gsd application
OFFLINE OFFLINE
ora....zud.ons application
ONLINE
ONLINE
rachostd
ora....zud.vip ora....t1.type ONLINE
ONLINE
rachostd
Cluster Name check
Print cluster Name
-bash-3.2$ cemutlo -n
rachost-cluster
Print cluster Version:
-bash-3.2$ cemutlo -w
2:1:
Managing cluster
Starting
/etc/init.d/init.crs start
crsctl start crs
Stopping
/etc/init.d/init.crs stop
crsctl stop crs
Eable/Disable at boot time
/etc/init.d/init.crs enable
/etc/init.d/init.crs disable
crsctl enable crs
crsctl disable crs
stop
stop
stop
stop
stop
database -d <database>
instance -d <database> -i <instance>,<instance>
nodeapps -n <node>
asm -n <node>
service -d <database>
database -d <database>
instance -d <database> -i <instance>,<instance>
nodeapps -n <node>
asm -n <node>
service -d <database>
Nodes:
Node Names and Number:
-bash-3.2$ olsnodes -n
rachostc
1
rachostd
2
Local Node Name
-bash-3.2$ olsnodes -l
rachostc
Activates Loging
olsnodes -g
Oracle Interface :
Display
-bash-3.2$ oifcfg getif
eth0 10.240.112.0 global public
eth1 192.168.122.0 global cluster_interconnect
Delete
-bash-3.2$ oifcfg delig -global
Set
-bash-3.2$ oifcfg set -global <interface name>/<subnet>:public
-bash-3.2$ oifcfg set -global <interface name>/<subnet>:cluster_intercon
nect
Voting Disk
Adding
crsctl add css votedisk <file>
Deleting
crsctl delete css votedisk <file>
Quering
-bash-3.2$ crsctl query css votedisk
## STATE
File Universal Id
File Name Disk group
-- ----------------------------- --------1. ONLINE 454be1f462484f9ebf1909717f583e1d (/shared_nas/storage/vdsk)
[]
Located 1 voting disk(s).
Node Scripts
Add Node: addnode.sh
Delete Node: deletenode.sh
cluvfy
-bash-3.2$ cluvfy stage -list
USAGE:
cluvfy stage {-pre|-post} <stage-name> <stage-specific options> [-verbo
se]
Valid stage options and stage names are:
-post hwos
: post-check for hardware and operating s
ystem
-pre
-post
-pre
-post
-pre
-post
-pre
-pre
-post
-pre
-pre
-post
-post
cfs
cfs
crsinst
crsinst
hacfg
hacfg
dbinst
acfscfg
acfscfg
dbcfg
nodeadd
nodeadd
nodedel
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
checks
checks
checks
checks
checks
checks
checks
clumgr
ocr
olr
ha
crs
nodeapp
admprv
peer
software
asm
acfs
gpnp
gns
scan
ohasd
clocksync
vdisk
.
:
:
:
:
:
:
:
:
:
: