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 / DB2 Topics / November 2003

Tip: Looking for answers? Try searching our database.

Archive log

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pierre HIRTH - 27 Nov 2003 12:23 GMT
Hi,
Someone could tel me ho can i do to put a database in Archive log Mod ?
And how can i do to apply redo log on a backup database ?

Thank's
Blair Adamache - 27 Nov 2003 12:28 GMT
answers below

> Hi,
> Someone could tel me ho can i do to put a database in Archive log Mod ?

turn logretain on (db2 update db cfg using logretain on) and enable the
user exit

> And how can i do to apply redo log on a backup database ?

After the backup is restored, use the follforward command

> Thank's

For more details, read the Recovery sections of the amin guide.
Pierre Saint-Jacques - 27 Nov 2003 21:24 GMT
On a command line:
db2 update db cfg for <yourdbname> using logretain recovery
When successful it will put your db in backup pending state.
db2 backup db <yourdbname> to <yourtarget>

You are now ready to proceed.  Your logs will be int the deafault log path
and you will have to mange their archiving.
Look in the on line DB2 Admin. Guide as to your options.
Whenever you need to restore, then look at the COmmand in the help function
db2 ? restore
db2 restore db <yourdbname> from <yourtarget> taken at
<datetimetampofbackup>
db2 rollforward db <yourdbname> to end of logs and stop

HTH,  Pierre
> Hi,
> Someone could tel me ho can i do to put a database in Archive log Mod ?
> And how can i do to apply redo log on a backup database ?
>
> Thank's
 
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.