未设置参数 oracle_hostname 的值,ORACLE_HOSTNAME 未定义,em重新配置

The issue can be reproduced at will with the following steps:

1. Change the hostname.

2. Check DBConsole status

ISSUE VERIFICATION

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

Verified the issue referencing data collected records as noted below.

CAUSE DETERMINATION

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

The issue is caused by the following setup: hostname changed.

CAUSE JUSTIFICATION

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

This issue is described in Metalink Note 330130.1

PROPOSED SOLUTION(S)

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

Recreate the DBConsole

PROPOSED SOLUTION JUSTIFICATION(S)

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

After the hostname changes the DBConsole must be recreated to update the repository tables.

SOLUTION / ACTION PLAN

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

-- To implement the solution, please execute the following steps::

Prepare the environment:

- Open a new terminal window.

- Go to the Oracle installation folder.

- Set the ORACLE_HOME variable according to that folder.

eg. export ORACLE_HOME=/opt/oracle/db1

Please follow the steps below.

1. Stop the dbconsole on the target node

$ORACLE_HOME/bin/emctl stop dbconsole

2. Delete the repository and directory structure using EMCA:

- go to $ORACLE_HOME/bin

- at the command prompt, enter the following command:

$PROMPT> emca -deconfig dbcontrol db -repos drop

- follow the instructions on the screen

3) If this returns successfully please go to step 5, otherwise follow step 4.

4) If the EMCA returns in any error please remove the repository manually:

4.1) Logon SQLPLUS as user SYS and drop the sysman account and management objects:

A. drop user sysman cascade;

B. drop role MGMT_USER;

C. drop user MGMT_VIEW cascade;

D. drop public synonym MGMT_TARGET_BLACKOUTS;

E. drop public synonym SETEMVIEWUSERCONTEXT;

5) After repository deletion please recreate the repository and directory structure.

- go to $ORACLE_HOME/bin

- at the command prompt, enter the following command:

$PROMPT> emca -config dbcontrol db -repos create

- follow the instructions on the screen

6) In case the dbconsole startup fails please provide the files of folder

$ORACLE_HOME/cfgtoollogs

and

$ORACLE_HOME/_/sysman/log

to metalink.

然后,进行em后,界面出来了,但报了一个错:

java.lang.Exception: Exception in sending Request :: null

[oracle@oracle config]$ pwd

/op/oracle/product/10.2.4/oracle_orcl/sysman/config

[oracle@oracle config]$ vi emd.properties

把该值修改为:agentTZRegion=Asia/Chongqing

关于时区的列表参考:10.2.0\db_1\sysman\admin\supportedtzs.lst

然后,重启OracleDBConsole

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/3090/viewspace-680250/,如需转载,请注明出处,否则将追究法律责任。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值