Oracle Database 11g installation on Solaris 10

I had installed Oracle Database 11g on Solaris 10 few days back. I thought of documenting the steps for easy reference. Please find below steps for the same

Installation Pre-Requisite

Refer to Oracle Database Installation Guide 11g Release 1 (11.1) for Solaris Operating System for checking Hardware and Software Requirements.

User Creation and Environment Settings

1)Create groups for Oracle account

#groupadd oinstall
#groupadd dba
#groupadd oper

2)Create Oracle Default Home directory

# mkdir /export/home
# mkdir /export/home/oracle

3)Create Oracle user

# useradd -g oinstall -G dba -d /export/home/oracle -s /usr/bin/bash oracle
# chown oracle:oinstall /export/home/oracle

4)Create Project for Oracle for setting the kernel parameters
In case of Solaris 10, you can use projects to configure the kernel parameters instead of /etc/system file. This can be done as following

# projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" oracle
# projmod -sK "project.max-sem-nsems=(priv,256,deny)" oracle
# projmod -sK "project.max-sem-ids=(priv,100,deny)" oracle
# projmod -sK "project.max-shm-ids=(priv,100,deny)" oracle

There are many more ways of creating project entries such as or user.user-name. For more details refer to Solaris Administration documents.
Last three settings made by projmod command are not required as these values are lower than the default. This was pointed by Mike Madland and he also gave a Sun documentation link
You can check the values for max-sem-ids and max-shm-ids with this command:

prctl -n project.max-sem-ids -i task `ps -o taskid= -p $$`

5)Create .bash_profile for Oracle user

#Oracle Environment Settings
TMP=/tmp; export TMP
ORACLE_BASE=/u03/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME

Now Set the Display to a X-windowing enabled system.

$ export DISPLAY=

Also allow the host to accept the connection by

$xhost +

Oracle Software Installation

Go to the Oracle dump location and run runInstaller as Oracle user


This will open Oracle Universal Installer(OUI) screen. If Oracle Universal Installer is not displayed, then ensure DISPLAY variable is set correctly. Select “Software only” option and install the software. If any of the pre-requisite’s are not met , then installation will fail. You would be required to make necessary changes to proceed.

Database Creation

We will be using ASM for the Database files. For this we need to perform some configuration
1)Prepare the Raw device for using as ASM Disks

# ls -l
total 0
crw------- 1 root root 125, 1 Jun 20 10:39 1

Disk should be owned by Oracle user and should have permission set to 660

# chown oracle:dba 1
# chmod 660 1
- # ls -ltr
total 0
crw-rw---- 1 oracle dba 125, 1 Jun 20 10:39 1

2)Configure CSS Service
In case of Solaris 10, we need to use Service Management Facility (SMF) for configuring CSS service else it will not start. Refer to my earlier post for this step i.e ASM installation on Solaris fails -II

3) Configure ASM Instance
a)Go to $ORACLE_HOME/bin
b)Execute dbca from this directory (ensure dbca is properly set)


c) Select Configure ASM Instance option. This will create ASM instance for you. After this you can create Diskgroups using GUI or else use sqlplus to do the same.
4)Now continue creating database normally and enter Diskgroup Name after selecting Oracle Managed files as database file location.
While you navigate through GUI screens, it will prompt you to Specifying Security Settings
– Keep the enhanced 11g security settings(recommended)
– Revert to pre 11g settings
Select the 11g settings which will enable Auditing by default and also enable Case sensitive passwords with Stronger password hashing algorithm.
I have not discussed GUI screens for DBCA and OUI in this article. These are pretty much standard screens. In case you need more information about it, then you can refer to : Oracle 11g Install guide for Solaris

Category: DatabaseSolarisUnix


Leave a Reply

Article by: Shadab Mohammad