[20190306]Disabled EZCONNECT.txt https://connor-mcdonald.com/2019/03/06/disabled-ezconnect/ --//链接里面提到: NAMES.DIRECTORY_PATH= (TNSNAMES) In such a scenario, you need to explicitly allow for EZCONNECT method to allow the connection to work. NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) --//在以上的情况下,必须显示的加入EZCONNECT.但是 If you have never touched your sqlnet.ora, it probably looks like this: NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME) but there is no need to panic. Those default values allow EZCONNECT as well. --//测试看看: 1.环境: SCOTT@book> @ ver1 PORT_STRING VERSION BANNER ------------------------------ -------------- -------------------------------------------------------------------------------- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production 2.测试: --//我客户端机器安装有12cR2(windows 64bit). --//修改sqlnet.ora如下: NAMES.DIRECTORY_PATH= (TNSNAMES) --//测试EZCONNECT: R:\>sqlplus -l scott/book@192.168.100.78:1521/book SQL*Plus: Release 12.2.0.1.0 Production on Fri Mar 8 09:03:06 2019 Copyright (c) 1982, 2016, Oracle. All rights reserved. ERROR: ORA-12154: TNS:could not resolve the connect identifier specified SP2-0751: Unable to connect to Oracle. Exiting SQL*Plus --//如果修改sqlnet.ora如下: NAMES.DIRECTORY_PATH= (TNSNAMES,EZCONNECT) R:\>sqlplus -l scott/book@192.168.100.78:1521/book SQL*Plus: Release 12.2.0.1.0 Production on Fri Mar 8 09:03:46 2019 Copyright (c) 1982, 2016, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SCOTT@192.168.100.78:1521/book> --//成功连上!! 3.如果修改如下: --//修改sqlnet.ora如下: NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME) R:\>sqlplus -l scott/book@192.168.100.78:1521/book SQL*Plus: Release 12.2.0.1.0 Production on Fri Mar 8 09:05:59 2019 Copyright (c) 1982, 2016, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 4.我测试各种情况: NAMES.DIRECTORY_PATH= (TNSNAMES) =>失败 NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES) =>失败 NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME) =>成功 NAMES.DIRECTORY_PATH= (HOSTNAME) =>成功 --//视乎只要存在HOSTNAME,EZCONNECT就可以通过.有时候想想oracle设计太奇怪了.
[20190306]Disabled EZCONNECT.txt
来源:这里教程网
时间:2026-03-03 13:02:51
作者:
编辑推荐:
- [20190306]Disabled EZCONNECT.txt03-03
- DataGuard切换(主库为Rac+备库为Rac)03-03
- RAC+单实例DG的切换03-03
- Oracle RMAN两种库增量备份的差别及实验增量差异和累积增量备份的区别03-03
- 故障排除 | enq:TX - index contention等待事件03-03
- oracle 12c 多租户体系结构概念03-03
- [20190311]关于oracle物理与逻辑坏块.txt03-03
- Debian Samba域控制器配置(手把手教你用Debian搭建Samba Active Directory域控制器)03-03
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- Oracle RMAN两种库增量备份的差别及实验增量差异和累积增量备份的区别
- 故障排除 | enq:TX - index contention等待事件
故障排除 | enq:TX - index contention等待事件
26-03-03 - oracle 12c 多租户体系结构概念
oracle 12c 多租户体系结构概念
26-03-03 - Debian Samba域控制器配置(手把手教你用Debian搭建Samba Active Directory域控制器)
- 审计表 aud$ 清理
审计表 aud$ 清理
26-03-03 - Data Guard备库日志的实时应用与非实时应用
Data Guard备库日志的实时应用与非实时应用
26-03-03 - 安装ORACLE 12.2.0.1 GI 时遇到INS-44002错误
安装ORACLE 12.2.0.1 GI 时遇到INS-44002错误
26-03-03 - PLSQL Developer 复制查询结果 卡顿
PLSQL Developer 复制查询结果 卡顿
26-03-03 - ACE(01):Oracle ACE 申请
ACE(01):Oracle ACE 申请
26-03-03 - ORA-00054错误
ORA-00054错误
26-03-03
