Giter VIP home page Giter VIP logo

dockerfiles's Introduction

dockerfiles

Just some Dockerfiles I'm playing around with. Some will be simple and stupid. Others might be a bit more useful to look at if you are learning about Docker.

Feel free to copy or fork this stuff. It's unlikely I'll accept pull requests as it's just my playground.

dockerfiles's People

Contributors

hallty-uob avatar jhult avatar oraclebase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Traps do not work

First - Your youtube Video is realy great.
However, I run into an problem.

If I stop the docker container, the traps inside the run script do not work.
I think, this is because the run script is a "subshell" and therefore does not receive the signals?

THX
Christian

same error in several compose versions : ORA-12547:

I tried several versions of the compose directory and all of them got the same error:
db_1 | SQLPlus: Release 19.0.0.0.0 - Production on Sun Jul 5 23:59:22 2020
db_1 | Version 19.3.0.0.0
db_1 |
db_1 | Copyright (c) 1982, 2019, Oracle. All rights reserved.
db_1 |
db_1 | ERROR:
db_1 | ORA-12547: TNS:lost contact
db_1 |
db_1 |
db_1 | Enter user-name: SP2-0306: Invalid option.
db_1 | Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM|SYSRAC}] [edition=value]]
db_1 | where ::= [/][@<connect_identifier>]
db_1 | ::= [][/][@<connect_identifier>]
db_1 | Enter user-name: SP2-0306: Invalid option.
db_1 | Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM|SYSRAC}] [edition=value]]
db_1 | where ::= [/][@<connect_identifier>]
db_1 | ::= [][/][@<connect_identifier>]
db_1 | SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL
Plus
db_1 | ******************************************************************************
db_1 | Tail the alert log file as a background process Sun Jul 5 23:59:22 UTC 2020
db_1 | and wait on the process so script never ends. Sun Jul 5 23:59:22 UTC 2020
db_1 | ******************************************************************************
db_1 | tail: cannot open '/u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/alert_cdb1.log' for reading: Too many levels of symbolic links
db_1 | tail: no files remaining
ords_1 | DB not available yet. Waiting for 30 seconds.

network access denied by access control list (ACL) ORA-06512

I created a new workspace with just one admin account and I'm running this tutorial and run into the following error:

https://oracle.github.io/learning-library/developer-library/apex/remote-data-source/?page=README&lab=lab-2-populating-table#STEP1CreateaScript

network access denied by access control list (ACL) ORA-06512

ORA-29273: HTTP request failed ORA-06512: at "APEX_200200.WWV_FLOW_WEB_SERVICES", line 1157 ORA-06512: at "APEX_200200.WWV_FLOW_WEB_SERVICES", line 757 ORA-24247: network access denied by access control list (ACL) ORA-06512: at "SYS.UTL_HTTP", line 380 ORA-06512: at "SYS.UTL_HTTP", line 1148 ORA-06512: at "APEX_200200.WWV_FLOW_WEB_SERVICES", line 735 ORA-06512: at "APEX_200200.WWV_FLOW_WEB_SERVICES", line 998 ORA-06512: at "APEX_200200.WWV_FLOW_WEB_SERVICES", line 1413 ORA-06512: at "APEX_200200.WWV_FLOW_WEBSERVICES_API", line 655 ORA-06512: at line 1 ORA-06512: at "SYS.DBMS_SQL", line 1721

Issue when Build docker run -dit --name ol7_19_con -p 1521:1521 --shm-size="1G" ol7_19:latest

I create docker under windows. I create image for docker already done but when run docker for create container show error


Handle shutdowns. Thu Nov 19 04:57:34 UTC 2020
docker stop --time=30 {container} Thu Nov 19 04:57:34 UTC 2020


/u01/scripts/start.sh: line 5: syntax error near unexpected token $'{\r'' 'u01/scripts/start.sh: line 5: function gracefulshutdown {

I check on start.sh i don't see this token

The Apache Tomcat Native library which allows using OpenSSL was not found

After deploying the container, I noticed such a record in the logs. Does this solution use these libraries?

INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [:/u01/tomcat/latest/lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]

[database/ol7_121] docker run fails with "ORA-01034: ORACLE not available"

Running docker run -dit --name ol7_121_con -p 1522:1521 -p 5500:5500 --shm-size="1G" ol7_121:latest results in the following errors in the log:

******************************************************************************
Handle shutdowns. Tue Jun 23 08:57:19 UTC 2020
docker stop --time=30 {container} Tue Jun 23 08:57:19 UTC 2020
******************************************************************************
******************************************************************************
Define fixConfig function. Tue Jun 23 08:57:19 UTC 2020
Fixes the config using the contents of the volume. Tue Jun 23 08:57:19 UTC 2020
Necessary when using persistent volume as rm and run will reset the config Tue Jun 23 08:57:19 UTC 2020
under the ORACLE_HOME. Tue Jun 23 08:57:19 UTC 2020
******************************************************************************
******************************************************************************
Create networking files if they don't already exist. Tue Jun 23 08:57:19 UTC 2020
******************************************************************************
******************************************************************************
First start, so create networking files. Tue Jun 23 08:57:19 UTC 2020
******************************************************************************
******************************************************************************
Check if database already exists. Tue Jun 23 08:57:19 UTC 2020
******************************************************************************

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 23-JUN-2020 08:57:19

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/12.1.0.2/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.1.0.2.0 - Production
System parameter file is /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/ed8ca510b39e/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                23-JUN-2020 08:57:19
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/ed8ca510b39e/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
The listener supports no services
The command completed successfully
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1.log" for further details.
******************************************************************************
Set the PDB to auto-start. Tue Jun 23 08:57:35 UTC 2020
******************************************************************************

SQL*Plus: Release 12.1.0.2.0 Production on Tue Jun 23 08:57:35 2020

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> alter system set db_create_file_dest='/u02/oradata'
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> Disconnected
******************************************************************************
Store config files in case persistent volume is used. Tue Jun 23 08:57:36 UTC 2020
******************************************************************************
******************************************************************************
Flip the auto-start flag. Tue Jun 23 08:57:36 UTC 2020
******************************************************************************
mv: cannot stat '/u01/app/oracle/product/12.1.0.2/db_1/dbs/orapwcdb1': No such file or directory
mv: cannot stat '/u01/app/oracle/product/12.1.0.2/db_1/dbs/spfilecdb1.ora': No such file or directory
******************************************************************************
Remove CDB APEX and create PDB. Tue Jun 23 08:57:37 UTC 2020
******************************************************************************

SQL*Plus: Release 12.1.0.2.0 Production on Tue Jun 23 08:57:37 2020

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> begin
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

Disconnected
******************************************************************************
Install APEX. Tue Jun 23 08:57:38 UTC 2020
******************************************************************************
unzip:  cannot find or open /u01/software/apex_20.1_en.zip, /u01/software/apex_20.1_en.zip.zip or /u01/software/apex_20.1_en.zip.ZIP.
rm: cannot remove '/u01/software/apex_20.1_en.zip': No such file or directory
/u01/scripts/start.sh: line 162: cd: /u01/app/oracle/product/12.1.0.2/db_1/apex: No such file or directory

SQL*Plus: Release 12.1.0.2.0 Production on Tue Jun 23 08:57:38 2020

Copyright (c) 1982, 2014, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> alter session set container = pdb1
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> SQL> create tablespace apex datafile size 1m autoextend on next 1m
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> SP2-0310: unable to open file "apexins.sql"
SQL> SQL>   2    3    4    5    6    7    8    9   10   11   12   13  BEGIN
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> SQL> SP2-0310: unable to open file "apex_rest_config.sql"
SQL> SQL> SQL> alter user APEX_PUBLIC_USER identified by ApexPassword1 account unlock
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> alter user APEX_REST_PUBLIC_USER identified by ApexPassword1 account unlock
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> SQL> Disconnected
******************************************************************************
Tail the alert log file as a background process Tue Jun 23 08:57:39 UTC 2020
and wait on the process so script never ends. Tue Jun 23 08:57:39 UTC 2020
******************************************************************************
tail: cannot open '/u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/alert_cdb1.log' for reading: No such file or directory
tail: no files remaining

getting error during build

unzip: cannot find or open linuxx64_12201_database.zip, linuxx64_12201_database.zip.zip or linuxx64_12201_database.zip.ZIP.
ERROR: Service 'dbservice' failed to build: The command '/bin/sh -c cd ${SOFTWARE_DIR} && unzip ${DB_SOFTWARE} && rm ${DB_SOFTWARE}' returned a non-zero code: 9

Final Setup usage

Hello,

I have used your dockerfiles (which by the way are very nice) for testing a local Oracle 12cR2 + ORDS setup.

I have executed successfully (at least I think :)) the docker-compose and the two containers are running:

ordsservice_1  | 02-Jul-2018 19:04:23.546 WARNING [main] . *** jdbc.InitialLimit in configuration |apex|| is using a value of 3, this setting may not be sized adequately for a production environment ***
ordsservice_1  | 02-Jul-2018 19:04:23.601 INFO [main] . Creating Pool:|apex|al|
ordsservice_1  | 02-Jul-2018 19:04:23.601 INFO [main] . Configuration properties for: |apex|al|
ordsservice_1  | cache.caching=false
ordsservice_1  | cache.directory=/tmp/apex/cache
ordsservice_1  | cache.duration=days
ordsservice_1  | cache.expiration=7
ordsservice_1  | cache.maxEntries=500
ordsservice_1  | cache.monitorInterval=60
ordsservice_1  | cache.procedureNameList=
ordsservice_1  | cache.type=lru
ordsservice_1  | db.hostname=dbservice
ordsservice_1  | db.password=******
ordsservice_1  | db.port=1521
ordsservice_1  | db.servicename=pdb1
ordsservice_1  | db.username=APEX_LISTENER
ordsservice_1  | debug.debugger=false
ordsservice_1  | debug.printDebugToScreen=false
ordsservice_1  | error.keepErrorMessages=true
ordsservice_1  | error.maxEntries=50
ordsservice_1  | jdbc.DriverType=thin
ordsservice_1  | jdbc.InactivityTimeout=1800
ordsservice_1  | jdbc.InitialLimit=3
ordsservice_1  | jdbc.MaxConnectionReuseCount=1000
ordsservice_1  | jdbc.MaxLimit=10
ordsservice_1  | jdbc.MaxStatementsLimit=10
ordsservice_1  | jdbc.MinLimit=1
ordsservice_1  | jdbc.statementTimeout=900
ordsservice_1  | log.logging=false
ordsservice_1  | log.maxEntries=50
ordsservice_1  | misc.compress=
ordsservice_1  | misc.defaultPage=apex
ordsservice_1  | security.disableDefaultExclusionList=false
ordsservice_1  | security.maxEntries=2000
ordsservice_1  | security.requestValidationFunction=wwv_flow_epg_include_modules.authorize
ordsservice_1  | security.validationFunctionType=plsql
ordsservice_1  |
ordsservice_1  | 02-Jul-2018 19:04:23.602 WARNING [main] . *** jdbc.MaxLimit in configuration |apex|al| is using a value of 10, this setting may not be sized adequately for a production environment ***
ordsservice_1  | 02-Jul-2018 19:04:23.603 WARNING [main] . *** jdbc.InitialLimit in configuration |apex|al| is using a value of 3, this setting may not be sized adequately for a production environment ***
ordsservice_1  | 02-Jul-2018 19:04:23.941 INFO [main] . Oracle REST Data Services initialized
ordsservice_1  | Oracle REST Data Services version : 18.1.1.95.1251
ordsservice_1  | Oracle REST Data Services server info: Apache Tomcat/9.0.10
ordsservice_1  |
ordsservice_1  | 02-Jul-2018 19:04:23.973 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/u01/tomcat/webapps/ords.war] has finished in [7,326] ms
ordsservice_1  | 02-Jul-2018 19:04:23.975 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/u01/tomcat/webapps/i]
ordsservice_1  | 02-Jul-2018 19:04:24.084 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/u01/tomcat/webapps/i] has finished in [110] ms
ordsservice_1  | 02-Jul-2018 19:04:24.092 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
ordsservice_1  | 02-Jul-2018 19:04:24.215 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-8443"]
ordsservice_1  | 02-Jul-2018 19:04:24.236 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
ordsservice_1  | 02-Jul-2018 19:04:24.250 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 7724 ms

However, now I was trying to execute a preconfigured ORDS api that I have done in Oracle XE 11g and I get the following error:

COMMIT; END; Error report - ORA-06550: linha 2, coluna 3: PLS-00201: o identificador 'ORDS.ENABLE_SCHEMA' deve ser declarado ORA-06550: linha 2, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 9, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_MODULE' deve ser declarado ORA-06550: linha 9, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 15, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_TEMPLATE' deve ser declarado ORA-06550: linha 15, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 22, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_HANDLER' deve ser declarado ORA-06550: linha 22, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 61, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 61, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 71, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 71, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 81, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 81, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 91, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 91, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 101, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 101, coluna 3: PL/SQL: Statement ignored ORA-06550: linha 111, coluna 3: PLS-00201: o identificador 'ORDS.DEFINE_PARAMETER' deve ser declarado ORA-06550: linha 111, coluna 3: PL/SQL: Statement ignored 06550. 00000 - "line %s, column %s:\n%s" *Cause: Usually a PL/SQL compilation error. *Action:

Can you please let me know what I'm missing or what I need to do?

Thank you

Remote login does not work as sys when using persistent volume

Hi Tim, thanks for the great work!
I have built and image from your sources and created container for Oracle 19.

I tried this option from you Docker file examples:

Persistent storage and part of Docker network called "my_network".

docker run -dit --name ol8_19_con -p 1521:1521 -p 5500:5500 --shm-size="1G" --network=my_network -v /u01/volumes/ol8_19_con_u02/:/u02 ol8_19:latest

Everything worked fine except one issue: I could not connect as sys from my host. After doing some checks I found that password file is mapped via link to the file in the config directory on the host. And ls command reported that password file was owned by root. Also V$PWFILE_USERS contained no rows.
After removing and creating password file in the container I could connect from the host and found one record for the sys user in the V$PWFILE_USERS view. Looks like some specifics of the Docker running on Windows 10 Pro.
By the way chown reported no issues when I tried to change owner to oracle:dba but ls still dispalyed root as an owner of the directories mapped to the volume on the host. Also alert.log has some issuse with writing diagnostic info due to the same cause.

Regards, Renat.

ords/ol8_ords/scripts/start.sh has issue

Hi,

Thanks a ton for wonderful scripts!! There is an issue in the mentioned script:

function check_db {
CONNECTION=$1
RETVAL=/u01/sqlcl/bin/sql -silent ${CONNECTION} <<EOF SET PAGESIZE 0 FEEDBACK OFF VERIFY OFF HEADING OFF ECHO OFF TAB OFF SELECT 'Alive' FROM dual; EXIT; EOF

ISSUE: if condition is reversed!!
if [ "${RETVAL}" = "Alive" ]; then
DB_OK=0
else
DB_OK=1
fi
}

passwords in ENV

Hi Tim!

excellent work! Your docker files for ORDS helped me a lot to build some of my own.

Maybe you could improve one thing: The passwords are stored in clear text inside environment variables inside the container. Even though ORDS replaces the passwords (ords_params.properties) with hashed strings during java -jar ords.war, the passwords could be retrieved from the user environment.
I resolved this by replacing the passwords in ords_params.properties during the docker build.
Now the passwords can be ARG instead of ENV and will be overwritten (ords_params.properties) during the first run of the container and never show up in the user environment.

I hope this was understandable :-)
Greeting
Daniel

ORA-01918: user 'APEX_PUBLIC_USER' does not exist

alter user APEX_PUBLIC_USER identified by ${APEX_PASSWORD} account unlock;

alter user APEX_REST_PUBLIC_USER identified by ${APEX_PASSWORD} account unlock;

Hello I get two minor errors in these lines. I can only unlock the users with the sqldeveloper and the password in quotes. (sys as sysdba)

The message from the title comes from the script.

thx for this dockerfiles,

Unable to build the Image

Hi,

Please can you provide some inputs here.
On looking into the logs the following issue shows up and the container dies.
For some reason it shows idle instance and unable to create files/directories.
This is for the first image itself :- o17_121

**LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 15-FEB-2019 05:54:39

Copyright (c) 1991, 2014, Oracle. All rights reserved.

Starting /u01/app/oracle/product/12.1.0.2/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.1.0.2.0 - Production
System parameter file is /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/129a61f47f50/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER

Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date 15-FEB-2019 05:54:40
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/129a61f47f50/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
The listener supports no services
The command completed successfully
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1.log" for further details.

SQL*Plus: Release 12.1.0.2.0 Production on Fri Feb 15 05:55:10 2019

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to an idle instance.

SQL> alter system set db_create_file_dest='/u02/oradata'
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> Disconnected
mkdir: cannot create directory '/u02/config': Permission denied
cp: cannot create regular file '/u02/config/': Not a directory
sed: can't read /u02/config/oratab: No such file or directory
cp: cannot stat '/u02/config/oratab': No such file or directory
mv: cannot stat '/u01/app/oracle/product/12.1.0.2/db_1/dbs/orapwcdb1': No such file or directory
mv: cannot stat '/u01/app/oracle/product/12.1.0.2/db_1/dbs/spfilecdb1.ora': No such file or directory
mv: cannot move '/u01/app/oracle/admin' to '/u02/config/cdb1': No such file or directory
mv: cannot move '/u01/app/oracle/fast_recovery_area' to '/u02/config/cdb1': No such file or directory
mv: cannot move '/u01/app/oracle/diag' to '/u02/config/cdb1': No such file or directory
cp: cannot stat '/u02/config/oratab': No such file or directory

SQL*Plus: Release 12.1.0.2.0 Production on Fri Feb 15 05:55:12 2019

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to an idle instance.

SQL> declare
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

Disconnected
tail: cannot open '/u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/alert_cdb1.log' for reading: No such file or directory
tail: no files remaining**

Ords AJP error

Hello !

I have this issue on startup using OL7 or OL8 Ords image.

Thanks,

ORDS001 | 17-Jul-2020 12:28:09.079 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib] ORDS001 | 17-Jul-2020 12:28:09.949 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] ORDS001 | 17-Jul-2020 12:28:10.062 INFO [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["https-jsse-nio-8443"] connector has been configured to support negotiation to [h2] via ALPN ORDS001 | 17-Jul-2020 12:28:10.063 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-8443"] ORDS001 | 17-Jul-2020 12:28:10.892 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-0:0:0:0:0:0:0:1-8009"] ORDS001 | 17-Jul-2020 12:28:10.898 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[AJP/1.3-8009]] ORDS001 | org.apache.catalina.LifecycleException: Protocol handler initialization failed ORDS001 | at org.apache.catalina.connector.Connector.initInternal(Connector.java:1042) ORDS001 | at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) ORDS001 | at org.apache.catalina.core.StandardService.initInternal(StandardService.java:533) ORDS001 | at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) ORDS001 | at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1057) ORDS001 | at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) ORDS001 | at org.apache.catalina.startup.Catalina.load(Catalina.java:690) ORDS001 | at org.apache.catalina.startup.Catalina.load(Catalina.java:712) ORDS001 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ORDS001 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ORDS001 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ORDS001 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) ORDS001 | at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302) ORDS001 | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472) ORDS001 | Caused by: java.net.SocketException: Protocol family unavailable ORDS001 | at java.base/sun.nio.ch.Net.bind0(Native Method) ORDS001 | at java.base/sun.nio.ch.Net.bind(Net.java:455) ORDS001 | at java.base/sun.nio.ch.Net.bind(Net.java:447) ORDS001 | at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227) ORDS001 | at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80) ORDS001 | at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:228) ORDS001 | at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:211) ORDS001 | at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1141) ORDS001 | at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1154) ORDS001 | at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581) ORDS001 | at org.apache.catalina.connector.Connector.initInternal(Connector.java:1039) ORDS001 | ... 13 more

Question : connection to the bbdd

Using the default compose and not creating any persistent volume, everything starts up perfectly :-) . But to be able to connect to the bbdd through port 1521, either with any sql client, the existing data are the correct ones?
environment:
- SYS_PASSWORD=SysPassword1
- PDB_PASSWORD=PdbPassword1
- APEX_EMAIL=[email protected]
- APEX_PASSWORD=ApexPassword1

I try to connect in all possible ways such as sys, sysdba, sysoper, etc... but I can not connect.
Sample :

conn sys/SysPassword1@//IPHostBBDD:1521/pdb1
conn sysdba/SysPassword1@//IPHostBBDD:1521/pdb1

Error Message = ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Error Message = ORA-01017: invalid username/password; logon denied

Error response from daemon: OCI runtime create failed: invalid mount

Hi,
I use this image on multiple servers but on one I have this error:

Error response from daemon: OCI runtime create failed: invalid mount {Destination:[/u01/config/instance1] Type:bind Source:/var/lib/docker/volumes/0c21146159500d3ad75113df9d1176c365345431ca116f784d67179a7a7ce73c/_data Options:[rbind]}: mount destination [/u01/config/instance1] not absolute: unknown

A strange performance issue, not sure how to debug

Hi, thanks for this wonderful little project. I am able to successfully create my own docker images and services etc. However, I am seeing a strange issue with performance. Basically, the system requires 1-2 "refresh" of the browser from time to time to correctly load the correct appearances (something with CSS or caching?).

For example:
image

becomes:
image

can not access in bash command

Hi Tim,
There is my issue below:

[root@localhost ol7_19]# docker run -dit --name ol7_19_con -p 1521:1521 -p 5500:5500 --shm-size="1G" -v /u01/volumes/ol7_19_con_u02/:/u02 ol7_19:latest
05fac7fb0af996ed7592b2aa0dcffdbef266cd1cfd88cb9f780e70436aa6b142
[root@localhost ol7_19]# docker ps -a
CONTAINER ID   IMAGE           COMMAND                  CREATED         STATUS                            PORTS                                                                                  NAMES
05fac7fb0af9   ol7_19:latest   "/bin/sh -c 'exec ${…"   5 seconds ago   Up 4 seconds (health: starting)   0.0.0.0:1521->1521/tcp, :::1521->1521/tcp, 0.0.0.0:5500->5500/tcp, :::5500->5500/tcp   ol7_19_con
[root@localhost ol7_19]# docker exec -it ol7_19_con bash
Error response from daemon: Container 05fac7fb0af996ed7592b2aa0dcffdbef266cd1cfd88cb9f780e70436aa6b142 is not running
[root@localhost ol7_19]# docker ps -a
CONTAINER ID   IMAGE           COMMAND                  CREATED          STATUS                      PORTS     NAMES
05fac7fb0af9   ol7_19:latest   "/bin/sh -c 'exec ${…"   44 seconds ago   Exited (1) 35 seconds ago             ol7_19_con
[root@localhost ol7_19]#

Now I want to access in bash and run imdp command, but it shows me container is not running. I create docker image from your dockerfile.

docker: Error response from daemon: OCI runtime create failed using Dockers for windows

Hi, I am just learning Docker, and I have tried my best in searching for how to fix it
I am using windows to run my Docker.

This is it when I run the command: docker run -d -p 3000:3000 -v ~/$(pwd):/src/app --name ireporter-app ireporter-app-image

It ran and show me this output:
bd9df62788bcc68009b12180295df82282ef27b83e8cefbd7aded664a31320e4
docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination:\Program Files\Git\src\app Type:bind Source:/run/desktop/mnt/host/c/Users/USER/c/Users/USER/OneDrive/Documents/PersonalProject/iReporter;C Options:[rbind rprivate]}: mount destination \Program Files\Git\src\app not absolute: unknown.

Also, show me a pop up of a message saying:
Docker Desktop has detected that you shared a Windows file into a WSL 2 container, which may perform poorly. Click here for more details.

When I run docker ps, I noticed my container is not running.

Any assistance I will be glad. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.