Unix Technical Forum

Restoring a dbspace and what of the transactions.

This is a discussion on Restoring a dbspace and what of the transactions. within the Informix forums, part of the Database Server Software category; --> Hi All , Informix 9.4UC4 Solaris 8 Onbar Tivoli Storage Manager If I do a Full System Backup the ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:03 AM
Traveller2003
 
Posts: n/a
Default Restoring a dbspace and what of the transactions.

Hi All ,

Informix 9.4UC4
Solaris 8
Onbar
Tivoli Storage Manager

If I do a Full System Backup the night before and all the subsequent
logical logs are then sent to the storage manager. I find the next day
that one of the DB spaces is down and I have to restore from the
backup.
So I then recover the DB space.

What next? Is IDS clever enough to roll forward just the transactions
to do with that DB space while the rest of the system is on line?

My view is that is dependent on how the application is written for a
start but I am not sure about getting the dbspace consistent up to the
point in time when it failed. That is to say be able to roll forward
the logical logs just for that DB space.

Can I please get a view or feed back?
Also if this is not possible can it be a feature request which other
would no doubt benefit from.


Thanks

Traveller
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:03 AM
scottishpoet
 
Posts: n/a
Default Re: Restoring a dbspace and what of the transactions.

vavavoom_th14@yahoo.co.uk (Traveller2003) wrote in message news:<6e21e513.0411100242.18093bc0@posting.google. com>...
> Hi All ,
>
> Informix 9.4UC4
> Solaris 8
> Onbar
> Tivoli Storage Manager
>
> If I do a Full System Backup the night before and all the subsequent
> logical logs are then sent to the storage manager. I find the next day
> that one of the DB spaces is down and I have to restore from the
> backup.
> So I then recover the DB space.
>
> What next? Is IDS clever enough to roll forward just the transactions
> to do with that DB space while the rest of the system is on line?


yes, otherwise you will have inconsistencies in your database and the
dbspace restore wqould be invalid. I think onstat -d would give you a
PI status - primary inconsistent.

if you doa dbspace restore you must roll forward the logical logs or
the dbspace will be inconsistent.

You can;t restore that dbspace to a point in time though, you woudl
have to restore the whole instance toa point in time for the same
reason

>
> My view is that is dependent on how the application is written for a
> start but I am not sure about getting the dbspace consistent up to the
> point in time when it failed. That is to say be able to roll forward
> the logical logs just for that DB space.
>
> Can I please get a view or feed back?
> Also if this is not possible can it be a feature request which other
> would no doubt benefit from.
>
>
> Thanks
>
> Traveller

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 07:04 AM
John F. Miller III
 
Posts: n/a
Default Re: Restoring a dbspace and what of the transactions.

Traveller2003 wrote:
> Hi All ,
>
> Informix 9.4UC4
> Solaris 8
> Onbar
> Tivoli Storage Manager
>
> If I do a Full System Backup the night before and all the subsequent
> logical logs are then sent to the storage manager. I find the next day
> that one of the DB spaces is down and I have to restore from the
> backup.
> So I then recover the DB space.
>
> What next? Is IDS clever enough to roll forward just the transactions
> to do with that DB space while the rest of the system is on line?


During physical restore only pages from that dbspace will be extracted.

When it comes time to replay the logical logs, and you MUST do logical
recovery, the engine is clever enough to just rollforward the parts of
the transaction dealing with the dbspace being restored. This is
required for maintaining data consistency when doing a restore.



>
> My view is that is dependent on how the application is written for a
> start but I am not sure about getting the dbspace consistent up to the
> point in time when it failed. That is to say be able to roll forward
> the logical logs just for that DB space.



The onstat -d output will contain an "I" flag indicated the dbspace is
inconsistent. When the database restore process completes and all log
records have been replayed this inconsistent flag will be removed. At
that point all indexes and data are 100% consistent.


>
> Can I please get a view or feed back?
> Also if this is not possible can it be a feature request which other
> would no doubt benefit from.


This feature was introduced in version 6.0 of informix.

Hope this helps,
John


>
>
> Thanks
>
> Traveller

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 04:44 PM.


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