1.Setup system enviroment
(1)install some system requriments
expect the gcc, make
sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
(2)make some symlinks
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /bin/basename
2.Config the group and user
addgroup oinstall
addgroup dba
addgroup nobody
useradd -g oinstall -G dba -s /bin/bash -m oracle
useradd -g nobody nobody
3. Tweak the system default limits
(1)vi /etc/sysctl.conf, add below to the end
# sets the maximum number of open files that can be handled by the Linux kernel.
fs.file-max = 65535
# determines the total amount of shared memory to be allocated in pages. In this example, I’ve set it to 8GB, which is way above the amount of memory I can handle in my box, even with swap.
kernel.shmall = 2097152
# controls the maximum amount of memory to be allocated for shared memory which in this example is 2GB.
kernel.shmmax = 2147483648
# defines the maximum number of segments system-wide.
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
# define the default and maximum read buffer queue for network operations
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
# define the default and maximum write buffer queue for network operations
net.core.wmem_default = 262144
net.core.wmem_max = 262144
after modifed the /etc/sysctl.conf, use the command
sysctl -p
ipcs -ls, you will see
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 100
semaphore max value = 32767
4.Set up Oracle Env
e.g.
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/ora11
export ORACLE_OWNER=oracle
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$PATH
5.Install
chown -R oracle:oinstall /opt/oracle
./runInstaller -jreLoc /usr/share/java -ignoreSysPrereqs
note that there is some difference between Oracle 10g and Oracle 11g, be careful for it
6.Remark
(1)please care some files:
/etc/oraInst.loc: oracle install config
/etc/oratab: oracle dbstart config
/var/tmp/.oracle: oracle lsnrctl need to read and write
没有评论:
发表评论