Steps to Change UNDO Tablespace in Oracle Database
Step 1: Connect to the Database
Check the current UNDO tablespace:
Output:
Step 2: Create a New UNDO Tablespace
Step 3: Switch to the New UNDO Tablespace
Step 4: Drop the Old UNDO Tablespace
⚠ Error:
Solution: Follow Steps 5–7 to fix this.
Step 5: Identify Objects Using the Old UNDO Tablespace
Output:
Step 6: Find Active Sessions Using Old UNDO Tablespace
Output:
Step 7: Kill the Active Session
Verify if the session is removed:
If no rows are returned, the session is cleared.
Step 8: Wait for UNDO Retention Time
-
The system retains undo data for UNDO_RETENTION time.
-
Default 900 seconds (15 minutes).
-
Wait for 15 minutes before proceeding.
Step 9: Drop the Old UNDO Tablespace Again
Post a Comment
Post a Comment