Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@ Docker file which installs oracle-xe

I wanted to have docker file (not image...) that would install oracle-xe.
After some fighting I managed to set up configuration (at least I hope so...). To run it you have to get oracle-xe_11.2.0-2_amd64.deb file
- that is, download it from oracle site and run it through alien. Then you have to put in files directory and you're ready to run docker build.

Credits
* https://forums.oracle.com/thread/2303639
* https://index.docker.io/u/kimh/oracledb
#Create Oracle XE Package

with `sudo alien --scripts -d oracle-xe-*.rpm`
if alien is missing execute
`sudo apt-get install alien`



#Setup SQLplus Packages (optional)
if ýou would like to install also oracle instant client + sqlplus you need to remove the comments in the install.sh script and also supply the devel, basic and sqlplus package from

http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

bevore executing the build they must be converted to deb files with
`alien -d oracle-instantclient12.1-*.rpm`.

#Build
before you can build move all created .deb files to the files directory.


#Credits
* [Oracle thread about ubuntu installation](https://forums.oracle.com/thread/2303639)
* [Existing oracle docker image by kimh](https://index.docker.io/u/kimh/oracledb)
* [How to install oracle xe on ubuntu](https://help.ubuntu.com/community/Oracle%20Instant%20Client)
5 changes: 5 additions & 0 deletions files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ apt-get -y install libaio1 net-tools bc nano

cd /tmp/filesOracle

#install sqlplus
#echo /usr/lib/oracle/12.1/client64/lib/ > /etc/ld.so.conf.d/oracle.conf
#dpkg -i /tmp/filesOracle/oracle-instantclient12.1-*.deb
#ldconfig

#resolve some stupid link conflits
ln -s /usr/bin/awk /bin/awk
mkdir /var/lock/subsys
Expand Down