Mar 9, 2009

【转】Oracle重新配置EM简化版教程

Oracle 10G重建EM DB Control.
  1.drop configuration files and repository run :
  emca -deconfig dbcontrol db -repos drop
  2. Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and mangement 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;
  3.Create configuration files and repository run
  emca -config dbcontrol db -repos create
  创建EM时,提示的端口号,应为实例的断口号,比如1521,不是EM的端口号(比如1158)
  EM的端口号在这个文件中可以查到10.2.0\db_1\sysman\config\emca.properties
  然后,进行em后,界面出来了,但报了一个错:
  Java.lang.Exception: Exception in sending Request :: null
  很多功能不能用,提示重新登录.
  在Oracle论坛上查到了解决办法:
  http://forums.oracle.com/forums/thread.jspa?threadID=320574&tstart=0&messageID=1374397
  找到下面的文件
  10.2.0\db_1\ZYKNET_ORC2\sysman\config\emd.properties
  其中的agentTZRegion缺省是GMT,改为你所在的时区即可,例如:
  agentTZRegion=Asia/Chungking
  关于时区的列表参考:10.2.0\db_1\sysman\admin\supportedtzs.lst
  然后,重启OracleDBConsole

No comments:

Powered By Blogger