gcloud oracle-database autonomous-databases update AUTONOMOUS_DATABASE [--async] [--location=LOCATION] [--request-id=REQUEST_ID] [--clear-properties --properties-local-adg-auto-failover-max-data-loss-limit-duration=PROPERTIES_LOCAL_ADG_AUTO_FAILOVER_MAX_DATA_LOSS_LIMIT_DURATION --[no-]properties-local-data-guard-enabled --encryption-key-provider=ENCRYPTION_KEY_PROVIDER --key-ring=KEY_RING --clear-encryption-key-kms | --encryption-key-kms=ENCRYPTION_KEY_KMS] [--labels=[LABELS,…] | --update-labels=[UPDATE_LABELS,…] --clear-labels | --remove-labels=REMOVE_LABELS] [GCLOUD_WIDE_FLAG …]
my-autonomous-database with custom KMS encryption key
projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key,
run:
gcloud oracle-database autonomous-databases update my-autonomous-database --location=us-east4 --properties-encryption-key-provider=GOOGLE_MANAGED --properties-encryption-key-kms-key=projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key
To enable Local Data Guard on an AutonomousDatabase with id
my-instance in the location us-east4 and set the auto
failover max data loss limit to 0, run:
gcloud oracle-database autonomous-databases update my-instance --location=us-east4 --properties-local-data-guard-enabled=true --properties-local-adg-auto-failover-max-data-loss-limit-duration=0
To update Local Data Guard settings on an AutonomousDatabase with id
my-instance in the location us-east4 and set the auto
failover max data loss limit to 60 seconds, run:
gcloud oracle-database autonomous-databases update my-instance --location=us-east4 --properties-local-adg-auto-failover-max-data-loss-limit-duration=60
To disable Local Data Guard on an AutonomousDatabase with id
my-instance in the location us-east4, run:
gcloud oracle-database autonomous-databases update my-instance --location=us-east4 --properties-local-data-guard-enabled=false
To set the project attribute:
autonomous_database on the command line with a
fully specified name;
--project on the command line;
core/project.
To set the location attribute:
autonomous_database on the command line with a
fully specified name;
--location on the command line.
AUTONOMOUS_DATABASEautonomous_database attribute:
autonomous_database on the command line.
--async--location=LOCATION--request-id=REQUEST_ID--clear-properties--properties-local-adg-auto-failover-max-data-loss-limit-duration=PROPERTIES_LOCAL_ADG_AUTO_FAILOVER_MAX_DATA_LOSS_LIMIT_DURATION--[no-]properties-local-data-guard-enabled--properties-local-data-guard-enabled to enable
and --no-properties-local-data-guard-enabled to disable.
--encryption-key-provider=ENCRYPTION_KEY_PROVIDERENCRYPTION_KEY_PROVIDER must be one of:
google-managedoracle-managed--key-ring=KEY_RINGkey-ring attribute:
--current on the command line with a fully
specified name;
--key-ring on the command line.
--clear-encryption-key-kms
The KMS key used to encrypt the Autonomous Database. This field is required if
the provider is GOOGLE_MANAGED. The name of the KMS key resource in the
following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
This represents a Cloud resource. (NOTE) Some attributes are not given arguments
in this group but can be set in other ways.
To set the project attribute:
--encryption-key-kms on the command line with
a fully specified name;
--project on the command line;
core/project.
To set the location attribute:
--encryption-key-kms on the command line with
a fully specified name;
--location on the command line.
key-ring attribute:
--encryption-key-kms on the command line with
a fully specified name;
--key-ring on the command line.
--encryption-key-kms=ENCRYPTION_KEY_KMScrypto-key attribute:
--encryption-key-kms on the command line.
--labels=[LABELS,…]KEY-), underscores (_), lowercase characters, and
numbers.
VALUE-), underscores (_),
lowercase characters, and numbers.
Shorthand Example:
--labels=string=string
JSON Example:
--labels='{"string": "string"}'
File Example:
--labels=path_to_file.(yaml|json)
--update-labels=[UPDATE_LABELS,…]KEY-), underscores (_), lowercase characters, and
numbers.
VALUE-), underscores (_),
lowercase characters, and numbers.
Shorthand Example:
--update-labels=string=string
JSON Example:
--update-labels='{"string": "string"}'
File Example:
--update-labels=path_to_file.(yaml|json)
--clear-labels--remove-labels=REMOVE_LABELSremove_labels value.
Shorthand Example:
--remove-labels=string,string
JSON Example:
--remove-labels=["string"]
File Example:
--remove-labels=path_to_file.(yaml|json)
--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
oracledatabase/v1 API. The full documentation
for this API can be found at: https://cloud.google.com/oracle/database/docs
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.