You can copy either an existing custom configuration or a default
configuration, and create a new custom configuration.
The new custom configuration inherits the shape from the copied configuration. If you want to create a custom configuration that supports high availability DB systems, you must copy from an existing configuration that supports high availability. For example, if you want to create a custom configuration for the MySQL.8 shape that supports high availability, you can copy from the MySQL.8.HA configuration.
Use the Console or a command-line interface to copy a configuration.
Using the REST API, run the CreateConfiguration operation with the parentConfigurationId attribute.
Using the Console 🔗
Use the Console to copy a configuration.
Open the navigation menu and select Databases. Under HeatWave MySQL, click Configurations.
Click the Actions menu on the same line as the configuration you want to copy, and select Copy Configuration.
In the Provide basic information for the configuration section, enter the following information:
Name: Specify a user-friendly display name for the configuration. The name does not need to be unique. A unique Oracle Cloud Identifier (OCID) is generated to identify the configuration.
Description: (Optional) Specify a description for the configuration.
In the Configure placement and hardware section, enter the following information:
Select a Compartment: If you want to create the configuration in a different compartment, select the required compartment.
Select a Shape: The shape cannot be changed in Copy configuration.
In the Initialization variables section, you can select Ignore case in table and schema names to disable table and schema names case sensitivity. See Initialization Variables.
In the User variables (read/write) section, select the variable you want to edit in Variable Names drop down list, and enter or select the Variable Value. To delete a variable from the configuration, select the cross (X) at the end of the row. To add another variable to your configuration, select +Another Variable.
Every configuration has a set of default user variables. If you do not select any variable, Oracle adds these default variables to the Configuration. See User Variables.
Note
The Console rounds large integer values that it reads from the Configuration to 16 significant digits. For example, 9223372036854775807 is rounded to 9223372036854776000. You need to correct the rounded value of existing variables that exceed the maximum value.
The System variables (read-only) section shows non-editable system variables. See System Variables.
(Optional) Select Show advanced options to expand the Tags section. You can add a tag by selecting a Tag namespace and enter a Tag key and its Tag value. If you want to add another tag, select Add tag to create another row.
Once you create the configuration, you cannot edit the variables defined on the configuration. To edit variables, create a new configuration with the desired variables, or copy an existing configuration, edit the variables, and edit the DB system to use the new configuration. See Updating the Configuration of a DB System.
compartment-id: Specify the OCID of the compartment used to create the new configuration.
parent-configuration-id: Specify the OCID of the configuration to be copied from.
description: (Optional) Specify a brief description of the configuration.
display-name: (Optional) Specify the display name of the configuration. If you do not define a display name, Oracle generates one for you in the mysqlconfigurationYYYYMMDDHHMMSS format.
shape-name: Specify the name of the shape. For example, MySQL.4.
Note
The shape must be the same as the shape of the parent configuration.
variables: (Optional) Specify the variables and their corresponding values as key value pairs in a JSON object, for example:
{ "autocommit": true, "connectTimeout": 20 }
If the command validates and runs successfully, you get a response similar to the following, which summarizes the request and creates the configuration:
You can update the configuration of a DB system to an existing configuration or a newly created configuration to change the variable settings of the DB system.
If all the changed variables are dynamic, the DB system does not require a restart and no downtime is incurred.
If one or more non-dynamic variables are changed, the DB system needs to be restarted.
A standalone DB system incurs a downtime during the restart.
A high availability DB system incurs a brief downtime and a change in the current primary placement as it performs a rolling restart. The rolling restart shortens the downtime and causes a change in the current primary placement of the high availability DB system.
If the DB system has an active HeatWave cluster attached to it, the data in the HeatWave cluster is reloaded automatically.
Use the Console of a command-line interface to update the configuration of a DB system:
Open a command prompt and run the following command:
oci mysql db-system update
--db-system-id <DBSystemOCID>
--configuration-id <ConfigurationOCID>
db-system-id: Specify the OCID of the DB
system you want to update.
configuration-id: Specify the OCID of the
configuration with which you want to replace the existing
configuration.
Comparing Configurations 🔗
Compare the shapes, initialization variables, and user variables of two
configurations.
Note
This is a Console only feature, there is no equivalent CLI or REST API command. You can view the details of both configurations and compare the output.
Using the Console 🔗
Use the Console to compare two configurations.
Open the navigation menu and select Databases. Under HeatWave MySQL, click Configurations.
Select the check box of the two configurations you want to compare, click the Actions button at the top of the page, and then click Compare.
In the Compare configurations panel, click either of the following
option buttons:
Show configuration differences: Displays the differences in the
shapes, initialization variables, and user variables.
Show all configuration information: Displays all information
related to shapes, initialization variables, and user variables of the two
configurations.