for   
Save 
Save 
   Join IIUG  

Informix News
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

Previous news items
 

Home Member Area About IIUG


Resources
IIUG Insider
IIUG Hotspots
IBM-Informix Links
IIUG RSS Feeds
Software Repository
Informix Products
Online Resources
Informix Library
Informix Books
IIUG Banners
Discussion
Technical Special
  Interest Groups

Other Discussion
Community
Events
Webcasts/Chat w Lab
IIUG TV
IIUG Sponsors
Informix Business Directory
IIUG Press Partners
Local User Groups
Rate the Vendor
Job Board
Fun Stuff

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

IDS Forum

RE: Please help: problem with index

Posted By:
Date:


The table is called 'LOG'. It seems it is insert-only
table. For such tables, procedure can be simplified:

1. Create new_table without indexes;
2. Create SPL-procedure that copies original
table to the new one. Run it online.
It's just took me 10 hours to copy 20 million table.
3. Using PDQ, create indexes for new table.
4. Run update statistics on new table.
5. Create simple SQL to load new table itaratively:
LOCK NEW_TABLE IN EXCLUSIVE MODE;
INSERT INTO NEW_TABLE
SELECT * FROM OLD_TABLE
WHERE (ID > (select max(ID) from NEW_TABLE);
(ID on new_table should be indexed by that time)
6. Run this SQL several times iteratively to minimize unsync
7. Stop system. Run iterative sync SQL again, Swap tables. Start system
(the system is really stopped for few seconds!!!)

------------------------------------------
Alexey Sonkin
Senior Database Administrator


> -----Original Message-----
> From: Palmer, George [mailto:George.Palmer@pegs.com]
> Sent: Friday, May 09, 2003 11:26 AM
> To: ids@iiug.org
> Subject: RE: Please help: problem with index [1104]
>
> Some observations.
>
> I have used a similar plan to alter tables in OLTP systems ( before in
> place
> alter)
> On occasion I also corrected index issue with same method.
>
> - The new table required the indexes built before the copy started.
> the triggers I used, used primary key values for updates, and deletes.
> as the table gets loaded, the trigger events for update and delete
> will slow down without indexes to find the rows. A delete or update
> is consider successful if no rows meet the query criteria.
>
> - Take care when building the triggers on the existing table. A create
> trigger is considered a table alter and can have consequences on
> the applications accessing the table ( depending on how the application
> was created/coded). The application I used this method against
> needed to be shut down during the trigger criterion.
>
> - The speed of the copy is not very important. With the triggers keeping
> the tables in "sync" the copy just needs to complete ( ignoring rows
> that have already "arrived" due to the insert trigger. The copy
> will need to avoid using indexes to find its data ( as the indexes
> are not in good shape in the existing table.)
>
> - After the copy is complete the outage for the renames remains the same.
>
> George
>
> -----Original Message-----
> From: ART KAGEL, .... [mailto:KAGEL@bloomberg.net]
> Sent: Friday, May 09, 2003 6:37 AM
> To: ids@iiug.org
> Subject: Re: Please help: problem with index [1103]
>
>
> Here are the steps:
>
> - create a new table with the same structure but no indexes or constraints
> - add triggers to the original table to maintain the copy up-to-date if
> needed
> ie INSERT, DELETE, and UPDATE triggers which should use stored
> procedures
> so
> they can ignore rows that have not yet been copied
> - copy the data from the original table (HP loader or my dbcopy utility
> are
> good tools for copying large quantities of data quickly with minimal
> impact)
> - index the table (if there are unique indexes or unique and/or primary
> key
> constraints start violations on it first and set constraints to
> filtering
> to
> remove offending rows that would prevent the indexes and constraints
> from
> being created)
> - add back the constraints
> - stop processing for a bit
> - rename the original table to a temp name
> - rename the new table to the original name
> - drop the original table.
>
> Dbcopy is included in the package utils2_ak available for download from
> the
> IIUG
> Software Repository.
>
> Art S. Kagel
>
> ----- Original Message -----
> From: Nadezda Bol.... <Nadezda.Boltaca@parex.lv>
> At: 5/ 9 5:15
>
> > Dear Informix Gurus,
> >
> > I have a problem with deleting old data (last 1 day's data from 300
> > stored days)
> > from the most important table of our system.
> > In online.log there are the following messages:
> >
> > 04:00:47 Assert Failed: Fragid 0x500002, Rowid 0x2ba4b002 not found for
> >
> > delete in partnum 600009
> > 04:00:47 Informix Dynamic Server 2000 Version 9.21.HC4
> > 04:00:47 Who: Session(1042796, cortex@strong, 14976, -1215118544)
> > Thread(1048556, sqlexec, b79140ec, 1)
> > File: exfmsupp.c Line: 853
> > 04:00:47 Results: Delete failed
> > 04:00:47 Action: Run 'oncheck -cI cortex:"cortex".tlog#tlog_acbalref'
> > 04:00:47 stack trace for pid 17705 written to
> > /ctxtools/informix/af.3d4da3f
> > 04:00:47 See Also: /ctxtools/informix/af.3d4da3f, shmem.3d4da3f.0
> > 04:01:02 Error writing '/ctxtools/informix/shmem.3d4da3f.0' errno = 28
> > 04:01:02 Process exited with return code 127: /bin/sh /bin/sh -c
> > /ctxtools/informix/etc/alarm_prog.sh 4 2 "Index failure:
> > 'cortex:"cortex".tlog#tlog_acbalref'." "Fragi
> >
> > Oncheck did not help:
> >
> > oncheck -cI cortex:tlog#tlog_acbalref
> >
> > Validating index tlog_acbalref for cortex:cortex.tlog...
> > Index tlog_acbalref
> > Index fragment in DBspace tlogidx
> > ERROR:No btree item exists for data row.
> > Fragid 0x500002 Rowid 0x2ba4b001 contains key value:
> > Key: "":" ":37435:
> > Please Drop and ReCreate Index tlog_acbalref for cortex:cortex.tlog.
> >
> > The problem is that this table is very large (about 10 milions records)
> > -
> > recreating index will take long time and we cannot stop our system
> > for so long time.
> >
> > Could you please advise me what else can I do except drop/create index?
> >
> > Thank you in advance.
> >
> > Best regards.
> > --
> > Nadezda Boltach
>

Messages In This Thread

  • Re: Please help: problem with index
    ART KAGEL, BLOOMBERG/ 65E 55TH -- Friday, 9 May 2003, at 9:37 a.m.
    • RE: Please help: problem with index
      Palmer, George -- Friday, 9 May 2003, at 11:25 a.m.
      • RE: Please help: problem with index
        Alexey Sonkin -- Friday, 9 May 2003, at 3:38 p.m.
    • RE: Please help: problem with index
      Colin Bull -- Friday, 9 May 2003, at 11:51 a.m.

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

IDS Forum is maintained by Administrator with WebBBS 5.12.

©2001 - 2007 International Informix Users Group.   All rights reserved.     Terms of use    
*** Powered By IBM Informix Dynamic Server V10.00 ***