Skip to content

Commit 009e997

Browse files
committed
Support ORDS 19.4 and SQL Developer Web
1 parent 5f607bb commit 009e997

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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 19.2 as of November 1, 2019)
22-
* [Oracle REST Data Services](https://www.oracle.com/technetwork/developer-tools/rest-data-services/downloads/index.html) (supports versions up to 19.2 as of August 31, 2019)
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)
2323
* [Java Development Kit SE 8](https://www.oracle.com/technetwork/java/javase/downloads/) (**IMPORTANT**: Please download the tarball, e.g. `jdk-8u231-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:
@@ -42,16 +42,19 @@
4242
DB_VERSION=18.4.0
4343
DB_EDITION=xe
4444
DOCKER_NETWORK_NAME=axer_network
45+
ALLOW_DB_PATCHING=N
4546
OML4R_SUPPORT=N
47+
REST_ENABLED_SQL=Y
4648
RTU_ENABLED=N
47-
ALLOW_DB_PATCHING=N
49+
SQLDEVWEB=Y
4850
```
4951

5052
> * 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.
5153
> * 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.
5254
> * Use the `FILES_DIR` parameter to specify the local path to all the required installation files, e.g. `/path/to/my/downloads`.
5355
> * **NEW** Set the value of `ALLOW_DB_PATCHING` to `Y` to preserve files needed to successfully patch the database software with *OPatch*.
5456
> * **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.
5558
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`):
5659
```bash
5760
$ bash 01-build.sh mysettings.env

scripts/setup/package/installOrds.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
ORAENV_ASK=NO
66
ORACLE_SID=${ORACLE_SID:-XE}
77

8-
. oraenv
8+
. oraenv
99

1010
ORDS_CONFIG_DIR=$ORACLE_BASE/oradata/ordsconfig/$ORACLE_PDB
1111

12-
mkdir -p $ORDS_CONFIG_DIR
12+
mkdir -p $ORDS_CONFIG_DIR
1313

1414
cd $ORDS_HOME
1515

16-
cat << EOF > $ORDS_HOME/params/custom_params.properties
16+
PARAM_FILE=$ORDS_HOME/params/custom_params.properties
17+
18+
cat << EOF > $PARAM_FILE
1719
db.hostname=localhost
1820
db.password=${APEX_PUBLIC_USER_PWD:-$ORACLE_PWD}
1921
db.port=1521
@@ -33,6 +35,15 @@ sys.user=sys
3335
sys.password=${ORACLE_PWD}
3436
EOF
3537

38+
# If SQLDEVWEB = Y, then REST_ENABLED_SQL must be Y
39+
if [[ $SQLDEVWEB =~ (Y|y) || $REST_ENABLED_SQL =~ (Y|y) ]]; then
40+
echo "restEnabledSql.active=true" >> $PARAM_FILE
41+
fi
42+
43+
if [[ $SQLDEVWEB =~ (Y|y) ]]; then
44+
echo "feature.sdw=true" >> $PARAM_FILE
45+
fi
46+
3647
java -jar ords.war configdir $ORDS_CONFIG_DIR
3748

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

settings.env.sample

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ 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_19.2.zip
11-
INSTALL_FILE_ORDS=ords-19.2.0.199.1647.zip
11+
INSTALL_FILE_ORDS=ords-19.4.0.352.1226.zip
1212
INSTALL_FILE_JAVA=jdk-8u231-linux-x64.tar.gz
1313
DOCKER_ORDS_PORT=50080
1414
DOCKER_EM_PORT=55500
1515
DOCKER_DB_PORT=51521
1616
DB_VERSION=18.4.0
1717
DB_EDITION=xe
18-
DOCKER_NETWORK_NAME=axer_network
18+
DOCKER_NETWORK_NAME=das_network
19+
ALLOW_DB_PATCHING=N
1920
OML4R_SUPPORT=N
21+
REST_ENABLED_SQL=Y
2022
RTU_ENABLED=N
21-
ALLOW_DB_PATCHING=N
23+
SQLDEVWEB=Y

settings_db19c.env.sample

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ 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_19.2.zip
11-
INSTALL_FILE_ORDS=ords-19.2.0.199.1647.zip
11+
INSTALL_FILE_ORDS=ords-19.4.0.352.1226.zip
1212
INSTALL_FILE_JAVA=jdk-8u231-linux-x64.tar.gz
1313
DOCKER_ORDS_PORT=50080
1414
DOCKER_EM_PORT=55500
1515
DOCKER_DB_PORT=51521
1616
DB_VERSION=19.3.0
1717
DB_EDITION=ee
18-
DOCKER_NETWORK_NAME=axer_network
18+
DOCKER_NETWORK_NAME=das_network
19+
ALLOW_DB_PATCHING=N
1920
OML4R_SUPPORT=N
21+
REST_ENABLED_SQL=Y
2022
RTU_ENABLED=N
21-
ALLOW_DB_PATCHING=N
23+
SQLDEVWEB=Y

0 commit comments

Comments
 (0)