Actually I made use of the following command to get the required informaiton (rollforward command with query status did not work)
db2 get snapshot for database test
This command gave the output like this regarding rollforward operation along with other information:
Database status = Rollforward
Rollforward type = Database
Rollforward last committed timestamp = 12-14-2003 00:06:20
Rollforward log file being processed = 892702
Rollforward status = Redo
and thats exactly what I needed. All thanks to IBM folks and thanks cchattoraj for your time.
dollar
Quote:
Originally posted by cchattoraj
Here's an excerpt :
A database rollforward operation runs offline. The database is not available for use until the rollforward operation completes successfully, and the operation cannot complete unless the STOP option was specified when the utility was invoked.
A table space rollforward operation can run offline. The database is not available for use until the rollforward operation completes successfully. This occurs if the end of the logs is reached, or if the STOP option was specified when the utility was invoked.
You can perform an online rollforward operation on table spaces, as long as SYSCATSPACE is not included. When you perform an online rollforward operation on a table space, the table space is not available for use, but the other table spaces in the database are available.
So for the database and offline rollforward of a tablespace, the answer is no, but for an online rollforward of a tablespace, the answer is yes. I thought it could be done since in my mind it should be reading the logctl.lfh file/s, however, it looks like it holds an exclusive lock on the database for db and offline rfwds. The other reason I thought it could be done was because it's supposed to give the names of the log files it is done with and the one's that it needs. Sorry about my previous post.
|