> CentOS > CentOS故障 >

解决CentOS 6.5下安装Oracle数据库问题笔记

Oracle数据库安装到60%卡住的解决方法 
/etc/sysconfig/network中的hostname要与/etc/hosts中的一致

vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=chengxiao

vim /etc/hosts
127.0.0.1   localhost chengxiao
::1     localhost chengxiao

Oracle环境变量的一些问题

[oracle@chengxiao 桌面]$ 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 桌面]$ source ~/.bash_profile 
[oracle@chengxiao 桌面]$ sqlplus / as sysdba

Oracle数据库安装前的准备工作  创建用户和组

[root@chengxiao ~]# sysctl -p 
[root@chengxiao ~]# groupadd -g 200 oinstall 
[root@chengxiao ~]# groupadd -g 201 dba 
[root@chengxiao ~]# useradd -u 440 -g oinstall -G dba oracle 
[root@chengxiao ~]# passwd oracle

创建安装目录及设置权限

[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.oinstall -R /opt/oracle/



(责任编辑:IT)