Brbackup Termination
Brbackup Termination
runs
Note Language: English Version: 2 Validity: Valid from 09.01.2008
Summary
Symptom
1. The current situation is as follows:
=====================
In some cases, it is necessary to terminate the current backup or the
current restore, for example, when:
- The backup or restore is stuck due to backup media problems,
- The backup takes much longer than expected and disrupts the online
operation.
You usually interrupt the backup with a signal (Control-C, Control-Quit,
Control-Break) or with a relevant termination command (Unix: kill
[<signal>] <process_id>, Windows: Task Manager -> End Task / End Process).
However, this procedure has the following downsides:
- When you use a termination command, the relevant process has to be
determined first.
- When you use Unix "kill -9 <process_id>" or "Windows Task Manager -> End
Process", BR*Tools do not carry out a clean up. In the case of BRBACKUP,
the database may be stopped (offline backup) or certain tablespaces remain
in backup mode (online backup), which, in the majority of cases, is not
what you require.
Caution:
As a general rule, we do not recommend that you use UNIX "kill -9
<process_id>" and, actually, you should not require it - "kill [15]
<process_id>" is usually sufficient. Using "Task Manager -> End Process"
in Windows is not recommended either, but cannot be avoided sometimes. For
example, if backup of DBA planning calendar or an external scheduler has
been started, the BR*Tools then run in the environment of the relevant
service and cannot be terminated with Control-C or Control-Break.
25.02.2008 Page 1 of 5
Note 1129197 - Terminating BRARCHIVE, BRBACKUP and BRRESTORE
runs
2.1. Smooth termination with "-g stop" option
-----------------------------------------
When there is a termination with the "-g stop" option, there is a wait
until all copy processes (such as cpio, dd, cp/copy) that are currently
active are completed. The backup or the restore is not ended early until
later (and the clean-up carried out) so that the database is in a clean
state afterwards. Active copy processes are not terminated. The files
currently processed are always copied in full. For this reason, the
termination process may take longer (several minutes).
This kind of termination is suitable for "native" backups or restores -
when cpio, dd, cp, copy, compress, uncompress, mkszip and SAP SBT (RMAN)
backup library are used.
When you use 3rd party backup tools such as BACKINT (backup_dev_type =
util_file|util_file_online) or 3rd party SBT backup libraries
(backup_dev_type = rman_util|rman_disk|rman_stage), this kind of
termination generally does not lead to the required result, because it is
not possible here to end an active BACKINT/backup library call early.
Since the backup/restore request is mainly processed in a call, it is
almost completely executed (except for profiles and logs) before it can be
terminated. Point 3.2 pinpoints a potential solution to this problem.
25.02.2008 Page 2 of 5
Note 1129197 - Terminating BRARCHIVE, BRBACKUP and BRRESTORE
runs
===============================================
25.02.2008 Page 3 of 5
Note 1129197 - Terminating BRARCHIVE, BRBACKUP and BRRESTORE
runs
activities:
SQL> connect sap<sid>/<password>
SQL> update SXPGCOTABE set OPCOMMAND = 'cmd /c start /b
brbackup' where NAME = 'BRBACKUP';
SQL> update SXPGCOTABE set OPCOMMAND = 'cmd /c start /b
brarchive' where NAME = 'BRARCHIVE';
Caution: This change applies to Windows only and should be made in
exceptional cases only.
More Terms
BR*Tools, BRARCHIVE, BRBACKUP, BRRESTORE
Solution
The enhancement is included in BR*Tools 6.40 patch 47,
BR*Tools 7.00 patch 31,
and BR*Tools 7.10 patch 7.
For more information about downloading patches, see Notes 12741 and 19466.
Header Data
Release Status: Released for Customer
Released on: 09.01.2008 15:27:59
Priority: Recommendations/additional info
Category: Advance development
Valid Releases
Software Component Release From To Release and Following
Release
SAP_BASIS 60 640 640
SAP_BASIS 70 700 700
SAP_BASIS 71 710 710
Related Notes
25.02.2008 Page 4 of 5
Note 1129197 - Terminating BRARCHIVE, BRBACKUP and BRRESTORE
runs
Number Short Text
1060305 Corrections in BR*Tools Version 7.10
849483 Corrections for BR*Tools Version 7.00
680046 Corrections in BR*Tools Version 6.40
25.02.2008 Page 5 of 5