Generally, Oracle treats an index tablespace just like a user tablespace. Therefore, you can use the recovery procedure for a user tablespace. The procedure below describes an additional recovery option for SAP databases.
Procedure
- Shut down the database with this SQLPLUS command: - shutdown immediate - If this fails, use: - shutdown abort 
- Find out which data file is affected by the media error, using the information in the ALERT and trace files. 
- Mount the database with these SQLPLUS commands: - connect / as sysdba - startup mount 
- Set the data files to OFFLINE: - alter database datafile ' - ' offline; 
- Open the database: - alter database open; 
- Make sure that the index tablespaces do not contain any tables. You can check this using the Oracle tables DBA_SEGMENTS and DBA_TABLES. 
- Use the corresponding BRSPACE function to create the DDL statements for the affected indexes: - brspace -f tbreorg -s - -d only_ind 
- Drop the affected tablespace, including contents: - brspace -f tsdrop -t - -f 
- Recreate the affected tablespace: - brspace -f tscreate -t - -d index 
- Recreate the indexes with script ddl.sql from subdirectory of sapreorg with this SQLPLUS command: - SQL> @ddl 
The recovery of the index tablespace is complete.
Note:
In most cases, you can use BRRECOVER to correct media errors affecting the data files of a user tablespace. For more information, see Complete Database Recovery with BR*Tools.
 
No comments:
Post a Comment