Oracle常见问题及其解决方法(doc 10页)

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Oracle常见问题及其解决方法(doc 10页)

iSQL*Plus URL:http://10.10.43.137:5560/isqlplus

Enteprise Manager 10g Database Control URL:

http://information:5500/em

OracleDBConsoleorcl不能启动,报错误码2解决策略

解决策略一:

修改你的主机参数文件

修改一下:

C:\WINDOWS\system32\drivers\etc下的host文件.

如果没有的话就自己加一个IP和你的计算机名对应,如果已有了就把你的IP地址和你的计算机名对应起来.

如:

# copyright (c) 1993-1999 microsoft corp.

#

# this is a sample hosts file used by microsoft tcp/ip for windows.

#

# this file contains the mappings of ip addresses to host names. each

# entry should be kept on an individual line. the ip address should

# be placed in the first column followed by the corresponding host name.

# the ip address and the host name should be separated by at least one

# space.

#

# additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# for example:

#

# 102.54.94.97 # source server

# 38.25.63.10 # x client host

127.0.0.1 localhost

10.10.43.137 information

解决策略二:

启动电脑,到登陆界面,电脑报有个服务启动失败,电脑没有新装软件,周六还没有问题,怎么突然报这个错误?于是到事件查看器中看看什么问题,显示是OracleDBConsoleorcl启动失败,到服务里一看,确实没有启动。手动启动一下,报错误码2

我装的是10g,于是到ORACLEproduct10.2.0db_1test_orclsysmanlog目录看一下log里写了什么,打开OracleDBConsoleorclsrvc.log.

log最后记录的是:

日志让看emdbconsole.nohup文件,目录里没有这个文件呀。

手动执行一下emctl.bat,于是启动控制台,执行emctl.bat istart dbconsole,报错,ORACLE_SID 没有定义,打开emctl.bat看看,这里是定义环境变量的地方,其中已经设置了这些:if not defined REMOTE_EMDROOT (set ORACLE_HOME=Ec:oracleproduct10.2.0db_1)

if not defined REMOTE_EMDROOT (set EMDROOT=%ORACLE_HOME%)

if defined REMOTE_EMDROOT (set ORACLE_HOME=%REMOTE_EMDROOT%)

if defined REMOTE_EMDROOT (set EMDROOT=%ORACLE_HOME%)

if defined REMOTE_EMDROOT (set LOCAL_EMDROOT=c:oracleproduct10.2.0db_1)

……

后边还有一条设置:

if not defined DBCONSOLE_SERVICE_NAME (set DBCONSOLE_SERVICE_NAME=OracleDBConsole%ORACLE_SID%),用到了ORACLE_SID,但没有看到前面设置,只能手动设置ORACLE_SID试试,于是加了一条设置:

if defined REMOTE_EMDROOT (set ORACLE_SID=orcl) orcl是我的数据库实例名

到服务中启动OracleDBConsoleorcl,ok,没有报错;

重新启动计算机,也没有报错,OracleDBConsoleorcl服务也启动了。

系统出错的解决

今天机器死机了,然后OracleDBConsoleORCL服务就起不来了,在一阵瞎搞后,还终于被我找到了解决办法,方法如下:

运行Database Configuration Assistant程序,选择“配置数据库选项”重新配置Database Control 配置工具,配置完后端口号会变(我原来是1158,后来被改为5500),可以在.\oracle\product\10.2.0\db_1 \cfgtoollogs\emca\orcl\文件夹下,最后生成的一个日志文件下找到新的Database Control 的URL;运行即可。

原来经常改IP会导致OracleDBConsoleORCL无法启动,一下是正规的解决方案:

修改你的主机参数文件

修改一下:

C:\WINDOWS\system32\drivers\etc下的host文件.

如果没有的话就自己加一个IP和你的计算机名对应,如果已有了就把你的IP地址和你的计算机名对应起来.

如:

# copyright (c) 1993-1999 microsoft corp.

#

# this is a sample hosts file used by microsoft tcp/ip for windows.

#

# this file contains the mappings of ip addresses to host names. each

# entry should be kept on an individual line. the ip address should

# be placed in the first column followed by the corresponding host name.

# the ip address and the host name should be separated by at least one

# space.

#

# additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

相关文档
最新文档