fuzziebrain / docker-apex-stack Goto Github PK
View Code? Open in Web Editor NEWUtility scripts for creating an Oracle Application Express stack as a Docker container.
License: MIT License
Utility scripts for creating an Oracle Application Express stack as a Docker container.
License: MIT License
I am able to create the container without apparent errors but I can't browse to the Apex website with localhost:50080/ords/. I am using pretty stock mysettings.env with just a couple of password changes:
ORACLE_SID=XE
ORACLE_PDB=XEPDB1
ORACLE_PWD=********
APEX_ADMIN_EMAIL=@.ca
APEX_ADMIN_PWD=ApexRu1Z
APEX_PUBLIC_USER_PWD=Oracle18_1
APEX_LISTENER_PWD=Oracle18_2
APEX_REST_PUBLIC_USER_PWD=Oracle18_3
ORDS_PUBLIC_USER_PWD=Oracle18_4
INSTALL_FILE_APEX=apex_19.1_en.zip
INSTALL_FILE_ORDS=ords-18.4.0.354.1002.zip
INSTALL_FILE_JAVA=jdk-8u201-linux-x64.tar.gz
DOCKER_ORDS_PORT=50080
DOCKER_EM_PORT=55500
DOCKER_DB_PORT=51521
DB_VERSION=18.4.0
DB_EDITION=xe
Inside the container, using curl to test:
curl -I http://localhost:8080/ords
HTTP/1.1 302 Found
Date: Fri, 05 Apr 2019 21:20:30 GMT
Location: http://localhost:8080/ords/
Content-Length: 0
But interestingly appending / at the end:
curl -I http://localhost:8080/ords/
HTTP/1.1 404 Not Found
Error-Reason: error="request"; error_description*=UTF-8''The%20request%20could%20not%20be%20mapped%20to%20any%20database.%20Check%20the%20request%20URL%20is%20correct%2c%20and%20that%20URL%20to%20database%20mappings%20have%20been%20correctly%20configured
Content-Length: 0
For 19c, consider using build argument SLIMMING
and set it to false
. The build script takes the option -o
which can be used to set the build argument. Other versions will need to rely on removing all commands to remove components that are "not needed".
I am getting issue to install database from local file. Due to limited bandwidth I am unable to download such a big file. Please guide me how to install from local https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm
file. I downloaded file inside local directory and getting error.
# Environment variables required for this build (do NOT change)
# -------------------------------------------------------------
ENV ORACLE_BASE=/opt/oracle \
ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE \
ORACLE_SID=XE \
INSTALL_FILE_1="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm" \
RUN_FILE="runOracle.sh" \
PWD_FILE="setPassword.sh" \
CONF_FILE="oracle-xe-21c.conf" \
CHECK_SPACE_FILE="checkSpace.sh" \
CHECK_DB_FILE="checkDBStatus.sh" \
INSTALL_DIR="$HOME/install" \
ORACLE_DOCKER_INSTALL="true"
and trying to add file inside dockerfile
Step 4/23 : ADD /data/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm .
ADD failed: file not found in build context or excluded by .dockerignore: stat data/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm: file does not exist
##### Done #####
##### Deploying the container #####
Thanks in advance
Hi Adrian, I hope you are well.
I followed the instructions and it gave me an image oracle/database:21.3.0-ee,
But when I try to execute the command
sudo bash 02-run.sh orclapex212 settings.env
It doesn't end with a success.
My settings
settings.txt
And the terminal output
my_log.txt
I hope you will find the necessary information here
Thanks
Hi Adrian,
I was able to connect to enterprise manager via SYS user, however, I'm trying to connect to sqlplus and sqldev web using the same user but I'm having trouble logging in. In sqlplus, it shows ORA-12547, while in sqldev web when I enter SYS as username and click next a 404 error occurs.
I read all the instructions and have been debugging the installation but I found no issues at all.
sqldev web (http://localhost:50080/ords/sql-developer)
Any ideas what caused this?
Also, what is the workspace name created in APEX during the installation?
Awesome work btw!
Please, what credentials (username & password) we should use to log in to Administration here
Thanks.
Hi Adrian,
i got this message at 2nd step after downloading dependencies inside docker container:
[WARNING] Container parameters not found, skipping parameters modification
Ima running Ubuntu 18.04.2 LTS and Docker CE version 18.09.3 at my old HP Envy laptop with 6gb RAM:)
~/repo/docker-apex-stack$ ./02-build.sh starterkit.env
stage2.log
starterkit.env:
ORACLE_SID=starterkit
ORACLE_PDB=xe1
ORACLE_PWD=Oracle_18XE#pass
APEX_ADMIN_EMAIL=@.com
APEX_ADMIN_PWD=Oracle18XE#pass
INSTALL_FILE_APEX=apex_18.2_en.zip
INSTALL_FILE_ORDS=ords-18.4.0.354.1002.zip
DOCKER_ORDS_PORT=50080
DOCKER_EM_PORT=55500
DOCKER_DB_PORT=51521
DB_VERSION=18.4.0
DB_EDITION=XE
hi fuzziebrain
i have a virtualbox running with oracle linux 8
installing docker, git, curl etc.
i downloaded all recommended files
as root i run
./01_build.sh xe21.env
works well
then als root again
i tried to run
./02_run.sh
i get always this error:
(i found a solution with chmod 777 - but this doesnt work)
please help here i will attache my files
This would allow access to Web Services over TLS/SSL. See https://fuzziebrain.com/content/id/1725/
This site can’t be reachedThe webpage at http://localhost:50080/ might be temporarily down or it may have moved permanently to a new web address.
ERR_SOCKET_NOT_CONNECTED
The only change i made was INSTALL_FILE_APEX=apex_19.2_en.zip; I don't know where put the env value for file oracle-database-xe-18c-1.0-1.x86_64.rpm...
ORACLE_SID=XE
ORACLE_PDB=XEPDB1
ORACLE_PWD=Oracle18
[email protected]
APEX_ADMIN_PWD=asdqweASD!
APEX_PUBLIC_USER_PWD=asdqweASD!
APEX_LISTENER_PWD=asdqweASD!
APEX_REST_PUBLIC_USER_PWD=asdqweASD!
ORDS_PUBLIC_USER_PWD=asdqweASD!
INSTALL_FILE_APEX=apex_19.2_en.zip
INSTALL_FILE_ORDS=ords-21.2.0.174.1826.zip
INSTALL_FILE_JAVA=jdk-16.0.1_linux-aarch64_bin.tar.gz
DOCKER_ORDS_PORT=50080
DOCKER_EM_PORT=55500
DOCKER_DB_PORT=51521
DB_VERSION=18.4.0
DB_EDITION=xe
DOCKER_NETWORK_NAME=das_network
ALLOW_DB_PATCHING=N
OML4R_SUPPORT=N
REST_ENABLED_SQL=Y
RTU_ENABLED=N
SQLDEVWEB=Y
DATABASEAPI=Y
Hi,
I'm not sure if this is something you can help me with but lets try. Couple of days ago I found out that all my containers are stopped. I started most of them however Axer was not able to start. So I removed container, removed images, cloned new repository and tried to run again the first script as a user with sudo privileges.
I got this error messages:
##### Staging RPM #####
######################################################################################################################################################################################################################################################### 100.0%
##### Building Docker Image for Oracle Database 18.4.0 xe #####
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: dial unix /var/run/docker.sock: connect: permission denied
-bash: [: : integer expression expected
Checking if required packages are present and valid...
oracle-database-xe-18c-1.0-1.x86_64.rpm: OK
==========================
DOCKER info:
Client:
Debug Mode: false
Server:
ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/info: dial unix /var/run/docker.sock: connect: permission denied
errors pretty printing info
==========================
Building image 'oracle/database:18.4.0-xe' ...
ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%22DB_EDITION%22%3A%22xe%22%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile.xe&forcerm=1&labels=%7B%7D&memory=0&memswap=0&networkmode=default&nocache=1&rm=1&session=n2wlhlvu50epmedmzjwybpvw2&shmsize=0&t=oracle%2Fdatabase%3A18.4.0-xe&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
ERROR: Oracle Database Docker Image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the docker build operation.
Docker info:
Client:
Debug Mode: false
Server:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 3
Server Version: 19.03.4
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 5.2.13-200.fc30.x86_64+debug
Operating System: Fedora 30 (Server Edition)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.35GiB
Name: storage.localdomain
ID: ETUC:LOFC:ZENS:STMB:USAL:T4CH:KMZK:LE3G:GHNQ:E5OQ:H4TR:IR2X
Docker Root Dir: /docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Adrian,
Thanks soo much for getting this together.
At the moment I'm unable to complete the i nstallation.
The images is generated okay, but after 02-run.sh the container doesn't build the DB:
bash-4.2# cat /opt/oracle/cfgtoollogs/dbca/XE/XE.log
[ 2019-04-05 00:22:15.981 UTC ] Prepare for db operation
[ 2019-04-05 00:22:16.027 UTC ] Cannot create directory "/opt/oracle/oradata/XE".
DBCA_PROGRESS : 7%
[ 2019-04-05 00:22:16.030 UTC ] Copying database files
DBCA_PROGRESS : 29%
DBCA_PROGRESS : 100%
[ 2019-04-05 00:22:41.702 UTC ] [FATAL] Recovery Manager failed to restore datafiles. Refer logs for details.
DBCA_PROGRESS : 7%
DBCA_PROGRESS : 0%
bash-4.2#
also
##### Installing ORDS #####
The Oracle base remains unchanged with value /opt/oracle
mkdir: cannot create directory '/opt/oracle/oradata/ordsconfig': Permission denied
The build process does ask for a password:
##### Removing any previous containers #####
Error: No such container: oraxe
##### Changing file ownership. May require password to continue. #####
Password:
I give my mac password and the proces continues as described above.
Am I doing something wrong?
Hi @fuzziebrain, thank you for quick response. After providing necessary permisson to my das-oradata folder prior to running the docker (2nd step), I was able to get past DB installation and my database is up and running. Thank you so much.
However, I had encountered a minor issue while installing the Apex. Kindly refer the highlighted/bold section. Shell unable to extract or find the apex_20_1.zip file, even though I had placed those in my files directory prior to running the script. Do I need to grant full permission there as well? Please suggest.
Thank you so much for your work, its really helps. If you have Buy me coffee link, please let me know, I am happy support.
Regards,
Karthikeyan
Log:
100% complete
Database creation complete. For details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/XE.
Database Information:
Global Database Name:XE
System Identifier(SID):XE
Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.
Connect to Oracle Database using one of the connect strings:
Pluggable database: 27744138d70f/XEPDB1
Multitenant container database: 27744138d70f
Use https://localhost:5500/em to access Oracle Enterprise Manager for Oracle Database XE
Executing user defined scripts
/opt/oracle/runOracle.sh: running /opt/oracle/scripts/setup/01-install.sh
unzip: cannot find or open /tmp/files/apex_20.1.zip, /tmp/files/apex_20.1.zip.zip or /tmp/files/apex_20.1.zip.ZIP.
chown: cannot access '/opt/oracle/product/apex': No such file or directory
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/scripts/setup/package/installApex.sh: line 10: cd: /opt/oracle/product/apex: No such file or directory
Installing APEX
SQL*Plus: Release 18.0.0.0.0 - Production on Sun Jun 21 21:02:49 2020
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
SQL>
Session altered.
SQL> SQL> SQL> SP2-0310: unable to open file "apexins.sql"
SQL> SQL> SQL> SP2-0310: unable to open file "apex_rest_config_core.sql"
SQL> SQL> SQL> alter user apex_public_user identified by "Oracle18_1" account unlock
*
ERROR at line 1:
ORA-01918: user 'APEX_PUBLIC_USER' does not exist
SQL> SQL> SQL> Setup Network ACL
SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
PL/SQL procedure successfully completed.
SQL> SQL> SQL> Setup APEX Admin account
SQL> 2 3 4 5 6 7 8 9 10 11 12 apex_util.set_workspace(p_workspace => 'internal');
*
ERROR at line 2:
ORA-06550: line 2, column 5:
PLS-00201: identifier 'APEX_UTIL.SET_WORKSPACE' must be declared
ORA-06550: line 2, column 5:
PL/SQL: Statement ignored
ORA-06550: line 3, column 5:
PLS-00201: identifier 'APEX_UTIL.CREATE_USER' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
Originally posted by @kridhick in #8 (comment)
Currently, this has to be resolved manually by users. See the note in README.md
.
IMPORTANT
The second script requires
sudo
rights. If your user does not have this privilege, comment outsudo chown 54321:54321 oradata
and replace it withchmod 777 oradata
.
Add a fallback when attempt to change directory ownership fails.
Hi, as a suggested enhancement, rather than having to download and place files in the Files folder, could the scripts be amended to provide the option to simply use the new download links for these elements that no longer need licence acceptance.
ORDS: https://download.oracle.com/otn_software/java/ords/ords-latest.zip
APEX: https://download.oracle.com/otn_software/apex/apex-latest.zip
Many thanks
Oracle error "ORA-28759: failure to open file . The wallet had config
During server restore I tried to recreate container with existing oradata folder (mapping oradata to folder of previously existing, but currently deleted container). 02-run.sh finished with "DATABASE SETUP WAS NOT SUCCESSFUL!". I tried to attach existing dbf files to other XE instance, but it did not work. As a result I have no access to data in the database.
Is it possible somehow to recreate container it it is deleted, but with access to existing oradata folder (particulary dbf files)? Is there any other option how to restore information in dbf files?
Hi,
running container fails with error below.
Environment: MacOS 10.12.4, Docker Engine 18.09.2, CPU Intel I5 2.6GHz, 8GB RAM
sudo su
sh-3.2# . 02-run.sh axer mysettings.env
axer
c557b28728f84ea49ae1d9371a3f4041f02cd7a47eca4e2c4b5cfa217703114f
ORACLE PASSWORD FOR SYS AND SYSTEM: Oracle18
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle Database XE.
Enter SYS user password:
Enter SYSTEM user password:
Enter PDBADMIN User Password:
Prepare for db operation
Cannot create directory "/opt/oracle/oradata/XE".
7% complete
Copying database files
29% complete
100% complete
[FATAL] Recovery Manager failed to restore datafiles. Refer logs for details.
7% complete
0% complete
Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.
Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.
mkdir: cannot create directory '/opt/oracle/oradata/dbconfig': Permission denied
mv: cannot stat '/opt/oracle/product/18c/dbhomeXE/dbs/spfileXE.ora': No such file or directory
mv: cannot move '/opt/oracle/product/18c/dbhomeXE/dbs/orapwXE' to '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
mv: cannot move '/opt/oracle/product/18c/dbhomeXE/network/admin/listener.ora' to '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
mv: cannot move '/opt/oracle/product/18c/dbhomeXE/network/admin/tnsnames.ora' to '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
cp: cannot create regular file '/opt/oracle/oradata/dbconfig/XE/': No such file or directory
ln: failed to create symbolic link '/opt/oracle/product/18c/dbhomeXE/dbs/orapwXE': File exists
cp: cannot stat '/opt/oracle/oradata/dbconfig/XE/oratab': No such file or directory
Based on question #19
Hi,
in the official dockerfiles there is a http URL for oracle-database-xe-18c-1.0-1.x86_64.rpm.
But is it necessary to get it if you place it in the "FILES" folder ?
I Just changed it and it seems to work.
Hi,
These are my settings regarding Enterprise Manager:
DOCKER_EM_PORT=55500
DB_VERSION=19.3.0
DB_EDITION=se2
Firewall rules por port 55500 has been established, but Enterprise Manager URL give me an ERR_CONNECTION_RESET error. Apex environment has been set up correctly.
Thanks.
Hi,
I tried to use your code to build a XE environment, but it was saying it couldnt find buildImage.sh, looks like oracle renamed that file to buildContainer.sh.
I have updated my local copy of the code and its installing so far... but thought I would let you know.
Thanks Jade
Oracle Wallet created for TLS is lost when container is destroyed.
Please add image to docker hub aswell
Unable to find image 'oracle/database:21.3.0-xe' locally
docker: Error response from daemon: pull access denied for oracle/database, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
I don't have where to download this file from
everything goes fine until the error where apparently java is not found in the runords.sh script...
any ideas?
#########################
DATABASE IS READY TO USE!
#########################
Executing user defined scripts
/opt/oracle/runOracle.sh: running /opt/oracle/scripts/startup/01-run.sh
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/scripts/startup/package/runOrds.sh: line 15: java: command not found
/opt/oracle/scripts/startup/package/runOrds.sh: line 17: java: command not found
/opt/oracle/runOracle.sh: ignoring /opt/oracle/scripts/startup/package
The script 02-run.sh
mounts the data files and configuration to a fixed directory on the Docker host. This prevents running multiple containers simultaneously.
Error message:
tr: Illegal byte sequence
With Oracle's new Free Use Terms and Conditions (FUTC) licensing (see announcement), creating a functional APEX stack can be even made even simpler.
The only other download required is the Java Runtime Engine, so in #41, OpenJDK can be used instead.
How can I specify the location of valid certificates for enterprise manager and ords?
On the command line within the newly running docker image, I get:
bash-4.2# curl -ISs https://localhost:5500/em
curl: (60) Issuer certificate is invalid.
bash-4.2# curl -ISs https://localhost:8080/ords
curl: (35) SSL received a record that exceeded the maximum permissible length.
Outside the container, I get:
curl -ISs https://localhost:55500/em
curl: (35) Encountered end of file
curl -ISs https://localhost:50080/ords
curl: (35) SSL received a record that exceeded the maximum permissible length.
I can use Firefox to browse to http://localhost:50080/ords and put in an exception to run insecure but I can't get Firefox to bring up enterprise manager at all.
I need to find a way to get valid certificates for both Enterprise Manager and ORDS.
Thanks
Raymond Cordoni
Please ensure that these passwords do not expire.
I'm getting 404 messages from ords when trying to access to just http://localhost:50080/ords. "Could not assing request to any database".
I've tried to execute ords validation process and it says that ORDS schema objects are not installed in PDB XEPDB1, any ideas what could it be?
Thanks.
Add support for executing embedded R scripts in the database. See https://fuzziebrain.com/content/id/1724.
When compiling PL/SQL code natively, the following error occurs:
Error starting at line : 3 File @ /path/to/aop/v19.1.4/db/aop_db_native_compile_pkg.sql
In command -
ALTER PACKAGE aop_api19_pkg COMPILE
Error report -
ORA-00600: internal error code, arguments: [pesldl03_MMap: errno 1 errmsg Operation not permitted
], [], [], [], [], [], [], [], [], [], [], []
00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: This is the generic internal error number for Oracle program
exceptions. It indicates that a process has encountered a low-level,
unexpected condition. The first argument is the internal message
number. This argument and the database version number are critical in
identifying the root cause and the potential impact to your system.
Error starting at line : 4 File @ /path/to/aop/v19.1.4/db/aop_db_native_compile_pkg.sql
In command -
ALTER PACKAGE aop_plsql19_pkg COMPILE
Error report -
Closed Connection
Issue appears to be related to the one reported in MOS Doc ID 1625010.1.
The solution proposed here to use Docker run option --tmpfs
to mount /dev/shm
seems to work.
Adrian,
i ran the installation on Oracle Linx Server 7.6 on an OCI compute instance, without apparent errors.
I'm able to log into the XE database from the host:
$ sqlcl system/xxx@localhost:51521/xepdb1
Trying curl to check ORDS, I get the following:
curl localhost:50080/ords/
curl: (56) Recv failure: Connection reset by peer
I logged into the container and tried:
bash-4.2# curl -I http://localhost:8080/ords
curl: (7) Failed to connect to ::1: Cannot assign requested address
I checked ps and didn't see ORDS running. Not any Java either.
I checked the contents of the directory /opt/oracle/product/ords and saw no config directory.
Somehow the ORDS configuration must have been skipped. Any suggestions?
Thx
Please ignore/delete this issue.
The installation files hadn't copied to the docker image correctly and so APEX and ORDS had not been installed at all.
All working now. Thanks
Hi there,
I'm trying to run the project on my windows 10 machine using wsl2 with ubuntu distribution.
I'm using wsl2 terminal to run the script quickstart.sh. I've already downloaded and copied jre-8u321-linux-x64.tar.gz
into the folder files
and adjusted the settings.env
file as follow:
FILES_DIR=files
ORACLE_SID=XE
ORACLE_PDB=XEPDB1
ORACLE_PWD=Oracle21
[email protected]
APEX_ADMIN_PWD=Oracle__21
APEX_PUBLIC_USER_PWD=Oracle21_1
APEX_LISTENER_PWD=Oracle21_2
APEX_REST_PUBLIC_USER_PWD=Oracle21_3
ORDS_PUBLIC_USER_PWD=Oracle21_4
INSTALL_FILE_APEX=apex-latest.zip
INSTALL_FILE_ORDS=ords-latest.zip
INSTALL_FILE_JAVA=jre-8u321-linux-x64.tar.gz
DOCKER_ORDS_PORT=50080
DOCKER_EM_PORT=55500
DOCKER_DB_PORT=51521
DB_VERSION=18.4.0
DB_EDITION=xe
DOCKER_NETWORK_NAME=das_network
ALLOW_DB_PATCHING=N
OML4R_SUPPORT=N
REST_ENABLED_SQL=Y
RTU_ENABLED=N
SQLDEVWEB=Y
DATABASEAPI=Y
XE_USE_LOCAL_COPY=N
I got the following error at the end of the execution after installing a lot of stuffs:
The Oracle base remains unchanged with value /opt/oracle
#########################
DATABASE IS READY TO USE!
#########################
Executing user defined scripts
/opt/oracle/runUserScripts.sh: running /opt/oracle/scripts/startup/01-run.sh
##### Install dependencies if required #####
tar (child): /tmp/files/java17: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar (child): /tmp/files/java17: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
##### Extracting files if required ####
##### Starting ORDS #####
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/scripts/startup/package/runOrds.sh: line 15: java: command not found
/opt/oracle/scripts/startup/package/runOrds.sh: line 17: java: command not found
/opt/oracle/runUserScripts.sh: ignoring /opt/oracle/scripts/startup/package
DONE: Executing user defined scripts
The following output is now a tail of the alert.log:
XEPDB1(3):Resize operation completed for file# 10, fname /opt/oracle/oradata/XE/XEPDB1/sysaux01.dbf, old size 573440K, new size 593920K
2022-03-01T13:20:43.946332+00:00
Thread 1 cannot allocate new log, sequence 6
Private strand flush not complete
Current log# 2 seq# 5 mem# 0: /opt/oracle/oradata/XE/redo02.log
2022-03-01T13:20:46.953894+00:00
Thread 1 advanced to log sequence 6 (LGWR switch), current SCN: 2736350
Current log# 3 seq# 6 mem# 0: /opt/oracle/oradata/XE/redo03.log
2022-03-01T13:20:52.597313+00:00
XEPDB1(3):Resize operation completed for file# 11, fname /opt/oracle/oradata/XE/XEPDB1/undotbs01.dbf, old size 194560K, new size 199680K
2022-03-01T13:25:11.336862+00:00
Resize operation completed for file# 4, fname /opt/oracle/oradata/XE/undotbs01.dbf, old size 117760K, new size 122880K
2022-03-01T13:30:20.970638+00:00
XEPDB1(3):Resize operation completed for file# 10, fname /opt/oracle/oradata/XE/XEPDB1/sysaux01.dbf, old size 593920K, new size 614400K
what I can understand is, that Java istn't installed in on the container.
Here are the files:
01-build.log
02-run.log
)
Can anyone tell me, what's the problem is?
Allow users to specify a network to connect the Docker container to by adding the parameter DOCKER_NETWORK_NAME
.
Oracle released support for DB 21c Express Edition in their dockerfiles. I already tested to revert the temp support and database was successfully created
As described in the title this snippet doesn't work anymore. I ended up with image without apex and ords started.
`# RTU_ENABLED default 'N'
if [[ $RTU_ENABLED =~ (Y|y) ]]; then
echo "##### Modify target Dockerfile #####"
REPLACEMENT_STRING=$'COPY scripts/setup/ $ORACLE_BASE/scripts/setup/\\nCOPY scripts/startup/ $ORACLE_BASE/scripts/startup/\\nCOPY files/ /tmp/files/\\n'
sed
mkdir -p dockerfiles/${DB_VERSION}/files
cp $FILES_DIR/$INSTALL_FILE_APEX $FILES_DIR/$INSTALL_FILE_ORDS $FILES_DIR/$INSTALL_FILE_JAVA dockerfiles/${DB_VERSION}/files/
cp -R scripts dockerfiles/${DB_VERSION}/scripts
fi`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.