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.
- Linux mounting commands
- Detailed command 1 for running Linux background)
- Detailed analysis of the use of Linux du commands
- Detailed parsing of Linux/etc/passwd files
- How to Use the find command in Linux