You are on page 1of 14

Initializing Tapes for Database Backup and Archiving Overview

Chapter 90: Initializing Tapes for Database Backup and Archiving


Contents
Overview ................................................................................................................................................................................901 ................................................................................................................................................................................901 Initializing a Backup Data Tape Using BRBACKUP ...................................................................................................................901 ...................................................................................................................901 Initializing a Backup Data Tape Using SAPDBA........................................................................................................................905 SAPDBA ........................................................................................................................905 Initializing the Backup Offline Redo Log (Archive) Using BRARCHIVE .......................................................................................908 .......................................................................................908 Initializing the Backup Offline Redo Log (Archive) Using SAPDBA ...........................................................................................9010 ...........................................................................................9010

Overview
All tape volumes to be used by the BRBACKUP/BRARCHIVEutilities must be initialized before they are used for the first time. If you want to use automatic volume management, the volume names must be in the init<DBSID>.sap parameters volume_backup/volume_archive This is performed automatically when the . system is installed, but the tape names, number of tapes, tape expiration period, etc., can be manually configured at a later date. SAPDBA and BRBACKUP allow you to initialize any tape volume. A tape volume can be a new tape, a tape used by BRBACKUP, or a tape used by another application (such as NTBackup, or another third party tool). By default, the initialize with label checkfunction is turned on. This ensures that an existing BRBACKUP tape is not overwritten because the volume label is checked before the tape is initialized. Therefore, you can only re-initialize SAP volumes with an expired locking period. This option is often used for renaming volumes. To initialize a tape which has been used by another application (such as NTBackup), you must turn off the initialize with label checkfunction. In this case, neither the label of the tape volume nor the locking period is checked. You can specify the number of tapes to initialize by using parameter -n for BRBACKUP, or by selecting option g (Number of tapes)for SAPDBA.

Initializing a Backup Data Tape Using BRBACKUP


1. To view the options for BRBACKUP, enter BRBACKUP help : more .
1

1996 SAP Technology, Inc.

901

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using BRBACKUP

2. Using these commands, you can run BRBACKUP from the OS level without using SAPDBA. 3. Option -i or -initialize allows you to initialize a new or used tape. By default, the label of the new or used tape will be checked.

Another useful option is -c which allows you to perform unattended backups. You can run a script that includes tp commands (to stop an R/3 instance) and BRBACKUP -c forcewith Windows NTs at command to schedule unattended backups. This screen shows more commands

902

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using BRBACKUP

and here are the rest of the commands.

4. If you have a new tape, or a tape which has not been used by BRBACKUP or SAPDBA, and you would like to initialize only one tape, then execute BRBACKUP -i force -n 1 at a DOS prompt. 5. BRBACKUP displays the status and comments for the current tape. 6. Enter cont to continue.
5

1996 SAP Technology, Inc.

903

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using BRBACKUP

7. Ensure there are no error messages. Enter cont to continue.

8. To ensure that the tape initialization process was successful, enter BRBACKUP -i show to view the label of the current tape. 9. Enter cont to display the label of the tape. 10. Ensure that the tape is inserted and then enter cont to continue.
9

10

11. The label of the tape is displayed. It contains the volume label <SAPSID>B01, the time of initialization, the database identification (ERC), and other tape attributes.
11

904

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using SAPDBA

12. Enter cont to continue.


12

Initializing a Backup Data Tape Using SAPDBA


All tapes to be used by SAPDBAwhether they are new or have been used by other backup utilities must first be initialized. 1. Enter sapdba at the MS-DOS command prompt.
1

2. Enter h to select Backup database .

1996 SAP Technology, Inc.

905

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using SAPDBA

3. Enter a to select Backup function.

4. Enter b to select Initialize BRBACKUP tape .

5. Enter q to return back to the main backup menu.

906

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing a Backup Data Tape Using SAPDBA

6. Double-check all of the options. If you wish to check the label before initializing the tape, then accept the default value of yes for option f. 7. Enter s to start the tape initialization process.
6 7

Ensure that there are no error messages.

8. Press Return to continue .

9. Enter q to go back to main menu.

1996 SAP Technology, Inc.

907

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using BRARCHIVE

10. Enter q to quit. 11. Enter y to confirm that you want to quit the SAPDBA utility.

10 11

Initializing the Backup Offline Redo Log (Archive) Using BRARCHIVE


1. To view the options for BRARCHIVE, enter brarchive help : more . 2. Using these commands, you can run BRARCHIVE from the OS level without using SAPDBA. 3. Option -i or -initialize allows you to initialize a new or used tape. By default, the label of the new or used tape will be checked.
1

908

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using BRARCHIVE

This screen shows more commands, including command i from step number 3
3

and here are the rest of the commands.

4. If you have a new tape, or a tape which has not been used by BRARCHIVE or SAPDBA, and you would like to initialize only one tape, then execute brarchive -i force -n 1 at the DOS Prompt.

1996 SAP Technology, Inc.

909

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using SAPDBA

5. BRARCHIVE displays the status and comments for the current tape. 6. Enter cont to continue.

7. Ensure there are no error messages. Enter cont to continue.

Initializing the Backup Offline Redo Log (Archive) Using SAPDBA


1. Enter sapdba at the MS-DOS command prompt.
1

9010

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using SAPDBA

2. Enter i to select Backup archive logs.

3. Enter a to select Archive function.

4. Enter k to select Initialize BRARCHIVE tape .

1996 SAP Technology, Inc.

9011

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using SAPDBA

5. Enter q to return back to the main backup menu.

6. Double-check all of the options. If you wish to check the label before initializing the tape, the accept the default value of yes for option f. 7. Enter s to start the tape initialization process.
6

Ensure that there are no error messages.

8. Press Return to continue.

9012

1996 SAP Technology, Inc.

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using SAPDBA

9. Enter q to go back to main menu.

10. Enter q to quit. 11. Enter y to confirm that you want to quit the SAPDBA utility.

10 11

You can use the following options during an initialization: -i (initialize) Rename volumes that have already been initialized. Only possible for volumes that have expired.

-i force (initialize force) Initialize new volumes or volumes not yet used by BRBACKUP/BRARCHIVE. The expiration period check is not active. Caution: this option can also be used to reinitialize locked volumes. If you initialize BRBACKUP/BRARCHIVE tapes with the addition of the -i force parameter, the tape_use_count stored in the tape label is set to 1. Normally, this value is increased each time the tape is used. -v (volume) -n (number) Enter the names of volumes for initialization. Number of volumes for initialization.

1996 SAP Technology, Inc.

9013

Initializing Tapes for Database Backup and Archiving Initializing the Backup Offline Redo Log (Archive) Using SAPDBA

For further details refer to R/3 System Administration Made Easy Performing an Offline Backup Using SAPDBA (Ch. 91) Performing an Online Backup Using SAPDBA (Ch. 92) Performing an Archive Backup Using SAPDBA (Ch. 93) R/3 Basis Knowledge Products DBA Oracle CD R/3 System Online Help Database Administration ORACLE Backing up the Database Basis Courses Database Administration ORACLE (BC505) Reference Implementation Data Backup SAP Recommended Backup Strategy Daily Backup Tasks Backing Up the Database

9014

1996 SAP Technology, Inc.