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: Several rollbacks on logical-logs

Posted By: Alexandre Marini
Date: Monday, 22 June 2009, at 8:04 a.m.

In Response To: Re: Several rollbacks on logical-logs (Art Kagel)

Mr Art, your explanation is so clear, that I thought "how didn´t we
think about this before???"
KKKKKK
I´ve already forward the information to the developers, thanks a lot!

Alexandre Marini

Analista de Tecnologia da Informação - DBA

SEFAZ-MS / UIMP / Sistemas: Fronteiras e SIG-DW

Art Kagel escreveu:
> Failed inserts are expensive because the engine does not realize that the
> insert is causing a duplicate row until the row and all of its index entries
> exist, so, if there is a duplicate primary or unique key or a duplicate
> unique index entry then that portion of the transaction has to be rolled
> back, yes, even if the update is committed.
>
> It is much cheaper to try the update first and check the number of rows
> affected by the update (updating zero rows is not an error) to make sure
> that it is one and not zero. This is because the update will use the unique
> index that is causing the duplicate row failure on insert and immediately
> return having update no rows since the row was not there. Then if the
> update updated no rows you can then perform the insert.
>
> Rule of thumb: Only if about 70% or more of the operations will result in
> a successful insert should you try the insert before the update. If even
> 31% of the operations result in an update being the final successful
> operation, you should be doing the update first. This is an easy fix. I
> patched a similar program for a client last year and the mods took about 5
> minutes in emacs (probably would have taken me 8 minutes in vi) including
> reindenting the code that had been moved around.
>
> The var you need to check after the attempted update is sqlca.sqlerrd[2] in
> ESQL/C or sqlca.sqlerrd[3] in 4GL.
>
> Art
>
> Art S. Kagel
> Oninit (www.oninit.com)
> IIUG Board of Directors (art@iiug.org)
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions and
> do not reflect on my employer, Oninit, the IIUG, nor any other organization
> with which I am associated either explicitly or implicitly. Neither do
> those opinions reflect those of other individuals affiliated with any entity
> with which I am affiliated nor those of the entities themselves.
>
> On Fri, Jun 19, 2009 at 10:12 AM, Alexandre Marini <
> amarini@fazenda.ms.gov.br> wrote:
>
>
>> Ok!!! Now I could find the table around the rollbacks.
>>
>> On the HINSERT line, there´s the table partnum,
>> and on the next two ADDITEM lines, there are 2 indexes partnum (the 2
>> indexes that the above table contains).
>>
>> My doubt is:
>> This sql statement mentioned by the HINSERT line, could it be an update
>> clause, or just an insert generate this kind of record?
>>
>> -------------------------------------------------------
>> Explaining:
>> our r4gl program tryes to do an insert on the table first,
>> and then whe analyse the sql errorcodes, like these two
>> if sqlca.sqlcode = -239 or sqlca.sqlcode = -268 then
>>
>> "we call an update function."
>>
>> Our big rollbacks on logical-logs are happening, even if the application
>> doesn´t indicate any errors on its log.
>>
>> Is that normal, the database should really record these rollbacks?
>>
>> I´m not understanding if there´s really an application error, or a
>> database normal task,
>> because the application had entered the "if" statement above ?
>>
>> Regards, friends.
>>
>> Alexandre Marini
>>
>> Analista de Tecnologia da Informação - DBA
>>
>> msn: alexandre_marini@hotmail.com
>>
>> SEFAZ-MS / UIMP / Sistemas: Fronteiras e SIG-DW
>>
>> David Linthwaite escreveu:
>>
>>> Hi Alexandre
>>>
>>> The extract shows an insert operation into table with hex partnum 600249.
>>> If you find out the table that is being operated on ( select
>>> hex(partnum),dbsname[1,20], tabname[1,20] from sysmaster:systabnames
>>>
>> where
>>
>>> partnum='0x600249' ) then maybe that will give you a clue as to what is
>>> going on.
>>>
>>> Regards
>>>
>>> David Linthwaite
>>> Lintel Software Consultancy Ltd
>>> IBM Business Partner
>>>
>>> Tel.: 01244 357250
>>> Fax.: 01244 357248
>>>
>>> mailto:dlinthwaite@lintel.co.uk
>>>
>>> -----Original Message-----
>>> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
>>> Alexandre Marini
>>> Sent: 17 June 2009 13:59
>>> To: ids@iiug.org
>>> Subject: Several rollbacks on logical-logs [16065]
>>>
>>> Hello everybody!
>>> We´re having several rollback recordins on our logical-logs, generated by
>>> dba transactions, on our 11.50.FC4 instance running on a linux_64
>>>
>> machine,
>>
>>> as follows:
>>>
>>> log uniqid: 971.
>>> addr len type xid id link
>>> 9c07018 56 BEGIN 1488 971 0 06/17/2009 07:10:01
>>> 54374 *dba*
>>> 9c07050 732 HINSERT 1488 0 9c07018 600249 41606 665 9c0732c 68 ADDITEM
>>>
>> 1488
>>
>>> 0 9c07050 60024a 41606 147 1 7 9c07370 64 ADDITEM 1488 0 9c0732c 6003c6
>>> 41606 10 1 4 9c073b0 48 CLR 1488 0 9c07370 a 9c073e0 48 CLR 1488 0
>>>
>> 9c0732c
>>
>>> 93 9c07410 40 CLR 1488 0 9c07050
>>> 9c07438 56 ROLLBACK 1488 0 9c07018 06/17/2009 07:10:01
>>>
>>> There´s an enormous quantity of these rollbacks (around 110+) recordings
>>>
>> per
>>
>>> *second *of logical-log!!!
>>>
>>> The main question is:
>>> 1) how can we trace it, because with our sql trace option running for
>>>
>> user
>>
>>> "dba", it doesn´t appear any record of rollback!!!
>>> 2) there are several r4gl programs running constantly on dba´s crontab
>>>
>> file,
>>
>>> but on these application logs, there´s no recording of transaction
>>> errors....
>>>
>>> We´re desperate to find out what´s originating these kind of records,
>>>
>> that´s
>>
>>> elevating our use of logical-logs too much (the fill time of the above
>>> logical-log was):
>>> 50 *971* 100 MB 100 % 3_2508828 2009-06-17 07:10:32 Used and Backed Up
>>>
>> *575
>>
>>> KB/SEC*
>>>
>>> We´re RTO enabling with
>>> RTO_SERVER_RESTART=600 seconds Estimated recovery time 14 seconds
>>>
>>> but we have a task running a checkpoint in every 40 minutes.
>>>
>>> If someone could give us an idea of tracing these events, we´d
>>>
>> appreciate!
>>
>>> Regards.
>>>
>>>
>>
>>
>>
> *******************************************************************************
>
>> Forum Note: Use "Reply" to post a response in the discussion forum.
>>
>>
>>
>
> --0016e6d27ed19a08b0046cb7a01e
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>

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.