我的db2diag.log中每个10秒就会出现一批次这些错误。请问是什么原因那?
2016-12-05-14.21.27.975234+480 I2084898E1076 LEVEL: Error
PID : 7546 TID : 47956682036928PROC : db2fm
INSTANCE: tdb NODE : 000
FUNCTION: DB2 Common, Generic Registry, GenRegFile::OpenReg, probe:8
MESSAGE : ECF=0x900001C0=-1879047744=ECF_GENREG_OPEN_OUTPUT_FILE_FAILED
Failed to open the output registry
CALLED : OS, -, fopen
RETCODE : ECF=0x90000513=-1879046893=ECF_GENREG_REGISTRY_DOESNT_EXIST
The registry does not exist.
DATA #1 : String, 28 bytes
/home/tdb/sqllib/global.reg
CALLSTCK:
[0] 0x00002B9DC66ADC89 pdOSSeLoggingCallback + 0x91
[1] 0x00002B9DC53B8A3B /opt/ibm/db2/lib64/libdb2osse.so.1 + 0x1B3A3B
[2] 0x00002B9DC53B8935 ossLogRC + 0xBF
[3] 0x00002B9DC584F834 _ZN10GenRegFile7OpenRegEm + 0x41E
[4] 0x00002B9DC584A93E _ZN9GenRegBin3GetEmPvS0_ + 0xFC
[5] 0x0000000000406F97 _Z16fmGetInstallPathPcS_ + 0xD7
[6] 0x0000000000404381 main + 0x3B9
[7] 0x000000318721D994 __libc_start_main + 0xF4
[8] 0x0000000000403F2A __gxx_personality_v0 + 0x9A
[9] 0x0000000000000000 ?unknown + 0x0
2016-12-05-14.21.27.975758+480 I2085975E591 LEVEL: Warning
PID : 7546 TID : 47956682036928PROC : db2fm
INSTANCE: tdb NODE : 000
FUNCTION: DB2 Common, Fault Monitor Facility, fmGetInstallPath, probe:30
MESSAGE : ECF=0x90000397=-1879047273=ECF_FM_FAIL_TO_GET_GLOBAL_REG_INST_REC
Failed to get the instance record from the global registry file
CALLED : DB2 Common, Generic Registry, GenRegBin::Get
RETCODE : ECF=0x90000513=-1879046893=ECF_GENREG_REGISTRY_DOESNT_EXIST
The registry does not exist.
DATA #1 : String, 4 bytes
tdb
2016-12-05-14.21.27.975911+480 I2086567E976 LEVEL: Error
PID : 7546 TID : 47956682036928PROC : db2fm
INSTANCE: tdb NODE : 000
FUNCTION: DB2 Common, Fault Monitor Facility, fmGetInstallPath, probe:60
MESSAGE : ECF=0x90000521=-1879046879=ECF_FM_NO_PERMISSION_TO_INSTALL_PATH
No proper access permisions to the install path
DATA #1 : String, 0 bytes
Object not dumped: Address: 0x00007FFFA0066A38 Size: 0 Reason: Zero-length data
CALLSTCK:
[0] 0x00002B9DC66ADC89 pdOSSeLoggingCallback + 0x91
[1] 0x00002B9DC53B8A3B /opt/ibm/db2/lib64/libdb2osse.so.1 + 0x1B3A3B
[2] 0x00002B9DC53B883C ossLog + 0xA6
[3] 0x0000000000407142 _Z16fmGetInstallPathPcS_ + 0x282
[4] 0x0000000000404381 main + 0x3B9
[5] 0x000000318721D994 __libc_start_main + 0xF4
[6] 0x0000000000403F2A __gxx_personality_v0 + 0x9A
[7] 0x0000000000000000 ?unknown + 0x0
[8] 0x0000000000000000 ?unknown + 0x0
[9] 0x0000000000000000 ?unknown + 0x0
2016-12-05-14.21.27.976162+480 I2087544E1008 LEVEL: Error
PID : 7546 TID : 47956682036928PROC : db2fm
INSTANCE: tdb NODE : 000
FUNCTION: DB2 Common, Fault Monitor Facility, db2fm, probe:30
MESSAGE : ECF=0x90000520=-1879046880=ECF_FM_NO_INSTALL_PATH
Failed to obtain the install path
CALLED : DB2 Common, Fault Monitor Facility, fmGetInstPath
RETCODE : ECF=0x90000521=-1879046879=ECF_FM_NO_PERMISSION_TO_INSTALL_PATH
No proper access permisions to the install path
CALLSTCK:
[0] 0x00002B9DC66ADC89 pdOSSeLoggingCallback + 0x91
[1] 0x00002B9DC53B8A3B /opt/ibm/db2/lib64/libdb2osse.so.1 + 0x1B3A3B
[2] 0x00002B9DC53B88E1 ossLogRC + 0x6B
[3] 0x000000000040560A main + 0x1642
[4] 0x000000318721D994 __libc_start_main + 0xF4
[5] 0x0000000000403F2A __gxx_personality_v0 + 0x9A
[6] 0x0000000000000000 ?unknown + 0x0
[7] 0x0000000000000000 ?unknown + 0x0
[8] 0x0000000000000000 ?unknown + 0x0
[9] 0x0000000000000000 ?unknown + 0x0
日志里信息基本够分析了:基本是global.reg 文件和安装目录权限的问题。
看看相应的路径文件是不是被root 修改过权限,只能root 访问了。
一类是:
Failed to open the output registry
The registry does not exist.
Failed to get the instance record from the global registry file
The registry does not exist.
二类是:
No proper access permisions to the install path
Failed to obtain the install path
收起