Installing Oracle 11g on an OpenSolaris zone
Here is my cookbook for installing Oracle 11g on an OpenSolaris zone. This has been tested on OpenSolaris build 134, with Oracle 11.2.0.1.0
Pre-requisites:
Create a zone with ( zonemgr or zonadm)
You probably need a machine with at least 2G of RAM
Log in to the zone and run this script (or cut n paste)
#!/bin/sh # add extra packages needed for Oracle install pkg install system/install/locale pkg install system/locale pkg install system/locale/en_us pkg install java pkg install library/motif pkg install developer/build/make pkg install developer/object-file # Add oracle user / groups groupadd dbagroup mkdir -p /export/home/oracle useradd -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle # Set params for shared memory # Note - I use dbca to create the database instance and I set the shared memory to < 1G # If you let the installer create a DB instance you need at least 2G of shared memory projadd -U oracle -K "project.max-shm-memory=(priv,1g,deny)" user.oracle projmod -sK "project.max-sem-nsems=(priv,256,deny)" user.oracle projmod -sK "project.max-sem-ids=(priv,100,deny)" user.oracle projmod -sK "project.max-shm-ids=(priv,100,deny)" user.oracle # Create oracle profile cat >/export/home/oracle/.bash_profile <<EOF ORACLE_BASE=/opt/oracle ORACLE_HOME=/opt/oracle/software/102 ORACLE_SID=orcl LD_LIBRARY_PATH=/lib PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/bin:$ORACLE_HOME/bin export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH EOF # Create install dir mkdir -p /opt/oracle chown -R oracle /opt/oracle chown -R oracle /export/home/oracle
When you are done login as oracle, cd to the installer path and run:
./runInstaller
I suggest you defer creating the database at this time.
When the installer is done, run dbca (as user oracle) to set up a DB instance. Edit the shared memory to set it below 1G
After dbca completes em (Enterprise Manager) should be running:
Open your browser to https://yourzone:1158/em
Login as
SYSTEM – Use the password you gave at install time
Reference:
http://wikis.sun.com/display/SAPonSun/Installing+Oracle+11g+Release+2+on+OpenSolaris –
(I found the linking of the amd crypto lib was not required. This may have been fixed)
Comments are closed.
Nice script, but seems it have typo on lines
12 – doubled
17 – lines are joined
24 – EOF here?
Thanks Roman – good catch (cut n paste errors!). Should be fixed now