ttBackupStatus
If no backup has been taken on the database since the last first-connect, the status field is 0 and the rest of the columns are NULL.
Required Privilege
This procedure requires the ADMIN privilege.
Usage in TimesTen Scaleout and TimesTen Classic
This procedure is supported in TimesTen Classic.
TimesTen Scaleout applications can call this built-in procedure.
In TimesTen Scaleout, this procedure runs locally on the element from which it is called.
Syntax
ttBackupStatus ()
Parameters
ttBackupStatus has no parameters.
Result Set
ttBackupStatus returns the results:
| Column | Type | Description |
|---|---|---|
|
|
|
An
|
|
|
|
The type of backup taken. The value is
|
|
|
|
Backup type, either full or incremental. The value is
|
|
|
|
Time when the backup was started. The value is |
|
|
|
Time when the backup completed. If |
|
|
|
The transaction log file number of the backup point. The value is |
|
|
|
The transaction log file offset of the backup point. The value is |
|
|
|
If a backup fails, this column indicates the reason for the failure. The value is one of the TimesTen error numbers. The value is |
|
|
|
The ID of the process or daemon performing the backup (if known). |
Examples
CALL ttBackupStatus (); < 2, 2, 1, 2021-09-13 13:10:32.587557, 2005-08-12 13:10:33.193269, 1, 1531840, 0, 6968 > 1 row found.
Note:
The procedure does not return information about previous backups other than the current or last one. Also, the information returned is not persistent across database startup or shutdown.