![Previous Topic: Restore the Tablespaces or Data Files](574.png)
![Next Topic: Restore All Tablespaces and Data Files](573.png)
Restoring Protected Data › How to Restore an Oracle Database › Restore System, or Undo Tablespaces or Data Files
Restore System, or Undo Tablespaces or Data Files
You can restore system, or undo tablespaces or data files. Before you restore, you must locate the file. When you locate the files, ensure that the database is in the Open state.
Follow these steps:
- Log in to the computer where you want to restore system or undo tablespaces or datafiles.
- Locate the user tablespaces or datafiles using the following command:
SQL> SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES;
- Change the state of the database to mount, or nomount, or shutdown before you restore the tablespaces or datafiles.
SQL> STARTUP MOUNT;
SQL> STARTUP NOMOUNT;
SQL> SHUTDOWN IMMEDIATE;
- Log in to the Arcserve UDP Console.
- Restore the tablespaces or datafiles using the Restore Wizard. For more information on the restore process, see How to Restore From a Recovery Point.
- Log in to the destination computer.
- Navigate to the specific folders and verify that the system, or undo tablespaces or datafiles are restored.
- Recover the tablespace or data files.
- To recover a tablespace, enter the following command at the SQL*Plus prompt screen:
SQL> RECOVER TABLESPACE "tablespace_name";
- To recover a data file, enter the following command at the SQL*Plus prompt screen:
SQL> RECOVER DATAFILE 'path';
Oracle checks for the archive redo log files that it needs to apply and displays the names of the files in a sequence.
- Enter AUTO in the SQL*Plus prompt screen to apply the files.
Oracle applies the log files to restore the data files. After Oracle finishes applying the redo log file, it displays the following messages:
Applying suggested logfile
Log applied
After each log is applied, Oracle continues to apply the next redo log file until the recovery is complete.
- Enter the following command to bring the tablespace online:
SQL> ALTER TABLESPACE "tablespace_name" ONLINE;
The tablespace is now recovered to the last available log file.
Copyright © 2015 .
All rights reserved.
![Previous Topic: Restore the Tablespaces or Data Files](574.png) ![Next Topic: Restore All Tablespaces and Data Files](573.png)
|
|