psm dbcs patch

Apply a patch to an Oracle Database Cloud Service instance.


In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm dbcs patch
  -s|--service-name instance-name
  -p|--patch-id patch-id
  [-n|--additional-note note-text]
  [-of|--output-format json|html|short]


Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Cloud Service instance you want to patch.

-p|--patch—id patch-id

Specifies the patch ID of the patch to apply. To retrieve a list of patch IDs available to apply a service instance, see psm dbcs available-patches.

-n|--additional-note note-text

(Optional) Specifies custom note text you want to associate with the patching operation.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.


The following example applies patch 22291127-EE to the db12c-xp-si Database Cloud Service instance.

$ psm dbcs patch --service-name db12c-xp-si --patch-id 22291127-EE
        "message":"PATCHING-5068: Patching service with patch [22291127-EE] is submitted as an asynchronous job.",
Job ID : 5859931

Here is the information about job 5859931 upon successful completion of the operation:

$ psm dbcs operation-status --job-id 5859931
            "message":"Phase initialize completed"
            "message":"Patching job [5859931] initiated by [dbaasadmin] started.."
            "message":"Phase patch completed"