天天看點

OMS10.2.0.5/RHEL5.4×64/OracleEDB10.2.0.4×64

一、執行個體

OMS10.2.0.5/RHEL5.4×64/OracleEDB10.2.0.4×64

recommend configuration:

1.oms server 1台

2.repositorydb server 1台

3.os: rhel5.4×64

4.repository database: 10.2.0.4 x64

5. oms:10.2.0.5×64

6.agent:10.2.0.5

一、silent mode install oms10.2.0.5

1. 下載下傳10.2.0.3完整安裝包

2. 下載下傳10.2.0.5更新檔包

3.on oms server

vi /etc/hosts

127.0.0.1               localhost.localdomain localhost

192.168.23.198  xx.xx.xx xx  #(repo database資料庫伺服器)

192.168.23.10    xx.xx.xx xx

10.1.23.10    xx.xx.xx xx

4. on oms server

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

chmod 755 /usr/lib/libgdbm.so.2.0.0

chmod 755 /usr/lib/libdb.so.2

echo oms10g:/opt/oracle/oms10g:n >> /etc/oratab

echo agent10g:/opt/oracle/agent10g:n >> /etc/oratab

chown oracle:oinstall /etc/oratab

chmod 664 /etc/oratab

5.on database server

參數修改,重新開機資料庫

job_queue_processes 10

db_block_size 8192

timed_statistics true

open_cursors 300

session_cached_cursors 200

aq_tm_processes 4

compatible <currently installed oracle database release> (default)

undo_management auto

undo_retention 10800

undo_tablespace <any acceptable name>

processes 150

shared_pool_size 800m

log_buffer 1048576

statistics_level typical (note that this value is specific only to enterprise manager 10g repository database release and later.)

temp space (tablespace) 50 mb (extending to 100 mb)

_b_tree_bitmap_plans false (hidden parameter)

5.1

删除oracle em配置

單節點庫: emca -deconfig dbcontrol db -repos drop

rac庫: <database oracle home>/bin/emca -deconfig dbcontrol db -repos drop – cluster

5.2

conn / as sysdba

@?/rdbms/admin/dbmspool.sql

commit;

6.on oms server

vi ~oracle/.bash_profile

# oracle add

export ps1=”$user@`/bin/hostname -s`-> ”

export editor=vi

export oracle_base=/opt/oracle

export oms_home=$oracle_base/oms10g

export agent_home=$oracle_base/agent10g

export oracle_sid=gridctl

export oracle_home=$oracle_base/oms10g

export ld_library_path=$oms_home/perl/lib/5.6.1:$oms_home/opmn/lib:$oms_home/lib:/lib64:/usr/lib64:/usr/local/lib64:$agent_home/lib:/lib:/usr/lib:/usr/local/lib

export perl5lib=$oms_home/oms10g/perl/lib/5.6.1

export path=$oms_home/bin:$oms_home/opmn/bin:$agent_home/bin:$oms_home/bin:$path:.

export tmp=/tmp

export tmpdir=$tmp

umask 022

alias rm=’rm -i’

alias ll=’ls -lh’

alias sqlplus=’rlwrap sqlplus’

alias rman=’rlwrap rman’

export nls_date_format=’yyyy-mm-dd hh24:mi:ss’

export nls_lang=american_america.utf8

7. on database server

修改oracle 資料庫密碼  (最好隻适用字母和數字,否則安裝會有異常)

sys /

system /

dbsnmp /

sysman /

8. on oms server

解壓10.2.0.3 和 10.2.0.5

vi response/em_using_existing_db.rsp

responsefile_version=2.2.1.0.0

unix_group_name=”oinstall”

from_location=”絕對路徑/stage/products.xml”

basedir=”/opt/oracle”

installation_name=”oms10g”

next_session=true

next_session_on_fail=true

deinstall_list={“oracle.sysman.top.oms”,”10.2.0.3.0″}

show_deinstall_confirmation=true

show_deinstall_progress=true

accept_license_agreement=true

toplevel_component={“oracle.sysman.top.oms”,”10.2.0.3.0″}

component_languages={“en”}

s_reposhost=”xx.xx.xx” #資料庫主機名

s_reposport=”1521″

s_repossid=”gridctl”

s_reposdbapwd=”"    #repo資料庫的sys使用者密碼

s_mgmttbsname=”/database/oradata/gridctl/mgmt.dbf”  #資料庫需要被建立的表空間資料檔案絕對路徑

s_ecmtbsname=”/database/oradata/gridctl/mgmt_ecm_depot1.dbf”  #資料庫需要被建立的表空間資料檔案絕對路徑

s_securepassword=”xxx”    #agent和oms通信設定的密碼

s_securepasswordconfirm=”xxx”     #agent和oms通信設定的密碼

b_lockedselected=false

s_repospwd=”xxx”     #repo資料庫的将要被建立的sysman使用者密碼

s_repospwdconfirm=”xxx”    #repo資料庫的将要被建立的sysman使用者密碼

n_firstinstancevalidation=2

n_firstreposvalidation=1

n_firstrepospwdvalidation=2

n_firstsecurevalidation=2

n_firstvldnemailser=2

b_upgrade=false

b_showoptconfigpage=true

s_installtype=”noseed”

9. on oms server

./runinstaller -noconfig -ignoresysprereqs -silent -responsefile <location of em_using_existing_db.rsp> use_prereq_checker=false

if this is the first oracle product you just installed on the host, then run the orainstroot.sh script from the central inventory as a root user:

$oracle_home/orainventory/orainstroot.sh

run the 

allroot.sh

 from the oracle home of the oms as a root user

on oms home: $oracle_home/opmn/bin/opmnctl stopall

10. on oms server

install 10.2.0.5pathset on oms

vi patchset.rsp

oracle_home=”/opt/oracle/oms10g”

b_softwareonly=true

b_startoms=true

s_syspassword=”"   #repo資料庫的sys使用者密碼

toplevel_component={“oracle.sysman.patchset”,”10.2.0.5.0″}

deinstall_list={“oracle.sysman.patchset”,”10.2.0.5.0″}

show_splash_screen=true

show_welcome_page=false

show_summary_page=true

show_install_progress_page=true

show_required_config_tool_page=true

show_config_tool_page=true

show_xml_prereq_page=true

show_end_of_install_msgs=true

show_rootsh_confirmation=true

show_end_session_page=true

show_exit_confirmation=false

sl_pwdinfo={ “” }     #repo資料庫的sys使用者密碼

n_validate=1

oracle.iappserver.st_midtier:szl_instanceinformation={ “” }   #ias_admin使用者密碼,和sysman使用者密碼一緻

decline_security_updates=true

./runinstaller -noconfig -silent -responsefile <absolute_path>/patchset.rsp

run root.sh.

11. patch 10.2.0.5 on agent

oracle_home=”/opt/oracle/agent10g”

s_syspassword=”"

sl_pwdinfo={ “” }

oracle.iappserver.st_midtier:szl_instanceinformation={ “” }

root.sh.

set the perl5lib as 

<oracle_home>/perl/lib/5.6.1

 where <oracle_home> is the oracle home directory of the oms.

$oracle_home/perl/bin/perl <oracle home>/sysman/install/configuregc.pl <install_base_directory>

after the script runs successfully, grid control is configured to 10.2.0.5 or higher release. to verify the release, do the following:

go to the oracle home directory of the oms (for example, oms10g) and run the following command:$<oracle_home>/bin/emctl status oms

go to the oracle home directory of the management agent (for example, agent10g) and run the following command:$<oracle_home>/bin/emctl status agent

12.

端口

[email protected]> cat portlist.ini

;oracleas components reserve the following ports at install time.

;as a post-installation step, you can reconfigure a component to use a different port.

;those changes will not be visible in this file.

[system]

host name = xx.xx.xx

[ports]

oracle http server port =  7777

oracle http server listen port = 7778

oracle http server ssl port = 8250

oracle http server listen (ssl) port = 4444

java object cache port = 7000

oracle notification server request port = 6003

oracle notification server local port = 6101

oracle notification server remote port = 6200

asg port = 7890

application server control rmi port = 1850

oracle http server diagnostic port = 7200

log loader port = 44000

dcm discovery port = 7100

oracle management agent port = 1157

application server control port = 1156

web cache http listen port = 7777

web cache http listen (ssl) port = 8250

web cache administration port = 9400

web cache invalidation port = 9401

web cache statistics port = 9402

enterprise manager central console port = 4889

enterprise manager central console secure port = 1159

二、silent mode install agent10.2.0.5