Lists entries in the history file. The history file contains a record of recovery and administrative events. Recovery events include full database and table space level backup, restore, and roll forward. Additional logged events include alter table space, run statistics, reorganize table, drop table, and load.
Authorization
None
Required Connection
Instance. An explicit attachment is not required. If the database is listed as remote, an instance attachment to the remote node is established for the duration of the command.
Command Syntax
>>-LIST HISTORY----+------------------+------------------------->
+-BACKUP-----------+
+-ROLLFORWARD------+
+-RUNSTATS---------+
+-REORG------------+
+-ALTER TABLESPACE-+
+-DROPPED TABLE----+
'-LOAD-------------'
>-----+-ALL--------------------------------+-------------------->
+-SINCE--timestamp-------------------+
'-CONTAINING--+-schema.object_name-+-'
'-object_name--------'
>----FOR--+----------+---database-alias------------------------><
+-DATABASE-+
'-DB-------'
|
Command Parameters
Examples
db2 list history since 19980201 for sample db2 list history backup containing userspace1 for sample db2 list history dropped table all for db sample
Usage Notes
The report generated by this command contains the following symbols: