Nodeapps in CRS 11gR2
Hi All,
What are the nodeapps names in 11g clusterware.
I have upgrade 10.2.0.4 CRS to 11gR2, but seeing GSD is always offline. Even I tried to make it online, but it is not coming up.
Is it the common behaviour in 11gR2 or something is wrong with my upgrade?
Thanks,
Mahi
Hi,
http://download.oracle.com/docs/cd/E11882_01/install.112/e17212/crsunix.htm
The Oracle GSD (Global Service Daemon) process, ora.gsd, is typically offline. You must enable Oracle GSD manually if you plan to use an Oracle 9i Real Application Clusters database on the Oracle Clusterware 11g release 2 (11.2) cluster. Follow the steps under Section 5.3.4, "Enabling The Global Services Daemon (GSD) for Oracle Database Release 9.2" to active the Oracle GSD Daemon.
GSD offline is normal behavior.
Regards,
Similar Messages
-
CRS-0223: Resource has placement error, when starting DB instance
Hello All,
Env: 2 node 10.2.0.4 RAC on Solaris 10 SPARC
All of a sudden the DB instance on Node 2 crashed. The alert.log says "Instance terminated by MMAN".
There were no changes recently.
I tried to start it up using srvctl and it failed with
[SHCL1N02]$ srvctl start instance -d SHCL1_PRMY -i SHCL1N02
PRKP-1001 : Error starting instance SHCL1N02 on node myjpsuolicdbd02
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.SHCL1_prmy.SHCL1N02.inst' has placement error.
[SHCL1N02]$The nodeapps and crs processes are all running happily, the instance alone has a problem.
I tried
(1)Stop nodeapps, Stop CRS, Start CRS => Still instance on node2 didn't come up.
(2)sqlplus / as sysdba, startup => Instance came up, but the ora.SHCL1_prmy.SHCL1N02.inst is still offline.
Below is the error in the crsd.log file.
2009-11-04 10:18:30.627: [ CRSRES][2970821] CRS-1028: Dependency analysis failed because of:
'Resource in UNKNOWN state: ora.SHCL1_prmy.SHCL1N02.inst'
2009-11-04 10:21:23.269: [ CRSRES][2970843] StopResource: setting CLI values
2009-11-04 10:21:23.340: [ CRSRES][2970843] Attempting to stop `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02`
2009-11-04 10:21:30.478: [ CRSAPP][2970843] StopResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:21:30.502: [ CRSRES][2970843] Stop of `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02` succeeded.
2009-11-04 10:21:49.867: [ CRSRES][2970861] startRunnable: setting CLI values
2009-11-04 10:21:49.895: [ CRSRES][2970861] Attempting to start `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02`
2009-11-04 10:21:55.019: [ CRSAPP][2970861] StartResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:22:00.583: [ CRSAPP][2970861] StopResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:22:00.592: [ CRSRES][2970861] X_OP_StopResourceFailed : Stop Resource failed
(File: rti.cpp, line: 1803
2009-11-04 10:22:00.593: [ CRSRES][2970861][ALERT] `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02` has experienced an unrecoverable failure.
2009-11-04 10:22:00.593: [ CRSRES][2970861] Human intervention required to resume its availability.Any clue would be much helpful.
TIA,
JJThe srvctl failed 'coz of my problem(over security).
/u01/app/oracle/product/10.2.0/db_1/log/<node_name>/racg/imon_SHCL1_prmy.log
(thanks to support guy to taking me to this file.)
In this file i saw the below error and it struck me.
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 4 18:59:49 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter user-name: ERROR:
ORA-01031: insufficient privileges
Enter user-name: SP2-0306: Invalid option.
2009-11-04 18:59:50.737: [ RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<connect_identifier>] | /
Enter user-name: Enter password:
ERROR:
ORA-01005: null password given; logon denied
2009-11-04 18:59:50.738: [ RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: SP2-0157: unable to CONNECT to ORACLE after 3 attempt
s, exiting SQL*PlusI had SQLNET.AUTHENTICATION_SERVICES=(NONE) in the sqlnet.ora, and this stopped the srvctl from logging into the db.
1)Commented the entry in sqlnet.ora
2)crs_stop -f ora.SHCL1_prmy.SHCL1N02.inst
3)crs_stat -u => to confirm that the TARGET and STATE are OFFLINE for ora.SHCL1_prmy.SHCL1N02.inst
4)srvctl start instance -d SHCL1_PRMY -i SHCL1N02
and the instance came up.
They would investigate on regarding the ORA-7445 error.
Regards,
J J -
请给位帮忙看一下,如果有需要的资料,请留言,我上传给大家,谢谢了!
环境:
hp-ux 11.31
oracle 10.2.0.5
新增rac节点dt03,dt04
执行addNode脚本复制crs到新增节点成功后,执行root脚本报错如下:
root@dt04[] /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/usr/lib/hpux64/dld.so: Unable to find library 'libnmapi2.so'.
9i GSD is running on node ''. Stop the GSD and rerun root.sh
检测脚本:
root@dt04[]sh -x /u01/app/oracle/product/10.2.0/crs_1/root.sh
+ /u01/app/oracle/product/10.2.0/crs_1/install/rootinstall
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
+ /u01/app/oracle/product/10.2.0/crs_1/install/rootconfig
No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/usr/lib/hpux64/dld.so: Unable to find library 'libnmapi2.so'.
9i GSD is running on node ''. Stop the GSD and rerun root.sh
+ /u01/app/oracle/product/10.2.0/crs_1/install/rootconfig脚本如下:
#!/bin/sh
# rootconfig.sh for Oracle CRS homes
# This is run once per node during the Oracle CRS install.
# This script does the following:
# 1) Stop if any GSDs are running from 9.x oracle homes
# 2) Initialize new OCR device or upgrade the existing OCR device
# 3) Setup OCR for running CRS stack
# 4) Copy the CRS init script to init.d for init process to start
# 5) Start the CRS stack
# 6) Configure NodeApps if CRS is up and running on all nodes
# NOTE: Use sample paramfile in $ORA_CRS_HOME/srvm/admin/paramfile.sample for
# setting CRS parameters
# The following commands need to be run before Oracle Cluster Registry is
# populated.
# This is run during CRS installation and not during RAC
SILENT=false
ORA_CRS_HOME=/u01/app/oracle/product/10.2.0/crs_1
CRS_ORACLE_OWNER=oracle
CRS_DBA_GROUP=oinstall
CRS_VNDR_CLUSTER=false
CRS_OCR_LOCATIONS=
CRS_CLUSTER_NAME=
CRS_HOST_NAME_LIST=
CRS_NODE_NAME_LIST=dt01,dt02
CRS_PRIVATE_NAME_LIST=
CRS_LANGUAGE_ID=
CRS_VOTING_DISKS=
CRS_NODELIST=
CRS_NODEVIPS=
CRS_PARAMS="ORA_CRS_HOME CRS_ORACLE_OWNER CRS_DBA_GROUP CRS_VNDR_CLUSTER CRS_OCR_LOCATIONS CRS_CLUSTER_NAME CRS_HOST_NAME_LIST CRS_NODE_NAME_LIST CRS_PRIVATE_NAME_LIST CRS_LANGUAGE_ID CRS_VOTING_DISKS CRS_NODELIST CRS_NODEVIPS"
if [ -z "$CP" ]; then CP=/bin/cp; fi
if [ -z "$MV" ]; then MV=/bin/mv; fi
if [ -z "$CHOWN" ]; then CHOWN=/bin/chown; fi
if [ -z "$CHOWNH" ]; then CHOWNH="/bin/chown -h"; fi
if [ -z "$CHGRP" ]; then CHGRP=/bin/chgrp; fi
if [ -z "$CHMOD" ]; then CHMOD=/bin/chmod; fi
if [ -z "$ECHO" ]; then ECHO=/bin/echo; fi
if [ -z "$LS" ]; then LS=/bin/ls; fi
if [ -z "$KILL" ]; then KILL=/bin/kill; fi
if [ -z "$SLEEP" ]; then SLEEP=/bin/sleep; fi
if [ -z "$LN" ]; then LN=/bin/ln; fi
if [ -z "$LNS" ]; then LNS="/bin/ln -s"; fi
if [ -z "$RM" ]; then RM=/bin/rm; fi
if [ -z "$RMF" ]; then RMF="$RM -f"; fi
if [ -z "$CAT" ]; then CAT=/bin/cat; fi
if [ -z "$MKDIR" ]; then MKDIR="/bin/mkdir "; fi
if [ -z "$MKDIRP" ]; then MKDIRP="/bin/mkdir -p"; fi
if [ -z "$GREP" ]; then GREP=/bin/grep; fi
if [ -z "$CAT" ]; then CAT=/bin/cat; fi
if [ -z "$TOUCH" ]; then TOUCH=/bin/touch; fi
if [ -z "$AWK" ]; then AWK=/bin/awk; fi
if [ -z "$SYNC" ]; then SYNC=/bin/sync; fi
if [ -z "$ID" ]; then ID=/usr/bin/id; fi
if [ -z "$HOSTN" ]; then HOSTN=/bin/hostname; fi
if [ -z "$EXPRN" ]; then EXPRN=/usr/bin/expr; fi
if [ -z "$CUT" ]; then CUT=/usr/bin/cut; fi
if [ -z "$ISAINFOB" ]; then ISAINFOB="/usr/bin/isainfo -b"; fi
if [ -z "$TR" ]; then TR=/bin/tr;fi
#solaris on amd and SPARC has issue with /bin/tr
[ 'SunOS' = `/bin/uname` ] && TR=/usr/xpg4/bin/tr
#on linux tr is at /usr/bin/tr
[ 'Linux' = `/bin/uname` ] && TR=/usr/bin/tr
###Function for displaying usage of this script
usage()
printf "Usage:"
printf "$0 [-silent]\n"
printf " [-crshome <Oracle CRS home path>]\n"
printf " [-paramfile <Path of file specifying CRS parameter values>]\n"
##Function for parsing the command line arguments
parseArgs()
USER_ARGS=$*
while [ $# -gt 0 ];
do
if [ $1 = "-silent" ]; then
SILENT=1;
elif [ $1 = "-paramfile" ]; then
USE_FILE=true
if [ $# -ge 2 ]; then
CRS_ENV_FILE=$2;
shift;
else
usage;
exit 2
fi
elif [ $1 = "-crshome" ]; then
if [ $# -ge 2 ]; then
ORA_CRS_HOME=$2;
shift;
else
usage;
exit 2;
fi
else
usage;
exit 2
fi
shift;
done
##Function for reading CRS parameters from the given param file
readparamfile()
$ECHO "Reading $CRS_ENV_FILE.."
## Make sure that this input file has only "LHS=RHS" and empty lines
## Any other lines will be considered improper input for root script
awkOutput=`$AWK 'BEGIN { Ni=0 } \
/^#/ { next } \
/[A-Z]\=\`*\`/ { printf("\"%s\"\n", $0); next } \
/[A-Z_]\=/ { next } \
/^$/ { next } \
{ printf("\"%s\"\n", $0); next }' $CRS_ENV_FILE`
if [ "x$awkOutput" != "x" ]; then
$ECHO "The following unexpected input found in CRS parameter file: $awkOutput"
exit 1
fi
. $CRS_ENV_FILE
$ECHO "File ($CRS_ENV_FILE) is used for setting CRS variables."
$ECHO "CRS_ORACLE_OWNER=$CRS_ORACLE_OWNER"
$ECHO "CRS_DBA_GROUP=$CRS_DBA_GROUP"
$ECHO "CRS_VNDR_CLUSTER=$CRS_VNDR_CLUSTER"
$ECHO "CRS_OCR_LOCATIONS=$CRS_OCR_LOCATIONS"
$ECHO "CRS_CLUSTER_NAME=$CRS_CLUSTER_NAME"
$ECHO "CRS_HOST_NAME_LIST=$CRS_HOST_NAME_LIST"
$ECHO "CRS_NODE_NAME_LIST=$CRS_NODE_NAME_LIST"
$ECHO "CRS_PRIVATE_NAME_LIST=$CRS_PRIVATE_NAME_LIST"
$ECHO "CRS_LANGUAGE_ID=$CRS_LANGUAGE_ID"
$ECHO "CRS_VOTING_DISKS=$CRS_VOTING_DISKS"
$ECHO "CRS_NODELIST=$CRS_NODELIST"
$ECHO "CRS_NODEVIPS=$CRS_NODEVIPS"
validateInput()
##validates if any value is assigned to the script variables
for i in `echo $CRS_PARAMS`;
do
PARAM_NAME=$i
PARAM_VALUE=`eval echo \\$$i`
valid=`$ECHO $PARAM_VALUE | $AWK '/^%/ { print "false"; }'`
if [ "$valid" = "false" ];
then
$ECHO "No value set for the CRS parameter $PARAM_NAME. Use parameter file to set values";
usage;
return 1;
elif [ -z "$PARAM_VALUE" ]; then
echo "No value set for the CRS parameter $PARAM_NAME. Using Values in paramfile.crs";
. $CH/install/paramfile.crs
return 0;
fi
done
return 0;
validateVDisks()
#Checks for validity of voting disks
vDisks=`$ECHO $1 | $AWK -F',' '{ for(n=1;n<=NF;n++) print $n; }'`;
set `$ECHO $vDisks`;
ret=0;
while [ $# -gt 0 ];
do
vdisk=$1;
if [ ! -r $vdisk ]; then
$ECHO "\"$vdisk\" does not exist. Create it before proceeding."
$ECHO "Make sure that this file is shared across cluster nodes."
ret=1
else
$CHOWN $CRS_ORACLE_OWNER $vdisk || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $vdisk || { $ECHO $?; exit 1; }
$CHMOD 640 $vdisk || { $ECHO $?; exit 1; }
fi;
shift;
done;
return $ret;
validateOCRDisks()
if [ -f $OCR_SYNC_FILE ]; then
##Checking the OCR locations used by existing nodes in the cluster
NEW_OCR_FILE=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCR_SYNC_FILE`
NEW_OCRMIRROR_FILE=`$AWK -F= '/ocrmirrorconfig_loc/ {print $2}' < $OCR_SYNC_FILE`
CRS_OCR_LOCATIONS=$NEW_OCR_FILE
if [ ! -z "$NEW_OCRMIRROR_FILE" ];
then
CRS_OCR_LOCATIONS=$CRS_OCR_LOCATIONS,$NEW_OCRMIRROR_FILE
fi
$ECHO "OCR LOCATIONS = " $CRS_OCR_LOCATIONS
else
##Syncing of OCR disks is not required
$ECHO ""
fi
return 0;
validateSICSS()
SICSS=false;
if [ -f "$OCRCONFIG" ]; then
# ocr.loc file exists and ocr location set here is
OCRCONFIG_LOC=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCRCONFIG`
# ocr.loc already has a location specified. Check if it is used for
# single instance CSS/ASM
LOCAL_FLAG=`$AWK -F= '/local_only/ {print $2}' < $OCRCONFIG`
LOCAL_ONLY=`$ECHO $LOCAL_FLAG | $AWK '/[fF][aA][lL][sS][eE]/ { print "FALSE" }
/[tT][rR][uU][eE]/ { print "TRUE" }'`
# Previous installation of 10g single instance
if [ "$LOCAL_ONLY" = "TRUE" ];then
SICSS=true;
fi
fi
ret=0;
if $SICSS;
then
$ECHO "CSS is configured for single instance Oracle databases. Delete this configuration using the command 'localconfig delete' before proceeding with RAC configuration."
ret=1;
fi
return $ret;
NSSetup()
$ECHO "Setting up NS directories"
if [ ! -d /var/tmp/.oracle ];
then
$MKDIRP /var/tmp/.oracle || { return 1; };
fi
$CHMOD 01777 /var/tmp/.oracle || { return 1; }
$CHOWN root /var/tmp/.oracle || { return 1; }
if [ ! -d /tmp/.oracle ];
then
$MKDIRP /tmp/.oracle || { return 1; }
fi
$CHMOD 01777 /tmp/.oracle || { return 1; }
$CHOWN root /tmp/.oracle || { return 1; }
return 0;
还有一部分请见一楼信息接原文继续描述
# This script is intended to be run by root.
RUID=`$ID|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
if [ ${RUID} != "root" ];then
$ECHO "You must be logged in as root to run $0."
$ECHO "Log in as root and restart $0 execution."
exit 1
fi
#If the hostname is an IP address, let hostname
#remain as IP address
HOST=`$HOSTN`
len1=`$EXPRN "$HOST" : '.*'`
len2=`$EXPRN match $HOST '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'`
# Strip off domain name in case /bin/hostname returns
# FQDN hostname
if [ $len1 != $len2 ]; then
HOST=`$ECHO $HOST | cut -d'.' -f1`
fi
HOST=`$ECHO $HOST | $TR '[:upper:]' '[:lower:]'`
# File that $LOGMSG in init.cssd (and other places) will write
MSGFILE=/var/adm/messages
DISABLE_OPROCD=false;
USE_FILE=false
##Parse command line arguments passed to this script
parseArgs $*
if $USE_FILE;
then
if [ ! -f "$CRS_ENV_FILE" ]; then
$ECHO "The input file($CRS_ENV_FILE) specifying the parameter values for CRS variables is not found"
exit 1
fi
###Read CRS parameter values from param file
readparamfile
fi
ORACLE_HOME=$ORA_CRS_HOME
export ORA_CRS_HOME
export ORACLE_HOME
CH=$ORA_CRS_HOME
OCR_SYNC_FILE=$CH/srvm/admin/ocr.loc
##validating the parameter values
validateInput || { $ECHO $?; exit 1; }
CRSCTL=$CH/bin/crsctl
#make sure Voting disks exists
validateVDisks $CRS_VOTING_DISKS || { $ECHO $?; exit 1; }
# Definitions to Add/Remove inittab entries
ADDITAB="$CAT \$IT | $GREP -v init.evmd | $GREP -v init.cssd | $GREP -v init.crsd > \$IT.no_crs || { $ECHO $?; exit 1; } ; \
$CAT \$IT.no_crs $CH/crs/admin/inittab > \$IT.tmp || { $ECHO $?; exit 1; }; \
$CP \$IT.tmp \$IT.crs || { $ECHO $?; exit 1; }; \
\$SYNC ; \$SYNC ; \$SYNC ; \
$MV \$IT.tmp \$IT || { $ECHO $?; exit 1; };\
\$SYNC ; \$SYNC ; \$SYNC "
RMITAB="$CAT \$IT | $GREP -v init.evmd | $GREP -v init.cssd | $GREP -v init.crsd > \$IT.tmp || { $ECHO $?; exit 1; } ; \
$CP \$IT.tmp \$IT.no_crs || { $ECHO $?; exit 1; }; \
\$SYNC ; \$SYNC ; \$SYNC ; \
$MV \$IT.tmp \$IT || { $ECHO $?; exit 1; }; \
\$SYNC ; \$SYNC ; \$SYNC "
CLSCFG_MISCNT=""
UNAME=/bin/uname
PLATFORM=`$UNAME`
case $PLATFORM in
Linux) LD_LIBRARY_PATH=$ORA_CRS_HOME/lib
export LD_LIBRARY_PATH
SO_EXT=so
DIRNAME=/usr/bin/dirname
ID=/etc/init.d
RCSDIR="/etc/rc.d/rc3.d /etc/rc.d/rc5.d"
RCKDIR="/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d"
RC_START=S96
RC_KILL=K96
IT=/etc/inittab
INIT=/sbin/init
OCRCONFIGDIR=/etc/oracle
SRVCONFIG=/var/opt/oracle/srvConfig.loc
OCRCONFIG=/etc/oracle/ocr.loc
OPROCDDIR=/etc/oracle/oprocd
SCRBASE=/etc/oracle/scls_scr
CLSCFG_MISCNT="-misscount 60"
HP-UX) MACH_HARDWARE=`/bin/uname -m`
if [ "$MACH_HARDWARE" = "ia64" ]; then
SO_EXT=so
NMAPIDIR_64=/opt/nmapi/nmapi2/lib/hpux64
NMAPIDIR_32=/opt/nmapi/nmapi2/lib/hpux32
else
SO_EXT=sl
NMAPIDIR_64=/opt/nmapi/nmapi2/lib/pa20_64
NMAPIDIR_32=/opt/nmapi/nmapi2/lib
fi
LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:$NMAPIDIR_64:/usr/lib:$LD_LIBRARY_PATH
SHLIB_PATH=$ORA_CRS_HOME/lib32:$NMAPIDIR_32:$SHLIB_PATH
export LD_LIBRARY_PATH
export SHLIB_PATH
DIRNAME=/bin/dirname
ID=/sbin/init.d
RCSDIR="/sbin/rc3.d"
RCKDIR="/sbin/rc2.d"
RC_START=S960
RC_KILL=K001
IT=/etc/inittab
INIT=/sbin/init
if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
fi
if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
fi
if [ -f ${NMAPIDIR_64}/libnmapi2.${SO_EXT} ]; then
$LN -sf ${NMAPIDIR_64}/libnmapi2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf ${NMAPIDIR_32}/libnmapi2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
fi
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
OCRCONFIGDIR=/var/opt/oracle
SRVCONFIG=/var/opt/oracle/srvConfig.loc
OCRCONFIG=/var/opt/oracle/ocr.loc
OPROCDDIR=/var/opt/oracle/oprocd
SCRBASE=/var/opt/oracle/scls_scr
SunOS) MACH_HARDWARE=`/bin/uname -i`
ARCH=""
case $MACH_HARDWARE in
i86pc)
CLUSTERDIR=/opt/ORCLcluster
LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
ARCH=`$ISAINFOB`
if [ ! -d $ORA_CRS_HOME/lib32 ]; then
if [ "$ARCH" = "32" ];then
NO_SUNCLUSTER=true
fi
ARCH=32
fi
CLUSTERDIR=/opt/ORCLcluster
LD_LIBRARY_PATH=$ORA_CRS_HOME/lib32:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH
LD_LIBRARY_PATH_64=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH_64
export LD_LIBRARY_PATH
export LD_LIBRARY_PATH_64
esac
SO_EXT=so
DIRNAME=/bin/dirname
ID=/etc/init.d
RCSDIR="/etc/rc3.d"
RCKDIR="/etc/rc0.d /etc/rc1.d /etc/rc2.d /etc/rcS.d"
RC_START=S96
RC_KILL=K96
IT=/etc/inittab
INIT=/sbin/init
if [ "${MACH_HARDWARE}${ARCH}" != "i86pc32" ]; then
if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
fi
if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
fi
# Bug 4624810 : libskgxn2 will be linked anyway. Remove them, to avoid stale link issue
# This issue happens only in solaris. ln -sf works in HP and AIX properly.
$RM -f $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} 2>/dev/null
$RM -f $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} 2>/dev/null
if [ -f $CLUSTERDIR/lib/libskgxn2.${SO_EXT} ]; then
$LN -sf $CLUSTERDIR/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
fi
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
else
if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
fi
$RM -f $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} 2>/dev/null
if [ "$NO_SUNCLUSTER" != "true" ] ; then
if [ -f $CLUSTERDIR/lib32/libskgxn2.${SO_EXT} ]; then
$LN -sf $CLUSTERDIR/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
fi
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
fi
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
fi
OCRCONFIGDIR=/var/opt/oracle
SRVCONFIG=/var/opt/oracle/srvConfig.loc
OCRCONFIG=/var/opt/oracle/ocr.loc
OPROCDDIR=/var/opt/oracle/oprocd
SCRBASE=/var/opt/oracle/scls_scr
AIX) CLUSTERDIR=/opt/ORCLcluster
LIBPATH=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:$ORA_CRS_HOME/lib32:$CLUSTERDIR/lib32:/usr/lib:$LIBPATH
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH
export LIBPATH
export LD_LIBRARY_PATH
SO_EXT=so
SO_AR_EXT=a
DIRNAME=/bin/dirname
ID=/etc
RCSDIR="/etc/rc.d/rc2.d"
RCKDIR="/etc/rc.d/rc2.d"
RC_START=S96
RC_KILL=K96
IT=/etc/inittab
INIT=/usr/sbin/init
ADDITAB="$ECHO \"Adding daemons to inittab\";
while read line; \
do \
rflds=\`echo \$line | $CUT -d ':' -f 1-3\`; \
lfld=\`echo \$line | $CUT -d ':' -f 4-\`; \
mkitab \$rflds:\"\$lfld\"; \
done < $CH/crs/admin/inittab"
RMITAB="while read line; \
do \
identifier=\`echo \$line | $CUT -d ':' -f 1\`; \
rmitab \$identifier 2>/dev/null; \
done < $CH/crs/admin/inittab"
if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT} ]; then
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT}
fi
if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT} ]; then
$MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
$MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT}
fi
if [ -f ${CLUSTERDIR}/lib/libskgxn2.${SO_AR_EXT} ]; then
$LN -sf ${CLUSTERDIR}/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf ${CLUSTERDIR}/lib/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
$LN -sf ${CLUSTERDIR}/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
$LN -sf ${CLUSTERDIR}/lib32/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
$LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
$LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
fi
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
OCRCONFIGDIR=/etc/oracle
SRVCONFIG=/var/opt/oracle/srvConfig.loc
OCRCONFIG=/etc/oracle/ocr.loc
OPROCDDIR=/etc/oracle/oprocd
SCRBASE=/etc/oracle/scls_scr
OSF1) LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:/shlib:/usr/lib
export LD_LIBRARY_PATH
SO_EXT=so
DIRNAME=/usr/bin/dirname
ID="/sbin/init.d"
RCSDIR="/sbin/rc3.d"
RCKDIR="/sbin/rc3.d"
RC_START=S96
RC_KILL=K96
IT=/etc/inittab
INIT=/sbin/init
if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
$MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
fi
if [ -f /shlib/libdlm.${SO_EXT} ]; then
$LN -sf /$ORA_CRS_HOME/lib/libskgxnr.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
else
$LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
fi
$CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
OCRCONFIGDIR=/var/opt/oracle
SRVCONFIG=/var/opt/oracle/srvConfig.loc
OCRCONFIG=/var/opt/oracle/ocr.loc
OPROCDDIR=/var/opt/oracle/oprocd
SCRBASE=/var/opt/oracle/scls_scr
DISABLE_OPROCD=true;
*) /bin/echo "ERROR: Unknown Operating System"
exit -1
esac
# Create CDSL for $IT files in Tru64
if [ ${PLATFORM} = "OSF1" ]; then
for file in $IT $IT.crs $IT.no_crs $IT.cssd $IT.no_cssd $IT.tmp $IT.orig \
$IT.prepatch $IT.nocrspatch
do
if [ ! -L $file ]; then
if [ -e $file ]; then
/usr/sbin/mkcdsl -fa $file
else
/usr/sbin/mkcdsl -f $file
fi
fi
done
fi
SCRDIR=$SCRBASE/$HOST
FATALFILE=$SCRDIR/$CRS_ORACLE_OWNER/cssfatal
OCR_CDATA_DIR=$ORA_CRS_HOME/cdata
OCR_BACKUP_DIR=$ORA_CRS_HOME/cdata/$CRS_CLUSTER_NAME
LOGDIR=$ORA_CRS_HOME/log/$HOST
CRS_LOGDIR=$ORA_CRS_HOME/log/$HOST/crsd
EVM_LOGDIR=$ORA_CRS_HOME/log/$HOST/evmd
CSS_LOGDIR=$ORA_CRS_HOME/log/$HOST/cssd
CLSMON_LOGDIR=$ORA_CRS_HOME/log/$HOST/cssd/oclsmon
OCR_LOGDIR=$ORA_CRS_HOME/log/$HOST/client
RES_LOGDIR=$ORA_CRS_HOME/log/$HOST/racg
RES_COREDIR1=$RES_LOGDIR/racgmain
RES_COREDIR2=$RES_LOGDIR/racgeut
RES_COREDIR3=$RES_LOGDIR/racgevtf
ADMIN_LOGDIR=$ORA_CRS_HOME/log/$HOST/admin
# some directories for OPROCD to store the domain
# sockets we use for client communication
OPROCDCHECKDIR=$OPROCDDIR/check
OPROCDSTOPDIR=$OPROCDDIR/stop
OPROCDFATALDIR=$OPROCDDIR/fatal
###Validate if single instance CSS is configured
validateSICSS || { $ECHO $?; exit 1; }
##Checking if CRS has already been configured
$ECHO "Checking to see if Oracle CRS stack is already configured"
if [ -f $FATALFILE ] && [ -f $OCRCONFIG ];
then
$ECHO "Oracle CRS stack is already configured and will be running under init(1M)"
exit 0
fi
LSDB=$ORA_CRS_HOME/bin/lsdb
# bug 4873212 : oracm is considered as non-vendor. Check it's existence in IA64
if [ "$CRS_VNDR_CLUSTER" != "true" ] ;
then
if [ "$PLATFORM" = "Linux" ];
then
$ORA_CRS_HOME/bin/lsnodes > /dev/null 2>&1
if [ "$?" = "0" ]; then
CRS_VNDR_CLUSTER=true;
fi
fi
fi
if $CRS_VNDR_CLUSTER;
then
$ECHO "Checking to see if any 9i GSD is up"
GSDNODE=`$LSDB -g`
GSDCHK_STATUS=$?
if [ $GSDCHK_STATUS != 0 ];then
$ECHO "9i GSD is running on node '$GSDNODE'. Stop the GSD and rerun root.sh"
exit 1
fi
fi
if [ ! -d "$OCRCONFIGDIR" ];then
$ECHO "$OCRCONFIGDIR does not exist. Creating it now."
$MKDIRP $OCRCONFIGDIR || { $ECHO $?; exit 1; }
fi
$CHOWN root $OCRCONFIGDIR || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $OCRCONFIGDIR || { $ECHO $?; exit 1; }
$CHMOD 755 $OCRCONFIGDIR || { $ECHO $?; exit 1; }
# create a number of subdirectories for use by OPROCD
# These should be owned by root and only allow for
# root and group access hence the 770 permissions
if [ "$DISABLE_OPROCD" = "false" ]
then
if [ ! -d "$OPROCDDIR" ]; then
$MKDIRP $OPROCDDIR || { $ECHO $?; exit 1; }
$MKDIRP $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
$MKDIRP $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
$MKDIRP $OPROCDFATALDIR || { $ECHO $?; exit 1; }
$CHOWN root $OPROCDDIR || { $ECHO $?; exit 1; }
$CHOWN root $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
$CHOWN root $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
$CHOWN root $OPROCDFATALDIR || { $ECHO $?; exit 1; }
$CHMOD 775 $OPROCDDIR || { $ECHO $?; exit 1; }
$CHMOD 770 $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
$CHMOD 770 $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
$CHMOD 770 $OPROCDFATALDIR || { $ECHO $?; exit 1; }
fi
fi # End "DISABLE_OPROCD=false"
## Copy reboot_toc to /var/opt/oracle/bin for HPUX
## Copy opriproc to /etc/oracle/bin for AIX
case $PLATFORM in
HP-UX)
$ECHO "Copying reboot_toc to /var/opt/oracle/bin for HPUX"
REBOOT_TOC_DIR=/var/opt/oracle/bin
REBOOT_TOC_FILE=reboot_toc
if [ ! -d $REBOOT_TOC_DIR ]; then
$MKDIRP $REBOOT_TOC_DIR
fi
if [ -f $REBOOT_TOC_DIR/$REBOOT_TOC_FILE ]; then
$CHMOD 644 $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
fi
$CP $CH/bin/$REBOOT_TOC_FILE $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
$CHOWN root $REBOOT_TOC_DIR
$CHMOD 555 $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
AIX)
$ECHO "Copying opriproc to /etc/oracle/bin for AIX"
OPRIPROC_DIR=/etc/oracle/bin
OPRIPROC_FILE=opriproc
if [ ! -d $OPRIPROC_DIR ]; then
$MKDIRP $OPRIPROC_DIR
fi
# Reset permission to overwrite
if [ -f $OPRIPROC_DIR/$OPRIPROC_FILE ]; then
$CHMOD 644 $OPRIPROC_DIR/$OPRIPROC_FILE
fi
# Copy from CRSHOME and set the permission
$CP $CH/bin/$OPRIPROC_FILE $OPRIPROC_DIR/$OPRIPROC_FILE
$CHOWN root $OPRIPROC_DIR
$CHMOD 555 $OPRIPROC_DIR/$OPRIPROC_FILE
$CHMOD 500 $OPRIPROC_DIR
esac
# Create SCR Home dir, owned by root 755
$MKDIRP $SCRDIR || { $ECHO $?; exit 1; }
$CHOWN root $SCRBASE || { $ECHO $?; exit 1; }
$CHOWN root $SCRDIR || { $ECHO $?; exit 1; }
$CHMOD 755 $SCRBASE || { $ECHO $?; exit 1; }
$CHMOD 755 $SCRDIR || { $ECHO $?; exit 1; }
$CHMOD 644 $IT $IT.orig $IT.no_cssd $IT.cssd $IT.crs $IT.no_crs 2>/dev/null
# Create CRS log directories
for d in $LOGDIR $CRS_LOGDIR $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $RES_LOGDIR $ADMIN_LOGDIR $RES_COREDIR1 $RES_COREDIR2 $RES_COREDIR3 $CLSMON_LOGDIR
do
$MKDIRP $d || { $ECHO $?; exit 1; }
done
for d in $LOGDIR $CRS_LOGDIR
do
$CHOWN root $d || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $d || { $ECHO $?; exit 1; }
done
for d in $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $RES_LOGDIR $ADMIN_LOGDIR $RES_COREDIR1 $RES_COREDIR2 $RES_COREDIR3 $CLSMON_LOGDIR
do
$CHOWN $CRS_ORACLE_OWNER $d || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $d || { $ECHO $?; exit 1; }
done
$CHMOD 1755 $LOGDIR || { $ECHO $?; exit 1; }
$CHMOD 1775 $RES_LOGDIR || { $ECHO $?; exit 1; }
$CHMOD 1777 $RES_COREDIR1 || { $ECHO $?; exit 1; }
$CHMOD 1777 $RES_COREDIR2 || { $ECHO $?; exit 1; }
$CHMOD 1777 $RES_COREDIR3 || { $ECHO $?; exit 1; }
for d in $CRS_LOGDIR $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $ADMIN_LOGDIR
do
$CHMOD 750 $d || { $ECHO $?; exit 1; }
done
#create EVM auth dir
$MKDIRP $CH/evm/auth
$CHOWN $CRS_ORACLE_OWNER $CH/evm/auth
$CHMOD 1755 $CH/evm/auth
# Create an empty alert log file
ALERTFILE=$LOGDIR/alert$HOST.log
$TOUCH $ALERTFILE
$CHMOD 664 $ALERTFILE
$CHGRP $CRS_DBA_GROUP $ALERTFILE
$CHOWN root $ALERTFILE
##Checking the repository location used by 9.x installations
SRVCONFIG_LOC=""
if [ -f "$SRVCONFIG" ]; then
# srvConfig.loc file exists and repository location is
SRVCONFIG_LOC=`$AWK -F= '/srvconfig_loc/ {print $2}' < $SRVCONFIG`
if [ "$SRVCONFIG_LOC" = "/dev/null" ]; then
# 9.x srvconfig_loc is already invalidated. So ignore it
# take the location entered by user to polulate ocr.loc
SRVCONFIG_LOC=""
fi
fi
##Checking the OCR locations used by 10gR1 or previous 10gR2 installations
OCRCONFIG_LOC=""
OCRMIRRORCONFIG_LOC=""
if [ -f "$OCRCONFIG" ]; then
# ocr.loc file exists and ocr location set here is
OCRCONFIG_LOC=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCRCONFIG`
OCRMIRRORCONFIG_LOC=`$AWK -F= '/ocrmirrorconfig_loc/ {print $2}' < $OCRCONFIG`
fi
##If the ocrconfig_loc property is not set in ocr.loc then
##we will check if srvconfig_loc property is set in srvConfig.loc file.
##if set the we set ocrconfig_loc = srvconfig_loc
OCRFILE=$OCRCONFIG
if [ -z "$OCRCONFIG_LOC" ];
then
##ocrconfig_loc is empty
##Lets set this value to srvconfig_loc from 9.x if exists
if [ ! -z "$SRVCONFIG_LOC" ];
then
#set ocrconfig_loc = srvconfig_loc
OCRCONFIG_LOC=$SRVCONFIG_LOC
OCRFILE=$SRVCONFIG
fi
fi
validateOCRDisks || { $ECHO $?; exit 1; }
CRS_OCR_LOCATION=`$ECHO $CRS_OCR_LOCATIONS | awk -F',' '{print $1}'`
CRS_OCR_MIRROR_LOCATION=`$ECHO $CRS_OCR_LOCATIONS | awk -F',' '{print $2}'`
####Verify current OCR settings with user entered values
if [ ! -z "$OCRCONFIG_LOC" ];
then
if [ "$CRS_OCR_LOCATION" != "$OCRCONFIG_LOC" ];
then
$ECHO "Current Oracle Cluster Registry location '$OCRCONFIG_LOC' in '$OCRFILE' and '$CRS_OCR_LOCATION' does not match"
$ECHO "Update either '$OCRFILE' to use '$CRS_OCR_LOCATION' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '$OCRCONFIG_LOC' then rerun rootconfig.sh"
exit 1
fi
else
#set ocrconfig_loc = CRS_OCR_LOCATION
OCRCONFIG_LOC=$CRS_OCR_LOCATION
fi
if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
then
if [ "$CRS_OCR_MIRROR_LOCATION" != "$OCRMIRRORCONFIG_LOC" ];
then
$ECHO "Current Oracle Cluster Registry mirror location '$OCRMIRRORCONFIG_LOC' in '$OCRCONFIG' and '$CRS_OCR_MIRROR_LOCATION' does not match"
$ECHO "Update either '$OCRCONFIG' to use '$CRS_OCR_MIRROR_LOCATION' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '$OCRMIRRORCONFIG_LOC' then rerun rootconfig.sh"
exit 1
fi
else
#set the mirror location = user entered value for CRS_OCR_MIRRROR_LOCATION
OCRMIRRORCONFIG_LOC=$CRS_OCR_MIRROR_LOCATION
fi
$ECHO ocrconfig_loc=$OCRCONFIG_LOC > $OCRCONFIG || { $ECHO $?; exit 1; }
if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
then
$ECHO ocrmirrorconfig_loc=$OCRMIRRORCONFIG_LOC >> $OCRCONFIG || { $ECHO $?; exit 1; }
fi
$ECHO local_only=FALSE >> $OCRCONFIG || { $ECHO $?; exit 1; }
$CHOWN root $OCRCONFIG || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $OCRCONFIG || { $ECHO $?; exit 1; }
$CHMOD 644 $OCRCONFIG || { $ECHO $?; exit 1; }
if [ -f $OCR_SYNC_FILE ]; then
$RMF $OCR_SYNC_FILE
fi
# First Activate the Volume Groups containing Oracle Cluster Registry
# and the Voting disk.
$CH/css/admin/init.cssd activatevg
##if ocr file does not exist
if [ ! -f "$OCRCONFIG_LOC" ];then
$CP /dev/null $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
fi
$CHOWN root $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
$CHMOD 640 $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
then
##if ocr mirror file does not exist
if [ ! -f "$OCRMIRRORCONFIG_LOC" ];then
$CP /dev/null $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
fi
$CHOWN root $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
$CHMOD 640 $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
fi
if [ ! -d "$OCR_BACKUP_DIR" ];
then
$ECHO "OCR backup directory '$OCR_BACKUP_DIR' does not exist. Creating now"
$MKDIRP $OCR_BACKUP_DIR
fi
$ECHO "Setting the permissions on OCR backup directory"
$CHMOD 775 $OCR_CDATA_DIR || { $ECHO $?; exit 1; }
$CHMOD 775 $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
$CHOWN root $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
NSSetup || { $ECHO $?; exit 1; }
# GSD should be down when this script is called.
# 1. Calls ocrconfig -upgrade to upgrade Oracle Cluster Registry contents from 9.2 to 10i format.
if $CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER $CRS_DBA_GROUP;
then
$ECHO "Oracle Cluster Registry configuration upgraded successfully"
else
$ECHO "Failed to upgrade Oracle Cluster Registry configuration"
exit 1
fi
##Invalidate the existing srvConfig.loc file if it was existing
if [ -f "$SRVCONFIG" ];then
$ECHO srvconfig_loc=/dev/null > $SRVCONFIG || { $ECHO $?; exit 1; }
$CHOWN root $SRVCONFIG || { $ECHO $?; exit 1; }
$CHGRP $CRS_DBA_GROUP $SRVCONFIG || { $ECHO $?; exit 1; }
$CHMOD 644 $SRVCONFIG || { $ECHO $?; exit 1; }
fi
# For all the files under bin, others should have only execute permission
$CHMOD o=x $CH/bin/*
# set ownership to root, but give execute permissions to all
$CHOWN root $CH/bin/crs*
$CHMOD 551 $CH/bin/crs*
# only owner(root) should ever invoke crsd
$CHMOD 741 $CH/bin/crsd
if [ ! -d $CH/crs/init ]; then
$MKDIRP $CH/crs/init
fi
for d in log racg/dump srvm/log
do
if [ ! -d $CH/$d ]; then
$MKDIRP $CH/$d
$CHOWN $CRS_ORACLE_OWNER $CH/$d
$CHGRP $CRS_DBA_GROUP $CH/$d
$CHMOD 775 $CH/$d
fi
done
for d in . lib bin crs crs/init crs/profile crs/script crs/template crs/auth
do
$CHOWN root $CH/$d
$CHMOD 755 $CH/$d
done
# These are writeable by all
for d in crs/public
do
$CHOWN $CRS_ORACLE_OWNER $CH/$d
$CHMOD 1777 $CH/$d
done
for d in evm evm/init
do
$CHMOD 750 $CH/$d
done
# Writable by the oinstall group but can only be deleted by the crshome owner
$CHMOD 1770 $CH/evm/log
$CHMOD 1750 $CH/crs/log
$CHMOD 1750 $CH/crs/trace
for d in css css/init css/log css/auth
do
$CHMOD 711 $CH/$d
done
# check directories above $CH are owned by root
# If any are not owned by root, then it allows root escalation
# by the owner of the directory.
d=$CH
while [ "$d" != "/" ]
do
d=`$DIRNAME $d`
set -$- `$LS -ld $d`
case $3 in
root) ;; # ok
*) $ECHO "WARNING: directory '$d' is not owned by root";;
esac
done
# Initialize the SCR settings.
$CRSCTL create scr $CRS_ORACLE_OWNER
if [ "$?" != "0" ]; then
$ECHO Failure initializing entries in $SCRDIR.
exit 1
fi
# Initialize the Oracle Cluster Registry the first time we come through the script.
# The invoker is required to run this script on the install node before the
# other cluster nodes.
CLSCFG_INIT=false
# clscfg - Initialize the Oracle Cluster Registry for the cluster. Should be
# done once per cluster install. Overwriting a configuration
# while any CRS daemon is running can cause serious issues.
HOSTNAMES_LIST=$CRS_HOST_NAME_LIST
if [ -z "$HOSTNAMES_LIST" ]; then
HOSTNAMES_ARGS=""
else
HOSTNAMES_ARGS="-hn $HOSTNAMES_LIST"
fi
$CH/bin/clscfg -install -nn $CRS_NODE_NAME_LIST -pn $CRS_PRIVATE_NAME_LIST \
$HOSTNAMES_ARGS -o $CH -c $CRS_CLUSTER_NAME -l "$CRS_LANGUAGE_ID" -q $CRS_VOTING_DISKS \
$CLSCFG_MISCNT
case $? in
0) CLSCFG_INIT=true;;
105) $ECHO "Oracle Cluster Registry for cluster has already been initialized";;
*) $ECHO "Failed to initialize Oracle Cluster Registry for cluster"; $ECHO $?; exit 1;;
esac
# basic copies first...
$CP $CH/evm/admin/init.evmd $ID/init.evmd || { $ECHO $?; exit 1; }
$CP $CH/css/admin/init.cssd $ID/init.cssd || { $ECHO $?; exit 1; }
$CP $CH/crs/admin/init.crsd $ID/init.crsd || { $ECHO $?; exit 1; }
$CP $CH/crs/admin/init.crs $ID/init.crs || { $ECHO $?; exit 1; }
# Create .proxyserv directory
case $PLATFORM in "Linux")
ARCH=`uname -m`
if [ $ARCH == "x86_64" ]; then
if [ -d $ORACLE_HOME/.proxysrv ]; then
$CHOWN -R $CRS_ORACLE_OWNER $ORACLE_HOME/.proxysrv
$CHMOD 755 $ORACLE_HOME/.proxysrv
else
$MKDIR $ORACLE_HOME/.proxysrv
$CHOWN -R $CRS_ORACLE_OWNER $ORACLE_HOME/.proxysrv
$CHMOD 755 $ORACLE_HOME/.proxysrv
fi
fi
esac
for rc in $RCSDIR
do
$RMF $rc/"$RC_START"init.crs
$LNS $ID/init.crs $rc/"$RC_START"init.crs || { $ECHO $?; exit 1; }
done
for rc in $RCKDIR
do
$RMF $rc/"$RC_KILL"init.crs
$LNS $ID/init.crs $rc/"$RC_KILL"init.crs || { $ECHO $?; exit 1; }
done
$CP $IT $IT.orig || { $ECHO $?; exit 1; }
# Prepare to start the daemons.
$ID/init.crs start
# Check to see if they are going to start.
$ID/init.cssd startcheck CSS
if [ "$?" != "0" ]; then
$ECHO CRS daemons not set to start. See $MSGFILE for details.
exit 1
fi
$ECHO "Adding daemons to inittab"
eval $RMITAB
$INIT q
$SLEEP 10
eval $ADDITAB
$INIT q
ALLDONE=false
# Wait until the daemons actually start up
$CRSCTL check install -wait 600
STATUS=$?
case $STATUS in
0)
# Complete success. This is the last node of the install.
works=false
# Wait for CRSD and EVMD to start up
for i in 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120
do
if $CH/bin/crs_stat > /dev/null 2>&1
then
works=true
break
fi
$ECHO "Waiting for the Oracle CRSD and EVMD to start"
$SLEEP 5
done
if $works
then
$ECHO "Oracle CRS stack installed and running under init(1M)"
ALLDONE=true
else
$ECHO "Timed out waiting for the CRS stack to start."
exit 1
fi
2)
# Current node is successful so far. Some nodes are not yet installed.
# CRSCTL will have printed out the names of the remaining nodes.
$ECHO "Failure at final check of Oracle CRS stack."
$ECHO $STATUS
exit 1
esac
# Startup was successful. Continue with the remainder.
##VIPCA is run by the last node that joins the CSS groups
if $ALLDONE
then
CRS_PARAMS="CRS_NODEVIPS"
if validateInput > /dev/null 2>&1
then
LOCAL_NODE=`$ORA_CRS_HOME/bin/olsnodes -l`
$CH/bin/crs_stat ora.$LOCAL_NODE.vip > /dev/null
STATUS=$?
if [ "$STATUS" = "0" ];
then
# do nothing
$ECHO ""
else
$ECHO "Running vipca(silent) for configuring nodeapps"
$CH/bin/vipca -silent -nodelist $CRS_NODELIST -nodevips $CRS_NODEVIPS
if [ "$?" != "0" ]; then
$ECHO ""
exit 1
fi
fi
else
$ECHO "Run VIPCA for configuring nodeapps"
$ECHO "The command to use 'vipca -nodelist <list of cluster nodes>'"
fi
fi
exit 0
请大家帮忙看一下。
Edited by: 951276 on 2012-11-4 上午5:19 -
The opatch Component check failed. This patch is not applicable for...
Hi.
I'm trying to patch 9655006 , in crs 11gR2. but:
# opatch auto /d05/oracle/install/patch/9655006 -oh /d01/oracle/grid
Executing /usr/bin/perl /d01/oracle/grid/OPatch/crs/patch112.pl -patchdir /d05/oracle/install/patch -patchn 9655006 -oh /d01/oracle/grid -paramfile /d01/oracle/grid/crs/install/crsconfig_params
2010-07-17 21:20:36: Parsing the host name
2010-07-17 21:20:36: Checking for super user privileges
2010-07-17 21:20:36: User has super user privileges
Using configuration parameter file: /d01/oracle/grid/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for /d01/oracle/grid
The opatch Component check failed. This patch is not applicable for /d01/oracle/grid
The opatch Component check failed. This patch is not applicable for /d01/oracle/grid
Patch Component/Conflict check failed for /d01/oracle/grid
Thanks.Hi.
The problem:
# opatch auto /d05/oracle/install/patch/9655006 -oh /d01/oracle/grid
The solution was:
# opatch auto /d05/oracle/install/patch/ -oh /d01/oracle/grid
Thanks. -
Hii
I am testing a rac upgrade scenario and scenario is Create new one node rac database upload data from single instance database to new rac database and later add second node to rac database.
I have followed these steps
1.I have installed Cluster software on Centos node1
2.Create A rac database node1 .Oracle software installed local directory.I can see database in crs resources
3.I have add node2 via addNode.sh from node1 and crs working on two nodes correctly.I can see resources these belongs node1 and node2
4.I have installed only database software on node2
5.I run dbca on node1 and select manage instance add instance and I cant see node2 in available nodes only see node1
6.I run dbca on node1 and select create database I cant see node2 in available nodes again only see node1
7.I run dbca on node2 and select create database I cant see node1 in available nodes too only see node2
Where am I making misktake ?have you any advice ?
Os Centos
Crs 11gr2
Database 11gr2
Best RegardsIt appears you manually installed the DB home on the second node. You need to instead run addnode.sh from the first node's DB home to install the DB binaries on the additional nodes.
-
Steps to stop / start CRS & ASM in RAC 11gr2
Hello Gurus,
Environment is as below:
RAC 2 nodes
Oracle RAC 11gr2
Enterprise Linux Server release 5.5 (Carthage)
I am new to Oracle RAC 11gr2 and facing some issues while stop / start crs & asm.
We want to reboot both nodes and for that I have done following steps.
1. srvctl stop database -d <db name> -- from one node
Databse is down now.2. srvctl stop nodeapps -n <hostname> -- from both nodes
services are down now.3. Now I want to stop asm
$ export ORACLE_HOME=/u01/app/11.2.0/grid ( Grid Home)
$ srvctl stop asm - This is not stopping ASM instance.
4. crsctl stop crs -- this is also not working.
I would appreciate if you please give me full steps.
Thanks and Regards,In 11gr2, gsd remains offline. When I had checked with metalink, they said that it is fine.
In 11gr2 you can stop all resouces as below
<CRS_HOME>/bin/crsctl stop has
or you can stop in the following sequence
stop or relocate service using srvctl
stop instnace using srvctl
stop asm using srvctl
stop nodeapps using srvctl
stop cluster resources as root - <CRS_HOME>/bin/crsctl stop has
To start
<CRS_HOME>/bin/crsctl start has - it should bring all resources automatically
verify the services status and start or relocate it back. -
11gR2: srvctl add nodeapps problem
Hello,
The installation of the 11gR2 grid infrastructure went OK on both nodes.
All resources, including vip, asm, DG, etc are OK and online
crsd is OK on BOTH nodes:
[root@quasar bin]# ./crsctl status resource -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.OCR.dg
ONLINE ONLINE mars
ONLINE ONLINE quasar
ora.asm
ONLINE ONLINE mars Started
ONLINE ONLINE quasar Started
ora.net1.network
ONLINE ONLINE mars
ONLINE ONLINE quasar
ora.registry.acfs
ONLINE ONLINE mars
OFFLINE OFFLINE quasar
Cluster Resources
ora.quasar.vip
1 ONLINE ONLINE quasar
[root@quasar bin]#
[root@quasar bin]# ./crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
However when adding nodeapps, the crsd daemon dies and any attempt
to restart it fails:
[root@quasar bin]# ./srvctl add nodeapps -n quasar -A quasar-vip/255.255.255.0/eth0 -l 6200 -r 6100 -v
Successfully added node applications.
[root@quasar bin]#
[root@quasar bin]# ./crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services <-----------------------------
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[root@quasar bin]#
Any advice how to fix this will be greatly appreciated
Regards,
KimDon't forget to specify your operating system. I don't understand why are you trying to "add" nodeapps to the cluster?, could you provide more details
-
Can we have separate 10gR2 RAC CRS and 11gR2 RAC CRS homes on same Unix s
We'd like to test the upgrade of our 10gR2 RAC databases to 11gR2 RAC.
We have six databases on the same server and want to install a separate 11g RAC stack (11g CRS, 11g ASM, 11g RDBMS) and upgrade each 10g database from 10g RAC stack on same server (10g CRS, 10g ASM, 10g RDBMS) . Is it ok to have 10g CRS home and 11g CRS home same server? If not, how best to upgrade without buying more hardware?
Thanks in advance,
LouIn more detail, the main issue/question is whether there can be 2 Oracle CRS homes on the same server i.e. separate 10gR2 and 11gR2 CRS homes residing on the same server for the purposes of (gradually) upgrading all Oracle RDBMS homes from 10g RAC to 11g RAC.
Can there be? What would be the implications for the OCR and voting disk? In our case 10g CRS has OCR and Voting Disk on raw devices. In 11gR2, these would need to be migrated/upgraded/stored in ASM, right?
We have 6 10g rdbms homes in addition to the one 10g CRS home and one 10g ASM home. To upgrade can we
- Install 11gR2 CRS in a separate home (this would now include ASM as well)
- Install 11gR2 RDBMS home
- Upgrade one of the 6 10g databases while leaving the others untouched as 10g databases in the separate 10g CRS, 10g ASM stack?
Any ideas, pointers greatly appreciated.
Thanks,
Lou -
ASM and CRS in 11gR2, chicken egg dilemma solved ?
Hi it seems, that the chicken egg dilemma in terms of ASM and CRS was solved in 11gR2. To start ASM in RAC, CRS needs to be running first. However in 11gR2 the OCR is stored in ASM. So to start CRS, ASM needs to be available beforehand. The same is with ASM. The ASM spfile is stored in ASM. Thus to start the ASM instance, ASM needs to be available first. I understood the trick used for the voting disks (more or less any other clusterware does). However I could not find any explanation how the above chicken egg dilemma was sorted out in 11gR2. There must be a way to access the ASM in 11gR2 by bypassing the ASM instance. Is this trick also related ti the new kernel modules like ACFS is ? Can anybody provide a little information here ?
Regard, MarcThanks for your answer.
Those services are disabled, and I've found this one on MOS FAQs :
With Oracle Clusterware 11g Release 2, the GSD resource will be disabled by default. You only need to enable this resource if you are running Oracle 9i RAC in the cluster. -
Suggestion for installing 11gr2 crs with existing 10g crs...
Hi, I need suggestions on installing 1120 rac on suse 11 where already 10g rac with asm is running. I need to upgrade the 10g crs and asm while installing 11g crs. Pls share your experience on these
1- what are the challenges to run 10g database on 11gr2 crs? is this suggested?
2- challenges to upgrade asm and crs to 11gr2.
3- can we use 2 asm instance in 11g grid infra to manage 10g and 11g db separately.
4-what could be back strategy for this kind of setup? RMAN?
5-how many extra ip i need to install 11g crs with existing 10g crs . we plan to use 3 ip for scan.
Also if possible please share any doc for this kind upgrade
Thanks,
Abhai1.) Yes this is o.k. Just see this MoS Note:
Pre 11.2 Database Issues in 11gR2 Grid Infrastructure Environment (Doc ID 948456.1)
2.) Well first only clusterware is upgraded. You will be asked if you want to upgrad ASM, but this is not mandatory at first.
You can use ASMCA later to switch ASM from 10.2 to 11.2 (this does not have to be done during upgrade).
3.) No you can only have 1 ASM running. So it is either 11.2 or 10.2 ASM. (However I suggest 11.2).
However you can/should have multiple diskgroups. One data and fra for the 11.2 databases where you set the rdbms.compatibility to 11.2 to use the new features, and one data an fra diskgroup for the 10.2 databases.
4.) As long as the compatibility setting of a diskgroup isn't changed, you can always switch ASM back to use 10.2 executables. (Just do a srvctl remove asm and add ASM).
Search this forum - there has been another thread about this.
Regarding fallback of clusterware => See installation guide.
5.) Mandatory are just 3 additional IPs for the SCAN.
Upgrade documentation see the installation guide of 11.2 GI.
Upgrade for ASM see Storage Admin Guide.
Upgrade to move OCR and Vote to ASM see Clusterware Admin Guide.
Upgrade to database see Database Upgrade Guide
Additionally look in MoS for the Upgrade Companion.
Sebastian -
Is ASM necessary for 11gr2 crs install ?
Hi,
I am about to install 11gr2 CRS (now grid ?) on Oracle E Linux 5.6.
I have been doing research and it is not clear to me.
Question 1) Is ASM mandatory as part f the install ? (I would prefer not to install ASM and just use OCFS2 for the database files).
Question 2) Can I use OCFS2 for a common location for the software binaries as well ?
Thanks,
Shawn.Question 1) Is ASM mandatory as part f the install ? (I would prefer not to install ASM and just use OCFS2 for the database files).No,
Question 2) Can I use OCFS2 for a common location for the software binaries as well ?Yes, upgrade OCFS2 to at least version 1.4.1
For more details refer..
http://download.oracle.com/docs/cd/E11882_01/install.112/e17212/storage.htm#CHDDGHHD -
Can't create 11gR1 Database with 11gR2 CRS/ASM non RAC, dbca ASM password
Hi,
try to create a 11gR1 SE Database on a single server with 11gR2 ASM up and running.
when dbca ask where to store the datafiles and i choose ASM, i have to give the asm sys password which i know (can connect with sql+).
dbca replies wrong password and i can NOT go further.
is it possible to use 11gR2 ASM with 11gR1 database and create a database with dbca?
any hint for this situation?
thanks
Michael
Edited by: user12132314 on 18.07.2010 22:24Hello,
i tried again - still don't work
it is dbca step 6 from 16, storage option (or something simiular - dbca lang here is german)
the dialog looks like this
ASM-ID-Data (Titel)
enter ASM specific SYS password (prompt)
entering the correct pwd and push OK
dbca shows a error dialog with something like: password for user SYS not valid. Enter a valid password.
Any help?
Michael -
Manually restart crs daemon in Cluster RAC 11gR2 (11.2)
In Cluster RAC 11g release2 (11.2) on Linux Platform (Red Hat Enterprise Linux Server release 5.3 ), if crs daemon fall down, is it possible to restart manually (in old version: init.crsd start) ? If yes, how?
Edited by: user6717729 on Jun 24, 2010 12:46 AMok I've opened another thread:
Manual restart CRS Daemon in Cluster RAC 11gR2 -
11gR2 CRS Resources type definitions
Can someone please suggest me some location where we can get the crs_resource definitions.. Basically i am looking for the document on ora.net1.network resouce groups.
Ex: ora.listener.type - Listner Monitoring resource group
TYPE=ora.diskgroup.type
TYPE=ora.listener.type
TYPE=ora.scan_listener.type
TYPE=ora.diskgroup.type
TYPE=application
TYPE=ora.asm.type
TYPE=ora.cluster_vip_net1.type
TYPE=ora.cvu.type
TYPE=ora.database.type
TYPE=ora.service.type
TYPE=ora.database.type
TYPE=ora.service.type
TYPE=ora.gsd.type
TYPE=ora.network.type
TYPE=ora.oc4j.type
TYPE=ora.ons.type
TYPE=ora.scan_vip.type
TYPE=ora.database.type
Edited by: 826207 on Jul 15, 2011 1:34 PMCan someone please suggest me some location where we can get the crs_resource definitions.. Basically i am looking for the document on ora.net1.network resouce groups.
Ex: ora.listener.type - Listner Monitoring resource group
TYPE=ora.diskgroup.type
TYPE=ora.listener.type
TYPE=ora.scan_listener.type
TYPE=ora.diskgroup.type
TYPE=application
TYPE=ora.asm.type
TYPE=ora.cluster_vip_net1.type
TYPE=ora.cvu.type
TYPE=ora.database.type
TYPE=ora.service.type
TYPE=ora.database.type
TYPE=ora.service.type
TYPE=ora.gsd.type
TYPE=ora.network.type
TYPE=ora.oc4j.type
TYPE=ora.ons.type
TYPE=ora.scan_vip.type
TYPE=ora.database.type
Edited by: 826207 on Jul 15, 2011 1:34 PM -
RAC 11gR2 cluster installation: root.sh failed on the 1st node
Hi,
Does anybody know why is possible when I run the root.sh on the 1st node, during the Oracle 11gR2 RAC installation (cluster installation) to get the following error?
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/grid
Enter the full pathname of the local bin directory: [usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-06-29 14:17:43: Parsing the host name
2010-06-29 14:17:43: Checking for super user privileges
2010-06-29 14:17:43: User has super user privileges
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
Creating trace directory
User oracle has the required capabilities to run CSSD in realtime mode
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'trz1test_rac'
CRS-2672: Attempting to start 'ora.mdnsd' on 'trz1test_rac'
CRS-2676: Start of 'ora.gipcd' on 'trz1test_rac' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'trz1test_rac'
CRS-2676: Start of 'ora.gpnpd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'trz1test_rac'
CRS-2676: Start of 'ora.cssdmonitor' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'trz1test_rac'
CRS-2672: Attempting to start 'ora.diskmon' on 'trz1test_rac'
CRS-2676: Start of 'ora.diskmon' on 'trz1test_rac' succeeded
CRS-2676: Start of 'ora.cssd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'trz1test_rac'
CRS-2676: Start of 'ora.ctssd' on 'trz1test_rac' succeeded
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'trz1test_rac'
CRS-2676: Start of 'ora.crsd' on 'trz1test_rac' succeeded
Now formatting voting disk: /data_gpfs/oracle/crs/vdsk.
CRS-4603: Successful addition of voting disk /data_gpfs/oracle/crs/vdsk.
## STATE File Universal Id File Name Disk group
1. ONLINE 653624f2aa1f4f83bf774e8052889a32 (/data_gpfs/oracle/crs/vdsk) []
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.crsd' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.ctssd' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'trz1test_rac'
CRS-2677: Stop of 'ora.cssdmonitor' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.cssd' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.gpnpd' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.gipcd' on 'trz1test_rac' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'trz1test_rac'
CRS-2677: Stop of 'ora.mdnsd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'trz1test_rac'
CRS-2676: Start of 'ora.mdnsd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'trz1test_rac'
CRS-2676: Start of 'ora.gipcd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'trz1test_rac'
CRS-2676: Start of 'ora.gpnpd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'trz1test_rac'
CRS-2676: Start of 'ora.cssdmonitor' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'trz1test_rac'
CRS-2672: Attempting to start 'ora.diskmon' on 'trz1test_rac'
CRS-2676: Start of 'ora.diskmon' on 'trz1test_rac' succeeded
CRS-2676: Start of 'ora.cssd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'trz1test_rac'
CRS-2676: Start of 'ora.ctssd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'trz1test_rac'
CRS-2676: Start of 'ora.crsd' on 'trz1test_rac' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'trz1test_rac'
CRS-2676: Start of 'ora.evmd' on 'trz1test_rac' succeeded
*/oracle/grid/bin/srvctl start nodeapps -n trz1test_rac ... failed*
Configure Oracle Grid Infrastructure for a Cluster ... failed
This is because ora.eONS daemon is not starting. There is a Metalink note that we MIGHT start this daemon manually ... but this is not working.
*./srvctl status nodeapps -n trz1test_rac*
-n <node_name> option has been deprecated.
VIP trz1test_rac_vip is enabled
VIP trz1test_rac_vip is running on node: trz1test_rac
Network is enabled
Network is running on node: trz1test_rac
GSD is disabled
GSD is not running on node: trz1test_rac
ONS is enabled
ONS daemon is running on node: trz1test_rac
eONS is enabled
eONS daemon is not running on node: trz1test_racI run my clusterware/DB on AIX 5.3
When I run runcluvfy.sh here are the things which are not passing:
Check: Node connectivity of subnet "192.168.1.0"
Source Destination Connected?
trz2test_rac:en5 trz2test_rac:en5 yes
trz2test_rac:en5 trz1test_rac:en5 yes
trz2test_rac:en5 trz1test_rac:en5 yes
trz2test_rac:en5 trz1test_rac:en5 yes
trz2test_rac:en5 trz1test_rac:en5 yes
trz1test_rac:en5 trz1test_rac:en5 yes
Result: Node connectivity passed for subnet "192.168.1.0" with node(s) trz2test_rac,trz1test_rac
Check: TCP connectivity of subnet "192.168.1.0"
Source Destination Connected?
trz1test_rac:192.168.1.140 trz2test_rac:192.168.1.142 failed
trz1test_rac:192.168.1.140 trz2test_rac:192.168.1.142 failed
Result: TCP connectivity check failed for subnet "192.168.1.0"
NTP daemon slewing option check failed on some nodes
PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option "-x"
Result: Clock synchronization check using Network Time Protocol(NTP) failed
NTP mustn't be a problem I guess as the date are identical on the 2 nodes.
I have no idea how to fix the TCP connectivity issue with the subnet "192.168.1.0". Some posts wrote that could be a firewall issue. Are there any other causes ?
Thanks to all,
Paul
Maybe you are looking for
-
How to I restore lost audiobooks from iTunes after replacing my hard drive?
After replacing my hard driver I put my apple ID and password into iTunes and was able to re-download all of my music but I was not able to get my audiobooks. Does anyone know how I can do that?
-
A few days ago a yellow vertical lined pattern appeared & covers my entire display. I can highlight areas of it & lighten them, but can't get them to disappear. I tried different color settings, display settings, and resetting the PRAM but nothing ha
-
Answers hitting wrong fact in BMM layer
Hi All, I have 2 facts mainly CURRENT and AGO both at the day level.Now when i try to push columns from dimensions and put the filter in date then it is hitting AGO fact but i want to CURRENT fact. Any Suggestions. Regards
-
Connect SAP B1 server to Remote Client
hi experts.. i want to know how to connect the SAP B1 server to the Remote SAP B1 client machine.
-
Short Clicking noise when resuming pc after it has been idle
This isn't really a problem just something that is annoying me. When going to my pc after it has been sitting idle, (not hibernating nor do I have the hardisks turnoff ever) I notice a one time short clicking noise from the box. To me it sounds like