psm dbcs stop

Stop an Oracle Database Cloud Service instance.

Syntax

psm dbcs stop -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 Cloud Service instance you want to stop.

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

$ psm dbcs stop --service-name db12c-eeep
"Accepted"
Job ID : 553943

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

$ psm dbcs operation-status --job-id 553943
{
    "activityLogId":241345,
    "authDomain":"usexample",
    "authUser":"dbaasadmin",
    "endDate":"2016-05-03T03:13:35.086+0000",
    "identityDomain":"usexample",
    "initiatedBy":"USER",
    "jobId":553943,
    "messages":[
        {
            "activityDate":"2016-05-03T03:11:20.152+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2016-05-03T03:11:25.137+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2016-05-03T03:11:25.184+0000",
            "message":"The Service [db12c-eeep] is being stopped..."
        },
        {
            "activityDate":"2016-05-03T03:13:35.073+0000",
            "message":"The Service [db12c-eeep] has been stopped."
        },
        {
            "activityDate":"2016-05-03T03:13:35.086+0000",
            "message":"Activity Ended"
        }
    ],
    "operationId":22847,
    "operationType":"STOP_SERVICE",
    "serviceId":22847,
    "serviceName":"db12c-eeep",
    "serviceType":"dbaas",
    "startDate":"2016-05-03T03:11:20.152+0000",
    "status":"SUCCEED",
    "summaryMessage":"STOP_SERVICE"
}