wnameless / docker-oracle-xe-11g

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

docker restart error,ora-12514 #87

Open qlong8807 opened 6 years ago

qlong8807 commented 6 years ago

whether I run with: docker run -d -P -p 1521:1521 -p 8080:8080 --name 11gxe wnameless/oracle-xe-11g or docker run -d -P -p 1521:1521 -p 8080:8080 --name 11gxe -v /oracle/data/:/u01/app/oracle wnameless/oracle-xe-11g I can connect it with navicat. but,when I restart the docker container with(docker stop/start 11gxe), I always get the error when I connect it with navicat: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor I cannot fix it.please help me! thanks

If you know the error and know how to fix it,can you email to me(abserver@qq.com)?very very thanks!!

qlong8807 commented 6 years ago

because docker instance can not save the oracle status. if restart oracle,should be enter this instance and start linstener.

qq273681448 commented 6 years ago

i think that it's impossible. unless you edit the config file of oracle.