Allows you to purge records from the dump history file.
The original dump history file is copied to a new file named original_name.XXX, where XXX represents an increasing numerical value (001, 002, and so on).
sp_dump_history [ @operation = {'list' | 'purge' | 'listfiles' | 'help'}] [, @until_time = 'date'] [, @database_name = 'database_name'] [, @dump_type = {'DATABASE' | 'TRAN[SACTION]' | 'CONFIG[URATION]'}] [, @status = {'success' | 'fail'}] [, @file = 'filename']
Database name – the server configuration name
Dump type
Total number of dump stripes
Compression level
Remote Backup Server name
Dump creation time
Error number – on SAP ASE
purge – purges records from the dump history file. The records to be purged are selected based on criteria specified using the other sp_dump_history parameters.
listfiles – displays the list of dump history file names.
help – shows the syntax for sp_dump_history.
'DATABASE' – database dump objects created by dump database.
'TRAN[SACTION]' – transaction dump objects created by dump transaction.
'CONFIG[URATION]' – server configuration objects created by dump configuration.
sp_dump_history 'list' go
sp_dump_history 'list', "mar 20, 2010 10:51:43:866am", 'testdb' go
sp_dump_history @operation='list', @database_name = "model", @dump_type='TRAN', @status = 'success', @file = '/john_machine/john/ASE/ASE-16_0/dumphist'
The default behavior for sp_dump_history with no parameters is to display the output from its list parameter.
The output for database and transaction dumps differs from that of configuration files.
For information about dump operations, see the System Administration Guide.
dump configuration, dump database, load database in Reference Manual: Commands
sp_config_dump
The permission checks for sp_dump_history differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage dump configuration privilege. |
Disabled | With granular permissions disabled, you must be a user with sa_role or oper_role. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | |
Audit option | |
Command or access audited | |
Information in extrainfo |
|