473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Too many open files error on db2diag.log

Whenever datastage (ETL Tool) tries to establish more than 2
connection to database it fails with the error SQL1224N A database
agent could not be started to service a request, or was terminated as
a result of a database system shutdown or a force command.
SQLSTATE=55032

Environment:
AIX 5.3
DB2 UDB V8.1 FP 14
It has been less than a week since a fresh DB2 Installation
Instance type : Server, 64 Bit

Following error appears on db2diag.log
2007-02-27-03.06.39.415586+300 E11838A428 LEVEL: Warning (OS)
PID : 331976 TID : 1 PROC : db2spmrsy 0
INSTANCE: cardinst NODE : 000
APPHDL : 0-6
FUNCTION: DB2 UDB, oper system services, sqloopenp, probe:80
CALLED : OS, -, unspecified_system_function
OSERR : EEXIST (17) "Do not specify an existing file."
DATA #1 : File name, 39 bytes
/home/cardinst/sqllib/spmlog/SPMLOG.LCF

2007-02-27-03.06.39.449626+300 E12267A1022 LEVEL: Event
PID : 405722 TID : 1 PROC : db2star2
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
MESSAGE : ADM7513W Database manager has started.
START : DB2 DBM
DATA #1 : Build Level, 144 bytes
Instance "cardinst" uses "64" bits and DB2 code release "SQL08027"
with level identifier "03080106".
Informational tokens are "DB2 v8.1.1.128", "s061108", "U810098",
FixPak "14".
DATA #2 : System Info, 224 bytes
System: AIX grf2 3 5 00CB874E4C00
CPU: total:4 online:4 Threading degree per core:2
Physical Memory(MB): total:3824 free:254
Virtual Memory(MB): total:8304 free:4725
Swap Memory(MB): total:4480 free:4471
Kernel Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
shmMax:68719476736 shmMin:1 shmIDs:131072
shmSegments:68719476736 semIDs:131072 semNumPerID:
65535
semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
2007-02-27-03.07.31.061729+300 I13290C499 LEVEL: Severe (OS)
PID : 463092 TID : 1 PROC : osh
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, SQO Memory Management, sqlocshr2, probe:200
CALLED : OS, -, shmat
OSERR : EMFILE (24) "Too many open files"
DATA #1 : Memory set handle, PD_TYPE_OSS_MEM_SET_HDL, 20 bytes
0x2FF1BAE0 : FFFF FFFF FFFF FFFF 0000 0000 0080
0017 ................
0x2FF1BAF0 : 0004 0000 ....
I've set DB2ENVLIST to EXTSHM but still the problem persists.
Any suggestions ?
Sam.

Feb 27 '07 #1
2 12125
On Feb 26, 11:14 pm, "Sam Durai" <reachsamdu...@gmail.comwrote:
Whenever datastage (ETL Tool) tries to establish more than 2
connection to database it fails with the error SQL1224N A database
agent could not be started to service a request, or was terminated as
a result of a database system shutdown or a force command.
SQLSTATE=55032

Environment:
AIX 5.3
DB2 UDB V8.1 FP 14
It has been less than a week since a fresh DB2 Installation
Instance type : Server, 64 Bit

Following error appears on db2diag.log
2007-02-27-03.06.39.415586+300 E11838A428 LEVEL: Warning (OS)
PID : 331976 TID : 1 PROC : db2spmrsy 0
INSTANCE: cardinst NODE : 000
APPHDL : 0-6
FUNCTION: DB2 UDB, oper system services, sqloopenp, probe:80
CALLED : OS, -, unspecified_system_function
OSERR : EEXIST (17) "Do not specify an existing file."
DATA #1 : File name, 39 bytes
/home/cardinst/sqllib/spmlog/SPMLOG.LCF

2007-02-27-03.06.39.449626+300 E12267A1022 LEVEL: Event
PID : 405722 TID : 1 PROC : db2star2
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
MESSAGE : ADM7513W Database manager has started.
START : DB2 DBM
DATA #1 : Build Level, 144 bytes
Instance "cardinst" uses "64" bits and DB2 code release "SQL08027"
with level identifier "03080106".
Informational tokens are "DB2 v8.1.1.128", "s061108", "U810098",
FixPak "14".
DATA #2 : System Info, 224 bytes
System: AIX grf2 3 5 00CB874E4C00
CPU: total:4 online:4 Threading degree per core:2
Physical Memory(MB): total:3824 free:254
Virtual Memory(MB): total:8304 free:4725
Swap Memory(MB): total:4480 free:4471
Kernel Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
shmMax:68719476736 shmMin:1 shmIDs:131072
shmSegments:68719476736 semIDs:131072 semNumPerID:
65535
semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
2007-02-27-03.07.31.061729+300 I13290C499 LEVEL: Severe (OS)
PID : 463092 TID : 1 PROC : osh
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, SQO Memory Management, sqlocshr2, probe:200
CALLED : OS, -, shmat
OSERR : EMFILE (24) "Too many open files"
DATA #1 : Memory set handle, PD_TYPE_OSS_MEM_SET_HDL, 20 bytes
0x2FF1BAE0 : FFFF FFFF FFFF FFFF 0000 0000 0080
0017 ................
0x2FF1BAF0 : 0004 0000 ....

I've set DB2ENVLIST to EXTSHM but still the problem persists.

Any suggestions ?
Sam.
Hi Sam,

Have you verified that EXTSHM=ON is exported in your environment at
the time that the osh process is started (I assume this is a tool
provided with ETL?). You don't need to add EXTSHM to DB2ENVLIST,
since it's the client that is hitting a problem, not the server (the
server is 64-bit, so is immune from this problem). If the osh tool is
available in a 64-bit mode, that should workaround this problem as
well.

If you're still having trouble with this, you might need to configure
a TCP/IP loopback - your client connections will then use TCP/IP for
communication with the server, instead of shared memory. Here's a
link to an (old) article that describes EXTSHM and TCP/IP loopbacks in
more detail:
http://www-1.ibm.com/support/docview...=utf-8&lang=en

Cheers,
Liam.

Feb 27 '07 #2
On Feb 27, 10:10 am, "Liam Finnie" <lfin...@ca.ibm.comwrote:
On Feb 26, 11:14 pm, "Sam Durai" <reachsamdu...@gmail.comwrote:
Whenever datastage (ETL Tool) tries to establish more than 2
connection to database it fails with the error SQL1224N A database
agent could not be started to service a request, or was terminated as
a result of a database system shutdown or a force command.
SQLSTATE=55032
Environment:
AIX 5.3
DB2 UDB V8.1 FP 14
It has been less than a week since a fresh DB2 Installation
Instance type : Server, 64 Bit
Following error appears on db2diag.log
2007-02-27-03.06.39.415586+300 E11838A428 LEVEL: Warning (OS)
PID : 331976 TID : 1 PROC : db2spmrsy 0
INSTANCE: cardinst NODE : 000
APPHDL : 0-6
FUNCTION: DB2 UDB, oper system services, sqloopenp, probe:80
CALLED : OS, -, unspecified_system_function
OSERR : EEXIST (17) "Do not specify an existing file."
DATA #1 : File name, 39 bytes
/home/cardinst/sqllib/spmlog/SPMLOG.LCF
2007-02-27-03.06.39.449626+300 E12267A1022 LEVEL: Event
PID : 405722 TID : 1 PROC : db2star2
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
MESSAGE : ADM7513W Database manager has started.
START : DB2 DBM
DATA #1 : Build Level, 144 bytes
Instance "cardinst" uses "64" bits and DB2 code release "SQL08027"
with level identifier "03080106".
Informational tokens are "DB2 v8.1.1.128", "s061108", "U810098",
FixPak "14".
DATA #2 : System Info, 224 bytes
System: AIX grf2 3 5 00CB874E4C00
CPU: total:4 online:4 Threading degree per core:2
Physical Memory(MB): total:3824 free:254
Virtual Memory(MB): total:8304 free:4725
Swap Memory(MB): total:4480 free:4471
Kernel Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
shmMax:68719476736 shmMin:1 shmIDs:131072
shmSegments:68719476736 semIDs:131072 semNumPerID:
65535
semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
2007-02-27-03.07.31.061729+300 I13290C499 LEVEL: Severe (OS)
PID : 463092 TID : 1 PROC : osh
INSTANCE: cardinst NODE : 000
FUNCTION: DB2 UDB, SQO Memory Management, sqlocshr2, probe:200
CALLED : OS, -, shmat
OSERR : EMFILE (24) "Too many open files"
DATA #1 : Memory set handle, PD_TYPE_OSS_MEM_SET_HDL, 20 bytes
0x2FF1BAE0 : FFFF FFFF FFFF FFFF 0000 0000 0080
0017 ................
0x2FF1BAF0 : 0004 0000 ....
I've set DB2ENVLIST to EXTSHM but still the problem persists.
Any suggestions ?
Sam.

Hi Sam,

Have you verified that EXTSHM=ON is exported in your environment at
the time that the osh process is started (I assume this is a tool
provided with ETL?). You don't need to add EXTSHM to DB2ENVLIST,
since it's the client that is hitting a problem, not the server (the
server is 64-bit, so is immune from this problem). If the osh tool is
available in a 64-bit mode, that should workaround this problem as
well.

If you're still having trouble with this, you might need to configure
a TCP/IP loopback - your client connections will then use TCP/IP for
communication with the server, instead of shared memory. Here's a
link to an (old) article that describes EXTSHM and TCP/IP loopbacks in
more detail:http://www-1.ibm.com/support/docview...SSEPGG&q1=EXTS...

Cheers,
Liam.
Establishing a loopback connection solved the problem. Thanks for the
inputs.

Feb 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Kane | last post by:
Good afternoon, I'm trying to set up a clustered DB2 v7.1 database on Redhat Linux 7.3. I've followed the instructions (as far as I know) in the accompanying documentation to set up the database...
7
by: Shawn | last post by:
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and no new line written into it for few days. The last lines in db2diag.log shows: Warning: active log held by dirty pages....
2
by: Rhino | last post by:
I am trying to write a trigger/UDF combination that closely follows the example given in the following DeveloperWorks article:...
2
by: Kamlesh | last post by:
Hello, Under the /home/db2inst1/sqllib/db2dump folder, I have lot of files created. Below is a snapshot of the contents: -rw-rw-rw- 1 db2inst1 db2grp1 3583 Nov 03 2004 a86516.000...
6
by: Racerx | last post by:
Hi All: I am using db2 udb 8.1 fixpack 3 on AIX 5 I am recieving ht e following message in my DIAGLOG ::: ==============================================================...
7
by: pike | last post by:
db2 8.1 FP11 on AIX 5.3.0.0 . The db2diag.log is intermittently reporting EMFILE (24) "Too many open files" errors. The culprit is always db2hmon. Sample db2diag.log output follows: ...
6
by: KG | last post by:
Hi, Does anyone knows how to recover the test file db2diag.log. By mistake I have delete the contents of db2diag.log, wondering if I could restore the contents of my db2diag.log.
3
by: zgh1970 | last post by:
Hi, These day I checked the db2diag.log of db2 v8.1 FP 10 on aix and found the same error appered every 6 minutes: 2007-10-23-09.43.31.891799-240 I1486C411 LEVEL: Severe PID : 41826...
0
by: Norm | last post by:
Has anyone used automaint_get_policyfile and automaint_set_policyfile? There seems to be a few bugs. I called automaint_get_policyfile and in <DaysOfMonthlabel it ranges from 1 through 31. If...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.