Install Oracle 11gr2 on fedora 12

Source: Internet
Author: User
Install Oracle 11gr2 on fedora 12

This articleArticleThe installation tutorial for Oracle-base is mainly translated. However, due to the awkward translation of the English language into Chinese, there are still some imperfections in his article. I will adjust it slowly, now this article is just a reference. Different sub-databases have different situations. It is basically unable to be installed according to the actual situation. I will post this article to prevent the transfer of semi-finished products, add the address so that others can see where the finished product is. The article describes the installation tutorial of x86_64, which is also applicable to 32-bit installation.
Http://bbs.fedora-zh.org/showthread.php? 4776-% E5 % 9C % A8fedora-12 % E4 % B8 % 8A % E9 % 9d % A2 % E5 % AE % 89% E8 % A3 % 85oracle-11-2
Address of the English tutorial for Reference
Http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnFedora12.php

This article describes how to install Oracle 11. 2 on fedora 12 x86_64. The operating system requires at least 2G swap partitioning and Secure Linux is disabled, and the following components are installed:

    • GNOME Desktop Environment
    • Editors
    • Graphical Internet
    • Development Libraries
    • Development Tools
    • Server configuration tools
    • Administration Tools
    • Base
    • Fonts
    • Hardware Support
    • Input Methods
    • System Tools
    • X Windows System

The installation process consists of the following steps:

    • Download the Oracle Installation File
    • Decompress the file
    • Set the hosts file
    • Modify Kernel Parameters
    • Set
    • Install

Download the Oracle Installation File

Is
Http://www.oracle.com/technology/software/products/database/index.html
You need to register the package. (You can also choose not to register the package, that is, use thunder.) download two compressed packages.

Decompress the file

Decompress the file
Code:

 
Unzip linux.x64_11gr2_database_1of2.zip unzip linux.x64_11gr2_database5of2.zip

In fact, you can decompress the GUI.

Set the hosts file

Ensure that the/etc/hosts file contains the following content
Code:

 
<IP-address> <fully-qualified-machine-Name> <machine-Name>

In this step, you do not need to make any modifications. Ensure that the file contains the above content.

Modify Kernel Parameters

The minimum values recommended by Oracle for the following parameters:
Code:

 
FS. AIO-max-Nr = 1048576fs. file-max = 6815744kernel. shmall = 2097152kernel. shmmax = 536670912kernel. shmmni = 4096kernel. SEM = 250 32000 100. net. ipv4.ip _ local_port_range = 9000 65500net. core. rmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_default = 262144net. core. wmem_max= 1048586

To view the current values of these parameters, run the following command:
Code:

 
/Sbin/sysctl-A | grep <param-Name>

Generally, the values of these parameters do not meet the requirements. Therefore, you need to add the following content to the end of the "/etc/sysctl. conf" file.
Code:

FS. AIO-max-Nr = 1048576fs. file-max = 6815744kernel. shmall = 2097152kernel. shmmax = 536670912kernel. shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmnikernel. SEM = 250 32000 100. net. ipv4.ip _ local_port_range = 9000 65500net. core. rmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_default = 262144net. core. wmem_max= 1048586

Run the following command to change the Kernel Parameter Value:
Code:

 
/Sbin/sysctl-P

Add the following content to the end of the "/etc/security/limits. conf" file:
Code:

 
Oracle soft nproc 2047 Oracle hard nproc 16384 Oracle soft nofile 1024 Oracle hard nofile 65536

Add the following content to the/etc/PAM. d/login file.
Code:

 
Session required pam_limits.so

Turn off the firewall and SELinux, which can be solved by the graphic interface.

Set

If you select full installation when installing fedora 12, most of the software packages on which Oracle depends have been installed, and only the following software packages need to be installed, if the package is still missing during the check before Oracle Installation, you can install yum. If the package does not exist in the source, you can search for it on the website such as rpmfind.net and download the RPM package to install it yourself.
Code:

 
Yum install binutilsyum install libaio-develyum install kshyum install sysstatyum install unixodbc-develyum install compat-libstdc ++-33

The packages installed by default do not have a 32-bit version. Therefore, Oracle may display fail during the pre-Installation check. You can simply ignore it.

Add new groups and users:
Code:

Groupadd oinstallgroupadd dbagroupadd opergroupadd asmadminuseradd-G oinstall-G dBA, role, asmadmin oraclepasswd Oracle

The installation process described in this article is not intended to use ASM, so this installation will not use the asmadmin user group.

Create a new directory for Oracle Installation
Code:

 
Mkdir-P/u01/APP/Oracle/product/11.2.0/dbhome_1chown-r ORACLE: oinstall/u01chmod-r 775/u01

Get the root permission and run the following command
Code:

 
Xhost + <machine-Name>

Generally, you do not need to run this command.

Edit the/etc/RedHat-release file and replace the content with the following content.
Code:

 
RedHat Release 5

Log on with an oracle user and add the following content to the end of. bash_profile:
Code:

 
# Oracle settingstmp =/tmp; export tmptmpdir = $ TMP; export tmpdiroracle_hostname = localhost. localdomain; export region =/u01/APP/Oracle; export oracle_baseoracle_home = $ oracle_base/product/11.2.0/dbhome_1; export oracle_homeoracle_sid = db11g; export region = xterm; export region = db11g; export oracle_unqnamepath =/usr/sbin: $ path; export pathpath = $ ORACLE_HOME/bin: $ path; export pathld_library_path = $ ORACLE_HOME/lib:/usr/lib; export ld_library_pathclasspath = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export classpatvf [$ user = "oracle"]; then if [$ shell = "/bin/KSh"]; then ulimit-P 16384 ulimit-N 65536 else ulimit-u 16384-N 65536 Fifi

Here, the value of the oracle_hostname parameter needs to be set according to your own situation. The default installed fedora is localhost. localdomain

Install

Log On with the oralce user. If you are using simulation X, you need to set the environment variable display value.
Code:

 
Display = <machine-Name>: 0.0; export display

Enter the decompressed database folder in the terminal and run the following command to start the installation process:
Code:

 
./Runinstaller

Operations required after installation

Edit the/etc/oratab file and set the flag of the following line to "Y ":
Code:

 
Db11g:/u01/APP/Oracle/product/11.2.0/dbhome_1: Y

Finally, change the content of the/etc/RedHat-release file
Code:

 
Fedora Release 12 (Constantine)

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.