当前位置:网站首页>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文件出现异常.
边栏推荐
- Mercedes Benz new energy product line: luxury new energy market may change the pattern
- Find the minimum value and location in multiple numbers (with repetition)
- [paper study] source mixing and separation robot audio steganography
- 第三篇 RBAC权限管理 数据库设计详解
- Chapter 4 event handling of quick mastering QML
- 《代码之丑》学习总结
- Pydensecrf installation
- xxl-job 实现email发送警告的代码解析(一行一行代码解读)
- Fileinputformat of MapReduce inputformat
- 【论文学习】《Source Mixing and Separation Robust Audio Steganography》
猜你喜欢

C语言经典例题-贷款余额

C language learning notes

C语言经典例题-求最少数量钞票

Find the source code of the thesis

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

自定义封装弹出框(带进度条)

Exclusive interview | open source Summer Star Niu Xuewei

什么是真正的 HTAP ?(二)挑战篇

Quickly master QML Chapter 5 components

【攻防世界WEB】难度三星9分入门题(下):shrine、lottery
随机推荐
第二篇 如何设计一个RBAC权限系统
3D math - vector
对专利的学习
Please initialize the log4j system properly.
redis 哨兵模式
(BFS) template + example (maze, eight digits)
md5强碰撞,二次解码,
链表合并(暑假每日一题 3)
C # calculate the number of times a character appears in the string
SharedPreferences数据储存
RTA is a new way to accurately launch advertisements?
老照片上色——DeOldify快速上手
C语言经典例题-商品检验码
(BFS)模板+例题(走迷宫,八数码)
Gear monthly update June
没有了华为,高通任意涨价,缺乏核心技术的国产手机只能任由宰割
任务切换的细节
浅谈‘过早优化’
C语言注释的方法
xxl-job 实现email发送警告的代码解析(一行一行代码解读)