/*目录*/

ORA-12514:监听程序无法识别

使用plsql远程登录oracle数据库时,出现无法识别监听程序的错误。很大机率是配置文件出错。

配置文件如下:

listener.ora是服务器端用的,oracle监听程序,就是读的这个文件,里面有oracle服务器端的socket监听地址和端口,tnsnames.ora是记录客户端访问数据库的本地配置:客户端是通过tnsnames.ora来识别连接服务器的如果你没有添加tnsnames.ora,那么你就连接不上服务器。

[oracle@192 ~]$ cat /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = orcl)
      (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME = orcl)
    )
  )
#指定监听实例
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.90.183)(PORT = 1521))
    )
  )

#ADR_BASE_LISTENER = /home/oracle/app/oracle

 

posted @ 2020-06-19 14:14  嘟嘟噜~  阅读(813)  评论(0编辑  收藏  举报