Create a new database in the specified Oracle Home
/environment/homes/{homeName}/databases/
Request
- application/json
- 
                    homeName: string
                    
                    Name of the Oracle Home.
- 
                        Content-Type(optional): string
                        
                        Allowed Values:[ "application/json" ]
objectcreateDatabase- 
            container_configuration(optional): 
            array  container_configuration
            
            This object specifies that a Container Database is to be created with the PDB settings provided.
- 
            global_database_name(optional): 
            string
            Global Database Name.
- 
            response_file(optional): 
            string
            The name of the response file for DBCA to use.
- 
            sys_user_password(optional): 
            string
            The password for the sys user in the new database.
- 
            system_user_password(optional): 
            string
            The password for the system user in the new database.
- 
            template_name(optional): 
            string
            The name of the template file for DBCA to use.
- 
            total_memory(optional): 
            integer(int32)
            Total amount of physical memory, in megabytes, that can be used by the new database.
array- 
            Array of: 
                object  ContainerConfiguration1
            
            Title:ContainerConfiguration1
objectContainerConfiguration1- 
            number_of_pdbs: 
            integer(int32)
            The number of Pluggable Databases to create.
- 
            pdb_administrator_password: 
            string
            The password for the PDBADMIN user created in each Pluggable Database.
- 
            pdb_name: 
            string
            The name prefix to use for each Pluggable Database created.
Response
- application/json
202 Response
- 
                        Location: string
                        
                        Location header will provide URI of DBCA job so that processing of the request can be tracked.
Examples
The following example shows how to create a new database in the specified Oracle Home by submitting a POST request on the REST resource using cURL.
curl -i -X POST -u username:password 
-d @request_body.json 
-H "Content-Type:application/json" https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/databases/Example of Request Body
Note:
https://rest_server_url/resource-path, used in the preceding command has the following components: 
    - rest_server_urlis the REST server where Oracle Rest Data Server is running
- The remainder of the URL includes the ORDS context root, the version of ORDS Database API to use, and the path for this operation. OraDB18Home1is given as thehomeNameparameter value in the path. All DBCA operations are performed in Oracle Home.
The following is an example request body to create a non-container database. The non-container database is called devdb1 based on the General_Purpose.dbc template, and a predefined response file used to set additional configuration properties. The response to this request will be the location of the DBCA job that has been created to process the request. 
{
  "global_database_name": "devdb1",
  "template_name": "General_Purpose.dbc",
  "sys_user_password": "W3lc0m31",
  "system_user_password": "W3lc0m31",
  "response_file": "/disk1/oracle/install_oracle_for_dev.rsp"
}Example of Response Header
The following example shows the response header. The Location header returns the URI that can be used to view the DBCA job status. 
HTTP/1.1 202 Accepted
Date: Fri, 06 Sep 2019 18:17:26 GMT
X-Frame-Options: SAMEORIGIN
Location: https://rest_server_url/ords/_/db-api/stable/environment/dbca/jobs/Buq5Mm395gZgvXlwPFRSJv/
Transfer-Encoding: chunkedExample of Response Body
When a create database request is valid and accepted, the response body is empty. The response header contains the necessary information for the DBCA job.