51Testing软件测试论坛

标题: 求..........oracle 启动listener 出錯 [打印本页]

作者: snail_qi    时间: 2011-4-28 21:45
标题: 求..........oracle 启动listener 出錯
本帖最后由 snail_qi 于 2011-4-28 22:08 编辑

[oracle@snai 10.2.0]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 28-APR-2011 17:38:17

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

Starting /opt/oracle/product/10.2.0/bin/tnslsnr: please wait...

TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
  TNS-00507: Connection closed
   Linux Error: 29: Illegal seek
listener.ora内容:# listener.ora Network Configuration File: /opt/oracle/product/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /opt/oracle/product/10.2.0)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST =  localhost)(PORT = 1521))
    )
  )
[oracle@snai admin]$ cat tnsnames.ora # tnsnames.ora Network Configuration File: /opt/oracle/product/10.2.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

TESTDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =  localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = testdb)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

求帮助啊
作者: 阿七    时间: 2011-4-29 14:28
更改了主机名,更改过hosts文件。首先查看$ORACLE_HOME/network/admin/listener.ora 文件中的host是多少。


另外需在/etc/hosts文件中查看是否有

127.0.0.1       localhost.localdomain   localhost

这条记录,如果后边的localhost被改为了其他也需增加这条记录。如你改为了

127.0.0.1       localhost.localdomain   dragon

这时增加进去这条记录就是由两条记录:

127.0.0.1       localhost.localdomain   dragon
127.0.0.1       localhost.localdomain   localhost

两条记录了。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2