Stop & Start Database (Managed and Unmanaged)

{question}

How can we stop and start our database safely?

{question}

{answer}

It depends on whether you are using a managed or an unmanaged database.

 

For Managed Databases:

Simply use the NuoDB Manager shutdown database and start database commands:

1. From NuoDB Manager run the following command:

nuodb [domain] > shutdown database <database_name>

2. After the database is down, run the following command:

nuodb [domain] > start database <database_name>

 If you would like to read more information on the commands used in these instructions, see Shutdown Database and Start Database or stop and start in the Automation Console.

Note: For managed databases created with NuoDB 2.1 or later, it is no longer necessary to take a snapshot of your database to stop and restart it.

 

For Unmanaged Databases:

For each database that you want to restart, you will need to run the NuoDB Manager capture database command. This command writes the configuration of the database's hosts, storage managers and transaction engines to a file that you specify.

1. From NuoDB Manager run the following command:

nuodb [domain] > capture database <database_name> dbFile <file_name>

2. After you save the database configuration you can shutdown the database:

nuodb [domain] > shutdown database <database_name>

3. To start the database, execute the NuoDB Manager restart database command and specify the database capture file for that database:

nuodb [domain] > restart database dbFile <file_name>

If you would like to read more information on the commands used in these instructions, see Capture Database, Shutdown Database, and Restart Database.

{answer}

Have more questions? Submit a request

Comments