将pdksh-5.2.14-37.el5_8.1.x86_64.rpm,和oracle的包拷贝到oracle的家目录下/oracle-11g下
#chmod –R 755/oracle-11g/
#chown –R oracle.oracle /oracle-11g/
安装oracle时,一定要保证主机名出现在/etc/hosts中。
#hostname//查看主机名 结果如下图
#vim /etc/hosts //加入一行 结果如下图
192.168.1.1 oracle-11g
修改oracle用户的.bash_profile
#vim /home/oracle/.bash_profile
export ORACLE_BASE=“/oracle-11g/app/oracle”
export ORACLE_HOME=“/oracle-11g/app/oracle/product/11.2.0/dbhome_1”
export PATH= P A T H : PATH: PATH:ORACLE_HOME/bin
export ORACLE_SID=orcl
export NLS_LANG=“SIMPLIFIED CHINESE_CHINA.UTF8”
export PATH
安装依赖包
#yum -y install libaio glibc compat-libstdc* elfutils-libelf-devel\ gcc-c++ libaio-devel unixODBC\ readline\***
#cd /oracle-11g/
#yum –y install pdksh-5.2.14-37.el5_8