Users who are using versions CUBRID 2008 R9.0 Beta should install 9.1 in the different directory and modify parameter values in the existing environment configuration file.
cubrid.conf
cubrid_broker.conf
Environment variable
For more details, see Default Setting Changes.
For DB migration, see Database Migration Procedures.
Users who are using versions CUBRID 2008 R4.1 or R4.3 should install 9.1 in the different directory and modify parameter values in the existing environment configuration file.
cubrid.conf
cubrid_broker.conf
cubrid_ha.conf
Environment variable
CUBRID_LANG is removed, and now CUBRID_CHARSET is used for configuring the charset of database and CUBRID_MSG_LANG is used for configuring the charset of messages for utilities and errors.
Warning
When you create datbase, CUBRID_CHARSET(default en_US when installing, ISO-88591 is used) must be specified. It affects the length of string type, string comparison operation, etc. The specified charset when creating database cannot be changed later, so you should be careful when specifying it.
For charset, locale and collation setting, see Globalization.
For more details, see Default Setting Changes.
For DB migration after environmental configuration, see Database Migration Procedures.
Users who are using versions CUBRID 2008 R4.0 or earlier should install 9.1 in the different directory and modify parameter values in the existing environment configuration file.
cubrid.conf
cubrid_broker.conf
cubrid_ha.conf
Environment variable
For more details, see Default Setting Changes.
For DB migration after environmental configuration, see Database Migration Procedures.
Saving the Existing Configuration File
Checking New Reserved Words
Configuring environment variables of CUBRID_CHARSET, CUBRID_MSG_LANG
Changing schema
Adding system locales
To migrate DB from CUBRID 9.0 Beta, do the following procedures with "migrate_90beta_to_91 <db_name>" command.
| Step | Linux Environment | Windows Environment |
|---|---|---|
| Step 1: Stop CUBRID Service | % cubrid service stop | Stop CUBRID Service Tray. |
|
Execute the following command in the directory where the reserved word detection script is located. Execute migration or identifier modification by checking the detection result (For the allowable identifier).
|
|
|
Store the databases.txt file and the configuration files under the conf directory of the earlier version in a separate directory. (3a) Execute the cubrid backupdb utility and store the file generated at this point in a separate directory (3b)
|
|
| Keep the existing database. | Uninstall the earlier version of CUBRID At this time, keep the existing database. |
|
| Step 4: Install new version | Install new version on the same directory of earlier installation. See Installation and Running CUBRID. | |
| Step 5: Database migration | Run below utility with previous database volume.
|
|
|
Modify the configuration file. At this point, partially modify the configuration files from the earlier version stored in step (3a) to fit the new version. (For configuring system parameter, see Upgrade and System Parameters)
|
Start the service by selecting CUBRID Service Tray > [Service Start]. Start the database server from the command prompt.
|
If you are using CUBRID 2008 R3.0 Beta or less and GLO classes, you have to do the additional works(see Migration for GLO Class Users).
The following table shows how to perform the migration using the reserved word detection script, check_reserved.sql, which is separately distributed from http://ftp.cubrid.org and the cubrid unloaddb/loaddb utilities. See Unloading and Loading Database)
| Step | Linux Environment | Windows Environment |
|---|---|---|
| Step C1: Stop CUBRID Service | % cubrid service stop | Stop CUBRID Service Tray. |
|
Execute the following command in the directory where the reserved word detection script is located. Execute migration or identifier modification by checking the detection result (For the allowable identifier).
|
|
|
Store the databases.txt file and the configuration files under the conf directory of the earlier version in a separate directory (C3a). Execute the cubrid unloaddb utility and store the file generated at this point in a separate directory(C3b).
Delete the existing database (C3c).
|
|
| Uninstall the earlier version of CUBRID. | ||
| Step C4: Install new version | See Installation and Running CUBRID | |
|
Go to the directory where you want to create a database, and create one. (C5a)
Execute the cubrid loaddb utility with the stored files in (C3b). (C5b)
|
|
|
% cubrid backupdb -S testdb | |
|
Modify the configuration file. At this point, partially modify the configuration files from the earlier version stored in step (C3a) to fit the new version(For system parameter settings, see the cautions). (For configuring system paramater, see Upgrade and System Parameters)
|
Start the service by selecting CUBRID Service Tray > [Service Start]. Start the database server from the command prompt.
|
If you use GLO classes, you must modify applications and schema in order to use BLOB or CLOB types, since GLO classes are not supported in 2008 R3.1. If this modification is not easy, it is not recommended to perform the migration.
In the scenario described below, the current service is stopped to perform an upgrade in an environment in which a broker, a master DB and a slave DB are operating on different servers.
| Step | Description |
|---|---|
| Steps H1~H6: Perform steps C1-C6 on the master node. | Run the CUBRID upgrade and database migration in the master node, and back up the new version's database. |
| Step H7: Install new version in the slave node | Delete the previous version of the database from the slave node and install a new version. For more information, see Installation and Running CUBRID. |
|
Restore the new database backup copy (testdb_bk*) of the master node, which is created in step H6 , to the slave node.
|
|
In the master node and the slave node, set the CUBRID environment configuration file (cubrid.conf) and the HA environment configuration file(cubrid_ha.conf) See Creating Databases and Configuring Servers. |
|
For more information about installation, see Installation and Running CUBRID. Start the broker in the Broker server. See Configuring and Starting Broker, and Verifying the Broker Status.
|
If you are using the HA feature of CUBRID 2008 R2.0 or 2008 R2.1, you must upgrade the server version, migrate the database, set up a new HA environment, and then change the Linux Heartbeat auto start setting used in 2008 R2.0 or 2008 R2.1. If the Linux Heartbeat package is not needed, delete it.
Perform steps H1–H10 above, then perform step H11 below:
| Step | Description |
|---|---|
|
Perform the following task in the master and slave nodes from a root account.
|