问题描述
看看db2diag.log我得到了:
code> 2015-10-14-23.31.46.395310-180 I87772E394级别:警告
PID:1980 TID:140735278235648PROC:db2start
INSTANCE:db2inst1 NODE:000
HOSTNAME:Renatos- MacBook-Pro.local
功能:DB2 UDB,基本sys实用程序,sqleReleaseStStLockFile,probe:12463
MESSAGE:释放文件锁:
DATA#1:String,40 bytes
/Users/db2inst1/sqllib/ctrl/db2strst.lck
我在我的MAC机器上安装了DB2 express (OSX El Captain)使用以下指南:
我也在我的mac上使用DB2 V10.1。
我从mac OS 10.6雪豹使用它。
我最近遇到同样的情况,并以与Renato尝试相同的方式解决。
只需从我的脏笔记中分享捕获。
db2diag.log
2015-10-15-22.17.13.185718 + 660 I6438E430等级:严重
PID:15931 TID:4515377152 PROC:db2sysc
INSTANCE:db2inst1 NODE:000
HOSTNAME:XXXXX
功能:DB2 UDB,基本sys实用程序,DB2main,probe:1884
MESSAGE:SQL1042C发生意外的系统错误。
CALLED:DB2 UDB,oper系统服务,sqloRunInstance
RETCODE:ZRC = 0x83000001 = -2097151999
2015-10-15-22.17.13.186668 + 660 I6869E392级别:警告
PID:15929 TID:140735111885568PROC:db2star2
INSTANCE:db2inst1 NODE:000
HOSTNAME:XXXXX
功能:DB2 UDB,基本sys实用程序,sqleReleaseStStLockFile,probe:12463
MESSAGE:释放文件锁:
DATA#1:String,40 bytes
/Users/db2inst1/sqllib/ctrl/db2stst.0000
执行
$ sudo chown db2inst1 /用户/ db2inst1 / sqllib / adm / *
密码:
我可以做'db2start'成功。
I am trying to user the command db2star in my new DB2 Express instance and I receive:
Looking at db2diag.log I got:
2015-10-14-23.31.46.395310-180 I87772E394 LEVEL: Warning
PID : 1980 TID : 140735278235648PROC : db2start
INSTANCE: db2inst1 NODE : 000
HOSTNAME: Renatos-MacBook-Pro.local
FUNCTION: DB2 UDB, base sys utilities, sqleReleaseStStLockFile, probe:12463
MESSAGE : Released lock on the file:
DATA #1 : String, 40 bytes
/Users/db2inst1/sqllib/ctrl/db2strst.lck
I installed DB2 express in my MAC Machine (OSX El Captain) using the following guide:
How do I install db2 Express-C 10.1 on OSX Mavericks
I'm also using DB2 V10.1 on my mac.I have used it since mac OS 10.6 snow leopard.And I encountered same situation recently and resolved with the same way that Renato tried.Just sharing the capture from my dirty note.
db2diag.log
2015-10-15-22.17.13.185718+660 I6438E430 LEVEL: Severe
PID : 15931 TID : 4515377152 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
HOSTNAME: XXXXX
FUNCTION: DB2 UDB, base sys utilities, DB2main, probe:1884
MESSAGE : SQL1042C An unexpected system error occurred.
CALLED : DB2 UDB, oper system services, sqloRunInstance
RETCODE : ZRC=0x83000001=-2097151999
2015-10-15-22.17.13.186668+660 I6869E392 LEVEL: Warning
PID : 15929 TID : 140735111885568PROC : db2star2
INSTANCE: db2inst1 NODE : 000
HOSTNAME: XXXXX
FUNCTION: DB2 UDB, base sys utilities, sqleReleaseStStLockFile, probe:12463
MESSAGE : Released lock on the file:
DATA #1 : String, 40 bytes
/Users/db2inst1/sqllib/ctrl/db2stst.0000
After doing
$ sudo chown db2inst1 /Users/db2inst1/sqllib/adm/*
Password:
I could do 'db2start' successfully.
这篇关于在MAC中无法使用DB2 Express的db2start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!