ttRestore
Description
Restores a database specified by the connection string from a backup that has been created using the ttBackup
C function or ttBackup
utility. If the database already exists, ttRestore
does not overwrite it.
Also see ttRestore in Oracle TimesTen In-Memory Database Reference.
Required Privilege
Instance administrator
Syntax
ttRestore (ttUtilHandle handle, const char* connStr,
ttRestoreType type, const char* backupDir,
const char* baseName, ttUtFileHandle stream,
unsigned intflags)
Parameters
Parameter | Type | Description |
---|---|---|
|
|
Specifies the TimesTen utility library environment handle allocated using |
|
|
This is a null-terminated string specifying a connection string that describes the database to be restored. |
|
|
Indicates whether the database is to be restored from a file or a stream backup. Valid values are the following:
|
|
|
For For |
|
|
For If For |
|
|
For On Linux or UNIX, it is an integer file descriptor that can be read from using On Windows, it is a handle that can be read from using For |
|
|
This is reserved for future use. Set it to 0. |