你的位置:首页 > 数据库

[数据库]Oracle 外网访问


环境:centos7+oracle 11gr2

公网:固定IP

症状:1521端口正常,netmanager配置测试正常,plsql连接提示ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

解决办法:

增加SID_LIST_LISTENER=

 

LISTENER=

(DESCRIPTION=

(ADDRESS_LIST=

(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521))

(ADDRESS=(PROTOCOL=ipc)(KEY=extproc))))

SID_LIST_LISTENER=

(SID_LIST=

(SID_DESC=

(SID_NAME=plsextproc)

(ORACLE_HOME=/oracle10g)

(PROGRAM=extproc)))

 

参考:https://docs.oracle.com/cd/B28359_01/network.111/b28316/listenercfg.htm