Install the Oracle database correctly under fc6

Source: Internet
Author: User

The following article describes how to install the Oracle database under fc6. The following article will be meaningful to you. I hope you will gain some benefits after browsing.

1. Check the Machine Software System:

Log on to fc6 as root

Uname-r check that the kernel version is later than 2.6.18

Binutils-2.17.50.0.6-2.el5

Run

 
 
  1. rpm -q compat-libstdc++ elfutils-libelf elfutils-libelf-devel 

    glibc glibc-common glibc-devel gcc \  
  2. gcc-c++ libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC 

Minimum Software Version:

 
 
  1. compat-libstdc++-33-3.2.3-61  
  2. elfutils-libelf-0.125-3.el5  
  3. elfutils-libelf-devel-0.125  
  4. glibc-2.5-12  
  5. glibc-common-2.5-12  
  6. glibc-devel-2.5-12  
  7. gcc-4.1.1-52  
  8. gcc-c++-4.1.1-52  
  9. libaio-0.3.106  
  10. libaio-devel-0.3.106  
  11. libgcc-4.1.1-52  
  12. libstdc++-4.1.1  
  13. libstdc++-devel-4.1.1-52.e15  
  14. make-3.81-1.1  
  15. sysstat-7.0.0  
  16. unixODBC-2.2.11  
  17. unixODBC-devel-2.2.11 

2. Check the minimum requirements of the hardware system:

Log on to fc6 as root

Grep MemTotal/proc/meminfo memory size 1 GB

1574360 KB

Grep SwapTotal/proc/meminfo swap zone size 2 GB

3418720 KB

Hard Disk Space between GB and GB

3. Create an Oracle group and user account to install Oracle)

Log on to fc6 as root

 
 
  1. # /usr/sbin/groupadd oinstall  
  2. # /usr/sbin/groupadd dba  
  3. # /usr/sbin/useradd -m -g oinstall -G dba Oracle  
  4. # id Oracle  
  5. uid=501(Oracle) gid=501(oinstall) groups=501(oinstall),502(dba)  
  6. # passwd Oracle 

Show input password:

 
 
  1. Changing password for user Oracle.  
  2. New password:  
  3. Retype new password:  
  4. passwd:all authentication tokens updated successfully. 

4. Create a directory

Log on to fc6 as root

 
 
  1. mkdir -p /Oracle/app/  
  2. chown -R Oracle:oinstall /Oracle/app/  
  3. chmod -R 775 /Oracle/app/ 

5. Configure Linux Kernel Parameters

Log on to fc6 as root

 
 
  1. #vi /etc/sysctl.conf 

Add the following content to the file:

 
 
  1. kernel.shmall = 2097152 
  2. kernel.shmmax = 2147483648 
  3. kernel.shmmni = 4096 
  4. kernel.sem = 250 32000 100 128  
  5. fs.file-max = 65536 
  6. net.ipv4.ip_local_port_range = 1024 65000  
  7. net.core.rmem_default = 4194304 
  8. net.core.rmem_max = 4194304 
  9. net.core.wmem_default = 262144 
  10. net.core.wmem_max = 262144 

Save and exit

 
 
  1. # /sbin/sysctl -p 

Run the following command as the root user to verify your settings:

 
 
  1. # /sbin/sysctl -a | grep shm  
  2. kernel.shmmni = 4096 
  3. kernel.shmall = 2097152 
  4. kernel.shmmax = 2147483648 
  5. kernel.shm-use-bigpages = 0 
  6. # /sbin/sysctl -a | grep sem  
  7. kernel.sem = 250 32000 100 128  
  8. # /sbin/sysctl -a | grep file-max  
  9. fs.file-max = 65536 
  10. # /sbin/sysctl -a | grep ip_local_port_range  
  11. net.ipv4.ip_local_port_range = 1024 65000 

6. Set Shell restrictions for Oracle users

Log on to fc6 as root

 
 
  1. #vi /etc/security/limits.conf 

Join:

 
 
  1. Oracle soft nproc 2047  
  2. Oracle hard nproc 16384  
  3. Oracle soft nofile 1024  
  4. Oracle hard nofile 65536 

Save and exit

 
 
  1. #vi /etc/pam.d/login 

Join:

 
 
  1. session required /lib/security/pam_limits.so  
  2. session required pam_limits.so 

Save and exit

 
 
  1. #vi /etc/profile 

Join:

 
 
  1. if [ $USER = "Oracle" ]; then  
  2. if [ $SHELL = "/bin/ksh" ]; then  
  3. ulimit -p 16384  
  4. ulimit -n 65536  
  5. else  
  6. ulimit -u 16384 -n 65536  
  7. fi  
  8. fi 

Save and exit

7. Oracle environment variable Configuration:

Log On As an Oracle user:

Add Oracle_BASE to the logon configuration file in. bash_profile;

 
 
  1. umask 022  
  2. export Oracle_BASE=/u01/app/Oracle  
  3. export Oracle_SID=sales 

8. Install Oracle 11g. The above content is an introduction to @. I hope you will get some benefits.

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.