还是oem

1.
用DBCA又新建了一个库,似乎好像与orcl 启oem时出的问题一样。 一步一步贴出来
C:\Documents and Settings\Owner>set oracle_sid=test
C:\Documents and Settings\Owner>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 12月 17 14:09:28 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
已连接。
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
C:\Documents and Settings\Owner>emctl start dbconsole
OC4J Configuration issue. c:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_xiaoy_test not found.
[在提示找不到的位置的上级目录下 将一相似目录复制并重命名成oem想要的就成]
2.
C:\Documents and Settings\Owner>emctl start dbconsole
OC4J Configuration issue. c:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_xiaoy_test not found.
C:\Documents and Settings\Owner>emctl start dbconsole
EM Configuration issue. c:\oracle\product\10.2.0\db_1/xiaoy_test not found.
[接着提示找不到,还是用老方法解决]
3.
C:\Documents and Settings\Owner>emctl start dbconsole
EM Configuration issue. c:\oracle\product\10.2.0\db_1/xiaoy_test not found.
C:\Documents and Settings\Owner>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://xiaoy:1158/em/console/aboutApplication 

Starting Oracle Enterprise Manager 10g Database Control ...服务名无效。
请键入 NET HELPMSG 2185 以获得更多的帮助。
C:\Documents and Settings\Owner>net helpmsg 2185
服务名无效。
解释
试图启动系统中没有配置的服务。
操作
请检查服务名称是否正确,或者用服务器管理器中的“服务”选项来检测配置信息。
[从这步开始,不知道怎么解决方法了,乱试]
4.
找 开windows管理服务,发现 OracleServiceTEST\OracleServiceORCL OracleJobSchedulerTEST\ORCL成对,而仅有 OracleDBConsoleorcl,查看OracleDBConsoleorcl的属性,服务状态是启动的,但下面的四个 启动 停止 暂停 恢 复 全都是灰色不可用状态。 重新启动windows回来,OracleDBConsoleorcl依然没有成对的 OracleDBConsoletest出现。由于设置的是手动启动,所以服务状态已停止,启动按钮可用。(但我不敢随便启动,因为之前启动过没有成功, 致使四个控制键又不能用了)
5.
服务管理界面启动test库,启动监听。均成功,可是
C:\Documents and Settings\Owner>set ORACLE_SID=test
C:\Documents and Settings\Owner>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 12月 17 14:39:40 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
已连接到空闲例程。
SQL>
6.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ???????????????? 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITTEST.ORA'
SQL>
[看来是test的参数文件有问题]
打开oracle注册表项:nls_lang中将SIMPLIFIED CHINESE_CHINA.ZHS16GBK 替换成AMERICAN_AMERICA. ZHS16GBK (相关参考  关于ORACLE数据库中汉字显示乱码问题的探讨 
SQL> exit
已断开连接
C:\Documents and Settings\Owner>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 17 15:00:32 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITTEST.ORA'
SQL>
7.
[完全被windows打败了。 重新建个inittest.ora参数文件]
发现个问题:如果不启动服务里面的OracleServiceTEST
C:\Documents and Settings\Owner>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 17 15:32:43 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
启动OracleServiceTEST后才能正常登录
C:\Documents and Settings\Owner>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 17 15:34:39 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
发现问题没? 这时的库是关闭状态的!!!!
8.
想破头也没有想出怎么样,google不知道怎么用关键字。 到windows服务管理中将所有的oracle服务都设为自动。重启后到服务管理中看到所有oracle服务都已启动。
C:\Documents and Settings\Owner>set ORACLE_SID=test
C:\Documents and Settings\Owner>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://xiaoy:1158/em/console/aboutApplication 
Oracle Enterprise Manager 10g is not running.
C:\Documents and Settings\Owner>set ORACLE_SID=orcl
C:\Documents and Settings\Owner>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://xiaoy:1158/em/console/aboutApplication 
Oracle Enterprise Manager 10g is not running.
------------------------------------------------------------------
Logs are generated in directory c:\oracle\product\10.2.0\db_1/xiaoy_orcl/sysman/log
C:\Documents and Settings \Owner>write c:\oracle\product\10.2.0\db_1/xiaoy_orcl/sysman/log 查看日 志,日志在用,不让我看。没着没着哇!!目前我唯一能想到的方法就是删掉资料库重建:-( 
(20090802日写:重又遇到了OEM配置的问 题,也回过头看了自己以前写的。很乱,以致自己都弄不明白。 总结一下,EM启动不起来,就进库中把SYSMAN等用户都删掉然后重建。记得端口号一定是 listerer监听的端口,不要弄错了。下面记录一个EM中遇到的错误,与windows相关)
RemoteOperationException: ERROR: Wrong password for user
oracle 10g OEM中有些操作需要输入操作系统的用户名密码才能继续下去,但是无论怎样输入,总是会返回RemoteOperationException: ERROR: Wrong password for user.(错误的用户名密码)的错误。
解决的方法就是在用户策略里面将你需要使用的用户授予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.
然后打开将administrator这个用户添加一下就ok了! 
引自:http://space.itpub.net/7333190/viewspace-246137

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-705082/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-705082/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值