环境是rhel3u3,安装oracle9.2.0.4.0
我是依http://blog.csdn.net/kingapex1/articles/641348.aspx这篇教程安装的..安装过程没什么错,
就在$ORACLE_HOME/network/admin下没有listener.ora,tnsname.ora,sqlnet.ora,sqlnet.log, 这四个文件,
但是监听与oracle服务都挺正常的.
[oracle@test57 oracle]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 16-SEP-2009 21:05:53Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 9.2.0.4.0 - Production
Start Date                16-SEP-2009 17:11:28
Uptime                    0 days 3 hr. 54 min. 25 sec
Trace Level               off
Security                  OFF
SNMP                      OFF
Listener Log File         /home/ora9/product/9.2/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test57)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test57)(PORT=8080))(Presentation=HTTP)(Session=RAW))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test57)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "ORCL" has 1 instance(s).
  Instance "ORCL", status READY, has 1 handler(s) for this service...
Service "ORCLXDB" has 1 instance(s).
  Instance "ORCL", status READY, has 1 handler(s) for this service...
The command completed successfully有经验的老兄们,帮帮忙.谢谢.

解决方案 »

  1.   

    楼主没有看错目录吧? 在$ORACLE_HOME下搜索下find ./ -name listener.ora
      

  2.   

    [oracle@test57 9.2]$ find ./ -name listener.ora 
    ./network/admin/samples/listener.ora
    结果如上
      

  3.   


    那把samples的copy出来放到admin下.. 在看下里面的内容可有要修改的..重启下数据库,检查下监听,能正常运行就ok了..
      

  4.   

    谢谢楼上的兄弟.
    oracle9i都是这样  要自己复制出来?
      

  5.   


    应该不是,可能是其他的原因导致的,没遇到过这种情况, 不是很清楚,玩10G的多,9i只在windows上玩过..
      

  6.   

    没事,你试着用netca创建一个listener。我以前也遇到过你这样的情况,没有listener.ora但是lsnrctl start却可以启动,当时没有仔细研究,用netca创建一个listener就出现叻。
      

  7.   

    多谢楼上的老兄帮忙,我通过网上深入寻找相关的内容,现在已经创建好了listener.ora,那其他三个文件又是如何生成的呢.还是需要手动创建呢..
      

  8.   


    运行$ORACLE_HOME/bin/netca之后.有四个选项,我运行前三项之后,相应的listener.ora,tnsname.ora,sqlnet.ora这三个文件都已生成.
    谢谢inthirties老兄了!!呵呵
      

  9.   

    10g要是动态注册的话,是不需要LISTENER.ORA就可以了,
    难道说9i也是这样的,