<P>SELECT SWITCHOVER_STATUS FROM V$DATABASE;

to standby /* NOT – SESSIONS ACTIVE */

<P>ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;

<P>SHUTDOWN IMMEDIATE;

<P>STARTUP MOUNT

<P>SELECT SWITCHOVER_STATUS FROM V$DATABASE;

to primary

<S>ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;

<S>SHUTDOWN IMMEDIATE; /* or */ ALTER DATABASE OPEN;

<S>STARTUP

<S>ALTER SYSTEM SWITCH LOGFILE;