1. Download XE rpm package to your website
2. Unzip
unzip oracle-xe-11.2. 0-1.0. x86_64.rpm. Zip
3. Convert RMP Package to Deb package, alien install Apt-get if not alien. To install or update libaio1, you must.
1 cd Disk1 2 alien--scripts oracle-xe-0 -1.0 .x86_64.rpm 3 apt-get Remove--purge oracle-xe-universal #remove 10g if needed 4 apt-get install Libaio1 #oracle needs this 5 dpkg-i oracle-xe_11.2.0 -2_amd64.deb
4. In the ubuntu14.04/run/shm replaced the previous/DEV/SHM, many online solutions are said to/DEV/SHM, but after many tests this does not matter! But the following commands must be executed, Responsible for the possibility of the startup of the time to report memory errors, if the error to execute the following statement to restart Oracle Yi can be resolved, but each boot to be re-executed below, but also need further research, but can use is good!
1 rm /dev/SHM2mkdir /dev/shm3Mount -T Tmpfs shmfs-o size=2048m/dev/SHM4 sysctl kernel.shmmax=1073741824 #also edit/etc/sysctl.conf and Set the same value to persist the change
5. Modify the file/etc/init.d/oracle-xe
-Will Awk=/bin/awk; Replaced by Awk=/usr/bin/awk;
- Replace the/var/lock/subsys with the /var/lock
-Increasedconfiguration of mounted/dev/SHM
1 if Then 2 rm -rf/dev/SHM3 mkdir /dev/shm4 Mount -T Tmpfs shmfs-o size=2048m/dev/shm5 fi
The following is the difference between the new file and the source file (yellow is the source file and needs to be commented out):
53c53< If[-Z "$AWK"]; Then Awk=/usr/bin/awk; Fi---> If[-Z "$AWK"]; Then Awk=/bin/awk; Fi269c269< Touch/var/lock/listener---> Touch/var/lock/subsys/listener321c321< Touch/var/lock/oracle-xe---> Touch/var/lock/subsys/oracle-xe555,559d554< If[-l/dev/shm]; then< rm-rf/dev/shm< mkdir/dev/shm< Mount-t Tmpfs Shmfs-o size=2048m/dev/shm< Fi567c562< Touch/var/lock/listener---> Touch/var/lock/subsys/listener582c577< Touch/var/lock/oracle-xe---> touch/var/lock/subsys/oracle-xe606c601< If 0 ] && Rm-f/var/lock/listener---> if [$RETVAL-eq && Amp Rm-f/var/lock/subsys/listener608c603< rm-f/var/ Lock/oracle-xe---> rm-f/var/lock/subsys/ Oracle-xe |
6. Configure Oracle-xe
/etc/init.d/oracle-xe Configure
If an error occurs stating that Oracle does not have the correct boot, follow steps 4th
Ora-27101:shared Memory realm does not exist
7. Adding environment Variables for Oracle
1 export oracle_sid=XE2 export oracle_home=/u01/app/oracle/product/11.2. 0 last/is very important3 export path= $PATH: $ORACLE _home/bin
8. Start Oracle
sudo /etc/init.d/oracle-xe start
View the status of Oracle Listenner
Lsnrctl status
In theory, you need to configure your service and host name in the. /network/listener.ora and Tnsname.ora, Sqlnet.ora can modify the connection as TNS, and I do. The specific configuration is posted back.
9. Login Sqlplus
[Email Protected]:sqlplus/nolog
as SYSDBA;
Install Oracle 11g XE 64-bit under Ubuntu14.04