wnameless / docker-oracle-xe-11g

Dockerfile of Oracle Database Express Edition 11g Release 2
Apache License 2.0
1.34k stars 800 forks source link

Cannot connect to the DB #59

Open SunithaR opened 7 years ago

SunithaR commented 7 years ago

I can no longer connect to the DB after running this docker image on my mac. It used to work fine

docker pull wnameless/oracle-xe-11g docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g

Cannot connect using the below hostname: localhost port: 49161 sid: xe username: system password: oracle

Error in docker logs Starting Oracle Net Listener. Starting Oracle Database 11g Express Edition instance.

ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or directory Process ID: 0 Session ID: 0 Serial number: 0

SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where ::= username>[/<password>][@<connect_identifier]

::= [][/][@] /usr/sbin/startup.sh: ignoring /docker-entrypoint-initdb.d/*
pawwal commented 6 years ago

I stumbled upon this issue today on Fedora 26 and docker from Fedora repository (which is rather old version of docker). After replacing it with docker-ce from docker's official repo, the problem went away.