DB2数据库SQL1366N错误处理
2017-09-15 15:18
591 查看
近日为了安全基线的检查,不停地在更新已上线系统的数据库参数设置,结果在更改了目录sqllib下的文件权限后,导致数据起停,连接等命令无法执行。
1、报错为:SQL1366N A Security plug-in "IBMOSauthclient" pfocessing error occurred on the client ,Reason code="3"。
2、研究发现:目录sqllib下security64(我的系统为64位的aix)的访问权限出现了问题。
3、解决办法:让实例用户具有访问和执行的权限。root用户登录,
chmod -R +rw /home/sjxt/sqllib/security64/plugin/IBM/client;
chmod +x /home/sjxt/sqllib/security64/plugin/IBM/client/IBMOsauthclient.a
结果上述问题解决后出现了:SQL0332N Character conversion from the source code page "1386" to the target code page "819" is not supported SQLSTATE=57017
针对这个现象的解决方法:db2set db2codepage=1386 ,
结果又出现了以下问题:DBI1306N The instance profile is not defined .
Explanation: The instance is not defined in the target machine registry.
User response: Specify an existing instance name or create the required instance.
针对这个问题,通过上网查找,发现有类似案例,现将访案例及处理方法贴如下:
具体链接见如下:http://www-01.ibm.com/support/docview.wss?uid=swg1IC67080
本人按这个案例成功解决了问题。
1、报错为:SQL1366N A Security plug-in "IBMOSauthclient" pfocessing error occurred on the client ,Reason code="3"。
2、研究发现:目录sqllib下security64(我的系统为64位的aix)的访问权限出现了问题。
3、解决办法:让实例用户具有访问和执行的权限。root用户登录,
chmod -R +rw /home/sjxt/sqllib/security64/plugin/IBM/client;
chmod +x /home/sjxt/sqllib/security64/plugin/IBM/client/IBMOsauthclient.a
结果上述问题解决后出现了:SQL0332N Character conversion from the source code page "1386" to the target code page "819" is not supported SQLSTATE=57017
针对这个现象的解决方法:db2set db2codepage=1386 ,
结果又出现了以下问题:DBI1306N The instance profile is not defined .
Explanation: The instance is not defined in the target machine registry.
User response: Specify an existing instance name or create the required instance.
针对这个问题,通过上网查找,发现有类似案例,现将访案例及处理方法贴如下:
APAR status
Closed as program error.
Error description
db2set throws the following error: $ db2set db2_workload=sap DBI1306N The instance profile is not defined. Explanation: The instance is not defined in the target machine registry. User response: Specify an existing instance name or create the required instance. This problem can be caused by a dirty record in the DB2 global registry. You can list the content of the DB2 global registry with this command: "<DB2DIR>/bin/db2greg -dump" If, for example, your instance is called "db2inst1" the output will contain a record like this: I,DB2,9.7.0.1,db2inst1,/home/db2inst1/sqllib,,1,0,/opt/IBM/v97,, The error from db2set is triggered because the InstallPath record (/opt/IBM/v97) is different than the path where your copy of DB2 is installed.
Local fix
a813Execute this command as root, where <DB2DIR> is the path where your DB2 copy is installed: <DB2DIR>/instance/db2iupdt <INSTANCE NAME>
Problem summary
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * db2set throws the following error: * * * * * * * * $ db2set db2_workload=sap * * * * DBI1306N The instance profile is not defined. * * * * Explanation: * * * * The instance is not defined in the target machine registry. * * * * User response: * * * * Specify an existing instance name or create the required * * * * instance. * * * * * * * * * * * * This problem can be caused by a dirty record in the DB2 * * global * * registry. * * * * You can list the content of the DB2 global registry with * * this * * command: "<DB2DIR>/bin/db2greg -dump" * * * * If, for example, your instance is called "db2inst1" the * * output * * will contain a record like this: * * * * I,DB2,9.7.0.1,db2inst1,/home/db2inst1/sqllib,,1,0,/opt/IBM/v97 * * * * * The error from db2set is triggered because the InstallPath * * * * record (/opt/IBM/v97) is different than the path where your * * copy * * of DB2 is installed. * * * * * * * * You can fix the issue by running db2iupdt against your * * instance: * * <DB2DIR>/instance/db2iupdt <INSTANCE NAME> * **************************************************************** * RECOMMENDATION: * * You can fix the issue by running db2iupdt against your * * instance: * * <DB2DIR>/instance/db2iupdt <INSTANCE NAME> * ****************************************************************
Problem conclusion
Problem was first fixed in Version 9.7 Fix Pack 2
具体链接见如下:http://www-01.ibm.com/support/docview.wss?uid=swg1IC67080
本人按这个案例成功解决了问题。
相关文章推荐
- 关于DB2数据库的ADM11003E和ADM0501C错误的处理
- js017-错误处理与调试
- 无法加载程序集错误处理
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 错误处理办法
- ASP.NET MVC编程——错误处理与日记
- 错误处理--无法将类型为 master的对象强制转换为类型 master
- [学习整理] VNC相关命令,配置gnome,以及常见错误处理
- volley的重试机制及错误处理机制
- vc编译器 msvcr.dll、msvcp.dll的含义和相关错误的处理
- ORA-00604: 递归SQL级别1出现错误, ORA-02067:要求事务处理或保存回退点
- java错误处理:java.lang.OutOfMemoryError处理
- 【OpenCV学习】错误处理机制
- Retrofit请求数据对错误以及网络异常的处理
- 针对Linux下软件重起时,不能重新启动--------错误的处理思路
- springMVC项目异步错误处理请求Async support must be enabled on a servlet and for all filters involved in async
- 玩具语言LLL之chunk和错误处理
- 错误处理(Operation Result)方法
- error C2065: '_beginthread' : undeclared identifier错误处理
- 模型中添加属性导致数据表中不存在column的错误,使用的数据表的模型与属性区分开的处理
- ASP.NET的错误处理机制