Summary: how to install Oracle in Linux

Source: Internet
Author: User

Because of work needs, Linux installs the Oracle database on its own. Now I have tried it on a virtual machine. I feel that the installation of Oracle in Linux is not the same as that in the reference manual, and then I tried it on a real machine, finally, let's summarize the experience.

1) extract the client installation package (client) to a directory $ (installpackdirectory)

2) Check the hardware and software configurations according to the standard installation process in the installation manual. The most important thing is that the hard disk space should be sufficient (corresponding to the installation requirements of different clients and the hard disk space requirements are different ), the following are the commands to be used. package_name corresponds to a specific software package according to the instructions in the manual. Use root to log on to the terminal.

Grep MemTotal/proc/meminfo
Grep SwapTotal/proc/meminfo
Free
Df-k
Cat/etc/issue
Uname-r
Rpm-q package_name

3) create a user name and group name

Note that the dba user group is missing in the Standard installation manual

Description in brackets, # terminal prompt

#/Usr/sbin/groupadd oinstall
#/Usr/sbin/groupadd dba
#/Usr/sbin/useradd-m-g oinstall-G dba oracle
# Id oracle (check user name)
# Passwd oracle sets the password of an Oracle user)

4) create a directory

# Mkdir-p/u01/app/oracle
# Chown-R oracle: oinstall/u01/app/oracle
# Chmod-R 775/u01/app/oracle

/U01/app/oracle is the Oracle root directory. You can change it to another name as needed. If you are not familiar with it, follow the steps and do not make any mistakes.

5) use an oracle user to log on to the terminal

# Su-oracle
# Vi. bash_profile

Add

Umask 022
ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/client_1; export ORACLE_HOME
PATH = $ ORACLE_HOME/bin: $ PATH; export PATH

You can also write

Umask 022
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/client_1
Export PATH = $ ORACLE_HOME/bin: $ PATH

Save and exit

Note that there cannot be spaces around the equal sign

6) execute the file you just edited.

$ ../. Bash_profile

Or source. bash_profile

7) execute Installation

If the root or other user names are used when you log on to the system, it is very important to log out and log on again to the oracle GUI, instead of changing the user on the terminal.

$ Cd $ (installpackdirectory)
$./RunInstaller

A graphical interface should appear for installation.

8) configure the service after installation

$ Netca

Configure the service name and test the service name. The configuration process may also appear during installation. If not configured, use this command.

Installing Oracle in Linux is not as difficult as you think. Just give it a try.

  1. Linux mounting commands
  2. Detailed command 1 for running Linux background)
  3. Detailed analysis of the use of Linux du commands
  4. Detailed parsing of Linux/etc/passwd files
  5. How to Use the find command in Linux

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.