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: Restore + Logical log - caution

Posted By: Martin Fuerderer
Date: Tuesday, 24 January 2012, at 7:59 a.m.

In Response To: Re: Restore + Logical log - caution (Cesar Inacio Martins)

Yes. :)

... For complete restore (including log restore),
all NEEDED logical log backup tapes/files will be
requested by the engine.

Regards, Martin
--
Martin Fuerderer
IBM Informix Development Munich, Germany
Information Management

Read about the Informix Warehouse Accelerator:
http://tinyurl.com/the-iwa-blog

IBM Deutschland Research & Development GmbH
Chairman of the Supervisory Board: Martina Koederitz
Board of Management: Dirk Wittkopp
Corporate Seat: Boeblingen, Germany
Reg.-Gericht: Amtsgericht Stuttgart, HRB 243294

ids-bounces@iiug.org wrote on 01/24/2012 01:43:41 PM:
>
> Hi Martin,
>
> Thanks for your answer.
>
> If I understand right in few words you means:
>
> - The logical logs are included into archive 0 only for physical
> restore... not logical log restore...
>
> And this is just to keep the data integrity when back the database
> online.
>
> And this "saved" logs (inside of archive 0) isn't applicable when
> need to make a complete restore (physical + logical log).
>
> Then all logical logs backup tapes/files will be request by then engine.

>
> I'm Right?
>
> Regards
> Cesar
>
> On 24/1/2012 10:24, Martin Fuerderer wrote:
> > Hi,
> >
> > sorry that it took me quite a while to pick up on this
> > topic ... but here's an attempt to answer some of
> > the questions:
> >
> > - Cesar Inacio described the existing behavior correctly.
> > It is really the case that upon logical log restore the
> > oldest log file to be restored is the one that contains
> > the BEGIN WORK log record of the oldest transaction
> > that is (still) open at the time of the level-0 archive
> > checkpoint. As such, this log file can be much older
> > than the level-0 archive itself.
> > - This is not new behavior. It has been like that since a
> > long time (some say since 1988 and that's most
> > probably correct). At least I confirmed, that a 7.31.UD8
> > from 2004 had exactly this behavior.
> >
> > - For a level-0 archive to be restorable without logical log
> > restore, logical log records needed to make the restore
> > logically consistent are contained within the level-0 archive.
> > This is especially needed for the cases where logical logs
> > are never backed up but only discarded (think of LTAPEDEV
> > in the onconfig file set to /dev/null).
> > These needed logical log records are applied after the
> > physical restore (which is the copying of pages from tape
> > to chunks on disk) when transactions were open at the
> > time of the level-0 archive checkpoint. Applying these
> > logical log records rolls back those open transactions and
> > such makes the restore logically consistent.
> >
> > - If the physical restore of a level-0 archive is to be followed
> > by a logical restore, the space where logical log files reside
> > in the chunks on disk is cleared before doing the logical log
> > restore. This step is done to ensure that no obsolete log
> > record data or otherwise corrupt data is lingering in the log
> > space (in chunks on disk). After this clearing, all the needed
> > logical log files must be restored, including those that contain
> > log records of an open transaction that started before the
> > level-0 archive checkpoint.
> > [ It already has been discussed in this email thread, that
> >
> > these old log files may be needed to roll back the open
> >
> > transactions if they are not committed during the log roll
> >
> > forward. ]
> >
> > - The remaining question now is: Why then is this clearing
> > of the log space so important before starting the log restore?
> > The reason here is the way how the logical roll forward is
> > implemented (and this again is an implementation that always
> > was like this and has not changed recently). The logical roll
> > forward is processing the log records sequentially and after
> > each processed log record it is looking on disk whether there
> > are more log records to be processed. The end of the logical
> > roll forward is reached when the next logical log file page on
> > disk is all zero. And here is the catch: without the clearing of
> > logical log space before the restore of log files, some
> > "garbage data" may still be left over on disk (that also was not
> > overwritten by the physical restore phase). Such "garbage data"
> > may trick the logical roll forward into finding and applying
> > obsolete "stuff" after the last proper log record.
> > There are mainly three scenarios that can ensue when the
> > logical roll forward encounters "garbage data" on disk after the
> > last valid and correct log record:
> > - the log roll forward would recognize the garbage as garbage
> >
> > and correctly end the log roll forward. This is the good case.
> > - the log roll forward would think that there is a valid log
> >
> > record, but when attempting to apply it gets completely
> >
> > corrupted and cannot recover from this. In this case the
> >
> > log roll forward would just stop and leave the system in a
> >
> > hopelessly inconsistent state, making the whole restore a failure.
> > - the log rollforward would apply obsolete log records successfully.
> >
> > This probably would be a rare, but possible case, especially when
> >
> > there were old log files on that part of the disk before the restore.
> >
> > Even though the restore may well finish, this would probably be
> >
> > the worst case, as data has been corrupted without any notice.
> >
> > - As all this is not new behavior but was 'always' like this, there
> > is not much motivation to change it, at least not for the time
> > being. The current implementation is rather stable and reliable
> > (since quite a few years), an important attribute for the
> > backup and restore functionality. Improvements to avoid the
> > need of restoring those old log files would require medium level
> > redesign and implementation of otherwise reliably working code,
> > adding a real risk for introducing new problems and making the
> > code unstable (at least for some time) - a prospect that many
> > customers probably would not be happy with ...
> >
> > - Some years ago we also discussed the possibility of making the
> > checking for the validity of a log page found on disk much
> > stronger than it currently is. Also this would require redesign
> > and reimplementation, but additionally also diminish performance
> > during normal operation. The logging itself would have to create
> > more redundant data, adding it to the log records or the log
> > pages, so that later the checks can be more assuring. More
> > redundant data also means bigger log records and hence
> > more I/O when writing them (to disk). At the time of these
> > discussions, the costs involved were clearly deemed far
> > outweighing the possible benefits.
> >
> > Long response, I know ... :-)
> > But I hope it can clarify some things and give some background
> > info for better understanding ... which hopefully can help with
> > accepting the current implementation. At first sight it may look
> > quite dumb, but after all there is some thinking behind it. :)
> >
> > Regards, Martin
>
>
>
*******************************************************************************

> 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.