新接手套系统,用的11.2的oracle rac。crs_stat -t 发现gsd的target 和state都是offline,查mos有相关文章,表明如果clusterware管理的database里没有9i,则gsd可以关闭。且11.2GSD 默认就是关闭状态
GSD Is Used Only if 9i RAC Database is Present
The function of GSD (10g and above) is to service requests for 9i RAC management clients and therefore when there are no 9i databases present, there is nothing for GSD to do. Consequently, there will be no impact on a RAC cluster if GSD is offline and 9i is not used.
If gsd fails to start due to whetever reasons then best thing is to work with Oracle support to analyze and fix the issue. Until that time, gsd can be temporarily disabled.
In 11.2 GSD is disabled by default and the service will show as target:offline, status:offline.
Disable GSD (pre 11.2)
After confirming that there are no 9i databases being used you can disable GSD by adding 'exit 0' after the initial comments in the script $ORACLE_HOME/bin/gsdctl where $ORACLE_HOME is the home from which nodeapps are running (i.e. crs home).
# "") echo "****ORACLE_HOME environment variable not set!"
# echo " ORACLE_HOME should be set to the main"
# echo " directory that contains Oracle products."
# echo " Set and export ORACLE_HOME, then re-run."
# exit 1;;
#esac
exit 0 ## Manually added as a temporary workaround
A backup of the original script should be made before making the above change.
Disable GSD (11.2)
You may want to disable GSD after you upgraded all your Oracle9i RAC databases.
srvctl stop nodeapps
srvctl disable nodeapps -g
srvctl start nodeapps
Enable GSD in 11.2
srvctl enable nodeapps -g
srvctl start nodeapps