Install Oracle 11g in RedHat 4.8

Source: Internet
Author: User

Finally, we have installed Oracle 11g in RedHat. First, we will write a summary, and I will repeat it over the weekend.

1. Download oracle11g for linux

Http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip;
Http://download.oracle.com/otn/linux/oracle11g/r2/linux.x64_11gr2_databasesilicate f2.zip;

2. Check and install the installation package

Rpm-q gcc make binutils setarch compat-db compat-gcc-c ++ compat-libstdc ++-devel unixODBC-devel libaio-devel sysstat

Search for the installation package version of the corresponding environment on the internet, use the preceding command to find uninstalled packages, download and install the packages

3. system parameter configuration

Vi/etc/sysctl. conf

Note: add the following content to the above file (copy the content directly first, and modify it according to the oracle Installation requirements during installation, in step 2, a prompt is also prompted when oracle is installed for uninstalled packages ). Specific meanings of parameters:

# Below for oracle11g

Kernel. core_uses_pid = 1
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Fs. file-max = 6553600
Net. ipv4.ip _ local_port_range = 1024 65000

4. Add User Groups and users

Run the following command:

# Groupadd dba
# Groupadd oinstall
# Useradd oracle-g oinstall-G dba
# Passwd oracle

5. Configure oracle environment variables

Switch the user to oracle first:

Su-oracle

Modify the. bash_profile file (search for content online ):
Vi/home/oracle/. bash_profile

6. copy the zip file to the opt directory and Configure permissions for oracle users.

Chown-R oracle: dba./opt

(Grant the oracle: dba user the permission to operate the opt file)

Chmod 760./opt

(Grant the oracle user the permission to read and write opt files)

Decompress the installation file with an oracle user

7 ../runInstaller

8. When the installation is about to complete, the system will prompt the root user to log on and execute the 2 script (orainstRoot. sh, root. sh ).

9. Configure the listener

Netca

10 database creation

Dbca

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.