Managing a Configuration
You can edit a custom configuration, copy a configuration, update the configuration of a DB system, or compare two configurations.
Editing a Custom Configuration
You can edit the name, description, and tags of a custom configuration. You cannot edit a default configuration.
- Using the Console
- Using the REST API, run the UpdateConfiguration operation.
Copying a Configuration
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.
- Using the Console
- Using the CLI
- Using the REST API, run the CreateConfiguration operation with the
parentConfigurationId
attribute.
Using the CLI
Use the command-line interface to copy a configuration.
- The Oracle Cloud Identifier (OCID) of your compartment.
- The OCID of an existing configuration to copy from.
- A policy that permits you to create configurations in the compartment or tenancy.
- If you are copying from a custom configuration, a policy that permits you to read the custom configuration.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
{
"data": {
"compartment-id": "ocid1.compartment.oc1..longAlphanumericString",
"defined-tags": {
"Oracle-Tags": {
"CreatedBy": "userName",
"CreatedOn": "2024-07-11T00:51:53.856Z"
}
},
"description": "This is a user defined descrption",
"display-name": "ConfigName",
"freeform-tags": {},
"id": "ocid1.mysqlconfiguration.oc1.longAlphanumericString",
"init-variables": {
"lower-case-table-names": "CASE_SENSITIVE"
},
"lifecycle-state": "ACTIVE",
"parent-configuration-id": "ocid1.mysqlconfiguration.oc1.longAlphanumericString",
"shape-name": "MySQL.2",
"time-created": "2024-07-11T00:51:53.866000+00:00",
"time-updated": "2024-07-11T00:51:53.866000+00:00",
"type": "CUSTOM",
"variables": {
"autocommit": true,
"big-tables": null,
"binlog-expire-logs-seconds": 3600,
"binlog-row-metadata": null,
"binlog-row-value-options": "PARTIAL_JSON",
"binlog-transaction-compression": null,
"completion-type": null,
"connect-timeout": 20,
"connection-memory-chunk-size": null,
"connection-memory-limit": null,
"cte-max-recursion-depth": null,
"default-authentication-plugin": null,
"foreign-key-checks": null,
"generated-random-password-length": null,
"global-connection-memory-limit": null,
"global-connection-memory-tracking": null,
"group-replication-consistency": "BEFORE_ON_PRIMARY_FAILOVER",
"information-schema-stats-expiry": null,
"innodb-buffer-pool-dump-pct": null,
"innodb-buffer-pool-instances": 4,
"innodb-buffer-pool-size": 9126805504,
"innodb-ddl-buffer-size": null,
"innodb-ddl-threads": null,
"innodb-ft-enable-stopword": null,
"innodb-ft-max-token-size": null,
"innodb-ft-min-token-size": null,
"innodb-ft-num-word-optimize": null,
"innodb-ft-result-cache-limit": 33554432,
"innodb-ft-server-stopword-table": null,
"innodb-lock-wait-timeout": null,
"innodb-log-writer-threads": null,
"innodb-max-purge-lag": null,
"innodb-max-purge-lag-delay": 300000,
"innodb-stats-persistent-sample-pages": null,
"innodb-stats-transient-sample-pages": null,
"interactive-timeout": null,
"local-infile": true,
"mandatory-roles": "public",
"max-allowed-packet": null,
"max-binlog-cache-size": 4294967296,
"max-connect-errors": null,
"max-connections": 1000,
"max-execution-time": null,
"max-heap-table-size": null,
"max-prepared-stmt-count": null,
"mysql-firewall-mode": null,
"mysql-zstd-default-compression-level": null,
"mysqlx-connect-timeout": null,
"mysqlx-deflate-default-compression-level": null,
"mysqlx-deflate-max-client-compression-level": null,
"mysqlx-document-id-unique-prefix": null,
"mysqlx-enable-hello-notice": null,
"mysqlx-idle-worker-thread-timeout": null,
"mysqlx-interactive-timeout": null,
"mysqlx-lz4-default-compression-level": null,
"mysqlx-lz4-max-client-compression-level": null,
"mysqlx-max-allowed-packet": null,
"mysqlx-min-worker-threads": null,
"mysqlx-read-timeout": null,
"mysqlx-wait-timeout": null,
"mysqlx-write-timeout": null,
"mysqlx-zstd-default-compression-level": null,
"mysqlx-zstd-max-client-compression-level": null,
"net-read-timeout": null,
"net-write-timeout": null,
"parser-max-mem-size": null,
"query-alloc-block-size": null,
"query-prealloc-size": null,
"regexp-time-limit": null,
"sort-buffer-size": null,
"sql-mode": null,
"sql-require-primary-key": true,
"sql-warnings": null,
"thread-pool-dedicated-listeners": null,
"thread-pool-max-transactions-limit": null,
"time-zone": "UTC",
"tmp-table-size": null,
"transaction-isolation": null,
"wait-timeout": null
}
},
"etag": "longAlphanumericString"
}
Updating the Configuration of a DB System
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.
- 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.
- Using the Console
- Using the CLI
- Using the REST API, run the UpdateDbSystem operation with the
configurationId
attribute.
Using the Console
Use the Console to update the configuration of a DB system.
Do the following to update the configuration of a DB system:
- (Optional) Create a new configuration. See Creating a Custom Configuration.
- Edit the DB system to update the configuration. See Editing a DB System.
Note
You cannot update the configuration if there is an active channel connected to the DB system. Stop the channel to update the configuration.
Related Topics
Using the CLI
Use the command-line interface to update the configuration of a DB system.
- A DB system Oracle Cloud Identifier (OCID).
- A HeatWave configuration OCID.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Comparing Configurations
Compare the shapes, initialization variables, and user variables of two configurations.
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.
- On the Configurations list page, select two configurations that you want to compare. If you need help finding the list page or the configuration, see Listing Configurations - Using the Console.
- From the Actions menu at the top of the configuration list, select Compare.
- In the Compare configurations panel, select 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.
- Select Close.
Related Topics
Deleting a Configuration
You can delete a custom configuration that is not currently used by any DB system.
- Using the Console
- Using the CLI
- Using the REST API, run the DeleteConfiguration operation.
Using the Console
Use the Console to delete a custom configuration.
- The custom configuration that you want to delete is not being used by any DB system.
- A policy that permits you to delete configurations in the compartment or tenancy.
- On the Configurations list page, find the configuration that you want to work with. If you need help finding the list page or the configuration, see Listing Configurations - Using the Console.
- From the Actions menu for the configuration, select Delete.
- When prompted, confirm the deletion.
Using the CLI
Use the command-line interface to delete a configuration.
- The OCID of a HeatWave configuration that is not being used by any DB system.
- A policy that permits you to delete configurations in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.