Install Oracle 10G on Linux (RedHat)

Source: Internet
Author: User
Tags oracle database installation

1. create user groups and users

1) Add a user group:

Groupadd oinstall

Groupadd dba

2) Add a user:

Useradd-g oinstall-G dba-d/home/Oracle-m oracle

{-G indicates the user group,-G indicates the user's additional group,-d indicates the user's main directory,-s indicates the user's default shell type, and oracle indicates the user name, -The m parameter indicates that the user's home directory is automatically created. To avoid the trouble, do not manually create this directory}

Passwd oracle

{Indicates setting a password for an oracle user. After you enter this command and press enter, the system will prompt you to enter the password and confirm the password}

The Oracle password is oracle

Ii. Create an Oracle Database Installation Point

Create a directory. Oracle will be installed under these directories:

Mkdir-p/opt/oracle/product/10.2.0/db_1

Change the/opt/oracle directory owner to oracle and the group to oinstall:

Chown-R oracle: oinstall/opt/oracle

Chmod 775/opt/oracle

3. Prepare the Oracle Installation File

Run as an oracle user

Download the Oracle Installation File 10201_database_linux32.zip

In the Directory:/home/oracle

Unzip 10201_database_linux32.zip


Iv. Set Environment Variables

Edit. bash_profile under oracle home and add the following content.

Export ORACLE_BASE =/Opt/oracle

Export ORACLE_HOME = $ ORACLE_BASE/Product/10.2.0/db_1

Export ORACLE_SID = test

Export PATH = $ ORACLE_HOME: $ PATH

Run as an oracle user

./RunInstaller-IgnoreSysPrereqs

Use -IgnoreSysPrereqsTo skip the operating system version check.

Install orainstRoot. sh and root. sh.

5. Create a database

DBCA is created in the same way as Windows.

6. Configure listener

Netmgr

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.