---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}`

## Request

- Base URL: `https://oracledatabase.googleapis.com`
- URL: `https://oracledatabase.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Updates the `labels` of a single DbSystem.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `dbSystemsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `requestId` string
- `updateMask` string, google-fieldmask

## Request body

- DbSystem: Details of the DbSystem (BaseDB) resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/
  - `createTime` string, google-datetime: Output only. The date and time that the DbSystem was created.
  - `displayName` string: Required. Immutable. The display name for the System db. The name does not have to be unique within your project.
  - `entitlementId` string: Output only. The ID of the subscription entitlement associated with the DbSystem
  - `gcpOracleZone` string: Optional. Immutable. The GCP Oracle zone where Oracle DbSystem is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.
  - `labels` object: Optional. The labels or tags associated with the DbSystem.
  - `name` string: Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system}
  - `ociUrl` string: Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.
  - `odbNetwork` string: Optional. Immutable. The name of the OdbNetwork associated with the DbSystem. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the OdbSubnet.
  - `odbSubnet` string: Required. Immutable. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
  - `properties` DbSystemProperties: The properties of a DbSystem.
    - `computeCount` integer: Required. The number of CPU cores to enable for the DbSystem.
    - `computeModel` 'COMPUTE_MODEL_UNSPECIFIED' | 'ECPU' | 'OCPU': Optional. The compute model of the DbSystem.
    - `dataCollectionOptions` DataCollectionOptionsDbSystem: Data collection options for DbSystem.
      - `isDiagnosticsEventsEnabled` boolean: Optional. Indicates whether to enable data collection for diagnostics.
      - `isIncidentLogsEnabled` boolean: Optional. Indicates whether to enable incident logs and trace collection.
    - `dataStorageSizeGb` integer: Optional. The data storage size in GB that is currently available to DbSystems. The value is same as initial_data_storage_size_gb. This can be modified from OCI console.
    - `databaseEdition` 'DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED' | 'STANDARD_EDITION' | 'ENTERPRISE_EDITION' | 'ENTERPRISE_EDITION_HIGH_PERFORMANCE': Required. The database edition of the DbSystem.
    - `dbHome` DbHome: Details of the Database Home resource.
      - `database` Database: Details of the Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/
        - `adminPassword` string: Optional. Input only. The password for the default ADMIN user. Note: Only one of `admin_password_secret_version` or `admin_password` can be populated.
        - `adminPasswordSecretVersion` string: Optional. Input only. The resource name of a secret version in Secret Manager which contains the database admin user's password. Format: projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of `admin_password_secret_version` or `admin_password` can be populated.
        - `characterSet` string: Optional. The character set for the database. The default is AL32UTF8.
        - `createTime` string, google-datetime: Output only. The date and time that the Database was created.
        - `databaseId` string: Optional. The database ID of the Database.
        - `dbHomeName` string: Optional. The name of the DbHome resource associated with the Database.
        - `dbName` string: Optional. The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.
        - `dbUniqueName` string: Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
        - `gcpOracleZone` string: Output only. The GCP Oracle zone where the Database is created.
        - `name` string: Identifier. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}
        - `ncharacterSet` string: Optional. The national character set for the database. The default is AL16UTF16.
        - `ociUrl` string: Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.
        - `opsInsightsStatus` 'OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED' | 'ENABLING' | 'ENABLED' | 'DISABLING' | 'NOT_ENABLED' | 'FAILED_ENABLING' | 'FAILED_DISABLING': Output only. The Status of Operations Insights for this Database.
        - `pluggableDatabaseId` string: Optional. The ID of the pluggable database associated with the Database. The ID must be unique within the project and location.
        - `pluggableDatabaseName` string: Optional. The pluggable database associated with the Database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters.
        - `properties` DatabaseProperties: The properties of a Database.
          - `databaseManagementConfig` DatabaseManagementConfig: The configuration of the Database Management service.
            - `managementState` 'MANAGEMENT_STATE_UNSPECIFIED' | 'ENABLING' | 'ENABLED' | 'DISABLING' | 'DISABLED' | 'UPDATING' | 'FAILED_ENABLING' | 'FAILED_DISABLING' | 'FAILED_UPDATING': Output only. The status of the Database Management service.
            - `managementType` 'MANAGEMENT_TYPE_UNSPECIFIED' | 'BASIC' | 'ADVANCED': Output only. The Database Management type.
          - `dbBackupConfig` DbBackupConfig: Backup Options for the Database.
            - `autoBackupEnabled` boolean: Optional. If set to true, enables automatic backups on the database.
            - `autoFullBackupDay` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY': Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.
            - `autoFullBackupWindow` 'BACKUP_WINDOW_UNSPECIFIED' | 'SLOT_ONE' | 'SLOT_TWO' | 'SLOT_THREE' | 'SLOT_FOUR' | 'SLOT_FIVE' | 'SLOT_SIX' | 'SLOT_SEVEN' | 'SLOT_EIGHT' | 'SLOT_NINE' | 'SLOT_TEN' | 'SLOT_ELEVEN' | 'SLOT_TWELVE': Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.
            - `autoIncrementalBackupWindow` 'BACKUP_WINDOW_UNSPECIFIED' | 'SLOT_ONE' | 'SLOT_TWO' | 'SLOT_THREE' | 'SLOT_FOUR' | 'SLOT_FIVE' | 'SLOT_SIX' | 'SLOT_SEVEN' | 'SLOT_EIGHT' | 'SLOT_NINE' | 'SLOT_TEN' | 'SLOT_ELEVEN' | 'SLOT_TWELVE': Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.
            - `backupDeletionPolicy` 'BACKUP_DELETION_POLICY_UNSPECIFIED' | 'DELETE_IMMEDIATELY' | 'DELETE_AFTER_RETENTION_PERIOD': Optional. This defines when the backups will be deleted after Database termination.
            - `backupDestinationDetails` BackupDestinationDetails[]: Optional. Details of the database backup destinations.
              - …
            - `retentionPeriodDays` integer: Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.
          - `dbVersion` string: Required. The Oracle Database version.
          - `state` 'DATABASE_LIFECYCLE_STATE_UNSPECIFIED' | 'PROVISIONING' | 'AVAILABLE' | 'UPDATING' | 'BACKUP_IN_PROGRESS' | 'UPGRADING' | 'CONVERTING' | 'TERMINATING' | 'TERMINATED' | 'RESTORE_FAILED' | 'FAILED': Output only. State of the Database.
        - `tdeWalletPassword` string: Optional. Input only. The TDE wallet password for the database. Note: Only one of `tde_wallet_password_secret_version` or `tde_wallet_password` can be populated.
        - `tdeWalletPasswordSecretVersion` string: Optional. Input only. The resource name of a secret version in Secret Manager which contains the TDE wallet password for the database. Format: projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of `tde_wallet_password_secret_version` or `tde_wallet_password` can be populated.
      - `dbVersion` string: Required. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
      - `displayName` string: Optional. The display name for the Database Home. The name does not have to be unique within your project.
      - `isUnifiedAuditingEnabled` boolean: Optional. Whether unified auditing is enabled for the Database Home.
    - `dbSystemOptions` DbSystemOptions: Details of the DbSystem Options.
      - `storageManagement` 'STORAGE_MANAGEMENT_UNSPECIFIED' | 'ASM' | 'LVM': Optional. The storage option used in DB system.
    - `domain` string: Optional. The host domain name of the DbSystem.
    - `hostname` string: Output only. The hostname of the DbSystem.
    - `hostnamePrefix` string: Optional. Prefix for DB System host names.
    - `initialDataStorageSizeGb` integer: Required. The initial data storage size in GB.
    - `licenseModel` 'LICENSE_MODEL_UNSPECIFIED' | 'LICENSE_INCLUDED' | 'BRING_YOUR_OWN_LICENSE': Required. The license model of the DbSystem.
    - `lifecycleState` 'DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED' | 'PROVISIONING' | 'AVAILABLE' | 'UPDATING' | 'TERMINATING' | 'TERMINATED' | 'FAILED' | 'MIGRATED' | 'MAINTENANCE_IN_PROGRESS' | 'NEEDS_ATTENTION' | 'UPGRADING': Output only. State of the DbSystem.
    - `memorySizeGb` integer: Optional. The memory size in GB. This value can not be set and is automatically calculated based on the number of ECPUs allocated to the DbSystem.
    - `nodeCount` integer: Optional. The number of nodes to launch for a virtual machine DbSystem. By default this will be set to 1.
    - `ocid` string: Output only. OCID of the DbSystem.
    - `privateIp` string: Optional. The private IP address of the DbSystem.
    - `recoStorageSizeGb` integer: Optional. The reco/redo storage size in GB. The value for recovery storage size is based on the available data storage size.
    - `shape` string: Required. Shape of DB System.
    - `sshPublicKeys` string[]: Required. SSH public keys to be stored with the DbSystem.
    - `timeZone` TimeZone: Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).
      - `id` string: IANA Time Zone Database time zone. For example "America/New_York".
      - `version` string: Optional. IANA Time Zone Database version number. For example "2019a".

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/oracledatabase.md) - [All operations](https://skmtc.dev/google/apis/oracledatabase/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/oracledatabase/revisions/215e9c1e9c3f?raw)
