To install Oracle 11g in Ubuntu 10.04, follow these steps:

Source: Internet
Author: User

To install Oracle 11g in Ubuntu 10.04, follow these steps:
1. Install JDK. For the installation method, see setting up a Sun Java Development Environment under Ubuntu 10.04.
To solve Chinese garbled characters, create the "fallback" directory in the font directory under the JRE directory, and copy or link the font you like to the directory.

2. install necessary software packages
There are not many software packages required for the 11g, as long as you install build-essential, rpm, libaio, KSh, libtool, libstdc ++ 5
Sudo apt-Get install RPM libaio1 KSh libtool libstdc ++ 5 build-essential
3. Set the directory structure and symbolic link
Sudo ln-S/usr/bin/awk
Sudo ln-S/usr/bin/RPM
Sudo ln-S/usr/bin/basename
Sudo mkdir/etc/rc. d
For I in 0 1 2 3 4 5 6; do ln-S/etc/rc $ I. d/etc/rc. d/RC $ I. D; done
Create two directories under the "/OPT" directory "/opt/oracle11g/Server", "/opt/oracle11g/oradata", and "server" to store 11G program files, "oradata" is used to store database files. Here, luyaowei is the user name for logging on to your system.
Sudo mkdir/opt/oracle11g
Sudo mkdir/opt/oracle11g/Server
Sudo mkdir/opt/oracle11g/oradata
Sudo chown luyaowei/OPT
Sudo chown luyaowei/opt/oracle11g
Sudo chown luyaowei/opt/oracle11g/Server
Sudo chown luyaowei/opt/oracle11g/oradata
4. Set System Parameters
Modify the/etc/sysctl. conf file and add the following content at the end.
Sudo gedit/etc/sysctl. conf
Added content
FS. AIO-max-Nr = 1048576
FS. File-max = 6815744
Kernel. Shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. SEM = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. Core. rmem_default = 262144
Net. Core. rmem_max = 4194304
Net. Core. wmem_default = 262144
Net. Core. wmem_max = 1048586
Modify/etc/security/limits. conf
Sudo gedit/etc/security/limits. conf
Add the following content:
Luyaowei soft nproc 2047
Luyaowei hard nproc 16384
Luyaowei soft nofile 1024
Luyaowei hard nofile 65536
Modify/etc/PAM. d/login and add the following content:
Sudo gedit/etc/PAM. d/login
Add the following content:
Session required/lib/security/pam_limits.so
Session required pam_limits.so
Execute Code
Sudo sysctl-P
Modify Profile File
Cdhttp: // blog.csdn.net/luyaowei/archive/2010/05/19/5608974.aspx
Sudo gedit. Profile
Add the following code, in which luyaowei is your username and orcl is your database
Export oracle_base = "/opt/oracle11g"
Export ORACLE_HOME = "/opt/oracle11g/Server"
Export oracle_sid = "orcl"
Export oracle_owner = "luyaowei"
Export oracle_unqname = orcl
Export nls_lang = "simplified chinese_china.al32utf8"
5. Install
You can install it by default. After installation, run/opt/orainventory/orainstroot as root. SH and/opt/oracle11g/Server/root. sh code.

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.