刚装完了oracle,安装过程很顺利,可是在客户端就是连不上,看不出来有什么问题,请教各位大神
pl/sql developer 报错:“ora-12154:tns:无法解析指定的连接标识符”
装在CentOS 6.5 上的oracle 12C R1
两个机器可以互ping
# listener.ora Network Configuration File: /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
listener.ora 文件如下:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBANAME = venn.server.world)
(ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
(SID_NAME = venn)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
tnsnames.ora 文件如下:
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_VENN =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
VENN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.220.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = venn.server.world)
)
)
执行lsnrctl start 输出的最后一段:
<p>
Services Summary...<br>
Service "venn" has 1 instance(s).
Instance "venn", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
折腾了一下午,服务器的防火墙没关<divclass='ref'>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。