互联网服务数据库db2start

db2start with error:SQL1390C

问题已经解决:通过db2iupdt更新instance.

现场: 在deactivate db/db2stop 后,重新启动遇到下列问题

我个人认为:问题的关键点是:

Primary group id of DB2INSTANCE does notmatch effective primary group id of process.

DB2 应该使用了某种checksum 来做校验。

我尝试使用truss追踪(db2trc 对本情况无用),只有下面的内容 无任何有效信息,

我的问题是 如果以后遇到这样的问题, 我该用何种方法做追踪或者如何验证我的观点?


谢谢赐教。

execve("/usr/bin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/etc/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/usr/sbin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/usr/ucb/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/db2/SS4/db2ss4/bin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/usr/bin/X11/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/sbin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("./db2start", 0x2FF22688, 0x200138A8)    Err#2  ENOENT

execve("/usr/sap/SS4/SYS/exe/nuc/rs6000_64/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/usr/sap/SS4/SYS/exe/run/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/db2/SS4/db2ss4/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/db2/SS4/db2ss4/sqllib/db2tss/bin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT

execve("/db2/SS4/db2ss4/sqllib/bin/db2start", 0x2FF22688, 0x200138A8) Err#2  ENOENT


>db2start

SQL1390C  The environment variableDB2INSTANCE is not defined or is invalid.

02/26/201608:00:39     0   0   SQL1390C  Theenvironment variable DB2INSTANCE is not defined or is invalid.

SQL1032N  No start database managercommand was issued.  SQLSTATE=57019

db2diag.log

2016-02-26-07.59.02.084890+060I4041A706           LEVEL: Severe

PID     :18547154            TID :1             PROC : db2star2

INSTANCE:db2ss4              NODE : 000

HOSTNAME: arlqsap02

EDUID   : 1

FUNCTION: DB2 UDB, base sys utilities,DB2StartMain, probe:2885

MESSAGE : ZRC=0xFFFFFA92=-1390

         SQL1390C  The environment variable DB2INSTANCE is not defined or is

         invalid.

DATA #1 : String, 84 bytes

Primary group id of DB2INSTANCE does notmatch effective primary group id of process

DATA #2 : String, 28 bytes

DB2INSTANCE primary group id

DATA #3 : Group id, 4 bytes

5148

DATA #4 : String, 42 bytes

Effective primary group id of thisprocess

DATA #5 : Group id, 4 bytes

5264

参与8

2同行回答

disizhishoudisizhishou研发工程师IBM
I suspect that your primary group is not the SYSADM group:2016-02-26-07.59.02.084890+060I4041A706           LEVEL: Severe PID     :18547154            ...显示全部

I suspect that your primary group is not the SYSADM group:

2016-02-26-07.59.02.084890+060I4041A706           LEVEL: Severe
PID     :18547154            TID :1             PROC : db2star2
INSTANCE:db2ss4              NODE : 000
HOSTNAME: arlqsap02
EDUID   : 1
FUNCTION: DB2 UDB, base sys utilities,DB2StartMain, probe:2885
MESSAGE : ZRC=0xFFFFFA92=-1390
         SQL1390C  The environment variable DB2INSTANCE is not 
defined or is invalid.
DATA #1 : String, 84 bytes
Primary group id of DB2INSTANCE does notmatch effective primary 
group id of process
DATA #2 : String, 28 bytes
DB2INSTANCE primary group id
DATA #3 : Group id, 4 bytes
5148
DATA #4 : String, 42 bytes
Effective primary group id of thisprocess
DATA #5 : Group id, 4 bytes
5264

Note that  5148 != 5264

Example: 
 
db2 get dbm cfg | grep SYSADM 
 
SYSADM group name (SYSADM_GROUP) = ABC123 
 
# id db2inst1 
uid=1234 (db2inst1) gid=16(db2iadm) groups=114(abc123) 
 
In this case the primary group (gid is 16 / db2iadm) is not the 
SYSADM_GROUP and you may see this error in that case. 


In your case (based on the above db2diag.log), the primary group (effective GID) is 6264, but the db2instance primary GID is 5148 (based on the SYSADM_GROUP in the DBM CFG).  

So I would suggest checking /etc/groups , id output and dbm cfg to make sure things line up correctly.

收起
软件开发 · 2016-03-02
浏览2624
  • Thanks for your information. so DB2 confused the group:dbss4adm and dbqsaadm, but all actions :deactivate db and db2stop were taken on id:db2ss4. so right now we can not be sure about whether is 's db2 bug or OS bug. uid=4106(db2ss4) gid=5148(dbss4adm) groups=5002(sapsys),5001(sapinst),5264(dbqsaadm) arlqsap02:db2ss4 17> db2 get dbm cfg|grep -i dbss4adm SYSADM group name (SYSADM_GROUP) = DBSS4ADM
    2016-03-03
  • Thanks for your information. so DB2 confused the group:dbss4adm and dbqsaadm, but all actions :deactivate db and db2stop were taken on id:db2ss4. so right now we can not be sure about whether is 's db2 bug or OS bug. uid=4106(db2ss4) gid=5148(dbss4adm) groups=5002(sapsys),5001(sapinst),5264(dbqsaadm) arlqsap02:db2ss4 17> db2 get dbm cfg|grep -i dbss4adm SYSADM group name (SYSADM_GROUP) = DBSS4ADM
    2016-03-03
marvelyumarvelyu软件开发工程师IBM
用db2trc,全局变量设置问题?显示全部

用db2trc,全局变量设置问题?

收起
互联网服务 · 2016-03-02
浏览2556
  • 这个是sap 系统,全局变量设置没问题。 db2trc没有跟踪信息dump处理,我认为db2start还没有到系统调用的阶段,在Id或者某个文件的检测阶段就出了问题。
    2016-03-02

提问者

zhmwang
PDOceanBase
擅长领域: 数据库服务器国产数据库

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-02-26
  • 关注会员:3 人
  • 问题浏览:4571
  • 最近回答:2016-03-02
  • X社区推广