http://www.oracle.com/technology/software/products/database/index.html
http://download.oracle.com/otn/linux/oracle11g/linux.x64_11gR1_database_1013.zip
unzip linux.x64_11gR1_database_1013.zip -d /myapp/oracle
/etc/security/limits.conf # /etc/security/limits.conf # session required /lib64/security/pam_limits.so session required pam_limits.so
/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
如下所示/etc/profile # /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi } if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi # ksh workaround if [ -z "$EUID" -a -x /usr/bin/id ]; then EUID=`id -u` UID=`id -ru` fi # Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin fi # No core files by default ulimit -S -c 0 > /dev/null 2>&1 if [ -x /usr/bin/id ]; then USER="`id -un`" LOGNAME=$USER MAIL="/var/spool/mail/$USER" fi HOSTNAME=`/bin/hostname` HISTSIZE=1000 if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrc fi export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i fi done unset i unset pathmunge
依赖本地库(如果没有,执行“yum install 库名“安装) binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.1 gcc-c++-4.1.1 glibc-2.5-12 glibc-2.5-12 (32 bit) glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5-12 (32 bit) libaio-0.3.106 libaio-0.3.106 (32 bit) libaio-devel-0.3.106 libgcc-4.1.1 libgcc-4.1.1 (32 bit) libstdc++-4.1.1 libstdc++-4.1.1 (32 bit) libstdc++-devel 4.1.1 make-3.81 sysstat-7.0.0
大小最好3G以上
有独立分区
挂载磁盘分区到/u01 (如果没有独立分区执行 mkdir /u01)
mount -t ext3 /dev/sda6 /u01
chown -R oracle:oinstall /u01/app/ chmod -R 775 /u01/app/
chown -R oracle:oinstall /myapp/oracle
chmod -R 775 /myapp/oracle
以oracle登录系统
更改环境变量
/home/oracle/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs #DISPLAY=localhost:0.0 #export DISPLAY export ORACLE_SID=orcl export ORACLE_BASE=/u01/app/oracle export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:ORACLE_HOME/lib export ORACLE_HOME=/u01/app/oracle export ORACLE_HOME_LISTNER=$ORACLE_HOME PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin umask 022 export PATH
sh /home/oracle/.bash_profile
cd /myapp/oracle/database
./runInstaller
然后就会出现图形安装
安装过程跟Wndows下差不多
安装完成后
以root登录 执行如下脚本
/u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/root.sh
lsnrctl start
sqlplus username/password AS SYSDBA
> startup
相关资源:RedHat Linux_5.5 32与64位服务器版种子
