您的位置:首页 > 数据库 > Oracle

重建oracle oem

2010-11-30 20:56 555 查看
由于系统数据没有完全卸掉就重新装的oracle 10g,所以装完后导致oralce oem服务起不来,下图中就是相应的服务。



在网上找一些相关资料,以下把相关的解决方法分享给大家。

1.在命令启动时报错如下

Environment variable ORACLE_SID not defined. Please define it



(首先在命令行设置了oracle_sid(set oracle_sid=orcl),启动还是报错上面的错误,而且还用以下方法

C:/Documents and Settings/jcttest>emca -config db -repos recreate

结果还是报错





索性重建:



重建时有点慢,稍等一下就可以了



可是在服务启动又报错

http://da3c1cb47edf4fc:5500/em/



在网上查了相应的解决方法如下:

解决的方法就是在用户策略里面将你需要使用的用户授予Logon as a Batch Job的权限。
1. Click on START => Programs => Administrative Tools => Local Security Policy (or also via START => Settings => Control Panel => Administrative Tools) 打开控制面板中的管理工具中的本地安全策略
2. Under Local Policies on the left, select User Rights Assignment folder
然后是本地策略-用户权限分配
3. Look at the right side of the window and scroll down to the "Logon as Batch Job" privilege and select it. 然后找到Logon as a Batch Job(作为批处理作业登陆)这一项
4. Either select Action from the menu bar then Security or right-click on the "Logon as a Batch Job" privilege then Security.
5. Select the Add button which evokes a Select Users/Groups box.
6. From the "Look In" field, select the local workstation/server.
7. Select the User administrator.
8. Select Add then OK.
简要戴图展现如下:



然后添加用户:



添加完后就可以直接使用了,哈哈

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: