Save 
Join IIUG
 for   
 

Informix News
29 July 09 - Wall Street Journal - IBM to Acquire SPSS, Adding to Acquisitions... Read
11 February 09 - InformationWeek - IBM Drifts Slowly Toward Mainstream Cloud Computing... Read
11 February 09 - CNNMoney.com - IBM to Deliver Software via Cloud Computing With Amazon Web Services... Read
07 January 09 - Huliq News - IBM Power Servers Helps Bank of Chengdu Build Up Core Banking System.. Read
04 December 08 - Steeleye - Multicarta achieves 99.997% uptime for its Informix-based Credit Card Authorization Centre... Read
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read





End of Support Dates

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

IDS Forum

RE: figuring out extents

Posted By: Floyd Wellershaus
Date: Tuesday, 10 May 2005, at 8:27 a.m.

In Response To: figuring out extents (Floyd Wellershaus )

Thanks. It's cool, but what I really want is one that will tell me how to size the extents. what the first and next extent sizes should be.



Bono Vox <in4mixperu@hotmail.com> wrote:
http://www.iiug.org/software/archive/extentsize

============================================================

From: Clem Akins
Subject: Extent Sizes

In keeping with the current threads on extents and row sizing, here's
a little script that I copied from the Informix SQL Tutorial.

It was written on a DEC Ultrix box, and runs without modification on a
new Digital Unix machine. Maybe it will run on yours. Let me know if
you find fault with it.

Enjoy,
__________________________________________________________________
| Clem Akins Standard Disclaimers Apply |
|Reynolds Metals Co, Alloys Plant "Climb High, Cave Deep!" |
| Muscle Shoals, Alabama USA cwakins@leia.alloys.rmc.com |
|________________________________________________________________|

BEGIN SCRIPT - - - - -
#!/bin/sh

#set -x

# calculate extent sizing for a table
# and upper limit on extents for a table
# these formulas taken from
# Informix Guide to SQL Tutorial v4.10 July 1991 pg 10-12
#
# cwa 5-18-93

pgsize=2048 #in tbconfig file
pageuse=`expr $pgsize - 28`
rowsize=0

echo "Enter the estimated number of rows: "
read estrows

echo "How many columns in the table? "
read numcols

colspace=`expr $numcols \* 4`

echo "Enter the maximum row size (from tbcheck)"
echo "or zero to describe each column one-by-one: "
read rowsize

if [ $rowsize = 0 ]
then
i=0
while [ $i -lt $numcols ]
do
i=`expr $i + 1`
clear
echo ""
echo ""
echo " TEXT and BYTE: ................. 56 bytes"
echo " SMALLINT: ....................... 2 bytes"
echo " INTEGER: ........................ 4 bytes"
echo " SMALLFLOAT: ..................... 4 bytes"
echo " FLOAT: .......................... 8 bytes long"
echo " SERIAL: ......................... 4 bytes long"
echo " DATE: ........................... 4 bytes long"
echo ""
echo " MONEY & DECIMAL: 1/2 total digits + 1 (rounded up)"
echo ""
echo " DATETIME & INTERVAL:"
echo " length is (((sum of digits)/2) +1) (rounded up)"
echo " digits are:"
echo " YEAR: .......4 digits (unless you specified more)"
echo " FRACTION: ...3 digits (unless you specified more)"
echo " all others: .2 digits (unless you specified more)"
echo ""
echo " CHAR columns as defined"
echo ""
echo "Enter the size in bytes of column $i: "
read sizetemp
rowsize=`expr $rowsize + $sizetemp`
done

rowsize=`expr $rowsize + 4`
fi

echo "How many indexes in the table? "
read numindexes

ixspace=`expr $numindexes \* 12`

ixparts=0
ixtemp=0
i=0
while [ $i -lt $numindexes ]
do
i=`expr $i + 1`
echo "Enter the number of columns in index $i: "
read numixcols
ixtemp=`expr $numixcols \* 4`
ixparts=`expr $ixparts + $ixtemp`
done

echo "The size of the row is: $rowsize"

if [ $rowsize -le $pageuse ]
then
homerow=$rowsize
overpage=0
else
homerow=`expr 4 + rowsize % pageuse`
overpage=`expr $rowsize / $pageuse`
fi

datrows=`expr $pageuse / $homerow`

if [ $datrows -gt 255 ]
then
datrows=255
fi

dattemp=`expr $estrows % $datrows` #modulo (remainder)
if [ $dattemp != 0 ]
then
datpages=`expr $estrows / $datrows`
datpages=`expr 1 + $datpages`
else
datpages=`expr $estrows / $datrows`
fi

expages=`expr $overpage \* $estrows`
totpages=`expr $datpages + $expages`
echo "Total pages required for this table: $totpages"

exttemp=`expr $colspace + $ixspace + $ixparts + 84`
extspace=`expr $pgsize - $exttemp`
limit=`expr $extspace / 8`
echo "Maximum number of extents allowed for this table: $limit"
END SCRIPT - - - - - - -

==============================================================











>From: "Floyd Welle...."
>To: ids@iiug.org
>Subject: figuring out extents [4889] Date: Mon, 9 May 2005 11:07:12 -0400
>(EDT)
>
>Hello,
>Does anyone have a script to be able to figure out the storage parameters (
>first extent and next extent sizes ), based on a table schema, number of
>expected rows, and growth ?
>
>Thanks,
>floyd
>
>




========================
-<<Floyd Wellershaus>>-
Database Administrator
Unix Administrator

email: fwellers@yahoo.com
Home: 703-430-0805
Cell: 703-477-6045
========================



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.