2008-7-1 13:42
xlghr
老师们,linux as4+oracle10g rac 重启服务器 需不需要关闭数据库?
linux as4+oracle10g rac 重启服务器 需不需要关闭数据库?
2008-7-1 13:49
tolywang
需要
例子如下: tpc 为db name .
####### STOP DB SERVER ###########
srvctl stop listener -n gnd-rac01
srvctl stop listener -n gnd-rac02
gnd-rac01</ocfs_data/tpc/arch>$emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://gnd-rac01:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
gnd-rac02</home/oracle>$emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://gnd-rac01:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
gnd-rac01</ocfs_data/tpc/arch>$srvctl stop database -d tpc
gnd-rac01</ocfs_data/tpc/arch>$srvctl stop nodeapps -n gnd-rac01
gnd-rac02</ocfs_data/tpc/arch>$srvctl stop nodeapps -n gnd-rac02
gnd-rac01</ocfs_data/tpc/arch>$crs_stop -all
gnd-rac02</ocfs_data/tpc/arch>$crs_stop -all
2008-8-18 18:27
zhangfei__
当然要关数据库,你重启哪个节点就要关哪个节点的数据库,可以用sqlplus 也可以用srvctl 都是一样的
sqlplus /nolog <<EOF
conn / as sysdba
shutdown immediate
exit
EOF
lsnrctl stop
用srvctl
srvctl stop -i instance -d database
srvctl stop listener -n gnd-rac02
页:
[1]

Powered by ITPUB论坛