Install Oracle 11g R2 on a 64-bit Fedora 17 System

Source: Internet
Author: User

This article describes how to install the OracleDatabase 11g Release 2 64bit database on the 64ora17 64bit system. Assume that you have installed the 64ora17 64bit operating system and the swap partition is 2 GB, linux security is disabled and the following software groups are installed:

  • Gnome Desktop Environment
  • Editors
  • Graphical Internet
  • Development Libraries
  • Development Tools
  • Legacy Software Development
  • Server Configuration Tools
  • Administration Tools
  • Base
  • Fonts
  • Legacy Fonts
  • Hardware Support
  • Input Methods
  • Legacy Software Support
  • System Tools
  • X Windows System

To install the SDK, follow these steps:

  • Download the compressed database software package
  • Decompress the package
  • Modify the Hosts file
  • Set Kernel Parameters
  • Configuration
  • Install
  • Complete installation

1. Download the compressed database software package:

· OracleDatabase 11g Release 2 (11.2) Software

Decompress the package:

Unziplinux.x64_11gR2_database_1of2.zip

Unziplinux.x64_11gr2_database5of2.zip

The two packages will be decompressed to the same directory: database

2. Modify the Hosts file

Open the/etc/hosts file and add the server name as follows:

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

For example:

127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.0.191   fedora17.localdomain  fedora17

 

3. Set kernel parameters:

The recommended minimum parameter settings for Oracle are as follows:

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

Run the following command to view the kernel parameters of the current system:

/sbin/sysctl -a | grep <param-name>

 

Open the "/etc/sysctl. conf" configuration file and add or modify existing kernel parameters, as shown below:

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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

If you do not want to restart the system, run the following command to modify the kernel parameters of the current system:

/Sbin/sysctl-p

Add the following information to the "etc/security/limits. conf" file.

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

If the following settings do not exist in the "/etc/pam. d/login" file, add them.

session    required     pam_limits.so

To disable linux security, modify the "/etc/selinux/config" file as follows:

SELINUX = disabled.

If you need to restart the system to change Linux security after installation, we recommend that you modify it before installation.

4. Configuration

Install the following package:

#yum install binutils
#yum install compat-libstdc++-33
yum install compat-libstdc++-33.i686
#yum install elfutils-libelf
yum install elfutils-libelf-devel
#yum install gcc
#yum install gcc-c++
#yum install glibc
#yum install glibc.i686
#yum install glibc-common
#yum install glibc-devel
#yum install glibc-headers
yum install glibc-devel.i686
yum install ksh
yum install libaio
yum install libaio.i686
yum install libaio-devel
yum install libaio-devel.i686
#yum install libgcc
#yum install libgcc.i686
#yum install libstdc++
yum install libstdc++.i686
#yum install libstdc++-devel
#yum install make
#yum install numactl
yum install numactl-devel
yum install sysstat
yum install unixODBC
yum install unixODBC.i686
yum install unixODBC-devel
yum install unixODBC-devel.i686

 

Create new user groups and users for database installation.

groupadd oinstall
groupadd dba
groupadd oper
Groupadd asmadmin # This user will not use
 
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle

 

Create the installation directory as needed:

mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01

 

Log On with root and execute the following command:

Xhost + <machine-name>

Modify the system release information. Oracle only recognizes some commercial linux systems. Change the following to RedHat5, modify the "/etc/redhat-release" file, and replace "Fedora17 ..." And Other information:

redhat release 5

Log on with an oracle user and add the following to. bash_profile:

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
 
ORACLE_HOSTNAME=fedora17.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
 
if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
  else
    ulimit -u 16384 -n 65536
  fi
fi
  • 1
  • 2
  • Next Page

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.