Chinaunix首页 | 论坛 | 博客
  • 博客访问: 831138
  • 博文数量: 105
  • 博客积分: 636
  • 博客等级: 中士
  • 技术积分: 1704
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-11 10:57
文章分类

全部博文(105)

文章存档

2017年(4)

2016年(9)

2015年(18)

2014年(16)

2013年(34)

2012年(24)

分类: Oracle

2013-09-26 11:17:46

oem 是oracle enterprise manager 是oracle的基于web的管理界面
如果配置好oem 一般在浏览器输入https://主机ip:1158/em 就可以进入登录界面,
在以sys 账号登录就可以了。
1.如果不能正常登录 首先查看服务是否启动
  输入命令 emctl status dbconsole
 如果是not running  那说明服务没有启动
这是输入命令  emctl start dbconsole启动服务
2.如果是多实例的话 首先要切换到相应的sid 再启动em服务
  多实例的话 进入web界面的端口就会有多个
 查看em端口的路径文件是
 cat $ORACLE_HOME/install/readme.txt
这个文件里有包括isql*plus 的登录路径
3.如果在创建数据库的时候没有配置oem,可以通过emca 命令创建
一下是我在windows 2008 下 手工创建oem的过程
 emca -config dbcontrol db -repos creat
输入以下信息:
数据库sid: 数据sid
监听程序端口号:1521
sys 用户口令:
dbsnmp 用户口令:
sysman 用户口令:
等等;
提示创建资料档案失败,

查看错误日志文件
ORA-20001: SYSMAN already exists..
ORA-06512: 在 line 17
网上说 是因为sysman用户已经存在 需要手工删除掉就可以
SQL> drop user sysman cascade;

                  SQL> drop role MGMT_USER;
                  SQL> drop user MGMT_VIEW cascade;
                  SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
                  SQL> drop public synonym SETEMVIEWUSERCONTEXT

这是网上的说法  我没有测试过。
我执行命令
emca -deconfig dbcontrol db -repos drop
把em删除了
重新执行
emca -config dbcontrol db -repos create
这是创建资料档案成功,
但 将配置数据上载到em是错误
网上说的原因和解决办法如下,我是借鉴过啦,主要说是因为windows 2008 使用了ipv6造成的,
需要在hosts文件里添加一条ip和主机名的绑定记录。我按照这样做了

Cause

The windows machine is in an active directory and is using IPv6. When the short hostname is pinged, it is resolved via the fully qualified hostname to an IPv6 (ISATAP) address eg:-

ping machine1

Pinging machine1.uk.oracle.com [fe80::f1bb:2ed:4d5a:1732] with 32 bytes of data:
Reply from fe80::f1bb:2ed:4d5a:1732: time<1ms

Dbconsole 11.2 is built around Grid Control 10.2.0.4 and so is not IPv6 compliant. Grid Control 11.1.0.1 is IPv6 compliant.. The version of dbconsole which is built around Grid Control 11.1.0.1 will be IPv6 compliant. (the version which dbconsole is built round is shown in the output of emctl status agent).

Solution

Add entries into the host file, to force IPv4 style resolution:-

1) edit the windows\system32\drivers\etc\hosts file

2) add an entry for the machine of the format:-



eg.

138.3. 146.333 machine1.uk.oracle.com machine1

Now when pinging the short hostname, the ipv4 style ipaddress is returned




输入命令 emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
这次正常通过
 在启动 em 就可以正常访问了





 

阅读(5893) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~