First, read the official documents
Second, the installation of database software (reference experiment Manual)
1, upload Oracle software package and unzip
Unzip P10404530_112030_linux-x86-64_1of7.zip
Unzip P10404530_112030_linux-x86-64_2of7.zip
2, the construction group, the user
Groupadd Oinstall
Groupadd dba
useradd-d/home/oracle-g oinstall-g dba-m Oracle
3. Set environment variable
(1) System environment variable (no need to set)
(2) Oracle User Environment variables
VI. bash_profile
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0
Export ORACLE_SID=OCP
Export nls_lang= "Simplified Chinese_china". Zhs16gbk
Export path= $ORACLE _home/bin: $PATH
4, the establishment of the directory
Mkdir-p/u01/app/oracle/product/11.2.0
5. Authorization
Chown-r oracle:oinstall/u01/app/oracle
Chmod-r 755/u01/app/oracle
6. Start Installation
(1) Pre-operation from root to Oracle User:
Xhost +
(2) switch to Oracle User
Su-oracle
(3) Start installation
Cd/backup/database
./runinstaller
(4) Install to about 94% will prompt to execute two scripts:
/u01/app/oracle/orainventory/orainstroot.sh
/u01/app/oracle/product/11.2.0/root.sh