免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3845 | 回复: 4
打印 上一主题 下一主题

第一次接触oracle,启动失败,帮忙一下,谢谢了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-10 17:01 |只看该作者 |倒序浏览
我是redhat ES 5 下载的是oracle 10g

下载的是oracle-xe-univ-10.2.0.1-1.0.i386.rpm
然后运行 rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm安装
然后/etc/init.d/oracle-xe configure根据提示配置了,端口都直接回车默认。

在/etc/profile  加了export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server

启动的时候报错:
[root@mh bin]# ./lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-SEP-2007 00:17:22

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
NL-00280: error creating log stream /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
NL-00278: cannot open log file
  SNL-00016: snlfohd: error opening file
   Linux Error: 13: Permission denied

Listener failed to start. See the error message(s) above...

论坛徽章:
0
2 [报告]
发表于 2007-09-10 17:02 |只看该作者
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log的内容是这样的:


[root@mh log]# more listener.log

TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 10-SEP-2007 23:26:42

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/lis
tener.ora
Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listen
er.log
Trace information written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/trace
/listener.trc
Trace level is currently 0

Started with pid=2915
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mh.localdomain)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist

No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))

TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 10-SEP-2007 23:56:10

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/lis
tener.ora
Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listen
er.log
Trace information written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/trace
/listener.trc
Trace level is currently 0

Started with pid=2313
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mh.localdomain)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist

论坛徽章:
0
3 [报告]
发表于 2007-09-10 21:30 |只看该作者
晕了,没人帮忙一下吗,

是不是和我改名有关系呢,我把计算机改成mh

HOST=mh.localdomain也没错吧,我改成localhost 重新启动可以监听,但是手动关闭,又要启动监听器,又报错,晕死了

论坛徽章:
0
4 [报告]
发表于 2007-09-10 22:24 |只看该作者
把mh.locald改成你机器的IP地址吧,这样最好使

论坛徽章:
0
5 [报告]
发表于 2007-09-11 10:15 |只看该作者
cat /etc/hosts
内容
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP