Entering content frameSyntax documentation -f cleanup Locate the document in its SAP Library structure

This BRCONNECT function cleans up the database logs. For more information, see Clean Up Old Logs and Traces.

Recommendation

We strongly recommend you to use this BRCONNECT function rather than the equivalent SAPDBA one, sapdba -cleanup. The reason is that we will in future no longer develop the SAPDBA functions, whereas BRCONNECT functions will always be fully up-to-date.

Function options:

Input syntax: -a <days>

Default: 30

This option controls which BRARCHIVE log files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_brarchive_log parameter.

Input syntax: -b <days>

Default: 30

This option controls which BRBACKUP log files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_brbackup_log parameter.

Input syntax: -c <days>

Default: 30

This option controls which BRCONNECT log files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_brconnect_log parameter

Input syntax: -d <days>

Default: 100

This option controls which records in the tables SDBAH and SDBAD are deleted by the BRCONNECT cleanup function. It overrides the cleanup_db_log parameter.

Input syntax: -e <days>

Default: 30

This option controls which directories and their contents for SAPDBA export dumps and scripts are deleted by the BRCONNECT cleanup function. It overrides the cleanup_exp_dump parameter.

Input syntax: -i <days>

Default: 30

This option controls which offline redo log files backed up on disk are deleted by the BRCONNECT cleanup function. It overrides the cleanup_disk_archive parameter.

Input syntax: -k <days>

Default: 30

This option controls which database files backed up on disk are deleted by the BRCONNECT cleanup function. It overrides the cleanup_disk_backup parameter.

Input syntax: -l

Default: Clean up all database logs

This option overrides the cleanup_check_msg parameter.

Input syntax: -o <owner1>[,<owner2>,...]

Default: SAPR3/SAP<SID> in a standard SAP database or all SAP owners in a multi-schema database

This option overrides the cleanup_owner parameter.

Input syntax: -r <days>

Default: 30

This option controls which BRRESTORE log files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_brrestore_log parameter.

Input syntax: -s <days>

Default: 30

This option controls which SAPDBA log files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_sapdba_log parameter.

Input syntax: -t <days>

Default: 30

This option controls which Oracle trace and audit files are deleted by the BRCONNECT cleanup function. It overrides the cleanup_ora_trace parameter.

Input syntax: -x <days>

Default: 100

This option controls which records in the XDB tables are deleted by the BRCONNECT cleanup function. It overrides the cleanup_xdb_log parameter.

Leaving content frame