Linux installation Oracle 11g

Source: Internet
Author: User

Configure local Yum Source
  
  1. [[email protected] ~]# cd /etc/yum.repos.d/
  2. [[email protected] yum.repos.d]#
  3. [[email protected] yum.repos.d]# vi local.repo
  4. [Local]
  5. Name=local
  6. baseurl=file:///mnt/Server
  7. enable=1
  8. gpgcheck=0
  9. [[email protected] yum.repos.d]# yum list
Install the required packages
 
   
  1. # yum -y install binutils-2.* compat-libstdc++-3* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* kernel-headers-2.* *ksh* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-4.* make-3* sysstat-7.*
Create user
  
  1. [[email protected] yum.repos.d]# groupadd dba
  2. [[email protected] yum.repos.d]# groupadd oinstall
  3. [[email protected] yum.repos.d]# groupadd oper
  4. [[email protected] yum.repos.d]# useradd -g oinstall -G dba,oper oracle
  5. [[email protected] yum.repos.d]# passwd oracle
  6. Changing password for user oracle.
  7. New UNIX password:
  8. BAD PASSWORD: it is based on a dictionary word
  9. Retype new UNIX password:
  10. passwd: all authentication tokens updated successfully.
Create a related directory
 
   
  1. < Span class= "pun" >[ [email protected] yum repos d ]# mkdir / u01
  2. [ [email  protected] Yum repos d ]# chmod 777 / u01 /
  
  1. [[email protected] yum.repos.d]# su - oracle
  2. [[email protected] ~]$ vi .bash_profile
  3. # .bash_profile
  4. # Get the aliases and functions
  5. if [ -f ~/.bashrc ]; then
  6. . ~/.bashrc
  7. fi
  8. # User specific environment and startup programs
  9. export ORACLE_BASE=/u01/app/oracle
  10. export ORACLE_HOME=$ORACLE_BASE/product/11gr2/dbs
  11. export ORACLE_SID=prod
  12. export NLS_LANGE="AMERICAN_AMERICA.ZHS16GBK"
  13. export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin





From for notes (Wiz)

Linux installation Oracle 11g

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.