Oracle 10g在RHEL6上的另类安装方法
Oracle 10g在RHEL6上的另类安装方法
Oracle 10g官方文档上写对于红帽linux只能装在rhel4以下的操作系统版本上,当然装在rhel5上也没有什么问题,但需要oracle公司的特别授权,否则将来无法联系oracle公司进行support。在rhel6上装oracle,如果采用传统的./runInstall.sh方式,则会遇到错误,需要用点特殊的手段,才能搞定!而且需要使用tar打包在rhel5上装好的oracle软件(关闭oracle后打包),软件体系架构要相符合;同样可以使用这种方式在PXE装机的时候,直接把oracle软件和数据库一起装上,但需要精心编写PXE post%节脚本!1:创建oracle用户和oinstall,dba组
- [root@rhel6 ~]# groupadd oinstall
- [root@rhel6 ~]# groupadd dba
- [root@rhel6 ~]# useradd -g oinstall -G dba oracle
- [root@rhel6 ~]# echo 'oracle' |passwd --stdin oracle
- Changing password for user oracle.
- passwd: all authentication tokens updated successfully.
2:修改相应的环境变量
- [root@rhel6 /]# su - oracle
- [oracle@rhel6 ~]$ cat .bash_profile
- # .bash_profile
- # Get the aliases and functions
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
- # User specific environment and startup programs
- ORACLE_BASE=/u01/app
- ORACLE_HOME=/u01/app/oracle
- ORACLE_SID=ora10g
- LD_LIBRARY_PATH=$ORACLE_HOME/lib
- PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
- alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus'
- alias rman='/usr/local/rlwrap/bin/rlwrap rman'
- NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
- NLS_LANG=american_america.UTF8
- EDITOR=vim
- export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH DISPLAY NLS_DATE_FORMAT NLS_LANG EDITOR
|
评论暂时关闭