473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

rollforwaring a database which is NOT is rollforwarding state

Hi,

All of this is still a test envinonment, but has to go on production....
I restore a database a database the follwing way
db2 restore db <database> from <directory. taken at <timestamp> replace
existing
Then i only rollforward the (minumum) logs which are needed for recovery
db2 rollforward db <database> to end of logs and complete

The database in NOT in any pending state anymore
No connections to that database are made from now.
Later that day i want to rollforward some extra logfiles which are available
(later than backup timestamp)

But when invoking
db2 rollforward db <database> to end of logs and complete
gives the follwing error:
SQL1261N Database "<database>" is not in rollforward pending state on
node(s)
"0", so it does not need to be rolled forward on these nodes.

Is this someway possible ?? Maybe another syntax ??
I don't want to do a restore again and then do a rollforward of all logs....

Knokmans
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com

Nov 12 '05 #1
4 8349
As far as I know, once you say "and complete" you are telling DB2 that you are finished
rolling forward and it will start creating a new log chain. You are not allowed to roll
forward through this database again as it stands at that point-in-time. You would need to
restore once again and roll-forward. Your other option is to leave the db in roll forward
pending state (no 'and complete'), however this will not allow connections, as you know.

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official IBM position -
ask my cat!]

"Knokmans" <kn******@nospam.com> wrote in message
news:41***********************@dreader15.news.xs4a ll.nl...
Hi,

All of this is still a test envinonment, but has to go on production....
I restore a database a database the follwing way
db2 restore db <database> from <directory. taken at <timestamp> replace
existing
Then i only rollforward the (minumum) logs which are needed for recovery
db2 rollforward db <database> to end of logs and complete

The database in NOT in any pending state anymore
No connections to that database are made from now.
Later that day i want to rollforward some extra logfiles which are available
(later than backup timestamp)

But when invoking
db2 rollforward db <database> to end of logs and complete
gives the follwing error:
SQL1261N Database "<database>" is not in rollforward pending state on
node(s)
"0", so it does not need to be rolled forward on these nodes.

Is this someway possible ?? Maybe another syntax ??
I don't want to do a restore again and then do a rollforward of all logs....

Knokmans
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com

Nov 12 '05 #2
OK that's clear

Knokmans

--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
"Bob [IBM]" <Bo******@canada.com> wrote in message
news:2t*************@uni-berlin.de...
As far as I know, once you say "and complete" you are telling DB2 that you
are finished
rolling forward and it will start creating a new log chain. You are not
allowed to roll
forward through this database again as it stands at that point-in-time.
You would need to
restore once again and roll-forward. Your other option is to leave the db
in roll forward
pending state (no 'and complete'), however this will not allow
connections, as you know.

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software
Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official
IBM position -
ask my cat!]

"Knokmans" <kn******@nospam.com> wrote in message
news:41***********************@dreader15.news.xs4a ll.nl...
Hi,

All of this is still a test envinonment, but has to go on production....
I restore a database a database the follwing way
db2 restore db <database> from <directory. taken at <timestamp> replace
existing
Then i only rollforward the (minumum) logs which are needed for recovery
db2 rollforward db <database> to end of logs and complete

The database in NOT in any pending state anymore
No connections to that database are made from now.
Later that day i want to rollforward some extra logfiles which are
available
(later than backup timestamp)

But when invoking
db2 rollforward db <database> to end of logs and complete
gives the follwing error:
SQL1261N Database "<database>" is not in rollforward pending state on
node(s)
"0", so it does not need to be rolled forward on these nodes.

Is this someway possible ?? Maybe another syntax ??
I don't want to do a restore again and then do a rollforward of all
logs....

Knokmans
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com


Nov 12 '05 #3
Let's say we have logretain set to recovery and we have luxury to take
offline backups every night at 2AM. How can we restore to a point in
time at 11AM the next day, should it be necessary. When we restore an
offline backup image, the database will not be kept in rollforward
pending state. How do we tell DB2 to rollforward all logs from 2AM to
11AM?

Thanks


"Knokmans" <kn******@nospam.com> wrote in message news:<41*********************@dreader9.news.xs4all .nl>...
OK that's clear

Knokmans

--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
"Bob [IBM]" <Bo******@canada.com> wrote in message
news:2t*************@uni-berlin.de...
As far as I know, once you say "and complete" you are telling DB2 that you
are finished
rolling forward and it will start creating a new log chain. You are not
allowed to roll
forward through this database again as it stands at that point-in-time.
You would need to
restore once again and roll-forward. Your other option is to leave the db
in roll forward
pending state (no 'and complete'), however this will not allow
connections, as you know.

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software
Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official
IBM position -
ask my cat!]

"Knokmans" <kn******@nospam.com> wrote in message
news:41***********************@dreader15.news.xs4a ll.nl...
Hi,

All of this is still a test envinonment, but has to go on production....
I restore a database a database the follwing way
db2 restore db <database> from <directory. taken at <timestamp> replace
existing
Then i only rollforward the (minumum) logs which are needed for recovery
db2 rollforward db <database> to end of logs and complete

The database in NOT in any pending state anymore
No connections to that database are made from now.
Later that day i want to rollforward some extra logfiles which are
available
(later than backup timestamp)

But when invoking
db2 rollforward db <database> to end of logs and complete
gives the follwing error:
SQL1261N Database "<database>" is not in rollforward pending state on
node(s)
"0", so it does not need to be rolled forward on these nodes.

Is this someway possible ?? Maybe another syntax ??
I don't want to do a restore again and then do a rollforward of all
logs....

Knokmans
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com


Nov 12 '05 #4
Your restore command as a default option of WITH ROLLING FORWARD even
with an offline image because you are in LOGRETAIN=RECOVERY.
Just restore and when complete issue your roll forward command to a
point in time.
Should you need to restore and you do not want to roll forward, you MUST
issue WITHOUT ROLLING FORWARD.

If you take an online backup, then the restore will ALWAYS be a db that
is in ROLL FORWARD PENDING and it must be rollled forward to AT LEAST
the timestamp of the end of the backup. That info is in your recovery
history file.

Also, if you do this thru the Control Center, then you can get a command
that will do all of this as you want it to .
HTH, Pierre

dbtoo_dbtoo wrote:
Let's say we have logretain set to recovery and we have luxury to take
offline backups every night at 2AM. How can we restore to a point in
time at 11AM the next day, should it be necessary. When we restore an
offline backup image, the database will not be kept in rollforward
pending state. How do we tell DB2 to rollforward all logs from 2AM to
11AM?

Thanks


"Knokmans" <kn******@nospam.com> wrote in message news:<41*********************@dreader9.news.xs4all .nl>...

OK that's clear

Knokmans

--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
"Bob [IBM]" <Bo******@canada.com> wrote in message
news:2t*************@uni-berlin.de...
As far as I know, once you say "and complete" you are telling DB2 that you
are finished
rolling forward and it will start creating a new log chain. You are not
allowed to roll
forward through this database again as it stands at that point-in-time.
You would need to
restore once again and roll-forward. Your other option is to leave the db
in roll forward
pending state (no 'and complete'), however this will not allow
connections, as you know.

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software
Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official
IBM position -
ask my cat!]

"Knokmans" <kn******@nospam.com> wrote in message
news:41***********************@dreader15.news.x s4all.nl...

Hi,

All of this is still a test envinonment, but has to go on production....
I restore a database a database the follwing way
db2 restore db <database> from <directory. taken at <timestamp> replace
existing
Then i only rollforward the (minumum) logs which are needed for recovery
db2 rollforward db <database> to end of logs and complete

The database in NOT in any pending state anymore
No connections to that database are made from now.
Later that day i want to rollforward some extra logfiles which are
available
(later than backup timestamp)

But when invoking
db2 rollforward db <database> to end of logs and complete
gives the follwing error:
SQL1261N Database "<database>" is not in rollforward pending state on
node(s)
"0", so it does not need to be rolled forward on these nodes.

Is this someway possible ?? Maybe another syntax ??
I don't want to do a restore again and then do a rollforward of all
logs....

Knokmans
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com



--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DMAC | last post by:
The following failed in EM (or whatever it is called now management studio I think) and I scripted it out and ran it in a query window to get more info. This works fine in SQL 2000 but not in 2005....
2
by: Frederic Jolliton | last post by:
Hi, My problem is rather complex. I will try to explain it clearly (I hope !) Sorry for my poor english. I'm tracking change of state for entities (something than can be monitored.) The...
4
by: Andy J | last post by:
Hi Everyone NEW USER Q. I am trying to restore a database backup image to another machine. Both machines are installed with same DB2 7.2 installation package. Version: 7, Release: 2,...
1
by: Julie Barnet | last post by:
Hi, I am having a problem with my session state through sql server. This used to work, then all of a sudden (the only change was setting up replication in the sqlserver database) it stopped...
4
by: Chad Crowder | last post by:
I've taken a look at this article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp which someone posted a month or so ago regarding setting up SQL...
4
by: Jeff | last post by:
We have multiple ASP.Net web apps in development. As a standard we are looking to go with SQL Server to hold state information. Can we have the multiple apps all point to a single State DB? Or...
9
by: charliewest | last post by:
Hello - I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is there any way to temporarily save an image to a session object, and after running some other operations, later...
1
by: James | last post by:
When I ran db2dart to check a database, I got the following warning and error messages. 1.Warning: The database state is not consistent. 2.Warning: Errors reported about reorg rows may be due to...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
We are setting up a web farm and want to store session state on a SQL Server 2005 Enterprise sp2 database. But when the web sites try to access the session state we get the error... Unable to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.