|
|
SET DATABANK
Sets a databank offline or online, with the option of clearing
LOGDBrecords for it.Usage
Embedded/Interactive/ODBC/JDBC.
Description
Setting a databank
OFFLINEmakes it unavailable for all users and closes the databank file. A typical use for this is when taking databank backups using the host file system.If the databank is being used, an error will be raised and it will not be set offline. When a databank is set offline, all online shadows will be brought up to date.
When a databank is set
ONLINEagain, you must specify whether to clear theLOGDBrecords for it (using theRESET LOGoption), or whether to preserve these (using thePRESERVE LOGoption). TheRESET LOGoption should be used after a successful backup has been taken.It is essential to keep
LOGDBin a state consistent with the databank backups, see the Mimer SQL System Management Handbook, Backing-up and Restoring Data, for a discussion of the issues.Clearing records from
LOGDBis handled automatically whenCREATE BACKUPis used to take databank backups.Restrictions
The current ident must either be the creator of the databank or have
BACKUPprivilege.Notes
While a databank is
OFFLINE, none of the tables stored in it are accessible and the updating of all its shadows is suspended. It is possible to useALTER DATABANKandALTER DATABANK RESTOREto change or recover a databank while it isOFFLINE.If
ALTER DATABANKwas used to change the location of the databank file while the databank wasOFFLINE, theSET DATABANKstatement will verify that the new file contains a valid copy of the databank when the databank is setONLINEagain (it cannot, however, check that the contents of the file is up-to-date).It is possible to use
DROP DATABANKto drop anOFFLINEdatabank.While a databank is
OFFLINE, it is not possible to useALTER SHADOWon any of its shadows.An error will be raised if an attempt is made to set a databank
OFFLINEthat is alreadyOFFLINE, orONLINEwhen it is alreadyONLINE.Example
SET DATABANK usrdb OFFLINE;For more information, see the Mimer SQL System Management Handbook, Backing-up and Restoring Data.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|