Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: Update statistics performance

Posted By: Kenneth Makobe
Date: Monday, 26 July 2004, at 2:52 a.m.

In Response To: Update statistics performance (Kenneth Makobe )





-----Original Message-----
From: mac horn [mailto:mac.horn@cox.net]
Sent: Sunday, July 25, 2004 4:50 AM
To: 'Kenneth Makobe '
Subject: RE: Update statistics performance [3275]=20


Could you send your update stats script?
I hope you mistyped the size of your database. 35 gig should not take
anywhere that long.
We update stats on 4TB in a little over two hours with the recommended
high/medium.

mac


-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org]On
Behalf Of Kenneth Makobe
Sent: Wednesday, July 21, 2004 10:39 PM
To: ids@iiug.org
Subject: Update statistics performance [3275]


Hi all
Update Statistic takes a long duration of up to 13 hours to complete, =
our DB
is more than 35 gb. I tried to use PDQ ,PSORT_NPROCS and DBSPACETEMP =
and the
was only a slight improvement i.e from 13 to 12 hours. our IDS version =
is
17.31 uc5 Kindly advice on how this duration can be reduced
Below is the profile and i/o queue stats and onstat -F profile

Profile
dskreads pagreads bufreads =CAched dskwrits pagwrits bufwrits =CAched
229690758 36261273 617122098 62.78 28229782 19567333 287833239 90.19

isamtot open start read write rewrite delete commit
rollbk
144865383 30923634 247207201 3231528422 186584701 26339127 233319 =
47761
4

gp_read gp_write gp_rewrt gp_del gp_alloc gp_free gp_curs
0 0 0 0 0 0 0

ovlock ovuserthread ovbuff usercpu syscpu numckpts flushes
0 0 0 529902.17 13244.00 1267 2534

bufwaits lokwaits lockreqs deadlks dltouts ckpwaits compress seqscans
30833338 50871 3330742991 0 0 4886 396427 =
3670835

ixda-RA idx-RA da-RA RA-pgsused lchwaits
6695267 15958151 175978636 198623320 15834291

AIO I/O queues:
q name/id len maxlen totalops dskread dskwrite dskcopy
kio 0 0 0 0 0 0 0
kio 1 0 16 57579748 52927126 4652622 0
kio 2 0 0 0 0 0 0
kio 3 0 16 108007501 96187935 11819566 0
kio 4 0 16 97292492 85534898 11757594 0
adt 0 0 0 0 0 0 0
msc 0 0 1 9313 0 0 0
aio 0 0 2 36214109 2 36213915 0
omstat -F


Fg Writes LRU Writes Chunk Writes
61 5808527 35281444

address flusher state data
60050500 0 I 0 =3D 0X0
600509ec 1 I 0 =3D 0X0
60050ed8 2 I 0 =3D 0X0
600513c4 3 I 0 =3D 0X0
600518b0 4 I 0 =3D 0X0
60051d9c 5 I 0 =3D 0X0
60052288 6 I 0 =3D 0X0
60052774 7 C 79 =3D 0X4f
60052c60 8 I 0 =3D 0X0
6005314c 9 I 0 =3D 0X0
60053638 10 I 0 =3D 0X0
60053b24 11 I 0 =3D 0X0
60054010 12 I 0 =3D 0X0
600544fc 13 I 0 =3D 0X0
600549e8 14 C 78 =3D 0X4e
60054ed4 15 I 0 =3D 0X0
states: Exit Idle Chunk Lru


#!/bin/sh
########################################################################=
####
###
# update_stats D.L. Samuels 02/06/99
#
# Perform Informix recommended sequence of update statistics statements =
on the
# specified tables. Execute with no parameters for explanation of =
usage.
#
########################################################################=
####
###
if [ $# -ne 1 ]
then=20
echo "\nUsage:\n"=20
echo " `expr //$0 : '.*/\(.*\)'` DATABASE_NAME "TABLE_NAME =
TABLE_NAME..""
echo "\nWhere:\n"=20
echo " DATABASE_NAME =3D Name of the database to be updated."
echo " TABLE_NAME =3D Name of tables to update. If more than =
one table"
echo " is specified, the list of table names =
should be"
echo " enclosed in quotes with a white space =
separating"
echo " the table names. Wildcards can also be =
matched"
echo " by enclosing the table name and wildcards =
in"
echo " quotes.\n"
echo " To update all tables specify ALL.\n"

exit 1=20
fi

DBNAME=3D$1


########################################################################=
####
###
# The following query will return the columns needed for the various =
update
# statistics statements. The output of this query is piped to the awk =
script
# which follows.

### Loop through the list of tables specified:

TABLES=3D`cat tables.dat`

for TABNAME in $TABLES
do

-- A single UPDATE STATISTICS MEDIUM for columns which do not head an =
index:
#-- The hard coded value of " NONE" for all of these columns will =
cause
#-- the awk script to generate a single statement.
select t.tabname, " NONE" idxname, "1 medium" level, c.colno part, =
c.colname=20
from syscolumns c, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and c.colno not in (select part1=20
from sysindexes i=20
where i.tabid =3D c.tabid)
union all
#-- A separate UPDATE STATISTICS HIGH for each column which heads an =
index:
#-- (The column name is used as the index name here, so that if a =
column
#-- heads more than one index, it will only be processed once.)
select unique t.tabname, c.colname, "2 high" level, 1 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and c.colno =3D i.part1
union all
-- A separate UPDATE STATISTICS LOW for each multi-column index:
-- (The actual name of each index is included on each row returned =
by
-- this part of the query, allowing the awk script to group all
-- all columns of the same index together.)
select t.tabname, i.idxname, "3 low" level, 1 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part1
union all
select t.tabname, i.idxname, "3 low" level, 2 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part2
union all
select t.tabname, i.idxname, "3 low" level, 3 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part3
union all
select t.tabname, i.idxname, "3 low" level, 4 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part4
union all
select t.tabname, i.idxname, "3 low" level, 5 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part5
union all
select t.tabname, i.idxname, "3 low" level, 6 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part6
union all
select t.tabname, i.idxname, "3 low" level, 7 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part7
union all
select t.tabname, i.idxname, "3 low" level, 8 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part8
union all
select t.tabname, i.idxname, "3 low" level, 9 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part9
union all
select t.tabname, i.idxname, "3 low" level, 10 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part10
union all
select t.tabname, i.idxname, "3 low" level, 11 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part11
union all
select t.tabname, i.idxname, "3 low" level, 12 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part12
union all
select t.tabname, i.idxname, "3 low" level, 13 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part13
union all
select t.tabname, i.idxname, "3 low" level, 14 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part14
union all
select t.tabname, i.idxname, "3 low" level, 15 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part15
union all
select t.tabname, i.idxname, "3 low" level, 16 part, c.colname=20
from syscolumns c, sysindexes i, systables t
where t.tabname matches "$TABNAME"
and t.tabid >=3D 100
and t.tabtype =3D "T"
and c.tabid =3D t.tabid
and i.tabid =3D t.tabid
and i.part2 !=3D 0
and c.colno =3D i.part16
order by 1, 3, 2, 4

EOT

} |=20

########################################################################=
####
###
### The following awk script will take the results of the above query =
and
### output appropriate "update statistics" statements. The output is =
piped
### to dbaccess for execution.

awk -v DBNAME=3D$DBNAME '

### Initialization: Open the specified database.
BEGIN \
{
print "database " DBNAME ";";
LAST_BREAK=3D"";
}

### Every line:
{

# Split the line in to fields; Error if we dont have 6 fields!
if (split($0, PARAMETERS) !=3D 6)
{
print "?Internal error" | "cat >&2";
exit 1
}

# Assign fields to more symbolic names:
TABNAME =3D PARAMETERS[1]; # table name
IDXNAME =3D PARAMETERS[2]; # index name
TYPE =3D PARAMETERS[4]; # update type (high, medium, low)
COLNAME =3D PARAMETERS[6]; # column name

# Concatenate fields used for the control break which marks the end
# of one update statistics statement and the beginning of another:
BREAK =3D TABNAME IDXNAME TYPE;

# If this is not the first control break, finish off the previous =
update
# statistics statement:
if (LAST_BREAK !=3D "" && BREAK !=3D LAST_BREAK)
{
print ")"
print ";"
}

# For all control breaks, begin a new update statistics statement:
if (BREAK !=3D LAST_BREAK)
{
printf "%s", "update statistics " TYPE \
" for table " TABNAME " (" COLNAME
}
# If this line is not a control break, then simply add the column =
to
# the parameters of the update statistics statement:
else
{
printf "%s", ", " COLNAME
}

# Keep track of last control break values:
LAST_BREAK=3DBREAK;
}

### End of input: Complete the last "update statistics" statement.
END \
{
if (LAST_BREAK !=3D "")
{
print ")"
print ";"
}
else
{
print "!echo \"No such table(s)\""
}
}
' |=20

########################################################################=
####
###
### Execute the update statistics statements. Each is echoed to the =
standard
### output as it is executed so the user can see what is happening.

#$dbaccess -e

done

------_=_NextPart_000_01C472DC.6D852370--

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.