oracle的服务端是装在linux上的,在本地window下装了oracle客户端和plsql,
今天用plsql登录报错说:
listener does not currently know of service requested in connect descriptor现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。

解决方案 »

  1.   

    现在在linux服务端也出现这个错误。这个是在服务端的内容
    tnsnames.ora
    ----
    truth=(DESCRIPTION=(ADDRESS=(HOST=core.company.com)(PORT=1521)(PROTOCOL=tcp))(CO
    NNECT_DATA=(SERVICE_NAME=truth)))
    ----
    listener.ora
    ------
    LISTENER =
     (ADDRESS_LIST=
            (ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521))
            (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))SID_LIST_LISTENER=
      (SID_LIST=
        (SID_DESC=
           (SID_NAME=truth)
           (ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1)
        )
      )
      

  2.   

    在服务端LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.2.0 - Production
    Start Date                09-NOV-2008 16:30:22
    Uptime                    0 days 0 hr. 27 min. 15 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
      

  3.   

    你在服务器端不加连接串登陆进去,比如:sqlplus / as sysdba
    然后:alter system register;
      

  4.   

    LSNRCTL> stop
    LSNRCTL> start
    LSNRCTL> status 
    结果还是一样的呢
      

  5.   

    用 sqlplus /as sysdba登录,然后执行alter system register后
    lsnrctl>status是LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.2.0 - Production
    Start Date                09-NOV-2008 22:30:51
    Uptime                    0 days 0 hr. 3 min. 33 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521)))
    Services Summary...
    Service "cmdb.opsware.com" has 1 instance(s).
      Instance "cmdb", status READY, has 1 handler(s) for this service...
    Service "cmdb_XPT.opsware.com" has 1 instance(s).
      Instance "cmdb", status READY, has 1 handler(s) for this service...
    The command completed successfully但当我stop,再start后,还是说The listener supports no services