(Only when the TSM is licensed at your site) Queries the Tivoli Storage Manager (TSM) for a list of the SAP ASE backup objects.
sp_querysmobj “syb_tsm”, “output_file”, “server_name” {, “database_name”, “object_name”, “dump_type”, “until_time”, “bs_name”}
DB – database backup objects created by the dump database command.
XACT – database backup objects created by the dump transaction command.
* – all database backup objects. This is the default.
sp_querysmobj "syb_tsm", "/tmp/qtsm/5_1.out", "demo_srv1"
sp_querysmobj "syb_tsm", "/tmp/qtsm/5_2.out", "demo_srv1", "pubs2"
sp_querysmobj "syb_tsm", "/tmp/qtsm/5_3.out", "demo_srv1", "pubs2", "*", "DB"
See also Using Backup Server with IBM Tivoli Storage Manager.
The permission checks for sp_querysmobj differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must have dump any database privilege. |
Disabled | With granular permissions disabled, you must be a user with sa_role. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|