backup db prod
Backup successful. The timestamp for this backup image is : <ts1>
backup db prod incremental
Backup successful. The timestamp for this backup image is : <ts2>
an example of a manual incremental restore would be:
restore db prod incremental taken at <ts2> into test without
prompting
DB20000I The RESTORE DATABASE command completed successfully.
restore db prod incremental taken at <ts1> into test without
prompting
DB20000I The RESTORE DATABASE command completed successfully.
restore db prod incremental taken at <ts2> into test without
prompting
DB20000I The RESTORE DATABASE command completed successfully.
If the database TEST already exists, the restore operation will overwrite any data that is already there. If the database TEST does not exist, the restore utility will create it and then populate it with the data from the backup images.
restore db prod incremental automatic taken at <ts2> into test without
prompting
DB20000I The RESTORE DATABASE command completed successfully.
The
restore utility will create the TEST database and populate it. drop db test
DB20000I The DROP DATABASE command completed successfully.
restore db prod incremental automatic taken at <ts2> into test without
prompting
DB20000I The RESTORE DATABASE command completed successfully.
connect to test
Database Connection Information
Database server = <server id>
SQL authorization ID = <id>
Local database alias = TEST
prune history 9999 with force option
DB20000I The PRUNE command completed successfully.
connect reset
DB20000I The SQL command completed successfully.
restore db prod incremental automatic taken at <ts2> into test without
prompting
SQL2540W Restore is successful, however a warning "2539" was
encountered during Database Restore while processing in No
Interrupt mode.
In this case, the RESTORE DATABASE COMMAND will act
in the same manner as when the database TEST did not exist. restore db prod incremental automatic taken at <ts2> into test without
prompting
SQL2540W Restore is successful, however a warning "2539" was
encountered during Database Restore while processing in No
Interrupt mode.
You can continue taking incremental or delta backups of the test database without first taking a full database backup. However, if you ever need to restore one of the incremental or delta images you will have to perform a manual incremental restore. This is because automatic incremental restore operations require that each of the backup images restored during an automatic incremental restore be created from the same database alias.
If you make a full database backup of the test database after you complete the restore operation using the production backup image, you can take incremental or delta backups and can restore them using either manual or automatic mode.