close

###############################################
# Prerequisites:
###############################################
1.
For ASM1 to be monitored properly, make sure orapw+ASM1 exists (Take first node as an example).
If not, then create a orapw+ASM1 using:
$GRID_HOME/bin/orapwd file=$GRID_HOME/dbs/orapw+ASM1
export ORACLE_SID=+ASM1
sqlplus / as sysasm
select * from v$pwfile_users;
>>
USERNAME SYSDB SYSOP SYSAS
--------------------- --------- --------- ----------
SYS TRUE TRUE TRUE
ASMSNMP TRUE FALSE FALSE

 
ps. if ASMSNMP user does not exist, then create one as follows:
create user asmsnmp identified by &pwd;
grant sysdba to asmsnmp;
 

2. Modify /source/agent11/linux_x64/response/additional_agent.rsp
>>
SECURITY_UPDATES_VIA_MYORACLESUPPORT=FALSE
DECLINE_SECURITY_UPDATES=True
INSTALL_UPDATES_SELECTION="skip"
STAGE_LOCATION=/source/agent11/
ORACLE_AGENT_HOME_LOCATION=/oracle/agent11/
b_silentInstall=true
OMS_HOST=10.1.0.100
OMS_PORT=7799
AGENT_REGISTRATION_PASSWORD=[MY_PWD]

 

###############################################
# Run Grid Control Agent installation script
###############################################
export ORACLE_HOME=/oracle/agent11/agent11g
mkdir -p /oracle/agent11/
cd /source/agent11/linux_x64/agent
./runInstaller -silent -responseFile /source/agent11/linux_x64/response/additional_agent.rsp


#######################################
# Applying Grid Control Agent Patch
#######################################
cd /source/agent11_patch/PSU-3/9345906
export ORACLE_HOME=/oracle/agent11/agent11g
$ORACLE_HOME/OPatch/opatch apply

cd $ORACLE_HOME/bin
./emctl secure agent (Enter Agent Registration Password)
./emctl start agent
./emctl upload agent
./emctl status agent

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 DanBrother 的頭像
    DanBrother

    DanBrother的部落格

    DanBrother 發表在 痞客邦 留言(0) 人氣()