ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [RAC] Remove node from cluster steps

[RAC] Remove node from cluster steps

原创 Linux操作系统 作者:frank_oracle 时间:2011-01-01 19:21:51 0 删除 编辑
[oracle@rac1 install]$ head -50 rootdelete.sh
#!/bin/sh

# rootdelete.sbs for CRS
#
# This script. is run once per CRS_HOME during the de-install or delete node 
# operation. It needs to remove inittab entries, stop the CRS stack, 
# and delete CRS files from $ID and $RCALLDIR.
#
# USAGE: rootdelete.sh [local|remote] [sharedvar|nosharedvar] [shardhome|nosharedhome]
# local/remote: Use 'local', if it is run on local node. Otherwise use "remote"
#               Default: local
#               NOTE: A node is a local node if you will be running 
#                     OUI from that.
#
# nosharedvar/sharedvar: Use 'sharedvar', if directory path of ocr.loc is 
#                        shared across cluster nodes. 
#                        Otherwise use "nosharedvar".
#                        Default: nosharedvar
#
# sharedhome/nosharedhome: Use 'sharedhome', if CRS home is shared across 
#                          cluster nodes. 
#                          Otherwise, use 'nosharedhome'.
#                          Default: sharedhome

ORA_CRS_HOME=/opt/ora10g/product/10.2.0/crs_1
ORACLE_OWNER=oracle
DBA_GROUP=oinstall

usage()
{
   printf "Usage: "
   printf "rootdelete [-help] [local|remote] [nosharedvar|sharedvar] [sharedhome|nosharedhome] [-downgrade [-version ]]\n"
   printf "\-help: print this message\n"
   printf "local: if this node is the node where OUI is to be run to deinstall, otherwise use 'remote'\n"
   printf "sharedvar: OCR is on a shared path, otherwise use 'nosharedvar'\n"
   printf "sharedhome: CRS home is on a shared path, otherwuse use 'nosharedhome'\n"
   printf "\-downgrade: Oracle clusterware and OCR will be reset for downgrade\n"
   printf "\-version : OCR location file will reset for downgrade to specified version, default: 10.1\n"
}

[oracle@rac1 bin]$ pwd
/opt/ora10g/product/10.2.0/crs_1/bin

[oracle@rac1 bin]$ olsnodes -n 
rac1    1
rac2    2

[oracle@rac1 conf]$ pwd
/opt/ora10g/product/10.2.0/crs_1/opmn/conf

[oracle@rac1 conf]$ vi ons.config

localport=6113
remoteport=6200
loglevel=3
useocr=on

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24933693/viewspace-683140/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-11-16

  • 博文量
    12
  • 访问量
    44103