Linux Environment Installation ORACLE11G preparation environment (self-study note 1)

Source: Internet
Author: User

System Select Red Hat Enterprise 5.4 64-bit, database: ORACLE11G-R2


Oracle Installation Readiness Environment:


1:yum Server configuration:

[Email protected] ~]# Cat/etc/yum.repos.d/base.repo [SERVER]NAME=SERVERBASEURL=FILE:///ISO/SERVERGPGCHECK=0[VT] Name=vtbaseurl=file:///iso/vtgpgcheck=0


2: Install the following packages:

binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32bit) Elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-2.5-24 (+ bit) glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (32bit) glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3.106 (libaio-devel-0.3.106libaio-devel-0.3.106) libgcc-4.1.2libgcc-4.1.2 (+ bit) libstdc++-4.1.2libstdc++- 4.1.2 (32bit) libstdc++-devel-4.1.2make-3.81sysstat-7.0.2unixodbc.x86_64unixodbc.i386unixodbc-devel.x86_ 64unixodbc-devel.i386

3: Modify the/etc/redhat-release as follows:

[Email protected] ~]# cat/etc/redhat-release redhat-5

4: Execute the following command to add parameters to/etc/sysctl.conf and execute sysctl-p

echo "Fs.file-max = 65536" >>/etc/sysctl.confecho "Kernel.sem = + 32000" >>/etc/sysctl.confecho "K Ernel.shmall = 2097152 ">>/etc/sysctl.confecho" Kernel.shmmni = 4096 ">>/etc/sysctl.confecho" Kernel.shmmax = 1073741824 ">>/etc/sysctl.conf echo" net.core.rmem_default=262144 ">>/etc/sysctl.co Nfecho "net.core.rmem_max=262144" >>/etc/sysctl.confecho "net.core.wmem_default=262144" >>/etc/ Sysctl.confecho "net.core.wmem_max=262144" >>/etc/sysctl.confecho "Net.ipv4.ip_local_port_range = 1024 65000" >>/etc/sysctl.conf

5: Add parameters to/etc/security/limits.conf by executing the following command

echo "Oracle soft Nproc 2047" >>/etc/security/limits.confecho "Oracle Hard Nproc 16384" >>/etc/security/ Limits.confecho "Oracle Soft nofile 1024x768" >>/etc/security/limits.confecho "Oracle Hard nofile 65536" >>/etc/ Security/limits.conf

6: Execute the following command to add parameters to the/etc/pam.d/login

echo "Session required/lib/security/pam_limits.so" >>/etc/pam.d/login

7: Modify the/etc/hosts as follows:

[[email protected] ~]# cat/etc/hosts# do not remove the following line, or various programs# that require network functio           Nality'll fail.127.0.0.1 localhost.localdomain localhost 192.168.21.101 station90.example.com Station90

8:oracle Environment variables:

Groupadd oinstallgroupadd dbauseradd -g oinstall -g dba -d  /home /oracle   oracle echo  "Oracle"  | passwd --stdin oracleecho  " Export oracle_base=/u01/app/oracle " >> /home/oracle/.bash_profileecho " export  Oracle_home= $ORACLE _base/product/11.2.0/db_1 '  >> /home/oracle/.bash_profileecho  ' export  ORACLE_SID=ORCL "  >> /home/oracle/.bash_profileecho " Export ld_library_ path= $ORACLE _home/lib '   >> /home/oracle/.bash_profileecho  ' Export ld_library_ path= $LD _library_path:/usr/lib:/usr/x11r6/lib '   >> /home/oracle/.bash_profileecho  ' Export ld_library_path= $LD _library_path: $ORACLE _home/jdk/jre/lib/i386 '   >> /home/ oracle/.bash_profileecho  ' export ld_library_path= $LD _library_path: $ORACLE _home/jdk/jre/lib/i386/ Server '   >≫ /home/oracle/.bash_profileecho  ' export ld_library_path= $LD _library_path: $ORACLE _home/rdbms/ Lib '   >> /home/oracle/.bash_profileecho  ' export class_path= $ORACLE _home/jre:$ Oracle_home/jlib '   >> /home/oracle/.bash_profileecho  ' export class_path= $CLASS _ PATH: $ORACLE _home/rdbms/jlib '   >> /home/oracle/.bash_profileecho  ' Export class_ Path= $CLASS _path: $ORACLE _home/network/jlib '   >> /home/oracle/.bash_profileecho  ' export tns_admin= $ORACLE _home/network/admin '   >> /home/oracle/.bash_profileecho   "Export nls_lang=american_america. Al32utf8 " >> /home/oracle/.bash_profileecho " Export oracle_term=xterm " >>  /home/oracle/.bash_profileecho  "Export editor=vi"  >> /home/oracle/.bash_ profileecho  ' export path= $ORACLE _home/bin: $PATH '  >> /home/oracle/.bash_profileecho  "Export lang=en_us"  >> /home/oracle/.bash_profile 

9: Create directories, and set permissions

Mkdir-p/u01/app/oraclemkdir-p/stagemkdir-p/home/oraclechown oracle:oinstall/u01/app/oraclechown oracle:oinstall/ Stagechown oracle:oinstall/home/oracle

10: Unzip the ORACLE11G software and add the extracted files to the Oracle users and Oinstall groups

[[email protected] u01]# ll total 2297868drwxr-xr-x 4 root root 4096 10-24 20:09 appdrwxr-xr-x 8 Oracle Oinstall 4096 2009-08-21 database-rw-r--r--1 root root 1239269270 10-24 19:43 linux.x64_11gr2_database_1of2.zip-rw-r--r  --1 root root 1111416131 10-24 19:44 linux.x64_11gR2_database_2of2.zipdrwx------2 root root 16384 10-24 18:43 Lost+found[[email protected] u01]# chown Oracle:oinstall Database

Execute xhost+ under 11:root user

12: Switch Oracle user to find/u01/database execution./runinstaller

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201710/25/d2770e7cafb6a88e9b6124d5a870dd6d.png-wh_500x0-wm_3 -wmp_4-s_1842766607.png "title=" 1.png "alt=" D2770e7cafb6a88e9b6124d5a870dd6d.png-wh_ "/>

This article is from the "Nan Brother" blog, please be sure to keep this source http://576302263.blog.51cto.com/13412343/1976129

Linux Environment Installation ORACLE11G preparation environment (self-study note 1)

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.