oracle RAC GSD简介

   Oracle 11gR2 RAC默认情况下gsd服务是禁用的,但某些客户觉得OFFLINE看起来不爽,下面贴出一篇metalink文章,解释gsd服务的作用:

GSD Is Used Only if 9i RAC Database is Present (文档 ID 429966.1)
修改时间:2013-3-11 类型:REFERENCE

In this Document

Purpose
Scope
Details
  Scalability RAC Community
References


APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.0 [Release 10.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 11-Mar-2013***

PURPOSE

The purpose of this document is to clarify the functionality of GSD in 10g and above.

SCOPE

This article is informational and intended for any user.

DETAILS

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).

#case $ORACLE_HOME in  
# "") 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 

see also:
Grid Infrastructure Installation Guide

5 Oracle Grid Infrastructure Postinstallation Procedures

5.3.3 Enabling The Global Services Daemon (GSD) for Oracle Database Release 9.2


--end--

Oracle 10G RAC 安装 完成之后,在某些情况下(尤其是在 aix 环境中),GSD服务进程状态可能是offline或者unknown。而且可能导致CRS启动十分缓慢。

GSD进程是Oracle 10G 与 Oracle 9i 通信的进程。如果机器上不存在Oracle 9i,可以通过如下方法禁用GSD来解决这个问题。

详细的介绍见 metalink doc:429966.1

禁用GSD服务的方法是在各个node上,修改$CRS_HOME/bin/gsdctl文件,在#esac行后增加 exit 0

操作过程如下:

操作要在rac的每个节点上完成

[@more@]

备份gsdctl文件

[root@rac1 bin]# cd $CRS_HOME/bin
[root@rac1 bin]# pwd
/u01/crs/oracle/product/10.2.0/crs/bin
[root@rac1 bin]# ls -l gsdctl
-rwxr-x--x 1 oracle oinstall 4794 Dec 7 17:36 gsdctl
[root@rac1 bin]# cp gsdctl gsdctl.old

修改gsdctl文件,红色的一行为自己增加的内容

[root@rac1 bin]# vi gsdctl

#!/bin/sh
#
# $Header: gsdctl.sbs 08-mar-2006.10:50:01 bkannike Exp $
#
# srvctl
#
# Copyright (c) 2000, 2006, Oracle. All rights reserved.
#
# NAME
# gsdctl - Oracle GSD Control Utility
#
# DESCRIPTION
#
#
# MODIFIED (MM/DD/YY)
# ksviswan 01/30/08 - merge hpux,linuxamd changes
# bkannike 02/07/06 - Fix for 4937400
# bkannike 03/08/06 - Backport bkannike_bug-4937400 from main
# sowong 10/05/05 - fix bug 4624796
# rxkumar 10/25/04 - fix bug3945363
# khsingh 09/27/04 - fixes for PLE (3914991)
# khsingh 04/09/04 - fix bug 3517103
# jcreight 10/27/03 - Fix double equals
# khsingh 10/17/03 - fix for detecting vendor clusterware
# bhamadan 09/18/03 - replacing s_jre131Location with s_jreLocation
# khsingh 06/25/03 - remove policyfile
# rdasari 06/02/03 - set shared lib path for 32 and 64 bit platforms
# khsingh 04/18/03 - set ORACLE_HOME and export it
# khsingh 03/14/03 - change it to work for CRS also
# jtellez 10/04/02 - make policy ==
# surchatt 09/06/02 - putting policy file location
# rdasari 08/07/02 - use java instead of jre
# rdasari 08/01/02 - use jdk 1.3
# jtellez 07/26/02 - add srvmhas.jar to classpath
# myechuri 01/02/02 - .
# myechuri 01/02/02 - get ORACLE_HOME from installer.
# myechuri 10/05/01 - Merged myechuri_gsdctl_main
# myechuri 09/19/01 - .
# myechuri 09/19/01 - Creation
#


#case $ORACLE_HOME in
# "") 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
SRVM_PROPERTY_DEFS=""
# Check for tracing
if [ "X$SRVM_TRACE" != "X" ]
then
SRVM_PROPERTY_DEFS="-DTRACING.ENABLED=true -DTRACING.LEVEL=2"
fi

"gsdctl" 156L, 4802C written

重启crs

[root@rac1 bin]#
[root@rac1 bin]# crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 bin]# crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac1 bin]#

查看crs状态

[root@rac1 bin]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....C1.inst application ONLINE ONLINE rac1
ora....C2.inst application ONLINE ONLINE rac2
ora.RAC.db application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
[root@rac1 bin]#

--end--

<!--
管理员在2009年8月13日编辑了该文章文章。
--&gt<!--
管理员在2009年8月13日编辑了该文章文章。
--&gt

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

转载于:http://blog.itpub.net/24162410/viewspace-1814330/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值