Alternative Installation Method for Oracle 10g on RHEL6

Source: Internet
Author: User

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

 
 
  1. [root@rhel6 ~]# groupadd oinstall  
  2. [root@rhel6 ~]# groupadd dba  
  3. [root@rhel6 ~]# useradd -g oinstall -G dba oracle  
  4. [root@rhel6 ~]# echo 'oracle' |passwd --stdin oracle  
  5. Changing password for user oracle.  
  6. passwd: all authentication tokens updated successfully. 

2. Modify the corresponding environment variables.

 
 
  1. [root@rhel6 /]# su - oracle  
  2. [oracle@rhel6 ~]$ cat .bash_profile   
  3. # .bash_profile  
  4.  
  5. # Get the aliases and functions  
  6. if [ -f ~/.bashrc ]; then  
  7.         . ~/.bashrc  
  8. fi  
  9.  
  10. # User specific environment and startup programs  
  11.  
  12. ORACLE_BASE=/u01/app  
  13. ORACLE_HOME=/u01/app/oracle  
  14. ORACLE_SID=ora10g 
  15. LD_LIBRARY_PATH=$ORACLE_HOME/lib  
  16. PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin  
  17. alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus' 
  18. alias rman='/usr/local/rlwrap/bin/rlwrap rman' 
  19.  
  20. NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS' 
  21. NLS_LANG=american_america.UTF8  
  22. EDITOR=vim 
  23.  
  24. export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH DISPLAY NLS_DATE_FORMAT NLS_LANG EDITOR 
  • 1
  • 2
  • 3
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.