oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects

Home Page:https://developer.oracle.com/use-cases/#containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot start Oracle Database 21c Enterprise on Mac M1

josedaudi opened this issue · comments

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

Same issue

Please use the ARM image on Apple Silicon

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

same issue !

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.

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

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

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