Install Oracle 10g R2 on Linux
Oracle 10g R2 on Linux
vi /etc/sysctl.conf
#add the following line in the end of file
kernel.core_uses_pid = 1
kernel.shmmni=4096
kernel.shmall=2097152
kernel.shmmax=2147483648
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
vi /etc/security/limits.conf
#add the following line in the end of file
oracle soft nofile 63536
oracle hard nofile 63536
oracle soft nproc 16384
oracle hard nproc 16384
groupadd dba
groupadd oinstall
mkdir /u01
useradd -d /home/oracle -g oinstall -G dba oracle
passwd oracle
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/
#Open a new terminal
su oracle
cd
pwd
vi .bash_profile
#add the following lines in the end of the file
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
Now reboot the machine
Before starting installation, log in as root, and switch to oracle user by command
su - oracle
#During installation open a terminal a root, run the following scripts and press ok
/u01/app/oracle/oraInventory/orainstRoot.sh
/u01/app/oracle/product/10.2.0/db_1/root.sh
Now log in as oracle and run
dbca
emctl stop dbconsole
emctl start dbconsole
sqlplus
user= sys/oracle as sysdba
shutdown immediate
startup;
