一,基本配置:
1.以root登录,挂载linux iso文件
[root@oracle ~]# cat /etc/sysconfig/network
[root@oracle ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
2. 检查包是否安装
[root@oracle ~]# cd /mnt/cdrom/Server/
libXp-1.0.0-8.1.el5.i386.rpm
binutils-2.17.50.0.6-12.el5.i386.rpm
compat-libstdc++-296-2.96-138.i386.rpm
control-center-2.16.0-16.el5.i386.rpm
gcc-4.1.2-46.el5.i386.rpm
gcc-c++-4.1.2-46.el5.i386.rpm
glibc-2.5-42.i386.rpm
glibc-common-2.5-42.i386.rpm
libstdc++-4.1.2-46.el5.i386.rpm
libstdc++-devel-4.1.2-46.el5.i386.rpm
pdksh-5.2.14-36.el5.i386.rpm
sysstat-7.0.2-3.el5.i386.rpm
[root@oracle Server]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
[root@oracle Server]# rpm -ivh binutils-2.17.50.0.6-12.el5.i386.rpm
[root@oracle Server]# rpm -ivh compat-db-4.2.52-5.1.i386.rpm
[root@oracle Server]# rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
[root@oracle Server]# rpm -ivh control-center-2.16.0-16.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-c++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh glibc-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh glibc-common-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-devel-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm
[root@oracle Server]# rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
3.修改/etc/hosts文件
[root@oracle ~]# echo "192.168.101.88 oracle.junjie.com" >>/etc/hosts
[root@oracle ~]# groupadd oper
[root@oracle ~]# useradd -g oinstall -G dba,oper oracle
[root@oracle ~]# echo 'zhu.110' |passwd --stdin oracle
passwd: all authentication tokens updated successfully.
[root@oracle ~]# vim /etc/sysctl.conf
net.ipv4.ip_local_port_range = 1024 65000
[root@oracle ~]# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@oracle ~]# vim /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
[root@oracle ~]# mkdir -pv /u01/app/oracle
mkdir: created directory `/u01/app'
mkdir: created directory `/u01/app/oracle'
[root@oracle ~]# chown -R oracle:oinstall /u01/app/oracle/
[root@oracle ~]# chmod -R 775 /u01/app/oracle/
[root@oracle ~]# mkdir /u01/flash_recovery_area
[root@oracle ~]# chown oracle:oinstall /u01/flash_recovery_area/
[root@oracle ~]# chmod 755 /u01/flash_recovery_area/