Solution? Install Virtual Box with linux or windows machine and run oracle XE on it. Access it locally from your host os Yosemite in this case. There are two major steps in this.
- Installing Virtual box, guest OS and Oracle XE
- Configuring it to access Oracle XE from the Mac Yosemite.
- Download latest version of virtual box.
- For the guest OS and DB either you can individual download the images and install all that or you can use one of the Oracle prebuilt images. They will be a bit larger in size due to some more stuff but will do the job as one step solution. I used Downloads and Instructions
- Once you have a everything installed and the image imported you will need to make sure that you can run your XE DB in the guest OS first. Do the following:
- from the Applications menu click on "Oracle XE DB --> Start Oracle Database". Wait for few min.
- From the same place click on "Run SQL lite terminal"
- In the terminal type connect / sysdba and this should connect if DB is up and running.
- by default HR schema is installed and locked. So run the following
- alter user hr account unlocked identified by hr
- This should do the job and will ensure that it all works fine.
- Click on the top right corner and enable network on your guest OS (eth0 by default)
- Go to Virtual box and installed image settings. Click Network tab and click on Port Forwarding.
- Add a new entry here marking as: Host ip: 127.0.0.1 port 1522 guest ip: blank port: 1521 and do ok.
- This should now connect to the XE running in guest OS as hr/hr@localhost:1522:XE (service name)
NOTE: The pre-built image I used in step 1 has the port 1521 unblocked by default. If you are manually doing the step 1 then you would need to unblock the 1521 port by guest OS firewall. You can do that following: http://www.thatjeffsmith.com/archive/2014/03/connecting-to-oracle-from-your-host-to-a-virtualbox-oel-guest/