Unix Technical Forum

bad page

This is a discussion on bad page within the Informix forums, part of the Database Server Software category; --> Hi all, I can't unload a certain table. Doing an oncheck -cDI database:table, the system gives a bad page ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 11:58 AM
Danny De Koster
 
Posts: n/a
Default bad page

Hi all,

I can't unload a certain table. Doing an oncheck -cDI database:table, the
system gives a bad page error.
How can I resolve this or where can I find information on this topic.

thanks,
Danny


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 11:58 AM
TBP
 
Posts: n/a
Default Re: bad page

Danny De Koster wrote:
> Hi all,
>
> I can't unload a certain table. Doing an oncheck -cDI database:table, the
> system gives a bad page error.
> How can I resolve this or where can I find information on this topic.
>
> thanks,
> Danny
>
>

Version of IDS?
O/S?

Well, sounds like you have a "bad page".

Is it a data page or an index page?

Does oncheck -cD database:table show an error?
If not, then you have a bad index page, and the oncheck -cDI should have
told you which index was bad, then you can just drop and re-create the
index.

If oncheck -cD database:table does show an error, then you have a bad
data page
You should receive various bits of information when the engine
encounters a bad page;

What does the online.log show?
Is an af file produced?

You would need to unload around the bad data page.

Not at work, so can't easily give you an example (amazingly nothing on
google either, or of the IBM search support site)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 11:58 AM
Danny De Koster
 
Posts: n/a
Default Re: bad page

Version 7.30
Linux SuSe.

How to get around of the bad table?

Yes I get the error doing oncheck -cD database:table




"TBP" <TheBigPotato@NotHere.Co.Uk> schreef in bericht
news:1pR0g.27130$zf1.12793@newsfe5-gui.ntli.net...
> Danny De Koster wrote:
>> Hi all,
>>
>> I can't unload a certain table. Doing an oncheck -cDI database:table, the
>> system gives a bad page error.
>> How can I resolve this or where can I find information on this topic.
>>
>> thanks,
>> Danny
>>
>>

> Version of IDS?
> O/S?
>
> Well, sounds like you have a "bad page".
>
> Is it a data page or an index page?
>
> Does oncheck -cD database:table show an error?
> If not, then you have a bad index page, and the oncheck -cDI should have
> told you which index was bad, then you can just drop and re-create the
> index.
>
> If oncheck -cD database:table does show an error, then you have a bad data
> page
> You should receive various bits of information when the engine encounters
> a bad page;
>
> What does the online.log show?
> Is an af file produced?
>
> You would need to unload around the bad data page.
>
> Not at work, so can't easily give you an example (amazingly nothing on
> google either, or of the IBM search support site)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 11:58 AM
bozon
 
Posts: n/a
Default Re: bad page

Danny De Koster wrote:
>You would need to unload around the bad data page.


Unload to good.out select rowid from <table>;

If this errors the last rowid in the table should be your last good
before the bad page.

then try to select rowid > than this until you get to the max rowid or
you don't have any errors. This will be the first good rowid after the
bad page.

Then unload the records with the following

unload to good_recs.out select * from <table> where rowid not between
<first_bad_page> and <last_bad_page> ;

You have all of the data that you can get without doing a restore
before the page was corrupted and rolling the logs.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 11:58 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: bad page


"How to get around of the bad table? "

Restore from a backup
or
Get IBM to dial in and fix it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 11:58 AM
Neil Truby
 
Posts: n/a
Default Re: bad page


<david@smooth1.co.uk> wrote in message
news:1145307003.742249.161280@v46g2000cwv.googlegr oups.com...
>
> "How to get around of the bad table? "
>
> Restore from a backup
> or
> Get IBM to dial in and fix it.



Or isolate the rowids of the row(s) affected by the bad page and use rangges
to unload all but those, drop and re-create the table then load the
uncorrupted rows back in.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 11:59 AM
Danny De Koster
 
Posts: n/a
Default Re: bad page

thanks for the tips guys !!!!

"bozon" <curtis@crowson1.com> schreef in bericht
news:1145303901.622126.233710@g10g2000cwb.googlegr oups.com...
> Danny De Koster wrote:
>>You would need to unload around the bad data page.

>
> Unload to good.out select rowid from <table>;
>
> If this errors the last rowid in the table should be your last good
> before the bad page.
>
> then try to select rowid > than this until you get to the max rowid or
> you don't have any errors. This will be the first good rowid after the
> bad page.
>
> Then unload the records with the following
>
> unload to good_recs.out select * from <table> where rowid not between
> <first_bad_page> and <last_bad_page> ;
>
> You have all of the data that you can get without doing a restore
> before the page was corrupted and rolling the logs.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 11:59 AM
bozon
 
Posts: n/a
Default Re: bad page

bozon said>
>if this errors the last rowid in the table should be your last good

before the bad page.

I meant "file" where I said table. The last line in the good.out file
will be the last good rowid before the bad page.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com