Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > DBA Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2009-12-23   #1 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 7
Default datafile is not getting backed up

error :
./aaamnncd.t04: file changed size
Fri Dec 11 03:23:50 2009 E_DM1101_CPP_WRITE_ERROR Error writing checkpoint.
Fri Dec 11 03:23:50 2009 E_DM110B_CPP_FAILED Error occurred checkpointing the database.

looks like that specific file has corruption.

I want to know what all tables are residing in this perticular file(aaamnncd.t04)

so that i can query an select statement to know whether it reads the data from this perticular file.

Please assist


ingres version 2.0
HP-UX B.10.20 U 9000/869

Last edited by rony25; 2009-12-23 at 08:47 AM.
rony25 is offline   Reply With Quote
Old 2009-12-23   #2 (permalink)
Ingres Community
 
daryl.monge@ingres.com's Avatar
 
Join Date: Mar 2007
Posts: 88
Default

A physical database file is changing its actual size while the Unix "tar" command is processing it as part of the checkpoint. Some OS vendor "tar" commands do not like this and report and error rather than a warning. The solution is to either use a version of tar which will not abort when it detects this problem or write a wrapper script for your checkpoint.
Reference: Checkpoint template documentation
Ingres ServiceDesk document id 415384 (provides a wrapper script)
daryl.monge@ingres.com is offline   Reply With Quote
Old 2009-12-23   #3 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 7
Default

Thanks Daryl,

The physical file is not getting copied to another location as well "bad copy to /tmp/aaamnncd.t04: read: I/O error".

Is there any way that we can find out what all tables data resides in this datafile,so that i can query an select statement to know whether it reads the data from the tables resinding in this file.
If that is know we can actually go for an restore before the users access those tables and avoid the yearly stats fail.
Please suggest

Last edited by rony25; 2009-12-23 at 12:33 PM.
rony25 is offline   Reply With Quote
Old 2009-12-23   #4 (permalink)
Ingres Community
 
denjo02's Avatar
 
Join Date: Mar 2007
Location: Melbourne, Australia
Posts: 199
Default

The physical files relate one-to-one with database tables - with one file in each database location across which a table is spread.

The iifile_info catalog will show you the relationship:

select table_name, owner name from iifile_info
where file_name='aaamnncd'
denjo02 is offline   Reply With Quote
Old 2009-12-24   #5 (permalink)
Ingres Community
 
rhann's Avatar
 
Join Date: Mar 2007
Location: roy.hann@rationalcommerce.com
Posts: 434
Blog Entries: 15
Default

There is no point in copying the data files of actively updated tables anywhere.

Ingres uses a fast commit protocol that pretty much guarantees that the image of the table on disk is incomplete pretty much all the time. (This means the database on disk is logically corrupt most of the time; the cache and the locking and logging system work together to give you a consistent image of the database.) The checkpoint/rollforwarddb utility knows how to keep track of the file mutations so that it can restore a consistent image of the table; nothing else knows how to do that.

If you need to copy data files you have to first shut Ingres down in an orderly fashion so that what is physically on disk is logically complete and consistent.
__________________
Roy Hann

UK Ingres User Association Conference 2011 will be on Tuesday June 7, 2011. Mark the date in your diary.
rhann is offline   Reply With Quote
Old 2009-12-30   #6 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 7
Default

Thanks Denjo/Rhann.
Your suggestions sounds sensible.
Thanks somuch for your quick support.
rony25 is offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved