Comments (7)
Thanks a lot, @HenrikDK!
Oh yeah, of course :)
It appears that the database terminates deliberately because one of its background processes died:
2021-11-28T20:23:28.437947+00:00
PMON (ospid: 35): terminating the instance due to ORA error 12752
Cause - 'Instance is being terminated due to fatal process death (pid: 8, ospid: 49, SA00)'
2021-11-28T20:23:28.448006+00:00
System state dump requested by (instance=1, osid=35 (PMON)), summary=[abnormal instance termination].
System State dumped to trace file /opt/oracle/diag/rdbms/xe/XE/trace/XE_diag_54_20211128202328.trc
Looking at the docker info
output I'm taking a wild guess here that the container does not have enough memory to run:
Kernel Version: 5.10.47-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.94GiB
Name: docker-desktop
The database alone is trying to allocate 2GB for its SGA and PGA memory areas, that would not leave enough memory for any of the processes running and my guess is that the kernel Out of Memory Killer starts to kill processes.
Could you try to increase the memory for Docker to say 3GB (perhaps 2.5GB should already be enough) and see whether this issue still occurs?
Also, if you still have the container on your machine, could you also please get the trace file /opt/oracle/diag/rdbms/xe/XE/trace/XE_diag_54_20211128202328.trc
out of it?
from oci-oracle-xe.
Hey @HenrikDK,
Unfortunately, there is not enough information in the docker logs output to determine the cause of that issue.
Could you please provide me with a docker info
and also the last couple of lines in the database alert log inside the container via docker exec oxsql tail -n 50 /opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log
?
That should have more information as to what is going on under the hood.
Thanks,
from oci-oracle-xe.
Hi, sure heres the output,
the docker command you provided didn't work since the container was no longer running, but i hadnt deleted the instance so so I did a copy instead:
docker cp f065ff3bc8a1:/opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log alert_XE.txt
from oci-oracle-xe.
Hmm, thought it might be something like that, I've adjusted the memory to 6gb and will try again.
Here's the trace file you requested:
xe_trc.txt
from oci-oracle-xe.
Looks like its working now, image hasn't exited and I can connect to the DB. Thanks for the help :)
from oci-oracle-xe.
Wohoo, there we go, glad to hear!
3 GB should be plenty for one container btw, but if you have the memory, sure 6GB works as well. :)
I should probably add some memory check into the container startup script, will open an ER for this and close this one.
Thanks and thanks for using these images! :)
from oci-oracle-xe.
I met the same problem. Here is my Container's log:
2023-09-12 23:32:43 CONTAINER: starting up...
2023-09-12 23:32:43 CONTAINER: database already initialized.
2023-09-12 23:32:43 CONTAINER: starting up Oracle Database...
2023-09-12 23:32:43
2023-09-12 23:32:43 LSNRCTL for Linux: Version 21.0.0.0.0 - Production on 12-SEP-2023 16:32:43
2023-09-12 23:32:43
2023-09-12 23:32:43 Copyright (c) 1991, 2021, Oracle. All rights reserved.
2023-09-12 23:32:43
2023-09-12 23:32:45 Starting /opt/oracle/product/21c/dbhomeXE/bin/tnslsnr: please wait...
2023-09-12 23:32:45
2023-09-12 23:32:45 TNSLSNR for Linux: Version 21.0.0.0.0 - Production
2023-09-12 23:32:45 System parameter file is /opt/oracle/homes/OraDBHome21cXE/network/admin/listener.ora
2023-09-12 23:32:45 Log messages written to /opt/oracle/diag/tnslsnr/018ad28d1b65/listener/alert/log.xml
2023-09-12 23:32:45 Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
2023-09-12 23:32:45 Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
2023-09-12 23:32:45
2023-09-12 23:32:45 Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
2023-09-12 23:32:45 STATUS of the LISTENER
2023-09-12 23:32:45 ------------------------
2023-09-12 23:32:45 Alias LISTENER
2023-09-12 23:32:45 Version TNSLSNR for Linux: Version 21.0.0.0.0 - Production
2023-09-12 23:32:45 Start Date 12-SEP-2023 16:32:45
2023-09-12 23:32:45 Uptime 0 days 0 hr. 0 min. 0 sec
2023-09-12 23:32:45 Trace Level off
2023-09-12 23:32:45 Security ON: Local OS Authentication
2023-09-12 23:32:45 SNMP OFF
2023-09-12 23:32:45 Default Service XE
2023-09-12 23:32:45 Listener Parameter File /opt/oracle/homes/OraDBHome21cXE/network/admin/listener.ora
2023-09-12 23:32:45 Listener Log File /opt/oracle/diag/tnslsnr/018ad28d1b65/listener/alert/log.xml
2023-09-12 23:32:45 Listening Endpoints Summary...
2023-09-12 23:32:45 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
2023-09-12 23:32:45 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
2023-09-12 23:32:45 The listener supports no services
2023-09-12 23:32:45 The command completed successfully
2023-09-12 23:32:46 ORA-03113: end-of-file on communication channel
The trace file is attached
alert_XE.txt
P/s: My docker desktop resources' setting for memory was 6gb already
from oci-oracle-xe.
Related Issues (20)
- The last commit broke the Github Actions HOT 3
- ORA 28040 No matching Authentication Protocol HOT 1
- Unable to start container HOT 1
- ORA-00443: background process "PMON" did not start HOT 1
- Permission denied on Github Workflow HOT 4
- ORA-43853: SECUREFILE LOBs (Large Objects) cannot be used in non-automatic segment space management tablespace "SYSTEM" HOT 3
- Missing double-quotes for APP_USER HOT 3
- Provide `FREE` SID (together with current `XE`) HOT 7
- Multi-schema DB Access HOT 3
- docker image 21-slim-faststart has an outdated healthcheck.sh HOT 5
- Trying to run gvenzl/Oracle-XE image From a Synology 920 DSM Container HOT 3
- error after restarting container
- Apple silicon support HOT 3
- Mac M2 Oracle-XE, both latest and 18.4.0, does not start, ORA-03113: end-of-file on communication channel HOT 4
- Running Oracle as sibling / child container in podman - Oracle database startup failing HOT 3
- Do you have the image 19c-slim HOT 2
- can i change oracle xe 11g NLS_LANG to other HOT 1
- tar with extended attributes issue HOT 7
- Hope add 12c and 19c HOT 1
- Starting docker image with different owner HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oci-oracle-xe.