Replace 22 with the appropriate SSH port number. Verify that you have SSH access to all of the cluster nodes. Edit the IP addresses or hostnames of the nodes in the cluster.
NOTE: The first node in the list of nodes is the head node. The remaining nodes are compute nodes. If desired, you can customize the cluster profile to change these and other settings.
After the Oracle Database server indicates that the container has started, and the STATUS field shows healthy ,client applications can connect to the database. You can connect to the database outside the container by connecting either to the default port , or to the port you have set to be the exposed port. To connect from outside of the container, start the container with the -p option, as described in the section "Custom Configurations" in this document.
You can either use the default port as the exposed external port, or map another port as the Docker port. To identify the Docker port to which the Oracle Database port has been mapped, enter the following command, where db-name is the Oracle Database name:. In this example, the exposed Docker port for the database is On the first startup of the container, if you have not run a custom configuration and provided passwords for database administrator accounts using by using the -e , then by default a single random password is generated for these administrative users.
You can find this password in the following output line of the database logs:. To change the password for these three database administration accounts, use the Docker exec command to run the setPassword. For example, where dbname is the database name, and password is the password:. To customize your configuration at the time that you start up the Oracle Database image on Docker, you can use this list of custom parameters. This parameter changes the Oracle system identifier SID of the database.
This parameter is optional. This parameter modifies the name of the pluggable database PDB. The default value is randomly generated. After configuration, you can change the administration user password as described in his password can be changed later as described in "How to Change the Administrative Users Password for the Database. If you have not provided an SGA size value, then the default value is calculated during database creation. This parameter modifies the target aggregate memory in MB of the Program Global Area, or PGA, that you want to be used for all server processes attached to the instance.
If you have not provided a PGA value, then the default value is calculated during database creation. After the database is configured, you can change the PGA value later as described in "This parameter is optional. This parameter selects the Oracle Database edition when the container is started for the first time. The options are enterprise , for Enterprise Edition, and standard , for Standard Edition.
The default value is enterprise. This parameter modifies the national language character set of the database. The Oracle Database Docker image enables you to customize the configuration of your database, and to provide initialization parameters for when the database starts.
Oracle Database server container also provides configuration parameters that can be used when starting the container. The following example provides the syntax for a detailed docker run command supporting all custom configurations, with variable values in Italics font, which you can replace with values for your deployment:. To start an Oracle Database server instance you use the docker run command, specifying the Docker container that contains the database.
To start the container, run the following command from the command prompt, where oracle-db is the name of the container that contains the Oracle Database:. To obtain the SYS user password, use the setPassword. After you initially start up the database, you can reuse the Docker data volumes created during initial configuration.
To start the Oracle Database image with a data volume, use the docker run command, where dbname is the database name:. During the first instance creation, data files are created in the new data volume. To use a directory on the host system for the data volume, run the following command, where dbname is the CDB name, and writable-directory-path is the directory path where you want to place the directory:.
You can choose either to size the SGA and PGA when the initial database is created, or use the automatic values generated during database creation. If you want to set the values for the system global area SGA and program global area PGA memory yourself, then you can define these sizes by specifying the values in metabytes MB the first time the database is created.
You must provide the values in MB, without any units appended to the values. For example:. These parameters are optional.
0コメント