当前位置:网站首页>sqlnet.ora文件设置不对造成ORA-12154 、ORA-01017连接异常
sqlnet.ora文件设置不对造成ORA-12154 、ORA-01017连接异常
2022-07-23 11:31:00 【51CTO】
最近看到有朋友连接数据库出现ORA-12154 、ORA-01017的异常,其实造成该异常的原因有很多,以下介绍sqlnet.ora文件中EZCONNECT参数对该异常的影响.如果想要使用EZCONNECT方式连接数据库,Windows需在客户端sqlnet.ora文件中增加“NAMES.DIRECTORY_PATH=(EZCONNECT)”信息或者删除sqlnet.ora文件.
模拟异常:
1、删除EZCONNECT
Windows客户端删除sqlnet.ora(ORACLE_HOME/network/admin目录下)中EZCONNECT参数,显示如下:
此时通过pl sql肯定无法连接数据库,pl sql的连接方式采用的是简易连接.

Linux系统删除服务器端EZCONNECT报错如下
添加上EZCONNECT,瞬间连接OK.
说明:通过ORA-01017、ORA-12154告警,比较难想到是sqlnet.ora文件出现异常.
边栏推荐
- [hiflow] regularly send Tencent cloud SMS sending group
- 【论文学习】《Source Mixing and Separation Robust Audio Steganography》
- The difference between cookies and sessions
- C # calculate the number of times a character appears in the string
- BGP routing principle
- Idea starts multiple projects at once
- One minute rule for sequential disk access
- Can multithreading optimize program performance?
- 奔驰新能源产品线:豪华新能源市场或将改变格局
- 【无标题】
猜你喜欢

Suffix expression (summer vacation daily question 4)
![[7.16] code source - [array division] [disassembly] [select 2] [maximum common divisor]](/img/fd/ffddb3ac35e946215a0582f09f278a.png)
[7.16] code source - [array division] [disassembly] [select 2] [maximum common divisor]

One minute rule for sequential disk access
![[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado](/img/94/5b914d0ce2a2c3e1760d1b27321479.png)
[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado

Software testing weekly (No. 81): what can resist negativity is not positivity, but concentration; What can resist anxiety is not comfort, but concrete.

Gear 月度更新|6 月

【攻防世界WEB】难度三星9分入门题(上):simple_js、mfw

bug修改

Deep understanding of L1 and L2 regularization

(Zset)Redis底层是如何用跳表进行存储的
随机推荐
SCA在得物DevSecOps平台上应用
任务切换的细节
xml-xxe漏洞之Fake XML cookbook
A quietly rising domestic software is too strong!
後綴錶達式(暑假每日一題 4)
Clickhouse, let the query fly!!!
Find a specific number in an ordered array (binary search or half search)
[untitled]
【运维】ssh tunneling 依靠ssh的22端口实现访问远程服务器的接口服务
Safe and reasonable use of electricity to harvest a cool "summer"
BGP routing principle
What is the real HTAP? (2) Challenge article
UmiJs - qiankun主子应用之间,数据的传递
专访|开源之夏新星牛学蔚
Time series data in industrial Internet of things
One minute rule for sequential disk access
ESP8266 NodeMCU 闪存文件系统(SPIFFS)
C语言经典例题-贷款余额
Can multithreading optimize program performance?
Harbor image warehouse