#!/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: sharedhomeORA_CRS_HOME=/opt/ora10g/product/10.2.0/crs_1ORACLE_OWNER=oracleDBA_GROUP=oinstallusage(){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" }
/opt/ora10g/product/10.2.0/crs_1/bin
rac1 1rac2 2
/opt/ora10g/product/10.2.0/crs_1/opmn/conf
[oracle@rac1 conf]$ vi ons.config
localport=6113remoteport=6200loglevel=3useocr=on
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24933693/viewspace-683140/ ,如需转载,请注明出处,否则将追究法律责任。