Skip to Main Content

Oracle Database Free

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Run Docker-Images on Apple M1 (ARM CPU)

user-e2xcwApr 12 2023

Hi,

I run a brand-new MacBook Pro with M1 chipset (ARM64/ Apple Silicon), and just wanted to give your fresh Docker Image a go (Great to see that you provide that right of the box!).

Unfortunately, I can't get the DB Container up and running; it gives this output and I terminated it with Ctrl+C, eventually:

$ docker run -e 1521:1521 -e 8080:8080 --name oradb23free container-registry.oracle.com/database/free

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Starting Oracle Net Listener.
Oracle Net Listener started.
Starting Oracle Database instance FREE.
Oracle Database instance FREE started.

The Oracle base remains unchanged with value /opt/oracle
#####################################
########### 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:

XDB initialized.
ALTER PLUGGABLE DATABASE FREEPDB1 SAVE STATE
Completed: ALTER PLUGGABLE DATABASE FREEPDB1 SAVE STATE
2023-03-28T13:28:12.502627+00:00
ALTER SYSTEM SET control_files='/opt/oracle/oradata/FREE/control01.ctl' SCOPE=SPFILE;
2023-03-28T13:28:12.523739+00:00
ALTER SYSTEM SET local_listener='' SCOPE=BOTH;
ALTER PLUGGABLE DATABASE FREEPDB1 SAVE STATE
Completed: ALTER PLUGGABLE DATABASE FREEPDB1 SAVE STATE

^CStopping container.
SIGINT received, shutting down database!

SQL*Plus: Release 23.0.0.0.0 - Developer-Release on Wed Apr 12 11:53:02 2023
Version 23.2.0.0.0

Copyright (c) 1982, 2023, Oracle.  All rights reserved.

ERROR:
ORA-12547: TNS:lost contact


Enter user-name: SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM|SYSRAC}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
Enter user-name: Enter password: 
ERROR:
ORA-12547: TNS:lost contact


SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

LSNRCTL for Linux: Version 23.0.0.0.0 - Developer-Release on 12-APR-2023 11:53:02

Copyright (c) 1991, 2023, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_FREE)))
The command completed successfully

Any chance how I can tweak the image or my Docker setup, so that I get a DB instance up?

I'm aware of the fact that the image & DB is built for x64 instruction set, and “only” runs on an x64-on-arm emulated CPU in my test drive. But still, I hope it's just a small detail and I can tweak it. Note: I run macOS Ventura 13.2.1 on M1 Max chip, Docker Desktop 4.17.0 (99724) with Docker Engine 20.10.23.

I'm also aiming to create awareness, that there is developer demand to have Oracle DB (Free) running on Macs with ARM chips.

Any hints are appreciated. Thanks,

Steffen

This post has been answered by Philipp Salvisberg on Apr 12 2023
Jump to Answer
Comments
Post Details
Added on Apr 12 2023
2 comments
14,779 views