1. 以root登录,挂载linux iso文件
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
2. 检查包是否安装
(软件包源码位于iso下的server目录下)
rpm –q compat-db
rpm -qa | grep compat
如果没有安装:则
#rpm -ivh sudo-1.7.2...rpm
�D�D�D�D�D�D�D�D�D�D�D�D�D�D
Red Hat Enterprise Linux 4.0 and Asianux 2.0:
binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
setarch-1.6-1
libXp-1.0.0-8.1.e15.i386.rpm
libaio-0.3.105-2.i386.rpm
libaio-devel-0.3.105-2.i386.rpm
3. vi /etc/hosts
192.168.101.200 www.liuwei.com
127.0.0.1 localhost
1. Creating Required Operating System Groups and Users
# /usr/sbin/groupadd dba
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd oper
2. Creating an Oracle Software Owner User
# /usr/sbin/useradd -g oinstall -G dba,oper oracle
# passwd oracle
3. vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
4. vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
5. vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
6. vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
7 #chown -R oracle:oinstall /u01/app/oracle
#chmod -R 775 /u01/app/oracle
# mkdir /u01/flash_recovery_area
# chown oracle:oinstall /u01/flash_recovery_area
# chmod 775 /u01/flash_recovery_area/
8. su – oracle
vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
export ORACLE_SID=liuwei
export PATH=$ORACLE_HOME/bin:$PATH
9. . .bash_profile
10.su - root
xhost local:oracle non-network local connections being added to access control list
11. 换光盘
# umount /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
12.su - oracle
export LANG=C
/mnt/cdrom/database/runinstaller
1. 创建监听器
2. export LANG=C
3. netca
1. 建库
2. export LANG=C
3. dbca
重要步骤
本文出自 “碧云天” 博客,谢绝转载!