Oracle重建OEM

对于Oracle EBS系统,我们需要经常做clone。如果系统启用了OEM,那么在clone操作完成后,OEM将不可用,需要重建OEM。

EBS系统重建OEM没有什么区别。大体步骤如下:

前提条件:

1、clone操作成功完成

2、应用关闭

 

1、创建密码文件

1)重置sys口令为uatsyspass

alter user sys identified by uatsyspass;

2)创建密码文件

cd $ORACLE_HOME/dbs

orapwdpassword=uatsyspass entries=1 file=orapwUAT

3)确认密码修改成功:

$ sqlplussys/uatsyspass@UAT as sysdba

能连接上说明ok

 

2、重建em

$ emca -reposrecreate

 

STARTED EMCA at Aug22, 2013 10:29:45 AM

EM ConfigurationAssistant, Version 10.2.0.1.0 Production

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

 

Enter the followinginformation:

Database SID: UAT

Listener portnumber: 1529

Password for SYSuser:  (输入uatsyspass)

Password for SYSMANuser:  (输入sysman)

Do you wish tocontinue? [yes(Y)/no(N)]: Y

Aug 22, 201310:30:22 AM oracle.sysman.emcp.EMConfig perform

INFO: This operationis being logged at/8008/uat/db/tech_st/10.2.0/cfgtoollogs/emca/UAT/emca_2013-08-22_10-29-45-AM.log.

Aug 22, 201310:30:23 AM oracle.sysman.emcp.EMReposConfig dropRepository

INFO: Dropping theEM repository (this may take a while) ...

 

$ emca -configdbcontrol db

 

STARTED EMCA at Aug22, 2013 5:19:42 PM

EM ConfigurationAssistant, Version 10.2.0.1.0 Production

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

Enter the followinginformation:

Database SID: UAT

Listener portnumber: 1529

Password for SYSuser: 

Password for DBSNMPuser: 

Invalidusername/password.

Password for DBSNMPuser:  (重置DBSNMP用户的口令为dbsnmp: alter userdbsnmp identified by dbsnmp;)

Password for SYSMANuser: 

Email address fornotifications (optional):

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

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

 

You have specifiedthe following settings

Database ORACLE_HOME................ /8008/uat/db/tech_st/10.2.0

Database hostname................ ebsdb2.sapagroup.com

Listener port number................ 1529

Database SID................ UAT

Email address fornotifications ...............

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

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

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

Aug 22, 2013 5:21:36PM oracle.sysman.emcp.EMConfig perform

INFO: This operationis being logged at/8008/uat/db/tech_st/10.2.0/cfgtoollogs/emca/UAT/emca_2013-08-22_05-19-42-PM.log.

Aug 22, 2013 5:21:48PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: SecuringDatabase Control (this may take a while) ...

Aug 22, 2013 5:22:21PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: DatabaseControl secured successfully.

Aug 22, 2013 5:22:21PM oracle.sysman.emcp.util.DBControlUtil startOMS

INFO: StartingDatabase Control (this may take a while) ...

Aug 22, 2013 5:24:18PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: DatabaseControl started successfully

Aug 22, 2013 5:24:18PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO:>>>>>>>>>>> The Database Control URL is https://ebsdb2.sapagroup.com:5500/em<<<<<<<<<<<

Enterprise Managerconfiguration completed successfully

FINISHED EMCA at Aug22, 2013 5:24:18 PM

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值