Oracle Database on Arm, including Ampere A1 on OCI and Apple M1-based Macs #1951
Replies: 49 comments 87 replies
-
Oracle Linux is available for Am, but Database is not. |
Beta Was this translation helpful? Give feedback.
-
@Djelibeybi dude that's not very usefull at all. how about finding a solution rather than just closing the issue? apparently you are able to run x86 docker on arm machines, so if you specify |
Beta Was this translation helpful? Give feedback.
-
@torbenrockstar if you send me an M1 Mac, I'll be as helpful as you need . 😄 Until then, and as you have identified, you'll need to use However, I will reopen the issue to see if we can resolve the later build failure. |
Beta Was this translation helpful? Give feedback.
-
😅 even if i would like to do so, it's quite hard to get your hands on those M1 macs currently anyway, thanks for reopening the ticket. the issue i'm getting now is
it originates from this command https://github.com/oracle/docker-images/blob/master/OracleDatabase/SingleInstance/dockerfiles/12.2.0.1/Dockerfile#L109 if i comment out that part, the build will finish without any error, but |
Beta Was this translation helpful? Give feedback.
-
If that script doesn't exist, the database didn't install properly. You'll need to review the entire output to see what happened earlier. It may be easier to use the XE image as that requires less resources. On that note, make sure your Docker VM has sufficient CPU and memory allocated to allow the DB installation to complete. There are previous issues you can search for more detail |
Beta Was this translation helpful? Give feedback.
-
hm there aren't any more errors in the output before that error. can i somehow see ALL the output that is generated? sending the output of the script to a file isn't working |
Beta Was this translation helpful? Give feedback.
-
@gvenzl any thoughts? |
Beta Was this translation helpful? Give feedback.
-
actually the same issue is present on a native x86 ubuntu machine on digital ocean, exact same error |
Beta Was this translation helpful? Give feedback.
-
Ok, then its definitely a Database issue. Let me reflag it. |
Beta Was this translation helpful? Give feedback.
-
I changed the title, but please adjust if its inaccurate. |
Beta Was this translation helpful? Give feedback.
-
it's accurate for my local machine, on digital ocean i did not use build x, it fails with the exact config from HEAD of current Master of this repo |
Beta Was this translation helpful? Give feedback.
-
also can be reproduced on ubuntu 18.04 , same error. can someone confirm? |
Beta Was this translation helpful? Give feedback.
-
I am having the same error in mac, os version 11.2.3
|
Beta Was this translation helpful? Give feedback.
-
Hello, Thank you. |
Beta Was this translation helpful? Give feedback.
-
There is no way to run Oracle Database on an M1 Mac as there are no Arm binaries for the Database and no way to emulate x86-64 effectively enough for the container to run. |
Beta Was this translation helpful? Give feedback.
-
@abhisbyk are you able to share any details on the progress? Does the expectation to release "later this year" still stand? I know a lot of developers are eager to hear more since the announcement almost a year ago https://youtu.be/m9vhjnzYa7I?t=1635 |
Beta Was this translation helpful? Give feedback.
-
Hi I've been testing with colima start --arch x86_64 --cpu 16 --memory 8 --disk 5
docker run -d -p 1521:1521 --cpus="16" --memory=4096M -e ORACLE_PASSWORD=test -e APP_USER=test -e APP_USER_PASSWORD=test -v oracle-volume:/opt/oracle/oradata gvenzl/oracle-xe
When my java app connects to the db is really slow, on windows used to take 20 sec, now takes like 2 minutes. Anyone experiencing same? I've tried different cpu and memory parameters but doesn't seem to have much impact. Could it be network/port related? |
Beta Was this translation helpful? Give feedback.
-
I successfully run x86 Oracle container with colima on apple Virtualization.Framework on macos13 on m1 installation steps
$ colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] address: 192.168.65.2
INFO[0000] socket: unix:///Users/xxx/.colima/default/docker.sock $ docker exec -it oracle uname -m
x86_64 $ docker exec -it oracle ps -ef
UID PID PPID C STIME TTY TIME CMD
oracle 1 0 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 14 1 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 17 14 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/tail -F -n 0 /opt/oracle/diag/tnslsnr/dockeroracle/list
oracle 18 14 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 20 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER -inheri
oracle 23 1 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 25 23 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/tail -F -n 0 /opt/oracle/diag/rdbms/orcl/orcl/trace/ale
oracle 26 23 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 33 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 35 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 37 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 41 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 43 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 45 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 47 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 49 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 51 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 53 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 55 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 57 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 59 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 61 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 63 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 65 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 73 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 85 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 87 1 0 13:41 ? 00:00:09 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 89 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 91 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 97 1 0 13:46 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 118 1 0 13:56 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 144 0 0 14:21 pts/1 00:00:00 /usr/bin/ps -ef |
Beta Was this translation helpful? Give feedback.
-
Hi. Can you please eli5 the steps ?
…On Thu, Jan 12, 2023, 08:45 kj-creater ***@***.***> wrote:
I successfully run x86 Oracle container with colima on apple
Virtualization.Framework on macos13 on m1
installation steps
1. Install x86 oracle on Intel Linux;
2. Compress the ORACLE_BASE directory and copy it to m1;
3. Build the x86 docker container and install the necessary
dependencies for the oracle runtime, such as libaio;
4. Specify VOLUME standby inside the container;
5. Enable rosetta2 and Run the container and map ORACLE_BASE to the
container.
$ colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] address: 192.168.65.2
INFO[0000] socket: unix:///Users/xxx/.colima/default/docker.sock
$ docker exec -it oracle uname -m
x86_64
$ docker exec -it oracle ps -ef
UID PID PPID C STIME TTY TIME CMD
oracle 1 0 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 14 1 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 17 14 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/tail -F -n 0 /opt/oracle/diag/tnslsnr/dockeroracle/list
oracle 18 14 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 20 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER -inheri
oracle 23 1 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 25 23 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/tail -F -n 0 /opt/oracle/diag/rdbms/orcl/orcl/trace/ale
oracle 26 23 0 13:41 pts/0 00:00:00 /mnt/lima-rosetta/rosetta /usr/bin/bash /env/runOracle.sh
oracle 33 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 35 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 37 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 41 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 43 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 45 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 47 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 49 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 51 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 53 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 55 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 57 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 59 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 61 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 63 1 0 13:41 ? 00:00:02 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 65 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 73 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 85 1 0 13:41 ? 00:00:01 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 87 1 0 13:41 ? 00:00:09 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 89 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 91 1 0 13:41 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 97 1 0 13:46 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 118 1 0 13:56 ? 00:00:00 /mnt/lima-rosetta/rosetta /opt/oracle/product/11.2.0/dbhome_1/bin/oracle
oracle 144 0 0 14:21 pts/1 00:00:00 /usr/bin/ps -ef
—
Reply to this email directly, view it on GitHub
<#1951 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATMPTU5MALB3IKMJMCYIVQTWR6R7FANCNFSM46HW265A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Did someone already succeed in running an Oracle Database container on the brand new Docker Desktop 4.16 with support for Rosetta2? |
Beta Was this translation helpful? Give feedback.
-
嗨,伙计们,有谁解决了在Mac M1 安装oracle 11G 或者 oracle 12C,或者使用docker安装,麻烦写一份详细的教程分享出来; |
Beta Was this translation helpful? Give feedback.
-
I successfully used According to lima/colima, m1 > arm-vm > x86 binaries, this way is the fastest, I also got the same result, creating the database is very fast, in about 5 minutes. |
Beta Was this translation helpful? Give feedback.
-
This seems to be running ok, but still testing.
Then set this
and finally run
Would be interested to hear how others are getting on. Thanks |
Beta Was this translation helpful? Give feedback.
-
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Beta Was this translation helpful? Give feedback.
-
I have been working on this for quite some time and just got it all working. My stack is:
It works nice and pretty fast on an M1 compared to my original Intel i7 environment. |
Beta Was this translation helpful? Give feedback.
-
A pre-built ARM image is now available: container-registry.oracle.com/database/enterprise:19.19.0.0 |
Beta Was this translation helpful? Give feedback.
-
@mdnix pretty soon we will be releasing 19.20 amd64 image |
Beta Was this translation helpful? Give feedback.
-
Hi @mdnix |
Beta Was this translation helpful? Give feedback.
-
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Beta Was this translation helpful? Give feedback.
-
Hi,
as docker now has a public preview for ARM based Macs, i tried to install the Docker Image for the 12.2.0.1 Version but ended up getting the following error:
Beta Was this translation helpful? Give feedback.
All reactions