Upgrade Database

This is a NuoDB Manager command. See NuoDB Manager.

Description

The version of the database protocol used by the database processes is stored in the NuoDB Archive so that when a new database is started, the processes know which protocol to communicate with. After upgrading database software, it may be necessary to upgrade the database protocol.

For more information on running the upgrade database command, see Upgrading the Database Protocol . For information on confirming whether a new database protocol version is available, see NuoDB Manager's Show Database Version command.

Note: After the database protocol version has been upgraded, the NuoDB Archive cannot be used with a previous NuoDB software version that only supports the previous database protocol version. As a result, downgrading after the database protocol version will require restoring a backup of the database. For more information on downgrading, see Downgrading to a Previous Release.

Syntax

upgrade database database version version

Parameters

Interactive Example

The following example shows upgrading a database called test to database protocol version 3.3

nuodb [test] > upgrade database test version 3.3
Upgrading database test to version 3.3...
Upgrade complete

Scripting Example

The same upgrade database command can be executed with --command as follows:

nuodbmgr --broker host --password password 
    --command "upgrade database test version 3.3"