Suspends and resumes updates to a specified list of databases.
quiesce database tag_name hold database_list [for external dump] [to manifest_file [with override]]
or:
quiesce database tag_name release
Since the manifest file is a binary file, operations that can perform character translations of the file contents (such as ftp) corrupt the file unless performed in binary mode.
quiesce database report_dbs hold salesdb, ordersdb
quiesce database report_dbs release
quiesce database pubs_tag hold pubs2 for external dump
quiesce database pubs_tag hold pubs2 for external dump to "/work2/sybase1/mpubs_file with override
Once the command completes, control returns to the user.
1> mount database all from "/data/sybase2/mfile1" with listonly 2> go
"/data/sybase1/d0.dbs" = "1dev1"
quiesce database pubs2_tag release for external dump to Mpubs_file
quiesce database key_tag hold key_db for external dump to "/tmp/keydb.dat" quiesce database encr_tag hold col_db for external dump to "/tmp/col.dat" with override quiesce database col_tag hold key_db, col_db for external dump to "/tmp/col.dat"
quiesce database used with the hold keyword suspends all updates to the specified database. Transactions cannot update data in suspended databases, and background tasks such as the checkpoint process and housekeeper process skip all databases that are in the suspended state.
quiesce database used with the release keyword allows updates to resume on databases that were previously suspended.
quiesce database used with the for external dump clause signifies that you intend to make an external copy of the database.
Quiesce a reduced-durability database (including tempdb)
Copy the device
Mount this database on another SAP ASE server
Change a database’s durability with alter database before you issue a quiesce database command.
The quiesce database hold and release commands need not be executed from the same user session.
If the databases specified in the quiesce database hold command contain distributed or multidatabase transactions that are in the prepared state, the SAP ASE server waits during a timeout period for those transactions to complete. If the transactions do not complete during the timeout period, quiesce database hold fails.
If the SAP ASE server is executing a dump database or dump transaction command on a database specified in quiesce database hold, the database is suspended only after the dump command completes.
If you execute a dump database or dump transaction command on a database while updates to the database are suspended, the SAP ASE server blocks those commands until the database is released with quiesce database release.
Your query is blocked because it tried to write and database '%.*s' is in quiesce state. Your query will proceed after the DBA performs QUIESCE DATABASE RELEASE
The query is run once the database is no longer in a quiescent state.
The copy operation cannot begin until the quiesce database hold process has completed.
Every device for every database in the quiesce database command must be copied.
The copy process must complete before you invoke quiesce database release.
See also sp_helpdb, sp_who in Reference Manual: Procedures.
The permission checks for quiesce database differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with quiesce any database privilege. |
Disabled | With granular permissions disabled, you must be a user with sa_role. |
Values in event and extrainfo columns of sysaudits are:
Information | Values |
---|---|
Event | 96 |
Audit option | quiesce |
Command or access audited | quiesce database |
Information in extrainfo |
|