CentOS 5.5 command line install Oracle 10g____oracle

Source: Internet
Author: User
Tags dba

1. Verify that Oracle requires a complete system-dependent package.

Rpm-qa binutils compat-db control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make Libaio libXp

2. Verify System Requirements

The minimum required RAM for Oracle is 512MB, and the minimum required swap space is 1GB. For systems with ram less than or equal to 2GB, the swap space should be twice times the amount of RAM, and for systems with ram greater than 2GB, the swap space should be one to twice times the amount of RAM. Oracle 10g software also requires 2.5GB of free disk space, while databases require 1.2GB of free disk space. The/tmp directory requires at least 400MB of free space.

3. Create Oracle user groups and users

Create user groups Oinstall and DBAs.

The user Oracle is created, belongs to the Oinstall and DBA user group, and the Oracle home directory is established.

Modifies the Oracle user's logon password.

$su-root

#groupadd DBA//Database System management Team

#groupadd Oinstall//oracle file owner's group

#useradd-G oinstall-g dba-m-s/bin/bash Oracle

#passwd Oracle

#chown-R oracle.oinstall/home/oracle

4. Configure kernel Parameters

#vi/etc/sysctl.conf

Edit the file/etc/sysctl.conf and modify the following items if you cannot add them yourself.

Kernel.shmall = Total amount of shared memory that 2097152# can use.

Kernel.shmmax = 2147483648# Maximum shared memory segment size.

Kernel.shmmni = 4096# The maximum number of shared memory segments across the system.

Kernel.sem = 250 32000 100 128 # The maximum number of signal objects per signal object Set, the maximum number of signal objects in the system range, the maximum operand supported by each signal object, and the maximum number of signal object sets in the system range.

Fs.file-max = maximum number of file handles allowed in the 65536# system.

Net.ipv4.ip_local_port_range = 1024 65000# The IPV4 port range that the application can use.

Net.core.rmem_default = 1048576 # socket receives the default value of the buffer size

Net.core.rmem_max = 1048576 # Socket receive buffer size maximum

Net.core.wmem_default = 262144 # socket send buffer size default value

Net.core.wmem_max = 262144 # socket send buffer size maximum

5. Extract the installation files

Unzip 10201_database_linux32.zip

6. Modify Gennttab

Decompress Filegroup6.jar.

CD database/stage/components/oracle.network.rsf/10.2.0.1.0/1/datafiles/

Unzip Filegroup6.jar Bin/gennttab

Modify the extracted Gennttab file.

VI Bin/gennttab

To

That is, ' s////' in the back of the "/" to "N", at the same time to note that the n after the space removed, otherwise installed in the listener will be an error.

Add Gennttab to the Filegroup6.jar.

Zip-vu Filegroup6.jar Bin/gennttab

7. Oracle recommends setting limits on the number of processes that can be used per Linux account and the number of open files.

To make these changes, execute the following command as the root user:

Vi/etc/security/limits.conf

Add the following:

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

8. Setting Environment variables

Log on as an Oracle user.

VI ~/.bash_profile

Add the following:

Export Tmp=/tmp

Export Tmpdir=/tmp

Export Oracle_base=/home/oracle

Export oracle_sid=ora10g

Export Oracle_home= $ORACLE _base/product/10.2.0.1/db_1

Export path= $PATH: $ORACLE _home/bin

9. Modify the Enterprise.rsp file to locate the/DATABASE/RESPONSE/ENTERPRISE.RSP in the Oracle installation directory

Oracle_home= "/home/oracle/product/10.2.0.1/db_1"

Oracle_home_name= "oracle10g"

s_namefordbagrp= "DBA"

s_nameforopergrp= "DBA"

N_configurationoption=3

Description

Oracle_home the home directory location of the Oracle server must be an absolute path.

The name of the Oracle_home_name Oracle server must begin with a letter.

S_NAMEFORDBAGRP the name of the Linux User Group for Oracle System Management, where users have permissions to administer Oracle servers.

S_NAMEFOROPERGRP the name of the Linux user group used for the general operations of Oracle databases, in which users have permission to operate the Oracle database regularly.

N_configurationoption Installation Type (1 to create a database after installation, 2 to create an automated storage management instance after installation, 3 to install only Server software).

10. Modify operating System release version

Since Oracle has not yet introduced a CentOS installation package, the release version needs to be modified so that the release file location is/etc/redhat-release through Oracle installation checks

Will CentOS Release 5 (Final)

Modified into

Red Hat Enterprise Linux as Release 3 (Taroon)

When the installation is complete, change it back.

11. Close SELinux Working mode

SELinux Property configuration file location is/etc/selinux/config

# Set SELinux to Disabled

Selinux=disabled

12. Start Installation

./runinstaller-ignoresysprereqs-silent-responsefile/home/oracle/database/response/enterprise.rsp

Description

Ignoresysprereqs lets Oracle Ignore system checks because Oracle officially declares that only Linux server products are supported, so you must specify this parameter to install on a server-only Linux product.

Silent lets the installer run in silent mode.

RESPONSEFILE specifies an answer file.

Note: If the Oracle_home and Oracle_base directories are located in the same location, or if the directory of Oracle_home is not empty, the following error occurs:

Severe:oui-10029:you have specified a non-empty directory to install this product. It is recommended to specify either a empty or a non-existent directory. May, however, choose to ignore this message if the directory contains operating System generated files or Subdirectori Es like Lost+found.

If you still want to install it in your current configuration, add it at installation

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.