Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3546452
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2021-04-07 16:31:48


aix 监控系统使用的os用户是dbcheck,此用户的.profile中配置环境变量指向11.2.0.1的一个ORACLE_HOME路径,连接数据库报错 ora-12162

[oracle@shdb01 ~]$ oerr ora 12162
12162, 00000, "TNS:net service name is incorrectly specified"
// *Cause:  The connect descriptor corresponding to the net service name in
// TNSNAMES.ORA or in the directory server (Oracle Internet Directory) is
// incorrectly specified.
// *Action: If using local naming make sure there are no syntax errors in
// the corresponding connect descriptor in the TNSNAMES.ORA file. If using
// directory naming check the information provided through the administration
// used for directory naming.

数据库实际ORACLE_HOME是11.2.0.4的,用oracle用户登录后,直接sqlplus jiankong/jk123就正常。

绕过办法是用数据网络名,即tnsnames.ora,如
sqlplus jiankong/jk123@127.0.0.1/orcl

可能是因为ORACLE_HOME路径指向的bin目录下文件版本不同导致。
修改dbcheck用户的.profile,改为正确的ORACLE_HOME也不管用。
阅读(919) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~