Install Oracle11g R2 for Oracle Solaris 11 on x86-64 (64-Bit)
1. Logging In to the System as root
— X window is needed
2. Checking the Hardware Requirements
2.1 Memory Requirements
- At least 256 MB of physical RAM.
- To view physical memory size
# prtconf | grep “Memory size”
- RAM & SWAP relationship
RAM | Swap Space |
---|---|
Between 0 MB and 256 MB | 3 times the size of RAM |
Between 256 MB and 512 MB | 2 times the size of RAM |
Between 512 MB and 2 GB | 1.5 times the size of RAM |
Between 2 GB and 16 GB | Equal to the size of RAM |
More than 16 GB | 16 GB |
- To view SWAP size
# swap -s
- To view available SWAP
# sar -r 5
2.2 System architecture
# isainfo -kv
2.3 Disk Space Requirements
- The minimum disk space requirement for a client install in the
/tmp
directory is 180 MB.To determine the amount of disk space available in the/tmp
directory, enter the following command:# df -h /tmp
- To determine the amount of free disk space available, enter the following command:
# df -h
Installation Type Requirement for Software Files Instant Client 220 MB Administrator 1.7 GB Runtime 1.4 GB
3. Checking the Software Requirements
3.1 Operating System Requirements
Have to be 5.10 or 5.11
# uname -r
3.2 Package and Patch Requirements
Verifying Packages
To determine whether the required packages are installed, enter commands similar to the following:
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt Verifying Operating System Patches
To determine whether an operating system patch is installed, enter a command similar to the following:
# /usr/sbin/patchadd -p | grep patch_number(without version number)
For example, to determine if any version of the 119963 patch is installed, use the following command:
# /usr/sbin/patchadd -p | grep 119963
If an operating system patch is not installed, then download it from the My Oracle Support Web site and install it:
https://support.oracle.com/
3.3 Compiler Requirements
Oracle Solaris Studio 12 (C and C++ 5.9) is supported with Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Oracle XML Developer’s Kit (XDK) for Oracle Database 11g Release 2.
3.4 Additional Software Requirements
3.4.1 Oracle JDBC/OCI Drivers
JDK 7, JDK 6 or JDK
4. Creating Required Operating System Group and User
The following local operating system groups and users are required if you are installing Oracle Database:
- The Oracle Inventory group (typically,
oinstall
) - The Oracle software owner (typically,
oracle
)
To determine whether these group and user exist, and if necessary, to create them, follow these steps:
- To determine whether the
oinstall
group exists, enter the following command:# more /var/opt/oracle/oraInst.loc
If the output of this command shows the
oinstall
group name, then the group exists.If the
oraInst.loc
file exists, then the output from this command is similar to the following:inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall
The
inst_group
parameter shows the name of the Oracle Inventory group,oinstall
. - If necessary, enter the following commands to create the
oinstall
group:# /usr/sbin/groupadd oinstall
- To determine whether the
oracle
user exists and belongs to the correct groups, enter the following command:# id -a oracle
If the
oracle
user exists, this command displays information about the groups to which the user belongs. The output should be similar to the following, indicating thatoinstall
is the primary group anddba
is a secondary group:uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)
- If necessary, complete one of the following actions:
- If the
oracle
user exists, but its primary group is notoinstall
or it is not a member of thedba
group, then enter the following command:# /usr/sbin/usermod -g oinstall -G dba oracle
- If the
oracle
user does not exist, enter the following command to create it:# /usr/sbin/useradd -m -g oinstall [-G dba] oracle
This command creates the
oracle
user and specifiesoinstall
as the primary group anddba
as an optional secondary group.
- If the
- Enter the following command to set the password of the
oracle
user:# passwd oracle
5. Creating Required Directories
To create the required directories and specify the correct owner, group, and permissions for them:
Note:
In the following procedure, replace /u01
and /u02
with the appropriate mount point directories that you identified in Step 3 previously.
- Enter the following command to create subdirectories in the mount point directory that you identified for the Oracle base directory:
# mkdir -p /u01/app/oracle
- If you intend to use a second file system for the Oracle Database files, then create an
oradata
subdirectory in the mount point directory that you identified for the Oracle data file directory (shown as/u02
in the examples):# mkdir /u02/oradata
- Change the owner and group of the directories that you created to the
oracle
user and theoinstall
group:# chown -R oracle:oinstall /u01/app/oracle # chown -R oracle:oinstall /u02/oradata
- Change the permissions on the directories that you created to 775:
# chmod -R 775 /u01/app/oracle # chmod -R 775 /u02/oradata
6. Configuring the oracle User’s Environment
You run Oracle Universal Installer from the oracle
account. However, before you start Oracle Universal Installer, you must configure the environment of the oracle
user. To configure the environment, you must:
- Set the default file mode creation mask (
umask
) to 022 in the shell startup file. - Set the
DISPLAY
environment variable.
To set the oracle
user’s environment:
- Start a new terminal session, for example, an X terminal (
xterm
). - Enter the following command to ensure that X Window applications can display on this system:
$ xhost fully_qualified_remote_host_name
For example:
$ xhost somehost.us.example.com
- If you are not logged in to the system where you want to install the software, then log in to that system as the
oracle
user. - If you are not logged in as the
oracle
user, then switch user tooracle
:$ su - oracle
- To determine the default shell for the
oracle
user, enter the following command:$ echo $SHELL
- To run the shell startup script, enter one of the following commands:
- Bash shell:
$ . ./.bash_profile
- Bourne or Korn shell:
$ . ./.profile
- C shell:
% source ./.login
- Bash shell:
- If you are not installing the software on the local computer, then run the following command on the remote system to set the
DISPLAY
variable:- Bourne, Bash or Korn shell:
$ export DISPLAY=local_host:0.0
- C shell:
% setenv DISPLAY local_host:0.0
In this example,
local_host
is the host name or IP address of the local computer to use to display Oracle Universal Installer.Run the following command on the remote system to check if the shell and the DISPLAY environmental variable are set correctly:
echo $SHELL echo $DISPLAY
Now to enable X applications, run the following commands on the local computer:
$ xhost + fully_qualified_remote_host_name
To verify that X applications display is set properly, run a X11 based program that comes with the operating system such as
xclock
:$ xclock
In this example, you can find
xclock
at/usr/X11R6/bin/xclocks
. If theDISPLAY
variable is set properly, then you can seexclock
on your computer screen.See Also:
PC-X Server or operating system vendor documents for further assistance
- Bourne, Bash or Korn shell:
- If you determined that the
/tmp
directory has less than 1 GB of free disk space, then identify a file system with at least 1 GB of free space and set theTMP
andTMPDIR
environment variables to specify a temporary directory on this file system:- To determine the free disk space on each mounted file system use the following command:
# df -h /tmp
- If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory:
$ sudo mkdir /mount_point/tmp $ sudo chmod a+wr /mount_point/tmp # exit
- Enter commands similar to the following to set the
TMP
andTMPDIR
environment variables:- Bourne, Bash, or Korn shell:
$ TMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TMP TMPDIR
- C shell:
% setenv TMP /mount_point/tmp % setenv TMPDIR /mount_point/tmp
- Bourne, Bash, or Korn shell:
- To determine the free disk space on each mounted file system use the following command:
- Enter commands similar to the following to set the
ORACLE_BASE
and ORACLE_SID
environment variables:- Bourne, Bash, or Korn shell:
$ ORACLE_BASE=/u01/app/oracle $ ORACLE_SID=sales $ export ORACLE_BASE ORACLE_SID
- C shell:
% setenv ORACLE_BASE /u01/app/oracle % setenv ORACLE_SID sales
In this example,
/u01/app/oracle
is the Oracle base directory that you created or identified earlier andsales
is the database name (typically no more than five characters). - Bourne, Bash, or Korn shell:
- Enter the following commands to ensure that the
ORACLE_HOME
andTNS_ADMIN
environment variables are not set:- Bourne, Bash, or Korn shell:
$ unset ORACLE_HOME $ unset TNS_ADMIN
- C shell:
% unsetenv ORACLE_HOME % unsetenv TNS_ADMIN
Note:
If the
ORACLE_HOME
environment variable is set, then Oracle Universal Installer uses the value that it specifies as the default path for the Oracle home directory. However, if you set theORACLE_BASE
environment variable, then Oracle recommends that you unset theORACLE_HOME
environment variable and choose the default path suggested by Oracle Universal Installer. - Bourne, Bash, or Korn shell:
7. Mounting the Product Disc
On most Oracle Solaris systems, the product disc mounts automatically when you insert it into the drive. If the disc does not mount automatically, then follow these steps to mount it:
- Switch user to root:
$ su - root
- If necessary, enter a command similar to the following to eject the currently mounted disc, then remove it from the drive:
# eject
- Insert the disc into the disc drive.
- To verify that the disc mounted automatically, enter a command similar to the following:
# ls /dvd/dvd0
- If this command fails to display the contents of the disc, then enter a command similar to the following:
# /usr/sbin/mount -r -F hsfs /dev/dsk/cxtydzs2 /dvd
In this example,
/dvd
is the disc mount point directory and/dev/dsk/cxtydzs2
is the device name for the disc device, for example/dev/dsk/c0t6d0s2
. - If Oracle Universal Installer displays the Disk Location dialog box, then enter the disc mount point directory path. For example:
- Disc mounted automatically:
/dvd/dvd0
- Disc mounted manually:
/dvd
- Disc mounted automatically:
- For Database software installation:
unzip solaris.x64_11gR2_database_1of2.zip
unzip solaris.x64_11gR2_database_2of2.zip
8. Installing Oracle Database Client
After configuring the oracle
user’s environment, start Oracle Universal Installer and install Oracle Database as follows:
To start Oracle Universal Installer, enter the following command:
$ /mount_point/db/runInstaller
9. Log in the Oracle
To become familiar with this release of Oracle Database, it is recommended that you complete the following tasks:
- Log in to Oracle Enterprise Manager Database Control using a Web browser.Oracle Enterprise Manager Database Control is a Web-based application that you can use to manage a single Oracle Database installation. The default URL for Database Control is similar to the following:
http://host.domain:1158/em/
To log in, use the user name SYS and connect as SYSDBA. Use the password that you specified for this user during the Oracle Database 11g installation.
Refer to Oracle document link.