Use
You can restart a reorganization with SAPDBA for Oracle:
In certain circumstances, you can reset the reorganization, which means setting the database back to how it was before the reorganization. We recommend that you only reset the reorganization if you do not want to restart it. SAPDBA only displays the Reset option in the reorganization menu if a reset is possible.
Prerequisites
You can use SAPDBA to do this as described in "Procedure" below or find it yourself on disk as follows (these are default locations):
See the example below. To find the extension, refer to the documentation for the procedure that you want to restart. You can also find this information in
SAPDBA Scripts and Files.The log
Procedure
If you overwrite the default answer [N] to the question: Error in... - Do you want to continue<Y/N> [N] with Y(es) and continue despite the warnings, you are responsible for the consequences. SAPDBA continues the processing as if the error never occurred.
For more information about the log and the restart file, see "Prerequisites" above.
Always make sure you have found the correct log and restart file before you restart a reorganization.
When the error occurred |
How to proceed |
Preparation phase, that is, during the generation of the reorganization scripts |
Repeat the reorganization from the beginning, but do not try to restart or reset it. Nothing has been altered in the database and a restart is not possible because not all the required scripts are present. |
Initial processing of scripts before constraints have been deleted and tables renamed |
Restart the reorganization. |
Initial processing of scripts after constraints have been deleted and tables renamed |
Restart the reorganization. Reset the reorganization if you do not want to restart it. |
Later processing of scripts, when tables, indexes, or tablespaces have already been deleted |
Restart the reorganization. You can not reset the reorganization. |
The default value for the Restart subdirectory is the
<timestamp> directory of the last operation performed. If required, change this to the directory for the reorganization that you want to start.SAPDBA displays a short description of the operation in the function field.
If possible, SAPDBA resets the database to the state it was in before the failed reorganization. For example, SAPDBA sets tables that were renamed back to their original names and recreates deleted constraints. SAPDBA automatically runs the
con<TSP>sql and ren<TSP>.sql scripts during a reset.Resetting a reorganization is usually only worthwhile when you do not want to restart the reorganization. If, despite this, you still want to restart after the reset, then you must manually set back all the ‘Y’ status indicators to ‘N’ in the restart plan before restarting.
SAPDBA restarts the reorganization.
Result
On successful completion, SAPDBA displays a confirmation message.
Depending on the type of reorganization that you restarted, you might need to