# Update your source database by adding after-imaging extents
# prostrct add production_db add.st # truncate the database BI file and mark as backed up # proutil production_db -C truncate bi rfutil production_db -C mark backedup # Activate after-imaging # rfutil production_db -C aimage begin # At this point allow updates to the source database. This activity will # fill the first AI extent, production_db.a1, and causing a switch to the # second AI extent, production_db.a2. # Make a copy of the database using operating system commands # cp production_db* /db_standby # Mark the source database as backed up # rfutil production_db -C mark backedup # Fix the target database file specifications and make new database st file. # prostrct repair /db_standby/production_db /db_standby/standby.st prostrct list /db_standby/production_db /db_standby/production_db.st # Correct the sequence number of target database. # rfutil /db_standby/production_db -C sequence # Roll forward the second AI extent from production_db to standby copy. # This is the extent which was BUSY at the time the copy of the database # was made. # rfutil /db_standby/production_db -C roll forward -a production_db.a2 # Continue allowing updates and regularly roll forward the subsequent AI # extents from the production_db to the standby copy. |