The official Oracle 10g documentation indicates that Red Hat Linux can only be installed in an operating system version earlier than rhel4. Of course, there is no problem when it is installed in rhel5, but it requires special authorization from oracle, otherwise, you cannot contact oracle for support in the future. If you use the traditional./runInstall. sh method to install oracle on rhel6, you will encounter an error. You need to use a special method to fix it! In addition, you need to use tar to package the oracle software installed on rhel5 (after oracle is disabled). The software architecture must be consistent. You can also use this method when PXE is installed, install the oracle software and the database directly, but you need to carefully compile the PXE post % script!
1: Create an oracle user and an oinstall dba group
- [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. Modify the corresponding environment variables.
- [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