Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / June 2008

Tip: Looking for answers? Try searching our database.

[Info-Ingres] Checkpoint journaling  question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Ossing - 26 Jun 2008 20:41 GMT
Hello,

I hadn't checked up on the checkpointing this week, until today, when I found I have several journal files, from the last few days in my journal folder for the ERP application db. I also have a couple of days of checkpoint folders.

I run a nightly checkpoint with ckpdb +j -d dbname. In the past, this has always taken the current ckp, then deleted the old.

What can I do to be sure the journal info is in the db? Is this a job for rollforwarddb, or should I not worry?
I'm already concerned about the ckp, as I'll have to watch it work tonight, to see what's happening.

Thanks for any suggestions.

Oh, v2.x on Windows.

Thanks,

Mike Ossing

-----------------------------------------
Please note - the Rodem e-mail system
DOES NOT accept compressed files
(ZIP extension). Please send file
attachments in the original document
format - doc xls dwg pdf jpg gif, etc.

File attachments with more than one
period in the filename, or attachments
larger than 5,000 KB will also be
blocked.

If you have any questions, please contact
the Rodem e-mail Administrator at this
address: admin@rodem.com.
-----------------------------------------
Mike Ossing - 29 Jun 2008 09:43 GMT
Hi Karl,

My problem was/is twofold.

First, the .cnf file was off by a few, so the old ckp folder wasn't being deleted. Fixed that.

Second, our new backup process gets the data offsite and I'm ultimately charged for storage space at the end of the month.

My plan is to keep a monthly, a weekly and the two most recent days of activity stored, so I need to drop the oldest ckp. I intend to have the automation software run the ckp with the -d to do that, so I don't have to monitor the thing each night at 10:30.

Still working out the schedule on that, now that the first probem is fixed.

Cheers,

Mike

>>> Karl & Betty Schendel <schendel@kbcomputer.com> 06/26/08 7:39 PM >>>

> Hello,
>
[quoted text clipped - 5 lines]
> I run a nightly checkpoint with ckpdb +j -d dbname. In the past,  
> this has always taken the current ckp, then deleted the old.

The journal files contain a running log of updates that have occurred  
since a checkpoint.
Having extra journal files around is not necessarily an indication of  
trouble.

I'd do an "infodb databasename" in a command prompt window and  
examine the section that
is titled something like "checkpoint history for journal".  It should  
show you the
last checkpoint (just one if you're doing -d), and the valid flag  
should be 1.
If valid is 0, something is going wrong during the checkpoints and  
you need
to find out what.   (presumably the ckpdb output says what.)

If there's no problems, look at the first_jnl and last_jnl sequence  
numbers
and match them up with your leftover journal files.  If your leftover
files are older, that just means that somehow they got missed and you
can just delete them by hand.  (If your journals are in the sequence  
listed,
then they are current and you should just leave them alone.)

By the way, I don't care for the -d option to ckpdb myself.  Only  
having one
preceding checkpoint in the database checkpoint history limits your
recovery options when things go pear-shaped.  It's better to not use -d,
and manage disk space by deleting old checkpoints and journals yourself.
A middle way is to build up some safe number of checkpoints, and then  
start
using alterdb -delete_oldest_ckp which deletes the oldest checkpoint.
This is more automatic but you do have to keep an eye on it to make
sure that it doesn't go haywire and leave you with insufficient
disk space.

Karl

_______________________________________________
Info-Ingres mailing list
Info-Ingres@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

-----------------------------------------
Please note - the Rodem e-mail system
DOES NOT accept compressed files
(ZIP extension). Please send file
attachments in the original document
format - doc xls dwg pdf jpg gif, etc.

File attachments with more than one
period in the filename, or attachments
larger than 5,000 KB will also be
blocked.

If you have any questions, please contact
the Rodem e-mail Administrator at this
address: admin@rodem.com.
-----------------------------------------
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.