5. DBA http://mohamedazar.com Page 5
xorg-x11-utils-7.1-2.fc6.x86_64.rpm
Kernel Parameters
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=1048576
net.core.wmem_max=1048576
after modified run it
/sbin/sysctl –p
[root@bip ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
6. DBA http://mohamedazar.com Page 6
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
[root@bip ~]#
[root@bip ~]# tail -10 /etc/security/limits.conf
#ftp hard nproc 0
#@student - maxlogins 4
# End of file
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
obi soft nofile 1024
obi hard nofile 65536
[root@bip ~]# tail -2 /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
7. DBA http://mohamedazar.com Page 7
User creation
Oracle Database
[root@bip ~]# groupadd oinstall
[root@bip ~]# groupadd dba
[root@bip ~]# useradd -g oinstall -G dba oracle
[root@bip ~]# useradd -g oinstall obi
Oracle for Database
OBI for BI Install
[root@bip ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 hostname.domainname hostname
127.0.0.1 localhost.localdomain localhost
Bash profile for Oracle user
#Oracle Settings
TMP=/temp; export TMP
TEMPDIR=$TMP; export TEMPDIR
ORACLE_SID=biptest; export ORACLE_SID
8. DBA http://mohamedazar.com Page 8
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1; export ORACLE_HOME
JAVA_HOME=/usr/java; export JAVA_HOME
JRE_HOME=/usr/jre1.6.0_26; export JRE_HOME
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:/usr/jre1.6.0_26/bin:/usr/sbin:/usr/java/jdk1.7.0_15/bin/java:$PATH;
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
Bash_profile for OBI user
# File Descriptor Limit
ulimit -n 10240
# Java Home
JAVA_HOME=/usr/java/jdk1.7.0_15
export JAVA_HOME
PATH=/usr/java/jdk1.7.0_15/bin:$PATH
9. DBA http://mohamedazar.com Page 9
# Local Binary
PATH=$PATH:$HOME/bin
# Database Parameters
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
PATH=$ORACLE_HOME/bin:/opt/bin:$PATH
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
Step 3:
Install Oracle Database Software and create new database using DBCA
Here Note it character set should be AL32UTF8
After database creation done. Please make sure listener is up and running
Change the below parameter also in database;
Processes – 800
open_cursors – 800
sessions – 500
Refer this link for if you want to know how do I install oracle software and create database
http://mohamedazar.com/2010/11/29/grid-infrastructure-installation-guide-for-standalone-server/
15. DBA http://mohamedazar.com Page 15
The below two screenshot took from other prefix , so ignore it please do the create steps
Two component only will create