Puts a database in rollforward pending state. If you are
using high availability disaster recovery (HADR), the database is
reset to a standard database.
Command syntax
>>-db2rfpen--ON--+-database_alias-----------------------+------><
'- -path--global_log_control_files_dir-'
Command parameters
- database_alias
- Specifies the name of the database to be placed in rollforward
pending state. If you are using high availability disaster recovery
(HADR), the database is reset to a standard database.
- -path global_log_control_files_dir
- Specifies the full path to the directory where the global log
control files, SQLOGCTL.GLFH.1 and its mirror
copy SQLOGCTL.GLFH.2, reside.
Usage
notes
If
you take file system backups of the database (for example, split mirror
file system backups) the db2rfpen tool can be used
to put the database into a rollforward pending state. By doing this,
you can apply log files with the ROLLFORWARD command
when you restore a file system copy.
Attention: The file system copy must be done after a clean
database shutdown. A clean database shutdown means that the database
is not in a crash recovery pending state.
The following
steps must be completed if at some later time you need to restore
a file system copy, and want to apply log files to roll forward the
database:
- Restore the file system copy of the database.
- Run the db2rfpen tool to put the database into
a rollforward pending state.
- Issue the ROLLFORWARD DATABASE command to apply
the log files.