# apt-get update
# apt-get dist-upgrade
# apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
# addgroup oinstall
# addgroup dba
# addgroup nobody
# usermod -g nobody nobody
# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
# passwd -l oracle
# mkdir /home/oracle
# chown -R oracle:dba /home/oracle
# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename
# mkdir /etc/rc.d
# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
# mkdir -p /u01/app/oracle
# chown -R oracle:dba /u01
/etc/sysctl.conf
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535
/etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
# sysctl -p
$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 5
./runInstaller -help
./runInstaller -jreLoc
./runInstaller -ignoreSysPrereqs
ignore glibc pre-requisite checks
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=/home/oracle/app/oracle/product/11.1.0/db_1
export PATH=$PATH:/home/oracle/app/oracle/product/11.1.0/db_1/bin
export ORACLE_OWNER=oracle
export ORACLE_SID=orcl
start oracle 11g listener:
# /home/oracle/app/oracle/product/11.1.0/db_1/bin/lsnrctl start|stop
start oracle manager
#emctl start dbconsole
start Net Manager
#netca/netmgr
configer file
/home/oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora
reference documentation
阅读(721) | 评论(0) | 转发(0) |