Skip Headers
Oracle® TimesTen In-Memory Database Reference
Release 11.2.1

Part Number E13069-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

ttBackupStatus

Description

Returns a single row with information about the current or last backup of the data store. If a backup is in progress, this information represents the current backup. If no backup is in progress, this information represents the last backup taken.

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.

Syntax

ttBackupStatus ()

Parameters

ttBackupStatus has no parameters.

Result set

ttBackupStatus returns the results:

Column Type Description
status TT_INTEGERNOT NULL An INTEGER code representing the current progress of a backup or the completion status of the last backup. Values are:

0 - No backup has been taken on the data store since the last first-connect.

1 - A backup is currently in progress.

2 - The last backup completed successfully.

3 - The last backup failed. In this case the error column contains the error code for the failure.

destination TT_INTEGER The type of backup taken. The value is NULL when no backup has been taken on the data store. Value is one of:

0 - Backup is/was being written to a file.

1 - Backup is/was being written to a stream.

2 - Backup is/was taken on behalf of replication duplicate.

backupType TT_INTEGER Backup type, either full or incremental. The value is NULL when no backup has been taken on the data store. Value is one of:

0 - Incremental backup

1 - Full backup

startTime TT_TIMESTAMP Time when the backup was started. The value is NULL when no backup has been taken on the data store.
endTime TT_TIMESTAMP Time when the backup completed. If NULL and startTime is non-NULL, a backup is currently in progress.
backupLFN TT_INTEGER The transaction log file number of the backup point. The value is NULL when no backup has been taken on the data store.
backupLFO TT_INTEGER The transaction log file offset of the backup point. The value is NULL when no backup has been taken on the data store.
error TT_INTEGER In the case of a failed backup, this column indicates the reason for the failure. The value is one of the TimesTen error numbers. The value is NULL when no backup has been taken on the data store.
processId TT_INTEGER The ID of the process or daemon performing the backup (if known).

Example

CALL ttBackupStatus ();
< 2, 2, 1, 2005-08-12 13:10:32.587557, 2005-08-12 13:10:33.193269, 1, 1531840, 0, 6968 >
1 row found.

Notes

Does not return information about previous backups, other than the current or last one.

Information returned is not persistent across data store startup or shutdown.