473,473 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

db cfg: CATALOGCACHE_SZ obscurites.

Hello there.

1) According to documentation, setting
CATALOGCACHE_SZ = -1 means CATALOGCACHE_SZ = (MAXAPPLS*4)

But MAXAPPLS is set to AUTOMATIC, this means "no limit" or "no value". Again, according to documentation, CATALOGCACHE_SZ is allocated "when the database is initialized". Hence, I'm interesting, which value is really allocated instead of illusion (<no limit>*4).

"get db cfg" command does not help here, because literally displays "(MAXAPPLS*4)".

2) There would be no room for question (1) if I have a way to reliably check CATALOGCACHE_SZ value. But I have inconsistent results:
_______________________________________________
| |CATALOG | "catcacheh" (token of db2mtrk -d)
MAXAPPLS|CACHE_SZ| shown | I would expect...
--------+--------+--------+--------------------
(ignore) 100 192,0K 4K*100 = 400K
20 -1 64,0K 4K*(20*4) = 320K
AUTOMAT -1 64,0K (no assumptions)
-----------------------------------------------

Hence, I'm intresting, how are related CATALOGCACHE_SZ db config parameter, "catcacheh" token of db2mtrk, and real catalog cache size ?
--
Konstantin Andreev.
Jun 3 '07 #1
14 7018
Konstantin Andreev wrote:
Hello there.

1) According to documentation, setting
CATALOGCACHE_SZ = -1 means CATALOGCACHE_SZ = (MAXAPPLS*4)

But MAXAPPLS is set to AUTOMATIC, this means "no limit" or "no
value". Again, according to documentation, CATALOGCACHE_SZ is allocated
"when the database is initialized". Hence, I'm interesting, which value
is really allocated instead of illusion (<no limit>*4).
AUTOMATIC does not mean "no limit" or "no value".

Did you try DB2 GET DB CFG FOR <aliasSHOW DETAIL?
Jan M. Nelken
Jun 3 '07 #2
Konstantin Andreev wrote:
Hello there.

1) According to documentation, setting
CATALOGCACHE_SZ = -1 means CATALOGCACHE_SZ = (MAXAPPLS*4)

But MAXAPPLS is set to AUTOMATIC, this means "no limit" or "no
value". Again, according to documentation, CATALOGCACHE_SZ is
allocated "when the database is initialized". Hence, I'm interesting,
which value is really allocated instead of illusion (<no limit>*4).
AUTOMATIC doesn't mean "no limit" or "no value", it means the value is
determined by DB2 and dynamically adapted depending on circumstances.
>
"get db cfg" command does not help here, because literally
displays "(MAXAPPLS*4)".
Try the autoconfigure command instead, with the no-apply option, like this:

db2 autoconfigure using MAXAPPLS CATALOGCACHE_SZ apply none

It will show both the formula and the actual value.

HTH.

--
Jeroen
Jun 3 '07 #3
Thank everybody!
AUTOMATIC does not mean "no limit" or "no value". Did you try DB2 GET DB CFG FOR <aliasSHOW DETAIL?
"Show detail", of course! I've absolutely forgotten it.
--
Konstantin Andreev.
Jun 3 '07 #4
Konstantin Andreev wrote:
"Show detail", of course! I've absolutely forgotten it.
You could also use:

db2pd -db <alias-dbcfg

and grep (or find) keyword you need:
For orthodox Windows believers:

db2pd -db sample -dbcfg | find /i "maxappls"
For progressive Windows believers (who downloaded grep for Windows) and
Unix followers:

db2pd -db smple -dbcfg | grep -i maxappls
Jan M. Nelken
Jun 3 '07 #5
Jan M. Nelken wrote:
You could also use:
db2pd -db <alias-dbcfg
db2pd is my postponed headache. It just exits silently in my system. No complains/error messages, exit code is always zero, and random command line arguments does not change this ("db2pdcfg" behaves the same). So I should leave without it.
For progressive Windows believers (who downloaded grep for Windows)
db2pd -db smple -dbcfg | grep -i maxappls
For everybody, who has wrote more than one or two scripts for Windows, installing a proper set of unix utilities under Windows is a must. sed, awk, grep,... all are should be here.
--
Konstantin Andreev.
Jun 3 '07 #6
Konstantin Andreev wrote:
db2pd is my postponed headache. It just exits silently in my system. No
complains/error messages, exit code is always zero, and random command
line arguments does not change this ("db2pdcfg" behaves the same). So I
should leave without it.
As the wise man said: We will not fix problems we don't know about...

Can you capture system calls trace on some trivial invocation of db2pd,
for example:

db2pd -db sample -dbcfg

Make sure you get this on supported Linux distribution - see
http://www-306.ibm.com/software/data...inux/validate/ for details.

For DB2 V9 32-bit platform this would be RHEL 4, RHEL 5, SLES 9, SLES 10
and Novell Open Enterprise Server 9.

For each of those distributions specific kernel level and/or libraries
levels may be required.

Jan M. Nelken
Jun 4 '07 #7
On Jun 4, 10:02 pm, "Jan M. Nelken" wrote:
db2pd is my postponed headache. It just exits silently in my system. No complains/error messages, exit code is always zero, and random command line arguments does not change this.
As the wise man said: We will not fix problems we don't know about...
Certainly...
>
Can you capture system calls trace on some trivial invocation of db2pd, for example:

db2pd -db sample -dbcfg
| avalon ~ # strace db2pd -db psftprod -dbcfg 2>&1 | wc -l
| 445

It's a lot of output, I am not sure, is it appropriate to post the
trace to group? The traces are identical (accurate within memory
addresses) on invocations of db2pd with random arguments. The most
suspicios call is third preceding exit:

| access("/db2/srv/dbi/sqllib/lib/libdb2fmtdmp.so", F_OK) = -1 ENOENT
| setuid32(0) = 0
| exit_group(0) = ?

I've checked the DB2 v9 installation pack, there is no such file in
it.
Make sure you get this on supported Linux distribution
Too bad, I have only one installation of v9, and this linux distro
(gentoo) is not officially supported. If your time permits analyzing
this problem, I gratefully supply any required details (kernel,
libraries, and so on...).

I believe this in not distro related problem. Most likely, some simple
misconfiguration.
--
Konstantin Andreev.

Jun 6 '07 #8
Konstantin Andreev wrote:
It's a lot of output, I am not sure, is it appropriate to post the
trace to group? The traces are identical (accurate within memory
addresses) on invocations of db2pd with random arguments. The most
suspicios call is third preceding exit:

| access("/db2/srv/dbi/sqllib/lib/libdb2fmtdmp.so", F_OK) = -1 ENOENT
| setuid32(0) = 0
| exit_group(0) = ?

I've checked the DB2 v9 installation pack, there is no such file in
it.
Please also run this:

db2pd -v -debug db2pddbg

and include db2pddbg file with strace output.
You can uplaod compressed output to ftp server:

ftp.software.ibm.com

into directory

/ps/toibm/db2

as file:

stuuf4jun.gz

and I will have a look.
As for libdb2fmtdmp.so - this library is used for formatting internal
data structures. On customer systems internal data are written as hex dump.
This library is not needed in your case - it's not shipped to customers.
Jan M. Nelken

Jun 6 '07 #9
Jan M. Nelken wrote:
>It's a lot of output, I am not sure, is it appropriate to post the trace to group?
You can uplaod compressed output to ftp server:
ftp.software.ibm.com
into directory
/ps/toibm/db2

| # ftp ftp://ftp.software.ibm.com/
| Current remote directory is /.
| ncftp / cd /ps/toibm/db2
| Could not chdir to /ps/toibm/db2: server said: toibm: No such file or directory.
I've overlooked the /ps directory, but could not find something simular to 'toibm'. Looks like you mistyped the URL :(
--
Konstantin Andreev.
Jun 6 '07 #10
Ian
Konstantin Andreev wrote:
Jan M. Nelken wrote:
>>It's a lot of output, I am not sure, is it appropriate to post the
trace to group?
>You can uplaod compressed output to ftp server:
ftp.software.ibm.com
into directory
/ps/toibm/db2


| # ftp ftp://ftp.software.ibm.com/
| Current remote directory is /.
| ncftp / cd /ps/toibm/db2
| Could not chdir to /ps/toibm/db2: server said: toibm: No such file or
directory.
I've overlooked the /ps directory, but could not find something simular
to 'toibm'. Looks like you mistyped the URL :(

I think he meant you to send to

ftp://testcase.boulder.ibm.com/ps/toibm/db2

:-)
Jun 7 '07 #11
Konstantin Andreev wrote:
| # ftp ftp://ftp.software.ibm.com/
| Current remote directory is /.
| ncftp / cd /ps/toibm/db2
| Could not chdir to /ps/toibm/db2: server said: toibm: No such file or
directory.
Oops - indeed as Ian states - server name is testcase.boulder.ibm.com.

You did use db2pd when logged as instance owner, right?
Jan M. Nelken
Jun 7 '07 #12
Jan M. Nelken wrote:
You did use db2pd when logged as instance owner, right?
That is why !!! I did run db2pd as root. I've just checked - as instance owner db2pd works as expected. Without your genius guess I could never get it to know :(

Thank you a lot, Jan.
--
Konstantin Andreev.
Jun 7 '07 #13
Konstantin Andreev wrote:
Jan M. Nelken wrote:
>You did use db2pd when logged as instance owner, right?

That is why !!! I did run db2pd as root. I've just checked - as instance
owner db2pd works as expected. Without your genius guess I could never
get it to know :(
Perhaps a visit to:
http://publib.boulder.ibm.com/infoce...w/v9/index.jsp
would save you some pain?

Specially:
http://publib.boulder.ibm.com/infoce...c/r0011729.htm
states that db2pd requires:
Authorization

One of the following:

* On Linux and UNIX, the sysadm authority level. You must also be the
instance owner.
* On Windows operating systems, the sysadm authority level.
I am pleased that your problem is resolved.

Jan M. Nelken
Jun 7 '07 #14
Jan M. Nelken wrote:
>
* ...... You must also be the instance owner.
Not easily noticeable statement, I would say... Especially when it's unknown where to look for...

It worth to teach 'db2pd' to emit whichever diagnostic message instead of silent dieing...
--
Konstantin Andreev.
Jun 7 '07 #15

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

Similar topics

2
by: Mike Meyer | last post by:
Ok, I give up. I searched the CVS code, and can't find the place that turns an include_dirs option in setup.cfg into a list of directories. The reason I was looking for it is that I can't figure...
4
by: nek | last post by:
Greetings, Platform is W2K, DB2 V8.1 FP2. We have a large number of servers in different cities and I would like to occasionally update 'db cfg' parameters whenever needs arise. Instead of...
1
by: richard | last post by:
HI, anyone has the same issue. I need to copy db2 admin cfg from one instance to another. when I issue db2look -f -d data I only get UPDATE DBM CFG USING cpuspeed 3.109600e-007; UPDATE DBM CFG...
15
by: Andy S. | last post by:
Hi, I'm running DB2 UDB v 7.2 FP 9. I'm connected to my database (testdb) successfully as user db2admin. then i tried to run the following command: get db cfg for testdb
0
by: ozegar | last post by:
Hi, Why BDE Administrator use IDAPI.CFG or IDAPI32.CFG? Is this files is different by structure? And why sometimes it uses IDAPI.CFG, but sometimes IDAPI32.CFG? Is it because, wher installed...
0
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 Help gurus: I'm seeing this in my db2diag.log: 2007-08-28-15.57.58.858627-240 E8785115G359 LEVEL: Warning (OS) PID : 18117 TID :...
0
by: ruediger.papke | last post by:
Hi, I have an installation DB2 V9.1 on suse linux. because of an java error when trying to create the systools catalog i'm going to change the JDK-PATH with no success db2 get admin cfg .......
0
by: Lekh Raj | last post by:
Hi, I want to update dbm cfg parameters DFT_MON_BUFPOOL and DFT_MON_STMT from C program. I am using db2 version 9.1.2 on Linux platform When I use "db2 update dbm cfg using DFT_MON_BUFPOOL ON...
8
by: datapro01 | last post by:
When issuing a get db cfg command are we supposed to be getting the current value or future value of a parameter? For example, I issue a get db cfg against a certain database and get this: ...
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
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.