docker-images: Oracle database 12.2.0.1-ee Docker container does not start

Compiled image with https://github.com/oracle/docker-images/tree/master/OracleDatabase, but the database does not start.

OS is RHEL 7.3 on AWS Instance Type c3.8xlarge Storage 1000 GB Docker version is 17.03.1-ee-3 Build 3fcee33

docker run command generates the following output including error message.

[ec2-user@ip-172-30-2-25 ~]$ sudo docker run --name orclcdb  \
> -p 1521:1521 -p 5500:5500 \
> -e ORACLE_SID=ORCLCDB \
> -e ORACLE_PDB=ORCLPDB1 \
> -e ORACLE_PWD=oracle \
> oracle/database:12.2.0.1-ee
33a3a5e469a8: Pull complete 
212988691fe8: Pull complete 
4542c5e3ea46: Pull complete 
985c5fc42dff: Pull complete 
de0d00c03d2d: Pull complete 
9ca44aa383aa: Pull complete 
Digest: sha256:6fef7c2a38aef2a8e447ebdd405c9964edec7945001f3692792fae7df810d3d1

ORACLE AUTO GENERATED PASSWORD FOR SYS, SYSTEM AND PDBAMIN: wlQln0MqTz0=1

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-APR-2017 16:30:54

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

Starting /opt/oracle/product/12.2.0.1/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.2.0.1.0 - Production
System parameter file is /opt/oracle/product/12.2.0.1/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/4726052f9147/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.2.0.1.0 - Production
Start Date                20-APR-2017 16:30:54
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/product/12.2.0.1/dbhome_1/network/admin/listener.ora
Listener Log File         /opt/oracle/diag/tnslsnr/4726052f9147/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
[WARNING] [DBT-10102] The listener configuration is not selected for the database. EM DB Express URL will not be accessible.
   CAUSE: The database should be registered with a listener in order to access the EM DB Express URL.
   ACTION: Select a listener to be registered or created with the database.
Copying database files
1% complete
2% complete
DBCA Operation failed.
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
[ 2017-04-20 16:30:59.409 UTC ] Copying database files
DBCA_PROGRESS : 1%
[ 2017-04-20 16:30:59.665 UTC ] ORA-12547: TNS:lost contact

DBCA_PROGRESS : 2%
[ 2017-04-20 16:30:59.868 UTC ] Error while cataloging RMAN Backups
[ 2017-04-20 16:30:59.957 UTC ] DBCA_PROGRESS : DBCA Operation failed.

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 20 16:31:00 2017

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

ERROR:
ORA-12547: TNS:lost contact


Enter user-name: SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM|SYSRAC}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
Enter user-name: SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM|SYSRAC}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
mv: cannot stat '/opt/oracle/product/12.2.0.1/dbhome_1/dbs/spfileORCLCDB.ora': No such file or directory
mv: cannot stat '/opt/oracle/product/12.2.0.1/dbhome_1/dbs/orapwORCLCDB': No such file or directory
#########################
DATABASE IS READY TO USE!
#########################
tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
tail: no files remaining

/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log is as follows:


[ 2017-04-20 16:30:59.409 UTC ] Copying database files
DBCA_PROGRESS : 1%
[ 2017-04-20 16:30:59.665 UTC ] ORA-12547: TNS:lost contact

DBCA_PROGRESS : 2%
[ 2017-04-20 16:30:59.868 UTC ] Error while cataloging RMAN Backups
[ 2017-04-20 16:30:59.957 UTC ] DBCA_PROGRESS : DBCA Operation failed.
~ 

docker info output:

[ec2-user@ip-172-30-2-25 ~]$ sudo docker info
Containers: 4
 Running: 0
 Paused: 0
 Stopped: 4
Images: 4
Server Version: 17.03.1-ee-3
Storage Driver: overlay
 Backing Filesystem: xfs
 Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.3 (Maipo)
OSType: linux
Architecture: x86_64
CPUs: 32
Total Memory: 58.56 GiB
Name: ip-172-30-2-25.ec2.internal
ID: 7UWG:G34M:4V7Z:CJZR:CR52:624T:KNIF:DZ75:4UTW:ARCF:MEOZ:PEMC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: dvohra
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
[ec2-user@ip-172-30-2-25 ~]$ 

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 45 (16 by maintainers)

Most upvoted comments

Are you saying that you believe that the fix introduced for #307 has also fixed your problem and that this was the same issue?

Yes.

Thanks @gvenzl. Not inside a Docker container as only the pull command is run, but on the root partition /dev/xvda1. Shall expand Linux partition /dev/xvda1 which lists only 15 GB with lsblk even though 1000 GB is available.