Académique Documents
Professionnel Documents
Culture Documents
Overview
In the unfortunate event of data loss or corruption, you will need to restore the data to your system from a backup tape or disk. This chapter describes in detail how to perform a restore using the SAP Database Administration (SAPDBA ) utility. In the example that follows, we restore the tablespace PSAPUSER1D.
In this example, after the tablespace PSAPUSER1D has been backed up, it is purposefully corrupted by renaming it in the File Manager. During the restore, the database will not find this file and, therefore, the original file will be restored from the tape.
941
Performing a Restore Using SAPDBA Stopping the SAP and Database Instances
942
Performing a Restore Using SAPDBA Stopping the SAP and Database Instances
943
Performing a Restore Using SAPDBA Stopping the SAP and Database Instances
9. Enter q to quit SAPDBA. 10. Enter y to confirm that you really want to quit SAPDBA.
9 10
To simulate data corruption or data loss, we rename the physical data file user1d.data1 for the tablespace PSAPUSER1D so that the database will not find PSAPUSER1D. You can do the same if you are using this chapter for testing or training:
12
11. In the File Manager, select the directory path <sapsid> sapdata4 user1d_1. 12. Select the file user1d.data1.
11
944
13
14. In this example, we rename the file user1d.data1.corruptedto simulate the file being corrupted or accidentally deleted by a user. 15. Click OK. The file is renamed.
15 14
945
2. Enter sapdba.
2
5. Enter the name of the tablespace you want to restore. Since it is reported that user1d.data1 cannot be found, the corresponding tablespace, PSAPUSER1D, should be restored.
946
6. Enter the number of the BRBACKUP run from which you want to restore the tablespace.
7
It is recommended to select the most recent backup file. 7. Press Return to continue. 8. Enter q to return.
9. Enter y to continue.
947
10
11
12. Ensure your backup tape with the requested label (in this example, ERCB02) is inserted into the backup drive. 13. Enter cont to continue.
12
13
14
948
15
949
9410
6. Since we already selected the latest data file, answer no to the question by entering n.
8. For options b - e, select the items with the Status listed as needed or not finished. 9. Since Recover database is not finished, enter f to select it.
9411
10
11
12
9412
13. Enter a and follow the preceding steps to check the database again.
13
14
15
9413
9414
9415
10. You did it! This text indicates that the database is OK. 11. Press Return to continue.
10 11
9416
12
13. Enter q to quit. 14. Enter y to confirm that you really want to quit.
13 14
9417
For further details refer to R/3 System Administration Made Easy Initializing Tapes for Database Backup and Archiving (Ch. 90) 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 Basis Components Database Administration Oracle SAPDBA Database Recovery Basis Courses Database Administration ORACLE (BC505) Reference Implementation Restore/Recovery SAPDBA Database Recovery
9418