Complete process of installing Oracle10g in RHEL5

Source: Internet
Author: User
Let's introduce the whole process of installing Oracle10g in RedHatEnterpriseLinuxAS5.4. 1. Download Oracle10g to describe my environment in detail. The system is RedHatEnterpriseLinuxAS5.4, and the database is OracleDatabase10gRelease2 (10.2.0.1 ). Go to the official website to download Oracle. Download me

Today, we will introduce the entire process of installing Oracle 10 Gb in Red Hat Enterprise Linux AS 5.4.

1. Download Oracle 10g

First, describe in detail my environment, system: Virtual Machine Red Hat Enterprise Linux AS 5.4, Database: Oracle Database 10g Release 2 (10.2.0.1 ). Go to the official website to download Oracle. The downloaded file is 10201_database_linux32.zip.

Ii. configuration before 10 Gb of Oracle Installation

In fact, it is not difficult to install Oracle 10 Gb in Linux, mainly because the configuration before installation is a little cumbersome. But don't be afraid. You will be proficient once or twice after installation. Start, Follow me!

1. install the software packages required by Oracle

Run the rpm-qa | grep command to check whether the software package is installed. If no software package is installed, run the rpm-ivh command.

# From Red Hat Enterprise Linux AS5 disc 1

Cd/media/cdrom/Server

rpm -ivh setarch-2* rpm -ivh make-3* rpm -ivh glibc-2* rpm -ivh libaio-0*

# From Red Hat Enterprise Linux AS5 CD 2

Cd/media/cdrom/Server

rpm -ivh compat-libstdc++-33-3* rpm -ivh compat-gcc-34-3* rpm -ivh compat-gcc-34-c++-3* rpm -ivh gcc-4* rpm -ivh libXp-1*

# From Red Hat Enterprise Linux AS5 CD 3

Cd/media/cdrom/Server

rpm -ivh openmotif-2* rpm -ivh compat-db-4*

You can query which software packages are not installed by using commands:

Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel glibc-headers libaio-devel gligcc libstdc ++-devel make sysstat unixODBC-devel

If the prompt "warning: libstdc ++-devel." is displayed. i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Fa, you can use rpm-ihv libstdc ++-devel. i386.rpm -- force -- nodeps command to force installation.

2. modify the system version

Vi/etc/RedHat-release

redhat-4 #Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Since oracle only supports RHEL4, You need to modify the version description. Comment out the Red Hat Enterprise Linux Server release 5.4 (Tikanga) line, followed by a line of redhat-4. Of course, you must modify it after installing oracle. The redhat-4 must be the first line of the redhat-release file, otherwise a warning is reported during installation.

3. Modify Kernel Parameters

# Vi/etc/sysctl. conf

Add the following content to the file and add it to the bottom:

kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144

Run the following command to make the kernel parameters take effect:

/Sbin/sysctl-p

4. Create users, groups, and directories required for Oracle Installation

(1) Add groups and users:

groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle

(2) create an Oracle installation directory and grant permissions to oracle users:

mkdir -p /u01/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /u01

5. Set shell limit for oracle users

# Vi/etc/security/limits. conf

Add the following content to the/etc/security/limits. conf file:

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

Add the following content to the file/etc/pam. d/login to make the shell limit take effect:

Session required/lib/security/pam_limits.so

6. Configure static IP addresses

When installing RedHat Linux, it is best to use a static IP address. If DHCP is selected at that time, now you need to change the/etc/sysconfig/network-scripts/ifcfg-eth0 file:

DEVICE = eth0 BOOTPROTO = dhcp HWADDR = 00: 0C: 29: 74: 5B: 62 ONBOOT = yes HWADDR = 00: 0C: 29: 74: 5B: 62 # Your mac address IPADDR = 192.168.89.130 # your IP address NETMASK = 255.255.255.0 # your IP address GATEWAY = 192.168.89.1 # Your GATEWAY

7. Modify/etc/hosts

Change 127.0.0.1 to a specific IP address. Note that it is best to Remove useless IP addresses in the following format:
IP address-host name-localhost

8. Disable SeLinux.

Because SeLinux has an impact on oracle, setting Secure Linux as invalid. edit the file/etc/selinux/config:

SELINUX = disabled

Of course, you can also use the tool (system> Management> Security Level and firewall) in the graphic interface to select the SELinux page and set it to invalid.

9. Configure Oracle user environment variables

Log on to the oracle user and configure the environment variables. Edit the. bash_profile file in the/home/oracle directory.

Vi. bash_profile

Add the following content to the file. bash_profile and add it to the bottom of the file.

# Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=orcl; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=$PATH:$ORACLE_HOME/bin; export PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib; export LD_LIBRARY_PATH                                                                                                                                                                                         

If the SID is modified during database installation, you need to come back and modify the SID after installation. Use "source. bash_profile" to make the modification take effect.

10. Modify the text mode to log on

Without the following steps, oracle may encounter problems during installation. An error may occur when the oracle user starts the installation interface, and the graphical interface cannot be started.

# Vi/etc/inittab
Change id: 5: initdefault: to id: 3: initdefault. After oracle installation is complete, it can be changed back.

# Reboot (restart)

11. You can use a graphical interface to add your machine oracle.

Decompress the installation package:

Method 1:
Zcat 10201_database_linuxitanium.cpio.gz | cpio-idmv
Method 2:
Step 1:
Gunzip 10201_database_linuxitanium.cpio.gz

Step 2:
Cpio-idmv <10201_database_linuxitanium.cpio.gz

In text mode, use root to log on, and then:

# Startx # xhost + # su-oracle $ export DISPLAY =: 0.0 # Use root to input xdpyinfo and view display of name, check whether the subsequent characters are 1.0 or 0.0 $ export LANG = en_US # Set the runtime language $ cd/hqw/databases # enter the Oracle installation directory $. /runInstaller needs to run like this if it is an HP Cert server: $. /runInstaller-jreLoc/app/java/jdk1.6.0 _ 24/jre

Remove √ if you do not need to create a database instance at the beginning.

After the installation is complete on the installation page, two files are displayed:

 

If it is an HP Cert server, you need to make the following changes:

Change the content in the $ ORACLE_HOME/bin/netmgr and $ ORACLE_HOME/bin/dbca scripts
 

JREDIR =/oracle/jdk1.6.0 _ 26/jre
 

Modify the $ ORACLE_HOME/bin/emca script

# JRE_JAVA = "$ {ORACLE_HOME}/jdk/jre/bin/java"

JRE_JAVA =/oracle/jdk1.6.0 _ 26/jre/bin/java

If [! -F $ JRE_JAVA]; then

# JRE_JAVA = "$ {ORACLE_HOME}/jdk/bin/java"

JRE_JAVA =/oracle/jdk1.6.0 _ 26/jdk/bin/java

Fi

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.