免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1525 | 回复: 0
打印 上一主题 下一主题

how to change oracle hostname [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-24 10:39 |只看该作者 |倒序浏览
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

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19673/showart_1738186.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP