导读:在 db2inst1/sqllib/security 目录下,检查 db2ckpw 和 db2chpw 文件的权限。

有朋友在墨天轮提出一个 DB2 的问题,当完成初始化安装部署之后,本地连接没有问题,但是远程无法连接数据库:

错误提示是:Error Code -1639 , SQL State: 08001 :

这个错误有多种可能性,例如防火墙没有开放 50000 端口,但是这个案例,客户已经关闭了防火墙,端口可达。

还有一个相关性问题,就是权限,在 db2inst1/sqllib/security 目录下,检查 db2ckpw 和 db2chpw 文件的权限:

将这两个文件的属主修改为 root ,权限修改为 4511 ,重启数据库,数据库就可以接受远程访问了:

chown root db2chpw chown root db2ckpw chmod 4511 db2chpw chmod 4511 db2ckpw

最后总结一下:db2ckpw 的作用是用于检查 DB2 服务器上的用户标识和密码。由于 DB2 依赖于操作系统级别的认证,因此,当某个用户或应用程序连接到服务器上的数据库时,使用该进程验证用户标识和密码。当将 AUTHENTICATION 设置为 SERVER 时,或者当连接是从非安全的操作系统建立的时候,就会进行认证。验证权限需要检查 passwd 文件,ckpw 顾名思义就是 Check Password file 的含义,正因为如此,这个工具必须以 root 运行,需要远程连接时必须保证该权限。

以下一段描述表述清晰:

db2ckpwd is the password checking daemon that deals with user authentication. This process is used to confirm that the id exists and has a right to be on the box. If the process if not a root process, only local connections will be allowed to the database because the id is already on the box. To make the OS API calls necessary to determine if the user has the right to be on the box, DB2’s db2ckpwd must run as root. If it is not started as root, it will not have permissions to make the API calls, and it will return an SQL 30082 rc=24 error. Also since the db2ckpwd must su to root, in order to run as root, the db2ckpw file will need to have the su bit set, and the file system must be mounted so that su’ing is allowed.

DB2 建立连接的示意图如下:

记录供参考。


读完本文,觉得不够?2019 数据技术嘉年华来啦!现场大咖云集,与你共畅数据的魅力。现在加入,尽享超低票价优惠:

详述一则DB2 Error Code 1639和SQL State 08001案例诊断和解决方案相关推荐

  1. MySQL 数据库show processlist where条件筛选报错解决方法,[Code: 1064, SQL State: 42000] You have an error in your

    -- 筛选报错 show processlist where user = 'root'; -- 筛选可用 select * from information_schema.processlist w ...

  2. SQL Editor and reconnect【mysql(workbench)更新数据时候的一个异常】【Error Code:1175】

    异常情况: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHE ...

  3. SQL SERVER2014 安装 Error code 0x858C001B.

    原因是语言版本不一致,SQL SERVER是中文简体版,操作系统是英文版,在操作系统.控制面板,区域语言设置为中文就Ok啦. TITLE: SQL Server Setup failure. ---- ...

  4. Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My

    转自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 10 ...

  5. SQL Server 2012安装错误案例:Error while enabling Windows feature: NetFx3, Error Code: -2146498298...

    案例环境: 服务器环境 :    Windows Server 2012 R2 Standard 数据库版本 :    SQL Server 2012 SP1 案例介绍: 在Windows Serve ...

  6. sql报错:Error Code: 1292. Incorrect date value: ‘1978‘ for column ‘video_date‘ at row 1记录

    报错:Error Code: 1292. Incorrect date value: '1978' for column 'video_date' at row 1 记录 1.产生原因 写了一个插入数 ...

  7. 执行update和delete的SQL语句时,报错:Error Code: 1175. You are using safe update mode and you tried to update a

    执行SQL语句时,报错: 13:36:42 delete from users where username='lisi' Error Code: 1175. You are using safe u ...

  8. MacOS Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2746.

    通过降级 mssql-tools 解决 macOS 上 sqlcmd 不能访问 SQL Server 2014 的问题. 最新的 msodbcsql17 在连接 SQL Server 2014 时报错 ...

  9. oracle ora 13011,ORA-00600: internal error code, arguments: [13011]

    近期,一客户历史数据库屡次遇到ORA-00600: internal error code, arguments: [13011].附带的,还有ORA-01499 SQL> analyze ta ...

最新文章

  1. 金城教授:基于手绘草图的图像检索技术研究
  2. 冒泡排序、选择排序和插入
  3. Python网络爬虫--Scrapy使用IP代理池
  4. linux之类似Windows的资源管理器gnome-system-monitor(可用这个杀死进程)
  5. [转]unity3D游戏开发之GUI
  6. Python邻接矩阵邻接表转换
  7. hive元数据为什么要用mysql_Hive用MySQL做元数据保存的数据库时,mySQL设置
  8. F5 虚拟机下载 和 试用Key 申请
  9. 湖南工商大学计算机网络原理,李小龙(湖南工商大学计算机与信息工程学院副院长)_百度百科...
  10. Windows系统下长ping记录日志小工具
  11. LaTeX数学符号汇总
  12. Visual C++ 2010 Express 中文版的下载地址
  13. 威联通NAS TS-873A 实测
  14. 数据分析实战(三) 因子分析模型挖掘CSDN优质博主
  15. mac视频播放器哪个最好用?不妨试试OmniPlayer Pro mac中文版吧
  16. 手持式频谱分析仪推荐哪一款?
  17. 打包错误:Entry name 'META-INF/ XXX ' collided
  18. 华为运营商级路由器配置示例 | 配置LDP方式VPLS示例
  19. 宇宙飞机(space plane)
  20. <<视觉问答>>2022:CLIP Models are Few-shot Learners: Empirical Studies on VQA and Visual Entailment

热门文章

  1. makefile 无法工作_什么是Makefile,它如何工作?
  2. 如何双启动Linux和Windows
  3. 使用Elizabeth为您的应用程序生成随机数据
  4. 我的世界变betty指令_Betty Hacker将开放式硬件电子产品嵌入蛋糕中
  5. vue-cil+vuex 构建一个简单的记事本应用
  6. python2048小游戏程序设计大作业_C语言大作业报告——2048小游戏程序
  7. NORDIC 52832开发2之串口空闲时间过长
  8. addeventlistener事件第三个参数_JavaScript 事件与事件处理机制
  9. php 变量源码,PHP源码中变量存储方式
  10. java期末判断题题库_(java期末考试选择题题库.doc