psm dbcs restart

Restart an Oracle Database Cloud Service instance.


psm dbcs restart -s|--service-name instance-name [-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 restart.

-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 restarts the db12c-eeep Database Cloud Service instance.

$ psm dbcs restart --service-name db12c-eeep
Job ID : 555362

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

$ psm dbcs operation-status --job-id 555362
            "message":"Activity Submitted"
            "message":"Activity Started"
            "message":"The Service [db12c-eeep] is restarting..."
            "message":"Started Virtual Machine vm-1..."
            "message":"SSH access to VM [DB_1/vm-1] succeeded..."
            "message":"The Service [db12c-eeep] has been restarted."
            "message":"Activity Ended"