当前位置:Gxlcms > 数据库问题 > 对oracle10grac配置em

对oracle10grac配置em

时间:2021-07-01 10:21:17 帮助过:5人阅读

2009年,则可以通过校验,也能成功安装数据库控制台。

 

 

 

 

 

 

D--:10g r2修复em bug

 

下载补丁:p8350262_10204_Generic.zip

 

该补丁无需停止数据库进程与监听进程,只需确保没有oracle home下的与java相关的进程即可。
打补丁之前,可以先把opatch的路径加入PATH环境变量

 

(注:以下操作在oracle用户下)

 

将补丁上传到/u02/

 

-rw-r--r-- 1 oracle oinstall    40488 Sep  6 13:53  p8350262_10204_Generic.zip

 

0--删除em的配置

emca -deconfig dbcontrol db -repos drop

 

 

1--检查opatch版本是否为10.2.0.4 , 执行:

/u01/app/oracle/product/10.2.0/db_1/OPatch/opatch version

 

 

2--unzip p8350262_10204_Generic.zip 进入解压后的patch目录

cd /u02/8350262/

 

打补丁8350262

/u01/app/oracle/product/10.2.0/db_1/OPatch/opatch apply

 

查看补丁

/u01/app/oracle/product/10.2.0/db_1/OPatch/opatch lsinventory

 

 

3—配置em

emca -config dbcontrol db -repos create

 

 

[oracle@micsgmm01 ~]$ emca -config dbcontrol db -repos create

 

STARTED EMCA at Sep 6, 2016 2:46:52 PM

EM Configuration Assistant, Version 10.2.0.1.0 Production

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

 

Enter the following information:

Database SID: MICSPROD

Listener port number: 1521

Password for SYS user: 

Password for DBSNMP user: 

Password for SYSMAN user: 

Email address for notifications (optional):

Outgoing Mail (SMTP) server for notifications (optional):

-----------------------------------------------------------------

 

You have specified the following settings

 

Database ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

 

Database hostname ................ micsgmm01

Listener port number ................ 1521

Database SID ................ MICSPROD

Email address for notifications ...............

Outgoing Mail (SMTP) server for notifications ...............

 

-----------------------------------------------------------------

Do you wish to continue? [yes(Y)/no(N)]: y

Sep 6, 2016 2:47:15 PM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/MICSPROD/emca_2016-09-06_02-46-52-PM.log.

Sep 6, 2016 2:47:18 PM oracle.sysman.emcp.EMReposConfig createRepository

INFO: Creating the EM repository (this may take a while) ...

Sep 6, 2016 2:48:41 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully created

Sep 6, 2016 2:48:43 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Securing Database Control (this may take a while) ...

Sep 6, 2016 2:51:13 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Database Control secured successfully.

Sep 6, 2016 2:51:13 PM oracle.sysman.emcp.util.DBControlUtil startOMS

INFO: Starting Database Control (this may take a while) ...

Sep 6, 2016 2:52:48 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: Database Control started successfully

Sep 6, 2016 2:52:48 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: >>>>>>>>>>> The Database Control URL is https://micsgmm01:1158/em <<<<<<<<<<<

Enterprise Manager configuration completed successfully

FINISHED EMCA at Sep 6, 2016 2:52:48 PM

 

 

 

如果没有删除em配置,就打补丁,则不能启动Database Control,还需要Re-secure Database Control。

Re-secure Database Control之前,可以使用patch 8350262目录下的脚本killDBConsole强制停止Database Control相关的进程。

$ ./killDBConsole

 

完成之后进行Re-secure Database Control :

$ emctl secure dbconsole -reset

根据提示输入管理员密码,然后会有两次确认请求,两次都是输入大写的Y

 

 

然后启动em

$ emctl start dbconsole

 

 

最后启动正常,访问:https://ip:1158/em正常访问登陆,则bug修复成功,em配置完成;

 

 

 

附:PATCH解压后的README文件说明:

[oracle@micsgmm01 8350262]$ cat README.txt

=========================================================================

Interim Patch for Base Bug: 8350262

=========================================================================

 

Date: Sep 10, 2010

-------------------------------------------------------------------------

 Platform Patch for      : Generic

 Product Patched         : 10.2.0.4.0

 Product Version         : Enterprise Manager Database Control

 

Bugs Fixed by this patch:

-------------------------

8350262:CREATE DBCONSOLE CERT WITH 10YEAR VALIDITY

 

Patch Preinstall Steps:

-----------------------

 

1. For non-recommended patches, you must have the exact symptoms

   described in the service request (SR).

 

2. Verify the OUI Inventory.

 

OPatch needs access to a valid OUI inventory to apply patches.

Validate the OUI inventory with the following command:

 

  % opatch lsinventory

 

If the command errors out, contact Oracle Support and work to validate

and verify the inventory setup before proceeding.

 

3. Please use the latest Version of OPatch.

 

Oracle recommends that all customers be on the latest version of OPatch.

Please review the following metalink note and follow the instructions

to update to the latest version if needed:

 

 https://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=224346.1

 

4. Confirm executables appear in your system PATH.

 

The patching process will use the unzip and the opatch executables.  After

sourcing the ORACLE_HOME environment, confirm both of these exist before

continuing:

 

  - "which opatch"

  - "which unzip"

 

If either of these executables do not show in the PATH, correct the problem

before proceeding.

 

5. Create a location for storing the unzipped patch.  This location

will be referred to later in the document as <PATCH_TOP>.

 

6. Unzip the patch zip file into the <PATCH_TOP>.

 

  unzip -d <PATCH_TOP> p8350262_102040_Generic.zip

 

7. Shut down services running from the ORACLE_HOME.

 

Before applying this patch, do a clean shut down of all services

running from the ORACLE_HOME.

 

Patch Installation Steps:

-------------------------

 

1. Shutdown EM DB Console using the following command.

 

       % $ORACLE_HOME/bin/emctl stop dbconsole

 

2. Set your current directory to the directory where the patch

   is located:

    % cd <PATCH_TOP>/8350262

 

   Ensure that the directory containing the opatch script appears in

   your $PATH; then enter the following command:

    % opatch apply

 

3. Start EM DB Console using the following command.

 

      % $ORACLE_HOME/bin/emctl start dbconsole

 

NOTE:

------

There may be cases when Starting dbconsole may fail post 31-Dec-2010.

In this case, Please set ORACLE_HOME to your Database Home & ORACLE_SID

and run the following from the patch folder.

   % ./killDBConsole

 

 

Patch Deinstallation Instructions:

----------------------------------

1. Shutdown EM DB Console using the following command.

 

       % $ORACLE_HOME/bin/emctl stop dbconsole

 

2. Set your current directory to the directory where the patch

   is located:

    % cd <PATCH_TOP>/8350262

 

3. Ensure that the directory containing the opatch script appears in

   your $PATH; then run the following command:-

   %  opatch rollback -id 8350262

  

4. Start EM DB Console using the following command.

 

      % $ORACLE_HOME/bin/emctl start dbconsole

-------------------------------------------------------------------------------

相关参考:

oracle 删除EM

http://blog.csdn.net/yan19880901/article/details/8113066

 

Oracle 10g,11g中EM的安装配置过程

http://www.linuxidc.com/Linux/2015-04/115922.htm

 

oracle 10g rac配置em

http://www.2cto.com/database/201408/326736.html

 

10g RAC -10.2.0.4-dbca建库时配置OEM遇到BUG-p8350262

http://www.linuxidc.com/Linux/2014-02/97111.htm

 

Oracle10.2.0.4版本Database Control 配置问题

http://www.360doc.com/content/12/0327/17/5287961_198336675.shtml

 

Oracle10g补丁Patch 8350262 下载地址(补丁是平台通用,分数据库版本)

1--:oracle官网注册能下载

2--:其他网站的资源

http://down.51cto.com/data/761747

http://download.csdn.net/detail/u011302321/6949981

 

对oracle10grac配置em

标签:

人气教程排行