How to install Oracle Instant Client Version 12.1.0.2 (64-bit) on a Mac (OS X 10.11.5) I have downloaded version 12.1.0.2 (64-bit) version and unzipped the file. I now have the following files under /downloads/instantclient. A 32/64/16-bit Pascal compiler for Win32/64/CE, Linux, Mac OS X/iOS, Android, FreeBSD, OS/2, Game Boy Advance, Nintendo NDS and DOS; semantically compatible with Delphi, Borland Pascal and Mac Pascal (partially) with extra features, e.g. Operator overloading. OpenOffice.org is a database management tool that has been designed to function in a way that it replaces the need of Microsoft office for Mac users. Thisfree database software for Macsupports multiple languages and is found to be compatible with most office suites, which makes it possible to alter documents created through Word.
Recently I tried to install Oracle XE into a docker container on Mac OS Sierra using the official docker file from Oracle. I had no luck, because the installation failed with this error message:
This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 11g Express Edition requires 2048 MB of swap space. This system has 0 MB of swap space. Configure more swap space on the system and retry the installation.
I have been trying to download Oracle Database 11g release 2 for mac os but in the given link by oracle I can only see Linux x86 and Linux x86-64. Is this ok to use this Linux file for installing. Oracle Database 10g Release 2, Oracle SQL Developer, and Oracle JDeveloper are fully certified on Mac OS X. Turn your Mac into a full-fledged development environment and deploy Xserve-based grids.
The problem is, that you can't do anything for this on a Mac - the system manages the swap files by itself and if you need for an example 64 GB you will get it. My new standard MacBook has 8 GB RAM and there is currently no reason for a swap file.
So, what can we do? After a short search I found this blog post, which describes how to alter the pre-installation script of the RPM installation file with the help of the
repmrebuild
command. Unfortunately this command is not available on Mac OS. I found only rpmbuild as part of the rpm installation with Homebrew.Luckily I found another way to modify a rpm package under Mac OS: There is a Ruby based tool to build packages for multiple platforms called fpm. So, lets start:
If you don't have Homebrew on your Mac, install this first:
Install rpm:
Install tar:
Install fpm:
Unzip the downloaded Linux XE installation archive and go into the directory Disk1:
Write rpm scripts to text file:
Find this loop (from line 197 until line 212 as of this writing) and comment out or delete it:
Find this line (starting on line 328 as of this writing) and delete the line and everything behind until the file end:
Delete the very first line containing this code:
Save the file and bring it back into the rpm with this command (will take some time):
Go out of Disk1 and update the zip archive, because the Oracle provided build script needs it compressed (will take some time):
When you now do the Docker build you will face another error message:
package oracle-xe-11.2.0-1.0.x86_64 is intended for a different operating system
To fix this is fairly easy. Open the Dockerfile.xe, go to line 61 (as of this writing) and change this code:
to this one:
Best Mac Os X Software
When you now start the docker build you should be successful (will take some time):
The last step is to run the container - on the first startup the database is created (will take some time, align the name to your needs):
If you plan to use APEX without any dedicated webserver (maybe because you are the only user and it is only a small dev instance) you should pimp the EPG a little bit:
I use currently a Node.js based proxy server running directly on my Mac OS, because I need a webserver there anyway. The nice thing is, that the EPG don't need to serve the images and I also don't need to install the images into the EPG, when I upgrade to a newer APEX version. This saves me time and the EPG runs faster because of less number of requests. I will cover this topic in the next post.
Oracle Mac Os
Happy installing :-)
Ottmar
Ottmar