psm dbcs restart

Restart an Oracle Database Classic Cloud Service instance.

Syntax

psm dbcs restart -s|--service-name instance-name [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Classic 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.

Examples

The following example restarts the db12c-eeep Database Classic Cloud Service instance.

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

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

$ psm dbcs operation-status --job-id 555362
{
    "activityLogId":239720,
    "authDomain":"usexample",
    "authUser":"dbaasadmin",
    "endDate":"2016-05-03T03:29:03.680+0000",
    "identityDomain":"usexample",
    "initiatedBy":"USER",
    "jobId":555362,
    "messages":[
        {
            "activityDate":"2016-05-03T03:22:21.180+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2016-05-03T03:22:26.139+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2016-05-03T03:22:26.176+0000",
            "message":"The Service [db12c-eeep] is restarting..."
        },
        {
            "activityDate":"2016-05-03T03:29:01.823+0000",
            "message":"Started Virtual Machine vm-1..."
        },
        {
            "activityDate":"2016-05-03T03:29:02.154+0000",
            "message":"SSH access to VM [DB_1/vm-1] succeeded..."
        },
        {
            "activityDate":"2016-05-03T03:29:03.665+0000",
            "message":"The Service [db12c-eeep] has been restarted."
        },
        {
            "activityDate":"2016-05-03T03:29:03.680+0000",
            "message":"Activity Ended"
        }
    ],
    "operationId":22847,
    "operationType":"RESTART_SERVICE",
    "serviceId":22847,
    "serviceName":"db12c-eeep",
    "serviceType":"dbaas",
    "startDate":"2016-05-03T03:22:21.180+0000",
    "status":"SUCCEED",
    "summaryMessage":"RESTART_SERVICE"
}