三、安装前的准备工作 在安装前必须做一些准备工作: 1). 检查目标系统是不是支持的平台。比如:10.2.0.1是release版本,支持AIX 5L(不支持AIX6),但是现在要安装10.2.0.4到认证了的平台AIX6,并且需要先安装10.2.0.1然后打补丁到10.2.0.4。这样先安装10.2.0.1时就会报不支持的平台错误。这在metalink上有解决方法。 2). 安装包,32-bit的只能在32-bit的平台上安装,64-bit的必须在64-bit平台上安装。 3). 安装存储库时,提供两种选项:一个安装到存在的数据库,一个新安装一个数据库作为存储库。 如果是选项一:那么需要考虑存在数据库的版本是否符合要求,参数是否满足要求,是否已经配置了control控制台,如果是必须先卸载,某些包是否存在等。 如果是选项二:那么默认安装的数据库版本是10.1.0.4,如果升级Grid Control到10.2.0.4那不会自动升级该数据库,必须手工升级到10.2.0.4以上版本。 对于不同的安装方法下文将会介绍。 4).接下来还需要检查系统包、内核安全参数、空间、内存等,具体见附件 5).Grid Control有密码策略:密码必须5到30个字符长、不能和用户名一样、必须包含要么全小写要么全大写的字母、至少要一个字母一个数字和一个特殊字符(如下划线)、密码不能为Oracle的保留字。 如果想改默认的密码: ORACLE_HOME/bin/emctl set password 6). Grid ControlSchema用户需要在UTL_FILE包上有执行权限 SQL> grant execute on utl_file to sysman; 7). 尽量使用静态的IP和主机名 8). 其它的所需要的用户和组基本和创建数据库一样:Group----oinstall, dba, oper, user----oracle, nobody
四、安装Grid Control version10.2.0.4 安装10.2.0.4之前必须先安装10.2.0.1,因此需要两个安装包。 选项一:安装到存在的数据库 这里我选择安装到存在的数据库11.1.0.6上。
Note:Before proceeding with the silent install change the port of ONS from database home $ORACLE_DB_HOME/opmn/conf/ons.config to 6004 or 6003 (or other unused non-default port for the OMS, 6001), and restart the database.
Note:
Example filepaths are used below. Actual filepaths should be substituted for the actual procedure.
$ORACLE_HOME: repository databse Oracle Home filepath.
: grid control extracted installation stage filepath, may taake a variety of forms, depending on the source being used.
: OMS Oracle Home filepath, i.e., /u01/app/oracle/oms10g.
: filepath of the parent directory to be used for the OMS and agent.
Step 1:
Upgrade the 10.1.0.4.0 database to 10.1.0.5.0 by applying the, if it is desired to upgrade or patch the repository database later on. Note that only these versions are supported for this procedure at this time.
Step 2:
Edit the following parameters (example shown) ofem_using_existing_db.rsp Located under the /response/
Now after patching OMS home, use the same response file to patch the Agent home. Change the ORACLE_HOME parameter to the filepath for the Agent Home in the patchset.rsp file. Leave all other parameters in place:
ORACLE_HOME=”/agent10g”
After making changes to patchset.rsp re run the command for patching Agent Home.
Next, run the ConfigureGC.pl script. in either of these ways:
/perl/bin/perl /sysman/install/ConfigureGC.pl
or
cd /perl/bin/ ./perl /sysman/install/ConfigureGC.pl
Monitor these files in for errors and progress of the ConfigureGC.pl script.:
/cfgtoollogs/oui/configActions.log
/cfgtoollogs/cfgfw/CfmLogger_.log
/sysman/log/emca_repos_create
/sysman/log/emca_repos_drop
A) For the base 10.2.0.1.0 Grid Control product install:
Before invoking the runInstaller utility for the 10.2.0.1.0 base Grid Control product installation in step 1, the following modifications may be made to the /response/em_with_new_db.rsp response file (other values may remain at default):
UNIX_GROUP_NAME= to dba FROM_LOCATION="../rdbms/Disk1/stage/products.xml" to actual full filepath BASEDIR= to full parent directory filepath INSTALLATION_NAME= to "" s_gdbName= to s_mountPoint= to s_operGroup= to dba s_adminGroup= to dba b_lockedSelected= to false (to be locked later) b_passwordsDifferent= to false (for common password option) sl_adminPwds= to sl_adminPwdsConfirm= to b_passwordsSame= to true (for common password option) s_reposPwd= to s_reposPwdConfirm= to
Notes:
In the configuration above, using common passwords for sys, system, dbsnmp and sysman, this password is established in the s_reposPwd and s_reposPwdConfirm values.
If the values for b_passwordsDifferent and b_passwordsSame are not correct, i.e, they are both false, then the subsequent configuration action will fail on repository access by SYS or SYSMAN, showing ORA-01017 in the associated logging.. Be sure these entries are correct before running the silent installation.
B) For the 10.2.0.4.0 Grid Control patchset application to the OMS (agent is similar):
Before invoking the runInstaller utility for the 10.2.0.4.0 Grid Control patchset installation in step 3, the following modifications may be made to the /3731593/Disk1/response/patchset.rsp response file (other values may remain at default):
UNIX_GROUP_NAME= to dba FROM_LOCATION="../stage/products.xml" to "/stage/products.xml" ORACLE_HOME= to the BASEDIR parameter from the base install appended with "/oms10g". b_softwareonly=false to true s_sysPassword= to sl_pwdInfo= to ORACLE_HOME_NAME should be "oms10g" in the response file and this will need to be added. DEINSTALL_LIST should be active with the default value during patchset installation.
all of these set to false: SHOW_SPLASH_SCREEN SHOW_WELCOME_PAGE SHOW_SUMMARY_PAGE SHOW_INSTALL_PROGRESS_PAGE SHOW_REQUIRED_CONFIG_TOOL_PAGE SHOW_CONFIG_TOOL_PAGE SHOW_XML_PREREQ_PAGE SHOW_END_OF_INSTALL_MSGS SHOW_ROOTSH_CONFIRMATION SHOW_END_SESSION_PAGE SHOW_EXIT_CONFIRMATION
Additionally, the 10.1.0.5.0 database patchset and 4329444 database patch should be applied to the repository database Oracle Home prior to 10.2.0.4.0 Control Grid patching as required by the 10.2.0.4.0 patchset installation procedure described in its readme.html (see also).
Further, OPMN may have been started during the base product installation, but all of the OPMN-managed processes will be stopped. OPMN itself will also need to be stopped before application of the 10.2.0.4.0 Control Grid patchset can proceed. Issue the command "opmnctl stopall" to terminate the interfering processes and then apply the patchset. Stoppage can be verified with this command: ps -ef|grep opmn
Note that patching of the agent in the .../agent10g/ location is not performed in this step. A similar patching action should be performed on the agent at this time, so the action of the ConfigureGC.pl can proceed successfully through 10.2.0.4.0 agent configuration.
C) Execution of ConfigureGC.pl
In step 7c, during the OMS configuration step in the ConfigureGC.pl execution, it is likely that dbms jobs are running which will need to time out before the OMS CA can complete successfully. This problem and the solution are logged in the .../oms10g/cfgtoollogs/cfgfw/CfmLogger.log for the session. Not enough time is allowed for the job queue to flush out, so, on failure of the OMS CA, execute the following on the repository database as SYSMAN:
exec emd_maintenance.remove_em_dbms_jobs;
This action prevents start of new jobs, but existing ones will need to complete. Run this query until no rows are returned:
Select count(*) FROM dba_jobs_running run_job,gv$session sess WHERE sess.sid = run_job.sid AND sess.schemaname = 'SYSMAN';
Then run the exact same ConfigureGC.pl script. execution command again. Note that this possibility is described in the software-only install procedure, but the indicated above is not provided there.
Normally the CA process will run to completion, through the agent CA, with all components starting up. If this is not the observed state of components, bring the Grid Control down completely and restart it from the listener as described in:
Oracle® Enterprise Manager Advanced Configuration Release 4 (10.2.0.4.0) Part Number E10954-01 Chapter 2 Starting and Stopping Enterprise Manager Components Section titled: 2.6 Starting and Stopping Oracle Enterprise Manager 10g Grid Control
Execute this procedure when the ConfigureGC.pl script. is complete and the Grid Control framework is working: