psm dbcs scale-down
Scale down the shape (OCPUs and memory) of an Oracle Database Classic Cloud Service instance.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm dbcs scale-down -s|--service-name instance-name
-p|--shape shape-name
[-of|--output-format json|html|short]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the Database Classic Cloud Service instance you want to scale down. |
|
Specifies the shape to scale down to. Valid values for
|
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Examples
The following example scales down the db12c-eeep
Database Classic Cloud
Service instance to the oc3
shape.
$ psm dbcs scale-down --service-name db12c-eeep --shape oc3
"Accepted"
Job ID : 553968
Here is the information about job 553968 upon successful completion of the operation:
$ psm dbcs operation-status --job-id 553968
{
"activityLogId":241350,
"authDomain":"usexample",
"authUser":"dbaasadmin",
"endDate":"2016-05-03T04:03:34.154+0000",
"identityDomain":"usexample",
"initiatedBy":"USER",
"jobId":553968,
"messages":[
{
"activityDate":"2016-05-03T03:56:30.027+0000",
"message":"Activity Submitted"
},
{
"activityDate":"2016-05-03T03:56:36.790+0000",
"message":"Activity Started"
},
{
"activityDate":"2016-05-03T03:58:55.352+0000",
"message":"Update of Database Service VM successful..."
},
{
"activityDate":"2016-05-03T04:03:09.222+0000",
"message":"Started Virtual Machine vm-1..."
},
{
"activityDate":"2016-05-03T04:03:09.635+0000",
"message":"SSH access to VM [DB_1/vm-1] succeeded..."
},
{
"activityDate":"2016-05-03T04:03:34.154+0000",
"message":"Activity Ended"
}
],
"operationId":22847,
"operationType":"SCALE_UP",
"serviceId":22847,
"serviceName":"db12c-eeep",
"serviceType":"dbaas",
"startDate":"2016-05-03T03:56:30.027+0000",
"status":"SUCCEED",
"summaryMessage":"SCALE_UP"
}