You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,19 @@ The 11gR2 (11.2.0.2) Oracle Database version stores the database data files unde
46
46
47
47
## Environment variables
48
48
49
+
Environment variables allow you to customize your container. Note that these variables will only be considered during the database initialization (first container startup).
50
+
49
51
### `ORACLE_PASSWORD`
50
52
This variable is mandatory for the first container startup and specifies the password for the Oracle Database `SYS` and `SYSTEM` users.
51
53
52
54
### `ORACLE_RANDOM_PASSWORD`
53
55
This is an optional variable. Set this variable to a non-empty value, like `yes`, to generate a random initial password for the `SYS` and `SYSTEM` users. The generated password will be printed to stdout (`ORACLE PASSWORD FOR SYS AND SYSTEM: ...`).
54
56
57
+
### `ORACLE_DATABASE`
58
+
This is an optional variable. Set this variable to a non-empty string to create a new pluggable database with the name specified in this variable. **Note:** creating a new database can add several additional seconds to the initial container startup. If you do not want that additional startup time, use the already existing `XEPDB1` database instead.
59
+
55
60
### `APP_USER`
56
-
This is an optional variable. Set this variable to a non-empty string to create a new database schema user with the name specified in this variable. This variable requires `APP_USER_PASSWORD` or `APP_USER_PASSWORD_FILE` to be specified as well.
61
+
This is an optional variable. Set this variable to a non-empty string to create a new database schema user with the name specified in this variable. The user will be created in the default `XEPDB1` pluggable database. If `ORACLE_DATABASE` has been specified, the user will also be created in that pluggable database. This variable requires `APP_USER_PASSWORD` or `APP_USER_PASSWORD_FILE` to be specified as well.
57
62
58
63
### `APP_USER_PASSWORD`
59
64
This is an optional variable. Set this variable to a non-empty string to define a password for the database schema user specified by `APP_USER`. This variable requires `APP_USER` to be specified as well.
@@ -100,6 +105,7 @@ This mechanism is supported for:
100
105
101
106
* `ORACLE_PASSWORD`
102
107
* `APP_USER_PASSWORD`
108
+
* `ORACLE_DATABASE`
103
109
104
110
## Initialization scripts
105
111
If you would like to perform additional initialization of the database running in a container, you can add one or more `*.sql`, `*.sql.gz`, `*.sql.zip` or `*.sh` files under `/container-entrypoint-initdb.d` (creating the directory if necessary). After the database setup is completed, these files will be executed automatically in alphabetical order.
0 commit comments