Reverse the Active and Standby Roles
In order to perform the database defragmentation on the active database, switch the roles of the active and standby database.
The active (ttdb1) becomes the standby database. The
original standby (ttdb2) becomes the active database.
Now, the new active database is functional and the next step is to recreate a new standby. For details, see Destroy and Re-Create a New Standby.