Ubuntu 13.04 Server installs Oracle XE 11G R2

Source: Internet
Author: User
Tags chmod syslog

One, install the Ubuntu 13.04 Server 64-bit version (the simplest to install), and then install all the following accessories

#apt-get update 
#apt-get Dist-upgrade
# Apt-get Install Automake autotools-dev binutils bzip2 doxygen elfutils expat gawk unzip
#apt-get install gcc gcc-multil IB g++-multilib ia32-libs ksh less lesstif2 lesstif2-dev
#apt-get install lib32z1 libaio1 libaio-dev Libc6-dev libc6-de v-i386 libc6-i386
#apt-get install Libelf-dev libltdl-dev libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386
# Apt-get Install Libpth-dev libpthread-stubs0 libpthread-stubs0-dev libstdc++5 zlibc
#apt-get install lsb-cxx make Pdksh rlwrap rpm openssh-server
#apt-get install sysstat unixodbc unixodbc-dev x11-utils

Two, download Oracle XE 11g, younger brother stored in the/home directory

Download Oracle Database Express Edition 11g R2

Third, start the installation oracle 

#cd/home
#un Zip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
#cd Disk1
#alien--scripts oracle-xe-11.2.0-1.0.x86_64.rpm

Created /sbin/chkconfig
#vi/sbin/chkconfig

#!/bin/bash# Oracle 11gR2 XE installer chkconfig hack for UbuntuFile=/etc/Init.D/Oracle-XeIf [[ ! `Tail-n1$file| grep INIT` ]]; ThenEcho >> $fileEcho ' # # # BEGIN INIT INFO ' >> $fileEcho ' # Provides:oraclexe ' >> $fileEcho ' # Required-start: $remote _fs $syslog ' >> $fileEcho ' # required-stop: $remote _fs $syslog ' >> $fileEcho ' # Default-start:2 3 4 5 ' >> $fileEcho ' # default-stop:0 1 6 ' >> $fileecho ' # short-description:oracle 11g Express Edition ' >>  $fileecho ' # # # END INIT INFO ' >> $filefiupdate-RC . d-Oracle-XE defaults           

Change the operational permissions
#chmod 755/sbin/chkconfig

to create/etc/sysctl.d/60-oracle.conf
#vi/etc/sysctl.d/60- oracle.conf

 # Oracle 11g XE kernel parametersfs.-max=6815744. Sem=250 32000 100 128kernel.=1073741824net. Ipv4. Ip_local_port_range=9000 65000    

Start the Procps service
#service Procps Start

#ln-S/usr/bin/awk/bin/awk
#mkdir/var/lock/subsys
#touch/var/lock/subsys/listener
#rm-RF/DEV/SHM
#mkdir/DEV/SHM
#mount-T Tmpfs shmfs-o SIZE=2048M/DEV/SHM

Create/etc/rc2.d/s01shm_load
#vi/etc/rc2.d/s01shm_load

#!/bin/shCase "$" InchStart)Mkdir/Var/Lock/Subsys2>/dev/NullTouch/Var/Lock/Subsys/ListenerRm/Dev/Shm2>/dev/NullMkdir/dev/shm 2> /dev/null Mount -t tmpfs shmfs -o size=2048m /dev /shm ;; *)  echo exit 1 ; esac             

To change the operational permissions
#chmod 755/etc/rc2.d/s01shm_load

Installing Oracle Packages
#dpkg--install Oracle-xe_11.2.0-2_amd64.deb

Add environment variable
#vi ~/.BASHRC Add the following code to the last side of the file

Export Oracle_home=/u01/App/Oracle/Product/11.2.0/XeExport Oracle_sid=XEExport Nls_lang= '  $ORACLE _home/bin/nls_lang.sh  ' export oracle_base< Span class= "pun" >=/u01/app/oracleexport ld_library_path=$ Oracle_home/lib: $LD _library_pathexport path=  $ORACLE _home/bin:$ PATH                  

#source ~/.BASHRC

Perform Oracle configuration
#/etc/init.d/oracle-xe Configure



---The following is the removal of Oracle--

Sudo-S/etc/Init.D/Oracle-Xe Stopps-Ef|grep Oracle|Grep-v grep | awk  ' {print $} ' 

--------------------------------------------------------changing the server's machine name will cause the installation to be unsuccessful, you must pay attention to the following three points: 1)/etc/hosts name "127.0.0.1 Oracle_svr "2)/etc/hostname must correspond to" ORACLE_SVR "3)/u01/app/oracle/product/11.2.0/xe/network/admin directory of Listener.ora and The ' host ' in Tnsnames.ora also corresponds to ' oracle_svr '.

Ubuntu 13.04 Server installs Oracle XE 11G R2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.