Skip to content

Commit 81c563c

Browse files
committed
Enhancements described in #28 and #29
1 parent e35a531 commit 81c563c

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
2. Download the installer files:
2020
* [Oracle Database 18c XE](https://oracle.com/xe) or any of the required installation files from [OTN](https://www.oracle.com/technetwork/database/) (supports versions up to 19.3 as of April 25, 2019)
2121
* [Oracle Application Express](https://apex.oracle.com/download) (supports versions up 20.1 as of April 23, 2020)
22-
* [Oracle REST Data Services](https://www.oracle.com/technetwork/developer-tools/rest-data-services/downloads/index.html) (supports versions up to 19.4 as of December 21, 2019)
23-
* [Java Development Kit SE 8](https://www.oracle.com/technetwork/java/javase/downloads/) (**IMPORTANT**: Please download the tarball, e.g. `jdk-8u251-linux-x64.tar.gz`.)
22+
* [Oracle REST Data Services](https://www.oracle.com/technetwork/developer-tools/rest-data-services/downloads/index.html) (supports versions up to 20.2 as of July 18, 2020)
23+
* [Java Development Kit SE 8](https://www.oracle.com/technetwork/java/javase/downloads/) (**IMPORTANT**: Please download the tarball, e.g. `jdk-8u261-linux-x64.tar.gz`.)
2424
3. Place all four files in the sub-directory `files`.
2525
4. Create a new file that contains the required variables. Make a copy of `settings.env.sample`, e.g. `mysettings.env`, and modify as desired. The file should contain the following variables:
2626
```bash
@@ -34,8 +34,8 @@
3434
APEX_REST_PUBLIC_USER_PWD=Oracle18_3
3535
ORDS_PUBLIC_USER_PWD=Oracle18_4
3636
INSTALL_FILE_APEX=apex_20.1.zip
37-
INSTALL_FILE_ORDS=ords-19.2.0.199.1647.zip
38-
INSTALL_FILE_JAVA=jdk-8u251-linux-x64.tar.gz
37+
INSTALL_FILE_ORDS=ords-20.2.0.178.1804.zip
38+
INSTALL_FILE_JAVA=jdk-8u261-linux-x64.tar.gz
3939
DOCKER_ORDS_PORT=50080
4040
DOCKER_EM_PORT=55500
4141
DOCKER_DB_PORT=51521
@@ -47,14 +47,16 @@
4747
REST_ENABLED_SQL=Y
4848
RTU_ENABLED=N
4949
SQLDEVWEB=Y
50+
DATABASEAPI=Y
5051
```
5152

5253
> * Specify the Docker network to attach to using the parameter `DOCKER_NETWORK_NAME`. The run script will check if the network exists, and if not, create it.
5354
> * The parameter `RTU_ENABLED` has been introduced. It allows users to create containers that can be used to create an image from using Docker [commit](https://docs.docker.com/engine/reference/commandline/commit/). Set the value to "Y" if this ability is required.
5455
> * Use the `FILES_DIR` parameter to specify the local path to all the required installation files, e.g. `/path/to/my/downloads`.
55-
> * **NEW** Set the value of `ALLOW_DB_PATCHING` to `Y` to preserve files needed to successfully patch the database software with *OPatch*.
56-
> * **NEW** [As of December 5, 2019](https://blogs.oracle.com/database/machine-learning%2c-spatial-and-graph-no-license-required-v2), Oracle Machine Learning (previously known as Oracle Advanced Analytics) option is now included with all editions of Oracle Database 12c R2 and later, including 18c Express Edition (XE). Use the `OML4R_SUPPORT` parameter to install database support for running embedded R scripts. At the moment, this option is only valid for 18c or later.
57-
> * **NEW** SQL Developer Web is now availablel with ORDS version 19.4. This feature is enabled by default. To turn it off, set the environment variable `SQLDEVWEB` to `N`. The REST-enabled SQL feature can be managed by the variable `REST_ENABLED_SQL`, but note that this value is ignored if SQL Developer Web is activated. For builds with earlier ORDS versions, the added configuration properties are safely ignored.
56+
> * Set the value of `ALLOW_DB_PATCHING` to `Y` to preserve files needed to successfully patch the database software with *OPatch*.
57+
> * [As of December 5, 2019](https://blogs.oracle.com/database/machine-learning%2c-spatial-and-graph-no-license-required-v2), Oracle Machine Learning (previously known as Oracle Advanced Analytics) option is now included with all editions of Oracle Database 12c R2 and later, including 18c Express Edition (XE). Use the `OML4R_SUPPORT` parameter to install database support for running embedded R scripts. At the moment, this option is only valid for 18c or later.
58+
> * SQL Developer Web is now availablel with ORDS version 19.4. This feature is enabled by default. To turn it off, set the environment variable `SQLDEVWEB` to `N`. The REST-enabled SQL feature can be managed by the variable `REST_ENABLED_SQL`, but note that this value is ignored if SQL Developer Web is activated. For builds with earlier ORDS versions, the added configuration properties are safely ignored.
59+
> * **New** `DATABASEAPI` parameter added to enable Database API support for ORDS 19.x and later.
5860
5. Run the first script to grab the latest Docker [images](https://github.com/oracle/docker-images) from Oracle and build the Oracle Database image. The script takes one parameter, the environment filename (`mysettings.env`):
5961
```bash
6062
$ bash 01-build.sh mysettings.env

scripts/setup/package/installOrds.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ sys.password=${ORACLE_PWD}
3636
EOF
3737

3838
# If SQLDEVWEB = Y, then REST_ENABLED_SQL must be Y
39-
if [[ $SQLDEVWEB =~ (Y|y) || $REST_ENABLED_SQL =~ (Y|y) ]]; then
39+
if [[ $SQLDEVWEB =~ (Y|y) || $REST_ENABLED_SQL =~ (Y|y) || $DATABASEAPI =~ (Y|y) ]]; then
4040
echo "restEnabledSql.active=true" >> $PARAM_FILE
4141
fi
4242

4343
if [[ $SQLDEVWEB =~ (Y|y) ]]; then
4444
echo "feature.sdw=true" >> $PARAM_FILE
4545
fi
4646

47+
if [[ $DATABASEAPI =~ (Y|y) ]]; then
48+
echo "database.api.enabled=true" >> $PARAM_FILE
49+
fi
50+
4751
java -jar ords.war configdir $ORDS_CONFIG_DIR
4852

4953
java -jar ords.war install simple --parameterFile $ORDS_HOME/params/custom_params.properties

settings.env.sample

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ APEX_LISTENER_PWD=Oracle18_2
88
APEX_REST_PUBLIC_USER_PWD=Oracle18_3
99
ORDS_PUBLIC_USER_PWD=Oracle18_4
1010
INSTALL_FILE_APEX=apex_20.1.zip
11-
INSTALL_FILE_ORDS=ords-19.4.0.352.1226.zip
12-
INSTALL_FILE_JAVA=jdk-8u251-linux-x64.tar.gz
11+
INSTALL_FILE_ORDS=ords-20.2.0.178.1804.zip
12+
INSTALL_FILE_JAVA=jdk-8u261-linux-x64.tar.gz
1313
DOCKER_ORDS_PORT=50080
1414
DOCKER_EM_PORT=55500
1515
DOCKER_DB_PORT=51521
@@ -20,4 +20,5 @@ ALLOW_DB_PATCHING=N
2020
OML4R_SUPPORT=N
2121
REST_ENABLED_SQL=Y
2222
RTU_ENABLED=N
23-
SQLDEVWEB=Y
23+
SQLDEVWEB=Y
24+
DATABASEAPI=Y

settings_db19c.env.sample

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ APEX_LISTENER_PWD=Oracle19_2
88
APEX_REST_PUBLIC_USER_PWD=Oracle19_3
99
ORDS_PUBLIC_USER_PWD=Oracle19_4
1010
INSTALL_FILE_APEX=apex_20.1.zip
11-
INSTALL_FILE_ORDS=ords-19.4.0.352.1226.zip
12-
INSTALL_FILE_JAVA=jdk-8u251-linux-x64.tar.gz
11+
INSTALL_FILE_ORDS=ords-20.2.0.178.1804.zip
12+
INSTALL_FILE_JAVA=jdk-8u261-linux-x64.tar.gz
1313
DOCKER_ORDS_PORT=50080
1414
DOCKER_EM_PORT=55500
1515
DOCKER_DB_PORT=51521
@@ -20,4 +20,5 @@ ALLOW_DB_PATCHING=N
2020
OML4R_SUPPORT=N
2121
REST_ENABLED_SQL=Y
2222
RTU_ENABLED=N
23-
SQLDEVWEB=Y
23+
SQLDEVWEB=Y
24+
DATABASEAPI=Y

0 commit comments

Comments
 (0)