Change the Database Schema Password
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/updatedbcredentials
When the Oracle Java Cloud Service instance was created, it was associated with a database deployment that hosts the required infrastructure schema. By default the schema password was set to the WebLogic Server administrator password specified during the provisioning of your service instance. The initial schema password is set to expire in a certain number of days (for example, 180 days) after the service instance is created. If you do not update the schema password before it expires, you will get password expiry error messages for operations that require access to the infrastructure repository schemas.
Note: On Oracle Cloud Infrastructure Classic, this endpoint is not supported for service instances and backups that were created before the October 2017 release of Oracle Java Cloud Service (17.4.1).
Request
- application/json
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
object
-
components:
object components
Groups properties for the Oracle WebLogic Server component (
WLS
).
object
WLS
).-
WLS:
object WLS
Properties for the Oracle WebLogic Server (WLS) component.
object
-
dbaName:
string
User name for the database administrator that will be used to change the password for all the infrastructure repository schemas.
This value must not be
SYSTEM
. Specify a database user that has been granted theSYSDBA
privilege. For service instances based on Oracle WebLogic Server 12c, you can use the database userSYS
.On Oracle Cloud Infrastructure: This value must be ADMIN if the associated infrastructure database is deployed on Oracle Autonomous Transaction Processing.
-
dbaPassword:
string
Password for the database administrator that was specified when the associated database deployment was created.
-
schemaPassword:
string
The new schema password to be set.
The password must start with a letter. In addition:
- For Oracle Autonomous Transaction Processing and Oracle Cloud Infrastructure Database (DB system): Must be between 12 and 30 characters long, and contain at least 2 lowercase letters, 2 uppercase letters, and 2 special characters.
- For other database deployments: Must be between 8 and 30 characters long, and contain at least one number, and, optionally, any number of these special characters only: underscore (_), pound sign (#), dollar sign ($)
Response
- application/json
202 Response
Location
header returns a URI that can be used to view the job status. See View the Status of an Operation by Job Id.object
issues
array for warning messages.-
details:
object details
Groups details of the operation.
object
-
issues(optional):
array issues
Groups strings of warning messages, if any.
-
jobId:
string
Job ID for the operation. Not available if the response status code is 400.
-
message:
string
System message that describes the operation.
400 Response
See Status Codes for information about other possible HTTP status codes.
object
issues
array for validation error messages.-
details(optional):
object details
Groups details of the request.
object
-
issues(optional):
array issues
Groups strings of validation error messages, if any.
-
message(optional):
string
System message that describes the request.
Examples
The following example shows how to change the password for the infrastructure repository schemas associated with an Oracle Java Cloud Service instance by submitting a POST request on the REST resource using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.
cURL Command
curl -i -X POST -u username:password -d @updatedbcredentials.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/updatedbcredentials
Example of Request Body
The following shows an example of the request body for changing the infrastructure schema password.
{
"components": {
"WLS": {
"dbaName": "name",
"dbaPassword": "password",
"schemaPassword": "newpassword"
}
}
}
Example of Response Header
The following shows an example of the response header. The Location
header returns the URI that can be used to view the job status. See View the Status of an Operation by Job Id.
HTTP/1.1 202 Accepted
Date: Mon, 14 May 2017 18:32:30 GMT
Transfer-Encoding: chunked
Location: https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/27617
Content-Type: application/json
Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance
Retry-After: 60
Example of Response Body
The following shows an example of the response document returned in JSON format.
{
"details":{
"message":"Submitted job to update DB credentials.",
"jobId":"27617"
}
}