I have always asked myself why Oracle doesn’t package their software as an RPM-surely such a large organisation has the resources to do so!
Well the short answer is they don’t give you an RPM, except for the XE version of the database which prompted me to do it myself. The big problem anyone faces with RPM is that the format doesn’t seem to support files larger than 2GB. Everybody knows that the Oracle database installation is > 2G which requires a little trick on our side. And the trick is not even obscure in any way as I remembered: some time ago I read an interesting article written by Frits Hoogland about cloning Oracle homes. It’s still very relevant and can be found here:
http://fritshoogland.wordpress.com/2010/07/03/cloning-your-oracle-database-software-installation/
Now that gave me the idea:
- You install the oracle binaries on a reference host
- Apply any patches and PSUs you need
- Wrap the oracle home up in a tar-ball just the way Frits describes by descending into $ORACLE_HOME and creating a tar archive of all files, excluding those ending in “*.log”, network config files in $ORACLE_HOME/network/admin and anything in $ORACLE_HOME/dbs. We don’t want to proliferate our database initialisation files …
- You make that tarball available on a central repository and export that with CIFS/NFS or whatever other mechanism you like
- Mount this exported file system in /media, so that /media/db11.2.0.3/ has the database.tar.gz file available
- Install the RPM
Simple! Piet de Visser would be proud. Read the rest of this entry »