docker-oracle-xe-11g icon indicating copy to clipboard operation
docker-oracle-xe-11g copied to clipboard

Cannot connect to the DB

Open SunithaR opened this issue 7 years ago • 1 comments

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 ::= [/][@<connect_identifier>] ::= [][/][@<connect_identifier>] /usr/sbin/startup.sh: ignoring /docker-entrypoint-initdb.d/*

SunithaR avatar Jul 11 '17 18:07 SunithaR

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.

pawwal avatar Nov 17 '17 17:11 pawwal