Oracle database installation to 60%-stuck solution
The hostname in/etc/sysconfig/network should be consistent with the/etc/hosts
Vim/etc/sysconfig/network
networking=yes
hostname=chengxiao
vim/etc/hosts
127.0.0.1 localhost Chengxiao
:: 1 localhost Chengxiao
Some problems with Oracle environment variables
[Oracle@chengxiao Desktop]$ vim ~/.bash_profile
export oracle_home=/opt/oracle/app/product/11.2.0/dbhome_1
Export path= $ORACLE _home/bin: $PATH
export ORACLE_SID=ORCL
[Oracle@chengxiao desktop]$ source ~/.bash_profile
[Oracle@chengxiao Desktop]$ sqlplus/as sysdba
Preparation of Oracle database before installation
Creating Users and Groups
[Root@chengxiao ~]# sysctl-p
[Root@chengxiao ~]# groupadd-g-Oinstall
[Root@chengxiao ~]# groupadd-g D BA
[root@chengxiao ~]# useradd-u 440-g oinstall-g DBAs Oracle
[Root@chengxiao ~]# passwd Oracle
Create an installation directory and set permissions
[root@chengxiao ~]# mkdir/opt/oracle/app/[Root@chengxiao ~]# mkdir/opt/oracle/oradata/[ Root@chengxiao ~]# chmod 755/opt/oracle/[Root@chengxiao ~]# chmod 775/opt/oracle/app/[Root@chengxiao ~]# Chown] oracle.o Install-r/opt/oracle/