Orientdb 简明教程
OrientDB - Freeze Database
每当需要使数据库状态为静态时,这意味着数据库不对任何读、写操作做出响应的状态。简单来说,数据库处于冻结状态。
Whenever you want to make the database state as static it means a state where the database didn’t respond to any of the read and write operations. Simply said, the database is in freeze state.
在本章中,你可以了解如何从 OrientDB 命令行冻结数据库。
In this chapter, you can learn how to freeze the database from the OrientDB command line.
以下语句是冻结数据库命令的基本语法。
The following statement is the basic syntax of the freeze database command.
FREEZE DATABASE
Note − 在连接到远程或本地数据库中特定数据库后,你才能使用此命令。
Note − You can use this command only after connecting to a particular database either in remote or local database.
Example
在本示例中,我们将使用上一章中创建的同名数据库“demo”。我们将从 CLI 冻结此数据库。
In this example, we will use the same database named ‘demo’ that we created in the previous chapter. We will freeze this database from CLI.
可使用以下命令冻结数据库。
You can use the following command to freeze the database.
Orientdb {db = demo}> FREEZE DATABASE
如果已成功执行,你将获得以下输出。
If it is successfully executed, you will get the following output.
Database 'demo' was frozen successfully