LOGICAL_BACKUP_DETAILS stored procedure - for generating a list of the logical backup images stored on a specified media
The LOGICAL_BACKUP_DETAILS stored procedure returns list of backup images (timestamps) on a specified path or media.
Syntax
The stored procedure returns a list of timestamp labels that are available on a specified path or media. By default, the EXECUTE permission is granted to PUBLIC.
Authorization
The EXECUTE authority is required on the SYSPROC.LOGICAL_BACKUP_DETAILS procedure to run the LOGICAL_BACKUP_DETAILS stored procedure. By default, this authority is granted to PUBLIC.
Backup images created by using the -path option are owned by the connected user. This includes the top folder, all sub-folders, and all files.
Procedure parameters
- -path
- -tsm
- Backup image is to be stored in IBM® Storage Protect, formerly Tivoli Storage Manager (TSM) server. Mutually exclusive with
path and s3 options.Note: IBM Storage Protect is the new product name for Tivoli Storage Manager (TSM).
- The product now known as IBM Storage Protect was named IBM Spectrum Protect in levels earlier than 8.1.19. To learn more about the brand change, see IBM Spectrum Protect brand change to IBM Storage Protect.
- The product previously known as IBM Spectrum Protect™ was named IBM Tivoli® Storage Manager in releases earlier than Version 7.1.3. To learn more about the rebranding transition, see Tivoli Storage Manager branding transition to IBM Spectrum Protect™.
- IBM Spectrum Protect and IBM Tivoli Storage Manager 7.1 reached end of support (EOS) at 31 December 2021, see: IBM Spectrum Protect and Tivoli Storage Manager 7.1 products End of Support 31 December 2021.
- -s3
- Backup image is to be stored in S3 cloud. Mutually exclusive with -path, tsm, and -cos options. -bucket-url, -access-key, -secret-key, and either -default-region or -endpoint options are mandatory. If both -default-region and -endpoint are specified, then region in -endpoint must match one in -default-region. Data is sent directly to cloud, no local temp storage is required.
- -cos
- Backup image is to be stored in IBM COS. Mutually exclusive with -path, -tsm, and -s3 options. -bucket-url, -access-key, -secret-key, and -endpoint options are mandatory. If specified, -default-region is ignored. Data is sent directly to cloud, no local temp storage is required.
- -errorlogdir <path>
- Path (on server) where diagnostic log files will be saved to. Default is sqllib/tmp/bnr/logs subject to extbl_strict_io and extbl_location configuration parameters.
- -keeplogs {ON_ERROR | ALL_IN_ERRORLOGDIR}
- Indicates how diagnostic log files are to be handled after a successful operation.
- ON_ERROR
- Removes all diagnostic log files. This is the default setting.
- ALL_IN_ERRORLOGDIR
- Preserves all diagnostic log files in the specified
errorlogdirlocation.
Note: On failure, all diagnostic log files are preserved irrespective of the value of the-keeplogsoption. - -media-connection-timeout <milliseconds> (optional)
- Maximum time (in milliseconds) to wait before TSM, S3 or IBM COS connection timeout.
- -bucket-url <bucket-url>
- URL of the cloud bucket.
- -access-key <access-key>
- Access key id for the bucket.
- -secret-key <secret-key>
- Secret access key for the bucket.
- -default-region <region>
- Default region of the bucket.
- -endpoint <endpoint>
- Gateway endpoint that connects to either Amazon S3 or IBM COS. If both -default-region and -endpoint are specified, then region in -endpoint must match one in -default-region.
- -multipart-size-mb <multipart size mb>
- Value (in MB) of -multipart-size-mb. Default is 105.
New sqlcodes
The following example shows an SQL1797N message that is returned when a LOGICAL_BACKUP_DETAILS()
request
fails:
SQL1797N The "SYSPROC.LOGICAL_BACKUP_DETAILS" utility has failed with error
"Valid path required". SQLSTATE=5UA0Q