在ubuntu14.04下安装oracle 发表于 2015-09-07 | 分类于 Oracle | 参考http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869sudo apt-get install aliensudo alien -d --scripts oracle-xe-11.2.0-1.0.x86_64.rpmsudo dpkg -i oracle-xe-11.2.0-2_amd64.debsudo vim /var/lib/dpkg/info/oracle-xe.postinst#else#/sbin/chkconfig --add oracle-xesudo /var/lib/dpkg/info/oracle-xe.postinstsudo apt-get install libaio1sudo vim /etc/init.d/oracle-shm #! /bin/sh # /etc/init.d/oracle-shm # #case "\$1" instart) echo "Starting script /etc/init.d/oracle-shm" # Run only once at system startup mkdir /var/lock/subsys 2>/dev/null touch /var/lock/subsys/listener if [ -e /dev/shm/.oracle-shm ]; then echo "/dev/shm is already mounted, nothing to do" else rm -f /dev/shm 2>/dev/null mkdir /dev/shm 2>/dev/null #mount -B /run/shm /dev/shm mount -t tmpfs shmfs -o size=2048m /dev/shm touch /dev/shm/.oracle-shm fi ;;stop) echo "Stopping script /etc/init.d/oracle-shm" echo "Nothing to do" ;; *) echo "Usage: /etc/init.d/oracle-shm {start|stop}" exit 1 ;;esac# ### BEGIN INIT INFO # Provides: oracle-shm # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Bind /run/shm to /dev/shm at system startup. # Description: Fix to allow Oracle 11g use AMM. ### END INIT INFOsudo chmod 755 /etc/init.d/oracle-shmsudo update-rc.d oracle-shm defaults 01 99sudo rebootsudo vi ~/.bashrcexport ORACLE_HOME=/u01/app/oracle/product/11.2.0/xeexport ORACLE_SID=XEexport NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`export ORACLE_BASE=/u01/app/oracleexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHexport PATH=$ORACLE_HOME/bin:$PATHsudo source ~/.bashrcsudo ln -s /usr/bin/awk /bin/awksudo mkdir /var/lock/subsyssudo /etc/init.d/oracle-xe configuresudo /etc/init.d/oracle-xe { start | stop } 以下为删除 oracle 123456sudo -s /etc/init.d/oracle-xe stopps -ef | grep oracle | grep -v grep | awk '{print $2}' | xargs killsudo dpkg --purge oracle-xesudo rm -r /u01sudo rm /etc/default/oracle-xesudo update-rc.d -f oracle-xe remove 参考 https://community.oracle.com/thread/2303639 以上不能保证正确友情提示&总结:不要用debian系安装oracle!