日期:2014-05-16  浏览次数:20415 次

oracle_无监听程序_错误
1:
查看服务器监听服务是否启动,cmd>services.msc>OracleOraDb10g_home1TNSListener,
重新启动下
2:
查看服务器监听文件是否配置正确,路径为D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora,是否注册了对相应数据库服务的监听,如没有,请在SID_LIST 下添加 SID_DESC 配置节点:
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = d:\oracle\product\10.1.0\db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = DB1)
      (ORACLE_HOME = d:\oracle\product\10.1.0\db_1) 
      (SID_NAME = DB1)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = DB2)
      (ORACLE_HOME = d:\oracle\product\10.1.0\db_1) 
      (SID_NAME = DB2)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
  )

3:查看客户端连接配置文件是否配置正确,如没有,请添加 数据库配置节点:
D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\tnsnames.ora
DB1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = DB1)
    )
  )
DB2 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = DB2)
    )
  )

4:尝试使用PL/SQL重新连接数据库.