dbTalk Databases Forums  

[Info-Ingres] Thoughts on a possible additional flag to auditdb

comp.databases.ingres comp.databases.ingres


Discuss [Info-Ingres] Thoughts on a possible additional flag to auditdb in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Harden
 
Posts: n/a

Default [Info-Ingres] Thoughts on a possible additional flag to auditdb - 06-14-2011 , 10:39 PM






Greetings All,



I recently found it necessary to recover an inconsistent dB where the
checkpoint was flagged as a good one, but re-applying the journals failed

With 'redo error' so the completion of the rollfowarddb process was still an
inconsistent db.



Further investigation found that there was only one table with this error,
so we ran auditdb -table=schedules >file.txt to capture all transactions
against the table,

Then run rollforwarddb verbose to get the failurepoint, identified it in the
auditdb output file, then

Finally run rollforwarddb with the ignore flag so the final result was a
fully restored and up to date dB with the exception of the

one table, which was then made physically and logically consistent, then
manually had to read the statements from the relevant point in the auditdb
output file and reapply them



The output from auditdb is not the clearest / easiest to read and
understand.





What I think would be a really useful addition to auditdb would be something
like "-SQL" as an option

Whereby auditdb would format its output into a correctly sequenced set of
SQL statements that

Could be manually applied via sql or isql



When I initially found the fail point in the auditdb output file, it was on
page 4 of 26

So most of the recovery time was spent working the output file to identify
and apply each transaction.







Thoughts??









Cheers





Richard

/***************************\

Quote:
New Zealander, leading the world |
\***************************/

Reply With Quote
  #2  
Old   
Paul White
 
Posts: n/a

Default Re: [Info-Ingres] Thoughts on a possible additional flag to auditdb - 06-15-2011 , 12:01 AM






Hi Richard,



Have you looked at Ingres Journal Analyser?



It can generate recovery SQL for single record updates through to complete
transactions over a range of dates.

It can also run the SQL through the interface. I chose to save the SQL to a
separate file then ran it myself.



The user interface requires a bit of practice.

Watch for performance problems when running over a big date range.

I suggest trying it on a small date range, single table update first.



Paul











From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Richard
Harden
Sent: Wednesday, 15 June 2011 1:39 PM
To: 'Ingres and related product discussion forum'
Subject: [Info-Ingres] Thoughts on a possible additional flag to auditdb



Greetings All,



I recently found it necessary to recover an inconsistent dB where the
checkpoint was flagged as a good one, but re-applying the journals failed

With 'redo error' so the completion of the rollfowarddb process was still an
inconsistent db.



Further investigation found that there was only one table with this error,
so we ran auditdb -table=schedules >file.txt to capture all transactions
against the table,

Then run rollforwarddb verbose to get the failurepoint, identified it in the
auditdb output file, then

Finally run rollforwarddb with the ignore flag so the final result was a
fully restored and up to date dB with the exception of the

one table, which was then made physically and logically consistent, then
manually had to read the statements from the relevant point in the auditdb
output file and reapply them



The output from auditdb is not the clearest / easiest to read and
understand.





What I think would be a really useful addition to auditdb would be something
like "-SQL" as an option

Whereby auditdb would format its output into a correctly sequenced set of
SQL statements that

Could be manually applied via sql or isql



When I initially found the fail point in the auditdb output file, it was on
page 4 of 26

So most of the recovery time was spent working the output file to identify
and apply each transaction.







Thoughts??









Cheers





Richard

/***************************\

Quote:
New Zealander, leading the world |
\***************************/

Reply With Quote
  #3  
Old   
Richard Harden
 
Posts: n/a

Default Re: [Info-Ingres] Thoughts on a possible additional flag to auditdb - 06-15-2011 , 01:33 AM



Hi Paul,



No I hadn't,



But I will now thanks









Cheers





Richard

/***************************\

Quote:
New Zealander, leading the world |
\***************************/



From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Paul
White
Sent: Wednesday, 15 June 2011 5:01 p.m.
To: 'Ingres and related product discussion forum'
Subject: Re: [Info-Ingres] Thoughts on a possible additional flag to auditdb



Hi Richard,



Have you looked at Ingres Journal Analyser?



It can generate recovery SQL for single record updates through to complete
transactions over a range of dates.

It can also run the SQL through the interface. I chose to save the SQL to a
separate file then ran it myself.



The user interface requires a bit of practice.

Watch for performance problems when running over a big date range.

I suggest trying it on a small date range, single table update first.



Paul











From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Richard
Harden
Sent: Wednesday, 15 June 2011 1:39 PM
To: 'Ingres and related product discussion forum'
Subject: [Info-Ingres] Thoughts on a possible additional flag to auditdb



Greetings All,



I recently found it necessary to recover an inconsistent dB where the
checkpoint was flagged as a good one, but re-applying the journals failed

With 'redo error' so the completion of the rollfowarddb process was still an
inconsistent db.



Further investigation found that there was only one table with this error,
so we ran auditdb -table=schedules >file.txt to capture all transactions
against the table,

Then run rollforwarddb verbose to get the failurepoint, identified it in the
auditdb output file, then

Finally run rollforwarddb with the ignore flag so the final result was a
fully restored and up to date dB with the exception of the

one table, which was then made physically and logically consistent, then
manually had to read the statements from the relevant point in the auditdb
output file and reapply them



The output from auditdb is not the clearest / easiest to read and
understand.





What I think would be a really useful addition to auditdb would be something
like "-SQL" as an option

Whereby auditdb would format its output into a correctly sequenced set of
SQL statements that

Could be manually applied via sql or isql



When I initially found the fail point in the auditdb output file, it was on
page 4 of 26

So most of the recovery time was spent working the output file to identify
and apply each transaction.







Thoughts??









Cheers





Richard

/***************************\

Quote:
New Zealander, leading the world |
\***************************/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.