oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.47k stars 5.41k forks source link

Cannot start Oracle Database 21c Enterprise on Mac M1 #2709

Closed josedaudi closed 9 months ago

josedaudi commented 10 months ago

Anyone with an idea on how to pass this error and get the DB running please assist. I'm using Apple Mac (M1 Pro). Everytime i start the container it fails. (Log attached below).

SQL> SQL> Disconnected
ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID .
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/checkDBStatus.sh: line 26: sqlplus: command not found
mv: cannot stat '/opt/oracle/dbs/spfileORCLCDB.ora': No such file or directory
mv: cannot stat '/opt/oracle/dbs/orapwORCLCDB': No such file or directory

Executing user defined scripts
/opt/oracle/runUserScripts.sh: running /opt/oracle/scripts/extensions/setup/swapLocks.sh
[2023:09:30 15:01:13]: Releasing lock .ORCLCDB.create_lck
[2023:09:30 15:01:13]: Lock released .ORCLCDB.create_lck
[2023:09:30 15:01:13]: Acquiring lock .ORCLCDB.exist_lck with heartbeat 30 secs
[2023:09:30 15:01:13]: Lock acquired
[2023:09:30 15:01:13]: Starting heartbeat
[2023:09:30 15:01:13]: Lock held .ORCLCDB.exist_lck

DONE: Executing user defined scripts

ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID .
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/checkDBStatus.sh: line 26: sqlplus: command not found
#####################################
########### E R R O R ###############
DATABASE SETUP WAS NOT SUCCESSFUL!
Please check output for further info!
########### E R R O R ###############
#####################################
The following output is now a tail of the alert.log:
Oracle instance running with ODM in SGA: Oracle Direct NFS ODM Library Version 6.0 
Broadcast on commit is enabled and is using Message mode.
Starting background process PMON
Process PMON died, see its trace file
USER (ospid: 811): terminating the instance due to ORA error 443
2023-09-30T15:01:07.534585+00:00
Instance terminated by USER, pid = 811
2023-09-30T15:01:07.604258+00:00
Warning: 2 processes are still attacheded to shmid 3:
 (size: 28672 bytes, creator pid: 811, last attach/detach pid: 811)
[2023:09:30 15:01:25]: Lock released .ORCLCDB.exist_lck
saransh09 commented 9 months ago

Same issue

yunus-qureshi commented 9 months ago

Please use the ARM image on Apple Silicon

container-registry.oracle.com/database/enterprise:19.19.0.0

jayunit100 commented 8 months ago

same issue !

giautm commented 5 months ago

I'm also unable to start container-registry.oracle.com/database/express:21.3.0-xe and container-registry.oracle.com/database/free:23.3.0.0 on Apple Silicon chip. With the platform set to linux/amd64.

I want to develop software with Oracle DB, but can't use its docker on Apple Mac. Please improve DX here.

yunus-qureshi commented 5 months ago

@giautm @jayunit100 why not use the following ARM image natively on apple silicon?

container-registry.oracle.com/database/enterprise:19.19.0.0

giautm commented 5 months ago

@yunus-qureshi, sorry. But is it free for non-commerce usage?

mikehearn commented 2 months ago

@yunus-qureshi The problem with using the Enterprise images on a Mac is that you are probably doing development with it, and these images don't come with a pre-created db like the free images do. So startup of the new image is incredibly slow, many minutes, even though it's an ARM binary.

It'd be great if all the images including those meant for development could have ARM versions.