Step By Step Install Oracle GC 10.2.0.5 on Redhat Linux 5.5 x86_64 (1/2待續...)
靜默方式(silent)安裝的基本步驟為:
一. OMS SERVER環境準備,REPOSITORY DB環境準備.
二. 下載安裝程式,解壓縮到安裝目錄
三. 進行GC_10.2.0.3_full安裝(靜默方式),選擇noconfig的方式.
四. Patch OMS AND AGENT FROM 10.2.0.3 TO 10.2.0.5
使用noconfig方式,只安裝軟體,不進行配置操作(在升級安裝中noconfig常常被用到,一般安裝10.2.0.3,升級到10.2.0.5等新版本後,才執行後面的config操作,這樣就省去升級repository db物件的操作。)
五. 執行ConfigureGC.pl進行軟體安裝後的配置,包括OMS的配置,repository db物件的建立。
六. 檢查opmn的執行狀態,登入GC的em管理介面。
七. 配置agent,增加受監控的資料庫節點
[@more@]- 配置OMS SERVER 的ORACLE 使用者環境
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
Passed oracle
- 配置OMS SERVER的oracle使用者的引數檔案
$more /home/oracle/.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle/OracleHomes
export ORACLE_HOME=$ORACLE_BASE/oms10g
export OMS_HOME=$ORACLE_BASE/oms10g
export ORACLE_SID=girdctl
export ORACLE_TERM=xterm
export AGENT_HOME=$ORACLE_BASE/agent10g
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:/usr/lib64/gcj-4.1.1:/usr/lib/gcj-4.1.1:/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/x86_64/server
export PERL5LIB=$OMS_HOME/perl/lib/5.6.1
export PATH=$OMS_HOME/bin:$OMS_HOME/opmn/bin:$AGENT_HOME/bin:$OMS_HOME/bin:$PATH:.
export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
- 配置OMS SERVER系統環境
#more /etc/security/limits.conf
。。。。。。
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
#more /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
#/sbin/sysctl -p
執行下面命令使設定生效/sbin/sysctl -p
#vi /etc/pam.d/login
session required /lib/security/pam_limits.so
增加上面一行內容.
另外需要注意的是:
/tmp 目錄保持1.3G空間;$OMS_HOME 保持2.5G 的剩餘空間.
- REPOSTORY DB SERVER的配置
Table 8-9 Fixed Initialization Parameter Values
Parameter
Value
job_queue_processes
10
db_block_size
8192
timed_statistics
TRUE
open_cursors
300
session_cached_cursors
200
aq_tm_processes
1
compatible
(default) undo_management
AUTO
undo_retention
10800
undo_tablespace
processes
150
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)Foot 1
50 MB (extending to 100 MB)
_b_tree_bitmap_plans
false (hidden parameter)
Repostory db:
alter system set job_queue_processes=10 scope=spfile;
Alter system set timed_statistics=TRUE scope=spfile;
Alter system set open_cursors=300 scope=spfile;
Alter system set session_cached_cursors=200 scope=spfile;
Alter system set aq_tm_processes=1 scope=spfile;
Alter system set undo_management=auto scope=spfile;
Alter system set undo_retention=10800 scope=spfile;
Alter system set processes=150 scope=spfile;
Alter system set log_buffer=1048576 scope=spfile;
Alter system set statistics_level=TYPICAL scope=spfile;
重新啟動repostory db,使上面的引數生效.
在安裝之前,需要刪除REPOSITORY DB資料的資訊,具體操作如下:
ON REPOSTITORY DB:
To install Enterprise Manager Grid Control using an existing database, follow these steps:
- If your existing database is configured with Database Control, then ensure that you deconfigure it before you begin the installation of Grid Control.
To deconfigure Database Control for a single instance database, run the following command:/bin/emca -deconfig dbcontrol db -repos drop
To deconfigure Database Control for a Real Application Clusters (RAC) database, run the following command:/bin/emca -deconfig dbcontrol db -repos drop - cluster
After deconfiguring the Database Control, connect to the database as SYS user and run the following SQL files from the Oracle home of the database:/rdbms/admin/dbmspool.sql
Dbmspool.sql 指令碼建立了gc需要的物件,不執行則執行安裝時會出錯.
rdbms/admin/prvtpool.plb Note:The command drops all the public synonyms starting with the following names created by any user for any schema:- 'MGMT$%'
- 'MGMT_%'
- 'SMP_EMD%'
- 'SMP_MGMT%'
- 'SETEMVIEWUSERCONTEXT'
- 'DBMS_SHARED_POOL'
- 'EMD_MNTR'
- 'ECM_UTIL'
最後最好在repostory db上檢查,是否還存在sysman使用者,如果仍然存在,可以執行下面的命令,進行手工的清楚.(oracle10g的emca ..-repos drop的命令可以完成刪除的任務,可以信賴)
drop user sysman cascade;
drop role MGMT_USER;
drop user MGMT_VIEW cascade;
drop public synonym MGMT_TARGET_BLACKOUTS;
drop public synonym SETEMVIEWUSERCONTEXT;
- If your existing database is configured with Database Control, then ensure that you deconfigure it before you begin the installation of Grid Control.
- 在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
# rpm -Uvh libXp-1.0.0-8.1.el5.*
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package libXp-1.0.0-8.1.el5.x86_64 is already installed
package libXp-1.0.0-8.1.el5.i386 is already installed
安裝libXP包,用於啟動X_Windows,如果使用slient安裝,則不需要安裝這個包
# rpm -Uvh compat-db*
warning: compat-db-4.2.52-5.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:compat-db ########################################### [ 50%]
2:compat-db ########################################### [100%]
[root@OMS Server]# rpm -aq|grep compat-db
compat-db-4.2.52-5.1
compat-db-4.2.52-5.1
# rpm -Uvh openmotif-2.3.1-2*
warning: openmotif-2.3.1-2.el5_4.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:openmotif ########################################### [ 50%]
2:openmotif ########################################### [100%]
[root@OMS Server]# rpm -aq|grep openmotif
openmotif-2.3.1-2.el5_4.1
openmotif22-2.2.3-18
openmotif22-2.2.3-18
openmotif-2.3.1-2.el5_4.1
[root@OMS Server]# rpm -aq|grep pdksh
[root@OMS Server]# ls -lt pdksh*
-r--r--r-- 187 root root 210368 Jul 27 2009 pdksh-5.2.14-36.el5.x86_64.rpm
[root@OMS Server]# rpm -Uvh pdksh-5.2.14-36.el5.x86_64.rpm
warning: pdksh-5.2.14-36.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:pdksh ########################################### [100%]
上面安裝GC時系統檢查提示需要安裝的包.
- 建立repos資料庫的密碼檔案
Repository db:
使用orapwd 生成密碼檔案$ORACLE_HOME/dbs/orapw
, 在最後進行gc config時,需要在oms使用sys使用者身份遠端登入到respository db,進行sysman使用者建立和sysman schema的建立.$orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=pwdssss entries=5
建立使用者密碼檔案,用於SYS遠端登入時的密碼檔案身份驗證.
如果不建立這個密碼檔案,則在進行oms 配置時,進行emca的資料庫建立時,將報無法連線到資料庫的錯誤。因為oms 伺服器需要使用sys使用者身份遠端登入到repos資料庫,而如果repos資料庫伺服器沒有這個密碼檔案,將無法進行遠端的身份驗證,就導致oms的sys遠端登入失敗,無法建立sysman使用者及其物件。
二. 下載安裝程式,解壓縮到安裝目錄
oracle grid control 10g for linux x86_64 的最新full版本是10.2.0.3,而不像gc 10g for linux x86的高full版本是10.2.0.1
oracle grid control 10g for linux x86_10.2.0.3的下載地址:
兩個檔案,稱為:Linux_x86_64_Grid_Control_full_102030_disk1.zip,Linux_x86_64_Grid_Control_full_102030_disk2.zip
$cd /setup
$ls
Linux_x86_64_Grid_Control_full_102030_disk1.zip
Linux_x86_64_Grid_Control_full_102030_disk1.zip
$unzip Linux_x86_64_Grid_Control_full_102030_disk1.zip
$unzip Linux_x86_64_Grid_Control_full_102030_disk2.zip
$ls
Linux_x86_64_Grid_Control_full_102030_disk1.zip
Linux_x86_64_Grid_Control_full_102030_disk2.zip
Disk1
三. 進行GC_10.2.0.3_full安裝(靜默方式),選擇noconfig的方式.
安裝的版本是: redhat_Linux_x86_64_Grid_Control_full_102030
- 編輯靜默安裝的RESPONSEFILE檔案
$cp /setup/Disk1/responent/em_using_existing_db.rsp /oracle
$cd /oracle
$cat em_using_existing_db.rsp|grep -v ^#|grep -v ^$>em_using_existing_db_new.rsp
如果你不想看太多的引數說明文件,對檔案的配置項已經非常熟悉,可以透過上面的命令,去除引數說明內容,使得檔案內容更加簡潔和易於編輯.
[oracle@ocmdb2 oracle]$ more em_using_existing_db_new.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=oinstall
FROM_LOCATION="../oms/Disk1/stage/products.xml"
FROM_LOCATION_CD_LABEL="EM10g"
BASEDIR="/oracle/OracleHomes"
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
REMOVE_HOMES="/oracle/OracleHomes"
ACCEPT_LICENSE_AGREEMENT=true
TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","10.2.0.3.0"}
COMPONENT_LANGUAGES={"en"}
s_reposHost="reposdb"
s_reposPort="1521"
s_reposSID="gridctl"
s_reposDBAPwd="mypwd99"
s_mgmtTbsName="/oradata/gridctl/mgmt.dbf"
s_ecmTbsName="/oradata/gridctl/mgmt_ecm_depot1.dbf"
b_emailSelected=false
s_emailAddress=
s_emailServer=
b_metalinkSelected=false
s_metalinkUser=
s_metalinkPassword=
b_proxySelected=false
EM_PROXYUSER=
EM_PROXYREALM=
EM_PROXYPASSWORD=
EM_PROXYHOST=
EM_DONTPROXYFOR=
EM_PROXYPORT=
s_securePassword="mypwd99"
s_securePasswordConfirm="mypwd99"
b_lockedSelected=true
s_reposPwd="mypwd99"
s_reposPwdConfirm="mypwd99"
n_firstInstanceValidation=2
n_firstReposValidation=1
n_firstReposPwdValidation=2
n_firstSecureValidation=2
n_firstVldnEmailSer=2
b_upgrade=false
b_showOptConfigPage=TRUE
s_installType="NOSEED"
紅色顯示的內容,是需要根據實際情況進行設定的,這裡需要提起注意的是兩個資料庫檔案的設定,檔案的路徑是repository db伺服器上的路徑,而不是本機(oms server) 的路徑.
配置檔案有關email、metalink、proxy的配置,這裡不設定,所以將這些內容都遮蔽了.
GC 的基本配置:
1.OMS Server 1臺(虛擬機器)
2.RepositoryDB Server 1臺(虛擬機器)
3.OS: RHEL5.5_X86_64
4.Repository Database: 10.2.0.5
5. OMS:10.2.0.5 X86_64
6.AGENT:10.2.0.5
一. OMS SERVER環境準備,REPOSITORY DB環境準備
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1036752/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Step By Step Install Oracle GC 10.2.0.5 on Redhat Linux 5.5 x86_64 (2/2)OracleGCRedhatLinux
- Step By Step Configure DataGuard (10g) Physical Standby Database On Linux X86_64(1/2待續...)DatabaseLinux
- install 11G ASM on RedHat step by stepASMRedhat
- Step by step install grid control agent on linux 5.3 x86_64遠端安裝Linux
- Step by step install grid control agent on linux 5.3 x86_64遠端安裝(二)Linux
- step by step install oracle 10g rac asm on windowsOracle 10gASMWindows
- Step By Step Configure DataGuard (10g) Physical Standby Database On Linux X86_64(2/2)DatabaseLinux
- Step By Step Install Oracle10g RAC On Hp-uxOracleUX
- step by step install oracle 10g rac asm操作文件Oracle 10gASM
- Sql Server Linux(Redhat) Distributed Availability Group Setup — step by stepSQLServerLinuxRedhatAI
- STEP BY STEP INSTALL SSH ON AIX5.3(6.1)AI
- step by step install netbackup client 6.5 on aixclientAI
- step by step install oracle grid control 10.2.0.1 on linux 5.4 x86OracleLinux
- Oracle 11gR2 Active DataGuard配置Step By Step(一)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(二)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(三)Oracle
- Learn C++ step by step(2) (轉)C++
- Linux Software RAID step by stepLinuxAI
- 安裝linux(step by step)(轉)Linux
- Git Step by Step (7):Git遠端倉庫(續)Git
- Oracle高階複製Step by StepOracle
- Oracle 10g R2建立ASM例項Step By Step(一)Oracle 10gASM
- Oracle 10g R2建立ASM例項Step By Step(四)Oracle 10gASM
- 實時 Linux 抖動分析 Step by stepLinux
- linux中配置NFS服務step by stepLinuxNFS
- React Step by StepReact
- oracle10g simpe AQ step by step(二)Oracle
- oracle10g simpe AQ step by step(一)Oracle
- Step by Step Data Replication Using Oracle GoldenGateOracleGo
- Step-to-Step Installation of 10G RAC on RedHat AS 3.0 – Single Node(二)Redhat
- Step-to-Step Installation of 10G RAC on RedHat AS 3.0 – Single Node(qiangtang)Redhat
- Step By Step of Configuring Oracle 11gR2 (11.2.0.1) RAC to RAC DataguardOracle
- 使用RMAN備份集搭建Oracle Dataguard Step by Step(一)Oracle
- 使用RMAN備份集搭建Oracle Dataguard Step by Step(二)Oracle
- Command 模式 Step by Step模式
- BAPI Step by step GuidanceAPIGUI
- Step by Step TimesTen --- ttIsqlSQL
- 資料庫設計 Step by Step (1)——揚帆啟航資料庫