A redirected restore is a restore in which the set of table space containers for the restored database is different from the set of containers for the original database at the time the backup was done. This command permits the addition, change, or removal of table space containers for a database that is to be restored. If, for example, one or more containers become inaccessible for any reason, the restore fails if it is not redirected to different containers.
Note: | A redirected restore is not allowed when a user exit program is used to perform the restore. |
Authorization
One of the following:
Required Connection
Database
Command Syntax
>>-SET TABLESPACE CONTAINERS FOR--tablespace-id-----------------> >-----+--------------------------------------------------+------> | .-REPLAY--. | '--+-IGNORE--+---ROLLFORWARD CONTAINER OPERATIONS--' >----USING------------------------------------------------------> .-,---------------------------. V | >-----+-(-----PATH--"container-string"---+---)---------------------------+> | .-,----------------------------------------------------. | | V | | '-(------+-FILE---+---"container-string"--number-of-pages---+---)--' '-DEVICE-' >--------------------------------------------------------------><
Command Parameters
For a file container, the string must be an absolute or relative file name. If the file name is not absolute, it is relative to the database directory.
For a device container, the string must be a device name. The device must already exist. Device containers are not supported on OS/2.
Examples
See the example in RESTORE DATABASE.
Usage Notes
This command is used in conjunction with RESTORE DATABASE.
A backup of a database, or one or more table spaces, keeps a record of all the table space containers in use by the table spaces being backed up. During a restore, all containers listed in the backup are checked to see if they currently exist and are accessible. If one or more of the containers is inaccessible for any reason, the restore will fail. In order to allow a restore in such a case, the redirecting of table space containers is supported during the restore. This support includes adding, changing, or removing of table space containers. It is this command that allows the user to add, change or remove those containers. For more information, see the Administration Guide.
See Also