Oracle Installation On Linux
Oracle Installation On Linux
Oracle Installation On Linux
binutils-2.15.90.0.1.1-32.10
gcc-3.3.3-43.34
gcc-c++-3.3.3-43.34
glibc-2.3.3-98.47
gnome-libs-1.4.1.7-671.1
libstdc++-3.3.3-43.34
libstdc++-devel-3.3.3-43.34
make-3.80-184.1
pdksh-5.2.14-780.7
sysstat-5.0.1-35.4
xscreensaver-4.16-2.6
libaio-0.3.102-1.2
To uninstall RPM'S
#/usr/sbin/useradd -m -g oinstall -G dba oracleid oracle ---Creating user and assinging groups
New password:
#vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
fs.file-max = 65536
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
esc :wq!
#/sbin/sysctl -p
Oracle recommends setting limits on the number of processes and open files each Linux account
may use. To make these changes, cut and paste the following commands as root:
#vi /etc/security/limits.conf
oracle soft nproc 2047
esc :wq!
Shared memory and semaphores are two important resources for an Oracle instance on Unix. An
instance cannot start if it is unable to allocate what it needs.
Shared memory is exactly that - a memory region that can shared between different processes.
Oracle uses shared memory for implementing the SGA, which needs to be visible to all database
sessions.
Semaphores can be thought of as flags (hence their name, semaphores). They are either on or off. A
process can turn on the flag or turn it off. If the flag is already on, processes who try to turn on the
flag will sleep until the flag is off. Upon awakening, the process will reattempt to turn the flag on,
possibly suceeding or possibly sleeping again. Such behaviour allows semaphores to be used in
implementing a post-wait driver - a system where processes can wait for events (i.e. wait on turning
on a semphore) and post events (i.e. turning of a semaphore). This mechanism is used by Oracle to
maintain concurrency control over the SGA, since it is writeable by all processes attached
Note:Max Sga that can be created by the one segment model is SHMMAX*SHMSEG
Oracle just needs to allocate a number of semaphores equal to the processes parameter in
"init.ora".
$vi /home/oracle/.bash_profile
export ORACLE_SID=devdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:.
$./runinstaller
Sql>@$ORACLE_HOME/rdbms/admin/catalog.sql
Sql>@$ORACLE_HOME/rdbms/admin/catproc.sql
sql>@$ORACLE_HOME/sqlplus/admin/pupbld.sql
Done.