Automatic Start GC Agent 10.2.0.5 via gcstartup Script fails with sudo_789363.1
Automatically Starting the Grid Control Agent 10.2.0.5 via "gcstartup" Script fails with /usr/local/bin/sudo No such file or directory (Doc ID 789363.1)
In this Document
Applies to:Enterprise Manager Base Platform - Version 10.2.0.5 to 10.2.0.5 [Release 10.2]Information in this document applies to any platform. ***Checked for relevance on 05-Jul-2013*** Symptoms
The Grid Control gcstartup script fails to start the Agent or the OMS after the patchset 10.2.0.5.0 has been applied to the OMS or Agent ORACLE_HOME. Changes10.2.0.5.0 Patchset applied to the Grid Control OMS and/or Grid Control Agent ORACLE_HOME. Cause
This problem is logged in the internal bug "GCSTARTUP FAILS ON LINUX 10.2.0.5.0 - AGENTSTUP HAS ERRORS"
#!/bin/sh
#Script to start and stop the Agent during shutdown and restart of the machine export ORACLE_HOME=/home/oracle/OracleHomes/agent10g installUser=oracle executingUser=$USER SU=/usr/local/bin/sudo case "$1" in start) #Commenting as is not required after the bug 5329412 #OH=`$ORACLE_HOME/bin/emctl getemhome | grep EMHOME | cut -c8-` #agentTZ=`grep agentTZRegion $OH/sysman/config/emd.properties | cut -c15-` #grep $agentTZ $ORACLE_HOME/sysman/admin/ossupportedtzs.lst #if [ $? = 0 ]; then #TZ=$agentTZ #export TZ #fi if [ $executingUser = $installUser ] ; then $ORACLE_HOME/bin/emctl start agent else $SU -u $installUser $ORACLE_HOME/bin/emctl start agent fi ;; stop) if [ $executingUser = $installUser ] ; then $ORACLE_HOME/bin/emctl stop agent else $SU -u $installUser $ORACLE_HOME/bin/emctl stop agent fi ;; *) echo $"Usage: $0 {start|stop}" exit 1 esac
Line 19 =
if [ $executingUser = $installUser ] ; then Line 22 = $SU -u $installUser $ORACLE_HOME/bin/emctl stop agent
Solution
To successfully start the Grid Control Agent via the script $ORACLE_HOME/install/unix/scripts/gcstartup, please follow the steps below.
SU=/usr/bin/sudo
if [ "$executingUser" = "$installUser" ] ; then
References |
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1262804/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Agent to OMS Communi Fails if Agent is 'Blocked' in 10.2.0.5 Grid Cons_799618.1AIBloC996
- Install GC Agent 11.1.0.1 fails at Config Agent File secure.log_1273470.1GCAI
- GC 11.1 Install fails at Agent CA while Securing Agent in secure.log_1118270.1GCAIWhile
- EM GC11.1.0.1 Agent Startup on AIX Fails with Error: nmectl_validate_1386861.1GCAIError
- GC Agent Startup Fails on AIX due to Invalid Timezone Setting at OS_825933.1GCAI
- gc/Agent passwd resetGC
- 【RMAN】Run Allocate Channel For Maintenance From Script FailsAINaN
- Windows Sqlserver Automatic Log Audit Via C/C++WindowsSQLServerC++
- Clusterware Fails to Start With 'clssnmLocalJoinEvent: takeov Ocssd.log_845573.1AICSS
- Agent Startup Fails When the Repository DB Does Not Support TZ of Agent-332131.1AI
- Agent Upload to OMS Fails if OMS Locked in Secure,Agent isn't Secured_422922.1AI
- Agent to OMS Communi Fails if Agent's REPOSITORY_URL Para has Incorrect_737373.1AI
- Using silent mode to install GC 10.2.0.1 and upgrade GC to 10.2.0.5 by Using an Existing Database onGCDatabase
- 9.2.0.4 升級到10.2.0.5升級後 Oracle Ultra Search 元件NO SCRIPTOracle元件
- 【GC】Grid Control Agent完整刪除方法GC
- Dbconsole Fails To Start With Nzos_handshake Failed,Ret=29024AI
- Fails to Start: PMON (ospid: nnnn): terminating the instance due to error 481AIError
- oracle10g GC agent安裝與解除安裝OracleGC
- Agent Install Fails with Error 'OUI-25031' Due to Environment Settings_380507.1AIErrorUI
- 11g Agent Upload Fails with "OMS version not checked Yet". (Doc ID 1265052.1)AI
- Problem: 10.2 Agent Install On Rac Fails With 'Exceptionmessage=Prkc-1002'AIException
- Oracle Database Fails to Start with Error ORA-12547 [ID 1307075.1]OracleDatabaseAIError
- Upgrade GC 10.2.0.x to 10.2.0.5 - Important Steps Required_853691.1GCImportUI
- $FND_TOP/bin/txkrun.pl -script=DeployForms-c4ws Fails with Fatal ErrorORMAIError
- OMS to Agent Comm Fails if IP Address of the Grid Ag Machine is Changed-605009.1AIMac
- root script (root.sh or rootupgrade.sh) Failed to start resource ora.onsAI
- Step By Step Install Oracle GC 10.2.0.5 on Redhat Linux 5.5 x86_64 (2/2)OracleGCRedhatLinux
- 【GC】重新配置Agent以應對 OMS伺服器的變化GC伺服器
- OMS CA:10.2.0.1.0 GC Install Fails with "Error processing emkey-353131.1GCAIError
- Install EM GC 10.2.0.5 Using Existin DB with Software Only on Linux x86_763347.1GCLinux
- Checklist for EM 10g GC 10.2.x to 10.2.0.5 OMS and Repository Upgrades_464674.1GC
- GC 10.2.0.1 OMS和Agent連線失敗後的處理過程GC
- Description of Important Components / Threads in EM GC Agent_1101615.1ImportthreadGC
- Step By Step Install Oracle GC 10.2.0.5 on Redhat Linux 5.5 x86_64 (1/2待續...)OracleGCRedhatLinux
- 【GC】OEM Grid Control 11gR1部署之Agent部分GC
- Agent Install Fails java.lang.Exception:6,OUI-25031',Symbolic Link-352357.1AIJavaExceptionUISymbol
- GC 11g install fails at OMS config stage-Wrong WLS version used_1135493.1GCAI
- Install gc agent on client is getting 'Please specify a Unique Oracle Base directory'(redhat 5.3_x8GCclientOracleRedhat