当前位置: 首页 > news >正文

还是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/

相关文章:

  • 又是oem
  • isqlplus 连接标识符 (奇怪的问题)--(解决)
  • 天津rac总结1
  • 天津rac总结2
  • 天津rac总结3
  • 0209天津rac问题总结1
  • 0209天津问题总结2
  • 10.2.0.1升级10.2.0.3
  • ORA-04043: object dba_data_files does not exist
  • 10G 库rman迁移到11G
  • solaris ASM
  • oracle10g solaris
  • how_to_Secure_and_Audit_Oracle(1)
  • how_to_Secure_and_Audit_Oracle(2)
  • gentoo samba 配置
  • Angular js 常用指令ng-if、ng-class、ng-option、ng-value、ng-click是如何使用的?
  • create-react-app做的留言板
  • CSS魔法堂:Absolute Positioning就这个样
  • gf框架之分页模块(五) - 自定义分页
  • JavaSE小实践1:Java爬取斗图网站的所有表情包
  • MySQL的数据类型
  • node和express搭建代理服务器(源码)
  • PermissionScope Swift4 兼容问题
  • WePY 在小程序性能调优上做出的探究
  • 手写一个CommonJS打包工具(一)
  • raise 与 raise ... from 的区别
  • 你学不懂C语言,是因为不懂编写C程序的7个步骤 ...
  • ​2020 年大前端技术趋势解读
  • ​2021半年盘点,不想你错过的重磅新书
  • (2)(2.10) LTM telemetry
  • (2)(2.4) TerraRanger Tower/Tower EVO(360度)
  • (LNMP) How To Install Linux, nginx, MySQL, PHP
  • (二)斐波那契Fabonacci函数
  • (经验分享)作为一名普通本科计算机专业学生,我大学四年到底走了多少弯路
  • (三十五)大数据实战——Superset可视化平台搭建
  • (五)大数据实战——使用模板虚拟机实现hadoop集群虚拟机克隆及网络相关配置
  • (转)h264中avc和flv数据的解析
  • (转载)微软数据挖掘算法:Microsoft 时序算法(5)
  • .cfg\.dat\.mak(持续补充)
  • .NET Framework与.NET Framework SDK有什么不同?
  • .NET/C# 在 64 位进程中读取 32 位进程重定向后的注册表
  • .NET/MSBuild 中的发布路径在哪里呢?如何在扩展编译的时候修改发布路径中的文件呢?
  • .Net6支持的操作系统版本(.net8已来,你还在用.netframework4.5吗)
  • .Net中ListT 泛型转成DataTable、DataSet
  • /proc/vmstat 详解
  • /usr/local/nginx/logs/nginx.pid failed (2: No such file or directory)
  • /var/lib/dpkg/lock 锁定问题
  • @WebService和@WebMethod注解的用法
  • [C#]winform使用引导APSF和梯度自适应卷积增强夜间雾图像的可见性算法实现夜间雾霾图像的可见度增强
  • [Electron]ipcMain.on和ipcMain.handle的区别
  • [ERROR]-Error: failure: repodata/filelists.xml.gz from addons: [Errno 256] No more mirrors to try.
  • [HDOJ4911]Inversion
  • [JS]JavaScript 简介
  • [linux]centos7下解决yum install mysql-server没有可用包
  • [LuoguP1141]01迷宫