psm jcs update-db-credentials

This command updates the password used by an Oracle Java Cloud Service instance to access the Oracle schemas in the infrastructure database.

Syntax

When a service instance is created, Oracle Java Cloud Service also creates the required schemas in the selected database. By default the schema password is set to the same value as the WebLogic Server administrator password, which you specify during the provisioning of your service instance.

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

psm jcs update-db-credentials -s|--service-name serviceName
  -c|--config-payload pathToJsonPayload
  [-wc|--wait-until-complete true|false]
  [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise specified.

Parameter Description
-s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-c|--config-payload pathToJsonPayload Specifies the path to a JSON file that contains the administrator credentials for the service instance’s infrastructure database, along with the new password for the service instance’s schemas in this database. The format of this file, as shown in the Sample Payload, is the same as the request body you provide when using the REST API. For information about this format, see Change the Database Schema Password in REST API for Oracle Java Cloud Service.

-wc|--wait-until-complete true|false

(Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Waiting for the job to complete... (it cannot be cancelled)
Default: false

-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.

Sample Payload

Note:

For a description of the payload parameters, see Change the Database Schema Password in REST API for Oracle Java Cloud Service.
{
    "components": {
        "WLS": {
            "dbaName": "db_admin_username",
            "dbaPassword": "db_admin_password",
            "schemaPassword": "new_schema_password"
        }
    }
}

Example

$ psm jcs update-db-credentials -s ExampleInstance -c /home/templates/update-db-creds-payload.json