当前位置:网站首页>Linux-DB2报错:SQL10007N Message “-10003“ could not be retrieved. Reason code: “3“
Linux-DB2报错:SQL10007N Message “-10003“ could not be retrieved. Reason code: “3“
2022-08-06 05:22:00 【童安格粉丝】
1.背景
在Suse15安装好DB2后,执行db2level命令查看版本报错
[email protected]:~$ cd /opt/ibm/db2/V11.1/bin/
[email protected]:/opt/ibm/db2/V11.1/bin$ ./db2level
SQL10007N Message "-10003" could not be retrieved. Reason code: "3".2.原因
环境变量导致的
3.解决方案
在db2inst用户下执行
cd /home/db2inst
vim ~/.bash_profile在文件中填下以下内容:
DB2_HOME=/opt/ibm/db2/V11.1/
export PATH=$PATH:$DB2_HOME/bin:/home/db2inst1/sqllib/bin
if [ -f /home/db2inst1/sqllib/db2profile ]
then
source /home/db2inst1/sqllib/db2profile
fi
使环境变量生效
[email protected]:~$ pwd
/home/db2inst
[email protected]:~$ source ~/.bash_profile
再次运行db2level
[email protected]:~$ cd /opt/ibm/db2/V11.1/bin/
[email protected]:/opt/ibm/db2/V11.1/bin$ db2level
DB21085I This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL11014" with level
identifier "0205010F".
Informational tokens are "DB2 v11.1.4.4", "s1811091400", "DYN1811091400AMD64",
and Fix Pack "4".
Product is installed at "/opt/ibm/db2/V11.1".边栏推荐
猜你喜欢
随机推荐
The application of Ankerui's prepaid platform in power supply-Susie Week
GameFramework.ObjectPoolManager 详解
iCopy日记,开机自启
EVBoard MM32 】 【 MM32F3270 series of ADC channel acquisition and internal temperature sensor
MiniFlow -- 6.Cost
MongoDB之索引的操作
GameFramework 框架 Resource 详解
MiniFlow -- 7.简单理解梯度下降
Acrel-EIoT Energy IoT Cloud Platform Empowers Power IoT Data Services - Susie Week
【STM32F4系列】【自制库】读取并模拟遥控插座的遥控器
MongoDB之查询文档
IoT devices connect to Huawei iot platform through MQTT
Qt 嵌入网页
正则表达式去除空行,在每行文本后添加,
Design and Implementation Analysis of Intelligent Monitoring System in Power Distribution Room-Susie Zhou
STM32 ADC转换速度与精度
基于微信小程序的校园服务管理系统的设计与实现
numpy生成网格方法
工作之余找到生活的意义
Transform.SetSiblingIndex() 设置规则









