shenyg 发表于 2018-9-24 06:50:35

oracle 11g em重建

  ORA-00955: 名称已由现有对象使用
  1,删除早期DBCONSOLE创建的用户:
  drop role MGMT_USER;
  drop user MGMT_VIEW cascade;
  drop user sysman cascade;
  2,删除早期DBCONSOLE创建的对象:
  drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
  drop public synonym SETEMVIEWUSERCONTEXT;
  drop public synonym MGMT_AVAILABILITY;
  drop public synonym MGMT_CURRENT_AVAILABILITY;
  drop public synonym MGMT_SEVERITY_OBJ
  3,重新创建DBCONSOLE:
  emca -config dbcontrol db -repos recreate
  创建一个EM资料库
  emca -repos create
  重建一个EM资料库
  emca -repos recreate
  删除一个EM资料库
  emca -repos drop
  配置数据库的 Database Control
  emca -config dbcontrol db
  删除数据库的 Database Control配置
  emca -deconfig dbcontrol db
  重新配置db control的端口,默认端口在1158
  emca -reconfig ports
  emca -reconfig ports -dbcontrol_http_port 1158
  emca -reconfig ports -agent_port 3940
  先设置ORACLE_SID环境变量后,启动EM console服务
  emctl start dbconsole
  先设置ORACLE_SID环境变量后,停止EM console服务
  emctl stop dbconsole
  先设置ORACLE_SID环境变量后,查看EM console服务的状态
  emctl status dbconsole
  配置dbconsole的步骤
  emca -repos create
  emca -config dbcontrol db
  emctl start dbconsole
  重新配置dbconsole的步骤
  emca -repos drop
  emca -repos create
  emca -config dbcontrol db

页: [1]
查看完整版本: oracle 11g em重建