Creating a Custom Configuration
Create a custom configuration for the DB system.
Note
The custom configurations created with these steps only support standalone DB systems. If you want to create a custom configuration that supports high availability DB systems, you have to perform the steps in Copying a Configuration.
The custom configurations created with these steps only support standalone DB systems. If you want to create a custom configuration that supports high availability DB systems, you have to perform the steps in Copying a Configuration.
- Using the Console
- Using the CLI
- Using the REST API, run the CreateConfiguration operation.
Using the Console
Use the Console to create a custom configuration for the DB system.
This task requires the following:
- A policy that permits you to create configurations in the compartment or tenancy.
Do the following to create a custom configuration using the
console:
Using the CLI
Use the command-line interface to create a custom configuration for the DB system.
This task requires the following:
- A compartment Oracle Cloud Identifier (OCID).
- A policy that permits you to create configurations in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Create a custom configuration using the CLI:
If the command validates and runs successfully, you get a response similar to
the following, which summarizes the request and creates the configuration:
{
"data": {
"compartment-id": "ocid1.compartment.oc1..longAlphanumericString",
"defined-tags": {
"Oracle-Tags": {
"CreatedBy": "userName",
"CreatedOn": "2024-07-18T01:12:58.850Z"
}
},
"description": "This is a user defined descrption",
"display-name": "ConfigName",
"freeform-tags": {},
"id": "ocid1.mysqlconfiguration.oc1.longAlphanumericString",
"lifecycle-state": "ACTIVE",
"parent-configuration-id": "ocid1.mysqlconfiguration.oc1..longAlphanumericString",
"shape-name": "MySQL.4",
"time-created": "2024-07-18T01:12:58.894000+00:00",
"time-updated": "2024-07-18T01:12:58.894000+00:00",
"type": "CUSTOM",
"options" : [ {
"name" : "audit_log_max_size",
"value" : "5368709120"
}, {
"name" : "audit_log_rotate_on_size",
"value" : "5242880"
}, {
"name" : "audit_log_strategy",
"value" : "ASYNCHRONOUS"
}, {
"name" : "autocommit",
"value" : "ON"
}, {
"name" : "binlog_expire_logs_seconds",
"value" : "3600"
}, {
"name" : "binlog_row_value_options",
"value" : "PARTIAL_JSON"
}, {
"name" : "binlog_transaction_dependency_history_size",
"value" : "1000000"
}, {
"name" : "connect_timeout",
"value" : "20"
}, {
"name" : "group_replication_consistency",
"value" : "BEFORE_ON_PRIMARY_FAILOVER"
}, {
"name" : "innodb_adaptive_hash_index",
"value" : "OFF"
}, {
"name" : "innodb_buffer_pool_instances",
"value" : "4"
}, {
"name" : "innodb_buffer_pool_size",
"value" : "2147483648"
}, {
"name" : "innodb_change_buffering",
"value" : "NONE"
}, {
"name" : "innodb_doublewrite_files",
"value" : "2"
}, {
"name" : "innodb_doublewrite_pages",
"value" : "128"
}, {
"name" : "innodb_extend_and_initialize",
"value" : "OFF"
}, {
"name" : "innodb_ft_result_cache_limit",
"value" : "33554432"
}, {
"name" : "innodb_log_buffer_size",
"value" : "67108864"
}, {
"name" : "innodb_max_purge_lag_delay",
"value" : "300000"
}, {
"name" : "innodb_numa_interleave",
"value" : "ON"
}, {
"name" : "innodb_page_cleaners",
"value" : "4"
}, {
"name" : "innodb_read_io_threads",
"value" : "1"
}, {
"name" : "innodb_redo_log_capacity",
"value" : "2147483648"
}, {
"name" : "local_infile",
"value" : "ON"
}, {
"name" : "lock_wait_timeout",
"value" : "86400"
}, {
"name" : "lower_case_table_names",
"value" : "CASE_SENSITIVE"
}, {
"name" : "mandatory_roles",
"value" : "public"
}, {
"name" : "max_binlog_cache_size",
"value" : "4294967296"
}, {
"name" : "max_connect_errors",
"value" : "18446744073709551615"
}, {
"name" : "max_connections",
"value" : "500"
}, {
"name" : "performance_schema_max_statement_stack",
"value" : "1"
}, {
"name" : "relay_log_space_limit",
"value" : "8589934592"
}, {
"name" : "replica_parallel_workers",
"value" : "12"
}, {
"name" : "table_open_cache_instances",
"value" : "16"
}, {
"name" : "temptable_max_ram",
"value" : "1073741824"
}, {
"name" : "thread_pool_size",
"value" : "8"
}, {
"name" : "time_zone",
"value" : "UTC"
} ]
},
"etag": "longAlphanumericString"
}