GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.voltdb.com — @Pause Using VoltDB@Pause@Pause — Initiates read-only mode on the cluster. Synopsis@Pause DescriptionThe @Pause system procedure initiates admin mode on the cluster. Admin mode puts the database into read-only mode and ensures no further changes to the database can be made through the client port when performing sensitive administrative operations, such as taking a snapshot before shutting down. While in admin mode, any write transactions on the client port are rejected and return an error status. Read-only transactions, including system procedures, are allowed. However, write transactions such as inserts, deletes, or schema changes are only allowed through the admin port. Several important points to consider concerning @Pause are:
Return ValuesReturns one VoltTable with one row.
ExamplesIt is possible to call @Pause using the sqlcmd utility. However, you must explicitly connect to the admin port when starting sqlcmd to do this. Also, it is often easier to use the voltadmin utility, which connects to the admin port by default. For example, the following commands demonstrate pausing and resuming the database using both sqlcmd and voltadmin: $ sqlcmd --port=21211 1> exec @Pause; 2> exec @Resume; $ voltadmin pause $ voltadmin resume The following program example, if called through the admin port, initiates admin mode on the database cluster. client.callProcedure("@Pause"); | ||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |