question on sysmasterdb
Posted in 2003
Topics: Storage & Space Management, SQL Development & Query Writing
Hi;Dear Sir; I'm a member of iiug with username "20337" named "khalafi" and email address "nilofkh@yahoo.com". I have some questions and problems in relation with system monitoring.Our system is a database using "Informix Dynamic Server 7.31.UD1" on Unix platform.When I use a query as follow , it give some information about databaseserver but the problem is that the showing informiation is defferent from the real information on system;eg. diskread shows 23333 while the real amount of it is 966.I wanted to know why the result of queries like this (queries on sysmasterdatabase) is different from reality?select d.name,fname[15,25] path_name,sum(pagesread) diskreads, sum(pageswritten) diskwrites from syschkio c,syschunks k,sysdbspaces d where d.dbsnum=k.dbsnum and k.chknum=c.chunknum group by 1,2 order by 1; WITH THANKS. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com
Hi
Sushil;
Thanks for your advice.But I think it's necessary to
mention that even in the cases that we do disk
initialization(eg. after oninit) we get the same
result.What's your oponion about that?Do you have any
solutions?!
Thanks in advance.
--- Sushil Shirodkar <sushilps@hotmail.com> wrote:
> Hi Nilofar,
>
> You are very humble and polite in writing email, you
> don't have
> to give all your information(including your
> membership number etc)
> just put your problem/question and folks around will
> reply to your question
> problem and its upto you whether you should opt for
> it or not.
>
> On this site we have good people/gurus who can give
> correct answers to your
> question.
>
> Ok. regarding your problem if you want to match your
> figures there
> are 2 ways :
>
> 1) Depends what "update statistics" you run, if you
> just run with
> "LOW" which is default then its ok and if you run
> its via MEDIUM
> or HIGH then the "sysdistrib" table gets updated
> and the figures
> could be different, in other words it depends
> when you run the
> query to match the figures.
>
> "Update Statistics" is whole big topic of
> discussion.
>
> I use script which is used to run UPDATE
> STATISTICS(LOW/MEDIUM/HIGH), and is
> based on the INDEXES, where clause & unused columns
> in the queries to the
> specific table.
>
> People on this site say that it is not advisable to
> drop rows from
> sysdistrib table, but I do drop the tables from
> sysdistrib before
> running "UPDATE STATISTICS" with MEDIUM/HIHG option,
> it doesn't make
> any difference with LOW option for sysdistrib.
>
> 2) Other option is you can zero out the counts by
> "onstat -z" and
> then try running your query and compare the
> results.
>
> This is just my thought on your problem, hope have
> not confused you.
>
>
> Sushil....
>
>
>
> >From: "nilofar kha...." <nilofkh@yahoo.com>
> >To: ids@iiug.org
> >Subject: question on sysmasterdb [915] Date: Sun,
> 13 Apr 2003 09:16:42
> >-0400 (EDT)
> >Received: from ace.iiug.org ([216.177.38.212]) by
> mc6-f32.law1.hotmail.com
> >with Microsoft SMTPSVC(5.0.2195.5600); Sun, 13 Apr
> 2003 06:42:10 -0700
> >Received: from ace.iiug.org (localhost
> [127.0.0.1])by ace.iiug.org
> >(8.12.8p1/8.12.8) with ESMTP id h3DDNhHu011472;Sun,
> 13 Apr 2003 09:23:56
> >-0400 (EDT)
> >Received: (from nobody@localhost)by ace.iiug.org
> (8.12.8p1/8.12.8/Submit)
> >id h3DDGgBf011377;Sun, 13 Apr 2003 09:16:42 -0400
> (EDT)
> >X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
> >Message-Id:
> <200304131316.h3DDGgBf011377@ace.iiug.org>
> >Apparently-To: forum.subscriber@iiug.org
> >Sender: forum.subscriber@iiug.org
> >Precedence: bulk
> >Return-Path: nobody@ace.iiug.org
> >X-OriginalArrivalTime: 13 Apr 2003 13:42:11.0022
> (UTC)
> >FILETIME=[7BE256E0:01C301C2]
> >
> >Hi;Dear Sir;
> >I'm a member of iiug with username "20337" named
> >"khalafi" and email address "nilofkh@yahoo.com".
> >I have some questions and problems in relation with
> >system monitoring.Our system is a database using
> >"Informix Dynamic Server 7.31.UD1" on Unix
> >platform.When I use a query as follow , it give
> some
> >information about databaseserver but the problem is
> >that the showing informiation is defferent from the
> >real information on system;eg. diskread shows 23333
> >while the real amount of it is 966.I wanted to know
> >why the result of queries like this (queries on
> >sysmasterdatabase) is different from reality?select
> >d.name,fname[15,25] path_name,sum(pagesread)
> >diskreads, sum(pageswritten) diskwrites
> >from syschkio c,syschunks k,sysdbspaces d
> >where d.dbsnum=k.dbsnum
> >and k.chknum=c.chunknum
> >group by 1,2
> >order by 1;
> >
> >WITH THANKS.
> >
> >
> >
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online, calculators,
> forms, and more
> >http://tax.yahoo.com
> >
>
>
>
_________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months
> FREE*.
> http://join.msn.com/?page=features/featuredemail
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Did you try running the query
after UPDATE STATISTICS,
is your "SYSTEM TABLES" build successfully when you
built your IDS, if yes then I wish some other folks could
shed some light here.
Sushil...
>From: "nilofar kha...." <nilofkh@yahoo.com>
>To: ids@iiug.org
>Subject: Re: question on sysmasterdb [917] Date: Mon, 14 Apr 2003 06:05:21
>-0400 (EDT)
>Received: from ace.iiug.org ([216.177.38.212]) by mc4-f4.law16.hotmail.com
>with Microsoft SMTPSVC(5.0.2195.5600); Mon, 14 Apr 2003 03:21:42 -0700
>Received: from ace.iiug.org (localhost [127.0.0.1])by ace.iiug.org
>(8.12.8p1/8.12.8) with ESMTP id h3EABpHu012583;Mon, 14 Apr 2003 06:11:55
>-0400 (EDT)
>Received: (from nobody@localhost)by ace.iiug.org (8.12.8p1/8.12.8/Submit)
>id h3EA5LuO012445;Mon, 14 Apr 2003 06:05:21 -0400 (EDT)
>X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
>Message-Id: <200304141005.h3EA5LuO012445@ace.iiug.org>
>Apparently-To: forum.subscriber@iiug.org
>Sender: forum.subscriber@iiug.org
>Precedence: bulk
>Return-Path: nobody@ace.iiug.org
>X-OriginalArrivalTime: 14 Apr 2003 10:21:42.0635 (UTC)
>FILETIME=[A4D1E3B0:01C3026F]
>
>Hi Sushil;
>Thanks for your advice.But I think it's necessary to
>mention that even in the cases that we do disk
>initialization(eg. after oninit) we get the same
>result.What's your oponion about that?Do you have any
>solutions?!
>Thanks in advance.
>--- Sushil Shirodkar <sushilps@hotmail.com> wrote:
> > Hi Nilofar,
> >
> > You are very humble and polite in writing email, you
> > don't have
> > to give all your information(including your
> > membership number etc)
> > just put your problem/question and folks around will
> > reply to your question
> > problem and its upto you whether you should opt for
> > it or not.
> >
> > On this site we have good people/gurus who can give
> > correct answers to your
> > question.
> >
> > Ok. regarding your problem if you want to match your
> > figures there
> > are 2 ways :
> >
> > 1) Depends what "update statistics" you run, if you
> > just run with
> > "LOW" which is default then its ok and if you run
> > its via MEDIUM
> > or HIGH then the "sysdistrib" table gets updated
> > and the figures
> > could be different, in other words it depends
> > when you run the
> > query to match the figures.
> >
> > "Update Statistics" is whole big topic of
> > discussion.
> >
> > I use script which is used to run UPDATE
> > STATISTICS(LOW/MEDIUM/HIGH), and is
> > based on the INDEXES, where clause & unused columns
> > in the queries to the
> > specific table.
> >
> > People on this site say that it is not advisable to
> > drop rows from
> > sysdistrib table, but I do drop the tables from
> > sysdistrib before
> > running "UPDATE STATISTICS" with MEDIUM/HIHG option,
> > it doesn't make
> > any difference with LOW option for sysdistrib.
> >
> > 2) Other option is you can zero out the counts by
> > "onstat -z" and
> > then try running your query and compare the
> > results.
> >
> > This is just my thought on your problem, hope have
> > not confused you.
> >
> >
> > Sushil....
> >
> >
> >
> > >From: "nilofar kha...." <nilofkh@yahoo.com>
> > >To: ids@iiug.org
> > >Subject: question on sysmasterdb [915] Date: Sun,
> > 13 Apr 2003 09:16:42
> > >-0400 (EDT)
> > >Received: from ace.iiug.org ([216.177.38.212]) by
> > mc6-f32.law1.hotmail.com
> > >with Microsoft SMTPSVC(5.0.2195.5600); Sun, 13 Apr
> > 2003 06:42:10 -0700
> > >Received: from ace.iiug.org (localhost
> > [127.0.0.1])by ace.iiug.org
> > >(8.12.8p1/8.12.8) with ESMTP id h3DDNhHu011472;Sun,
> > 13 Apr 2003 09:23:56
> > >-0400 (EDT)
> > >Received: (from nobody@localhost)by ace.iiug.org
> > (8.12.8p1/8.12.8/Submit)
> > >id h3DDGgBf011377;Sun, 13 Apr 2003 09:16:42 -0400
> > (EDT)
> > >X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
> > >Message-Id:
> > <200304131316.h3DDGgBf011377@ace.iiug.org>
> > >Apparently-To: forum.subscriber@iiug.org
> > >Sender: forum.subscriber@iiug.org
> > >Precedence: bulk
> > >Return-Path: nobody@ace.iiug.org
> > >X-OriginalArrivalTime: 13 Apr 2003 13:42:11.0022
> > (UTC)
> > >FILETIME=[7BE256E0:01C301C2]
> > >
> > >Hi;Dear Sir;
> > >I'm a member of iiug with username "20337" named
> > >"khalafi" and email address "nilofkh@yahoo.com".
> > >I have some questions and problems in relation with
> > >system monitoring.Our system is a database using
> > >"Informix Dynamic Server 7.31.UD1" on Unix
> > >platform.When I use a query as follow , it give
> > some
> > >information about databaseserver but the problem is
> > >that the showing informiation is defferent from the
> > >real information on system;eg. diskread shows 23333
> > >while the real amount of it is 966.I wanted to know
> > >why the result of queries like this (queries on
> > >sysmasterdatabase) is different from reality?select
> > >d.name,fname[15,25] path_name,sum(pagesread)
> > >diskreads, sum(pageswritten) diskwrites
> > >from syschkio c,syschunks k,sysdbspaces d
> > >where d.dbsnum=k.dbsnum
> > >and k.chknum=c.chunknum
> > >group by 1,2
> > >order by 1;
> > >
> > >WITH THANKS.
> > >
> > >
> > >
> > >
> > >
> > >__________________________________________________
> > >Do you Yahoo!?
> > >Yahoo! Tax Center - File online, calculators,
> > forms, and more
> > >http://tax.yahoo.com
> > >
> >
> >
> >
>_________________________________________________________________
> > Add photos to your e-mail with MSN 8. Get 2 months
> > FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - File online, calculators, forms, and more
>http://tax.yahoo.com
>
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
Well this is not realy my topic but
first it's intresting to know "What is" or "How did you find"
the "the real amount of it is 966."
/Arthur
----- Original Message -----
From: Sushil Shir.... <sushilps@hotmail.com>
To: <ids@iiug.org>
Sent: Monday, April 14, 2003 1:33 PM
Subject: Re: question on sysmasterdb [919]
> Did you try running the query after UPDATE STATISTICS,
> is your "SYSTEM TABLES" build successfully when you
> built your IDS, if yes then I wish some other folks could
> shed some light here.
>
> Sushil...
>
>
>
>
>
>
>
> >From: "nilofar kha...." <nilofkh@yahoo.com>
> >To: ids@iiug.org
> >Subject: Re: question on sysmasterdb [917] Date: Mon, 14 Apr 2003
06:05:21
> >-0400 (EDT)
> >Received: from ace.iiug.org ([216.177.38.212]) by
mc4-f4.law16.hotmail.com
> >with Microsoft SMTPSVC(5.0.2195.5600); Mon, 14 Apr 2003 03:21:42 -0700
> >Received: from ace.iiug.org (localhost [127.0.0.1])by ace.iiug.org
> >(8.12.8p1/8.12.8) with ESMTP id h3EABpHu012583;Mon, 14 Apr 2003 06:11:55
> >-0400 (EDT)
> >Received: (from nobody@localhost)by ace.iiug.org (8.12.8p1/8.12.8/Submit)
> >id h3EA5LuO012445;Mon, 14 Apr 2003 06:05:21 -0400 (EDT)
> >X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
> >Message-Id: <200304141005.h3EA5LuO012445@ace.iiug.org>
> >Apparently-To: forum.subscriber@iiug.org
> >Sender: forum.subscriber@iiug.org
> >Precedence: bulk
> >Return-Path: nobody@ace.iiug.org
> >X-OriginalArrivalTime: 14 Apr 2003 10:21:42.0635 (UTC)
> >FILETIME=[A4D1E3B0:01C3026F]
> >
> >Hi Sushil;
> >Thanks for your advice.But I think it's necessary to
> >mention that even in the cases that we do disk
> >initialization(eg. after oninit) we get the same
> >result.What's your oponion about that?Do you have any
> >solutions?!
> >Thanks in advance.
> >--- Sushil Shirodkar <sushilps@hotmail.com> wrote:
> > > Hi Nilofar,
> > >
> > > You are very humble and polite in writing email, you
> > > don't have
> > > to give all your information(including your
> > > membership number etc)
> > > just put your problem/question and folks around will
> > > reply to your question
> > > problem and its upto you whether you should opt for
> > > it or not.
> > >
> > > On this site we have good people/gurus who can give
> > > correct answers to your
> > > question.
> > >
> > > Ok. regarding your problem if you want to match your
> > > figures there
> > > are 2 ways :
> > >
> > > 1) Depends what "update statistics" you run, if you
> > > just run with
> > > "LOW" which is default then its ok and if you run
> > > its via MEDIUM
> > > or HIGH then the "sysdistrib" table gets updated
> > > and the figures
> > > could be different, in other words it depends
> > > when you run the
> > > query to match the figures.
> > >
> > > "Update Statistics" is whole big topic of
> > > discussion.
> > >
> > > I use script which is used to run UPDATE
> > > STATISTICS(LOW/MEDIUM/HIGH), and is
> > > based on the INDEXES, where clause & unused columns
> > > in the queries to the
> > > specific table.
> > >
> > > People on this site say that it is not advisable to
> > > drop rows from
> > > sysdistrib table, but I do drop the tables from
> > > sysdistrib before
> > > running "UPDATE STATISTICS" with MEDIUM/HIHG option,
> > > it doesn't make
> > > any difference with LOW option for sysdistrib.
> > >
> > > 2) Other option is you can zero out the counts by
> > > "onstat -z" and
> > > then try running your query and compare the
> > > results.
> > >
> > > This is just my thought on your problem, hope have
> > > not confused you.
> > >
> > >
> > > Sushil....
> > >
> > >
> > >
> > > >From: "nilofar kha...." <nilofkh@yahoo.com>
> > > >To: ids@iiug.org
> > > >Subject: question on sysmasterdb [915] Date: Sun,
> > > 13 Apr 2003 09:16:42
> > > >-0400 (EDT)
> > > >Received: from ace.iiug.org ([216.177.38.212]) by
> > > mc6-f32.law1.hotmail.com
> > > >with Microsoft SMTPSVC(5.0.2195.5600); Sun, 13 Apr
> > > 2003 06:42:10 -0700
> > > >Received: from ace.iiug.org (localhost
> > > [127.0.0.1])by ace.iiug.org
> > > >(8.12.8p1/8.12.8) with ESMTP id h3DDNhHu011472;Sun,
> > > 13 Apr 2003 09:23:56
> > > >-0400 (EDT)
> > > >Received: (from nobody@localhost)by ace.iiug.org
> > > (8.12.8p1/8.12.8/Submit)
> > > >id h3DDGgBf011377;Sun, 13 Apr 2003 09:16:42 -0400
> > > (EDT)
> > > >X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
> > > >Message-Id:
> > > <200304131316.h3DDGgBf011377@ace.iiug.org>
> > > >Apparently-To: forum.subscriber@iiug.org
> > > >Sender: forum.subscriber@iiug.org
> > > >Precedence: bulk
> > > >Return-Path: nobody@ace.iiug.org
> > > >X-OriginalArrivalTime: 13 Apr 2003 13:42:11.0022
> > > (UTC)
> > > >FILETIME=[7BE256E0:01C301C2]
> > > >
> > > >Hi;Dear Sir;
> > > >I'm a member of iiug with username "20337" named
> > > >"khalafi" and email address "nilofkh@yahoo.com".
> > > >I have some questions and problems in relation with
> > > >system monitoring.Our system is a database using
> > > >"Informix Dynamic Server 7.31.UD1" on Unix
> > > >platform.When I use a query as follow , it give
> > > some
> > > >information about databaseserver but the problem is
> > > >that the showing informiation is defferent from the
> > > >real information on system;eg. diskread shows 23333
> > > >while the real amount of it is 966.I wanted to know
> > > >why the result of queries like this (queries on
> > > >sysmasterdatabase) is different from reality?select
> > > >d.name,fname[15,25] path_name,sum(pagesread)
> > > >diskreads, sum(pageswritten) diskwrites
> > > >from syschkio c,syschunks k,sysdbspaces d
> > > >where d.dbsnum=k.dbsnum
> > > >and k.chknum=c.chunknum
> > > >group by 1,2
> > > >order by 1;
> > > >
> > > >WITH THANKS.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >__________________________________________________
> > > >Do you Yahoo!?
> > > >Yahoo! Tax Center - File online, calculators,
> > > forms, and more
> > > >http://tax.yahoo.com
> > > >
> > >
> > >
> > >
> >_________________________________________________________________
> > > Add photos to your e-mail with MSN 8. Get 2 months
> > > FREE*.
> > > http://join.msn.com/?page=features/featuredemail
> > >
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online, calculators, forms, and more
> >http://tax.yahoo.com
> >
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
Related threads
- IDS not writing to online.log
- Help!!! syntax error
- installclientsdk bug?
- RamDisk tempdbs boot script for Linux