通过RPM方式安装Oracle 10g

1、检查安装oracle
   yum localinstall <package_name>

2、安装成功后开始对oracle进行配置
   /etc/init.d/oracle-xe configure
  根据提示配置下http端口、监听端口、sys和system的密码、服务是否开机启动等
3、到现在为止,基本安装成功了,可以通过lsnrctl status来查看监听的状态
4、添加环境变量
   vi /etc/profile.d/oracle-env.sh(如果不存在就新建)
   ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
   PATH=$ORACLE_HOME/bin:$PATH  
   export ORACLE_HOME
   export ORACLE_SID=XE
5、重启reboot
6、进入数据库
   sqlplus sys/<your password> as sysdba

安装过程中遇到的错误:

1、sqlplus comand not found
   原因是没有将oracle的根目录添加到 path上去
   vi /etc/bashrc
   ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
   PATH=$ORACLE_HOME/bin:$PATH
   export ORACLE_HOME
2、登陆时出现如下错误
  shared memory realm does not exist 
  no such file or directory
3、如果出现rpm is not signed的错误
   (方法一)vi /etc/yum.conf
   gpgcheck=1改为=0
   如果要联网安装,则还需要将/etc/yum.repos.d目录下的文件的gpgcheck=1改为=0,
    否则不用
   
    (方法二)yum localinstall <package_name> --nogpgcheck

猜你喜欢

转载自handrenliang.iteye.com/blog/781680