64-bit Ubuntu installation of Oracle 11G

Source: Internet
Author: User

Brief process of installing Oracle 11G in 64-bit Ubuntu:

1: Set the environment

Sudo apt-get install rpm libaio1 ksh libtool libstdc ++ 5 build-essential

2:Set directory structure and symbolic link

  1. Sudo ln-s/usr/bin/awk
  2. Sudo ln-s/usr/bin/rpm
  3. Sudo ln-s/usr/bin/basename
  4. Sudo mkdir/etc/rc. d
  5. Sudo ln-s/etc/rc0.d/etc/rc. d/rc0.d
  6. ......
  7. Sudo ln-s/etc/rc6.d/etc/rc. d/rc6.d
  8. It can also be:
  9. # For I in 0 1 2 3 4 5 6; do sudo ln-s/etc/rc $ I. d/etc/rc. d/rc $ I. d; done

If you do not connect to the following .. The file cannot be found... Error

  1. Sudo ln-s/usr/lib/x86_64-linux-gnu/libc_nonshared.a/usr/lib64/
  2. Sudo ln-s/usr/lib/x86_64-linux-gnu/libpthread_nonshared.a/usr/lib64/
  3. Sudo ln-s/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/libgcc_s.so/lib64/libgcc_s.so.1
  4. Sudo ln-s/usr/lib/x86_64-linux-gnu/libstdc ++. so.6.0.14/lib64/libstdc ++. so.6
  5. Sudo ln-s/usr/lib/x86_64-linux-gnu/libstdc ++. so.6.0.14/usr/lib64/libstdc ++. so.6

3: Set System Parameters
Modify /Etc/sysctl. conf

  1. Fs. aio-max-nr=1048576
  2. Fs. file-max=6815744
  3. Kernel. shmall=2097152
  4. Kernel. shmmax=536870912
  5. Kernel. shmmni=4096
  6. Kernel. sem=25032000 100 128
  7. Net. ipv4.ip _ local_port_range=900065500
  8. Net. core. rmem_default=262144
  9. Net. core. rmem_max=4194304
  10. Net. core. wmem_default=262144
  11. Net. core. wmem_max=1048586

ModifyEtC/security/limits. conf

Modify "/etc/security/limits. conf" and add the following content. "jasmine" is the user name, which can be adjusted according to the actual situation.

  1. Jasmine soft nproc2047
  2. Jasmine hard nproc16384
  3. Jasmine soft nofile1024
  4. Jasmine hard nofile65536

Modify"/Etc/pam. d/login", Add the following content:

  1. Session required/lib/security/pam_limits.so
  2. Session required pam_limits.so

Then run the following command:

Sudo sysctl-p

Next, set the necessary environment variables, modify the ". profile" file in the user directory, and add the following content:

  1. Export ORACLE_BASE ="/Home/oracle_11g"
  2. Export ORACLE_HOME ="/Home/oracle_11g/server"
  3. Export ORACLE_SID ="Orcl"
  4. Export ORACLE_OWNER ="Orcl"
  5. Export NLS_LANG ="Simplified chinese_china.al32utf8"

Now the system parameters and environment variables are set.

5: Install cd to the decompressed directory of oracle

./RunInstaller-jreloc/usr/lib/jvm/java_1.6.0_openjdk/jre

Jreloc specifies the jre instead of the built-in jdk.

Otherwise, garbled characters will appear.

So far OK.

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.