Linux installation oracle11g Description documentation

Source: Internet
Author: User
Tags dba filezilla iptables

Linux installation oracle11g Instructions document I,            installation software Environment Preparation:n   Centos-6.5-x64.ison  securecrt.exen  filezilla.exen  linux.x64_11gr2_database_ 1of2.zipn  linux.x64_11gr2_database_2of2.zip   II,             Install Centos6.5 System 1: Configure the network environment to set the fixed IP address as required [[email protected] ~]# vim /etc/ Sysconfig/network-scripts/ifcfg-eth0 device=eth0 hwaddr=00:0c:29:a0:64:4eipaddr= 192.168.120.250PREFIX=24GATEWAY=192.168.120.254  2: Set the Hosts file to set the local parsing file (hosts) for actual production needs [[email  protected] ~]# vim /etc/hosts192.168.120.250    oracledb  3: Modify native name modify native computer name according to requirement, can be ignored (need to restart system after modification is completed) [[email protected] ~]# vim /etc/sysconfig/ networkhostname=oracledb            Three,             Configuring the installation environment for Oracle 1: Installing the RPM Software dependency package on the installation OracLe, before using the command to check the required RPM package is installed, check the following command: (This operation should be carried out in a networked environment, such as the inability to connect to the Internet, see 1.1) [[email protected] ~] #rpm  -q  binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++  glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio   libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel  sysstat unixODBC unixODBC-devel  after checking that there are no installed packages to install, the command is as follows: [[email protected] ~] #yum  -y install   compat-libstdc++-33  elfutils-libelf-devel gcc-c++  gcc  ksh libaio-devel libstdc++-devel  numactl-devel unixodbc  unixodbc-devel        1.1: Unable to install the RPM dependency package in a networked environment use ISO image file as a local repository for Yum to install using FileZilla upload ISO file to/tmp (here to omit the operation step simultaneously upload the required Oracle two compressed package), upload and enter/ See if it is normal under TMP: [[email protected] ~]# cd /tmp[[email protected] tmp]# lscentos-6.5-x86_64-bin-dvd1.iso     orbit-gdm            virtual-root. zsfet0keyring-jgajz4                      orbit-root           yum.loglinux.x64_11gr2_database_1of2.zip  pulse-fqhcchb7qaqmlinux.x64_11gr2_database_2of2.zip   pulse-KvZzt9ppB3fG  Create a directory of virtual optical drives to mount ISO files [[email protected] ~]# mkdir  /mnt/ vcdrom  mount the ISO file [[email protected] ~]# mount -o loop /tmp/centos-6.5-x86_64- bin-dvd1.iso  /mnt/vcdrom  next need to establish a local Yum source and specify the warehouse location. The default repository configuration directory for Yum is  /etc/yum.repos.d&nbsp, and the  .repo  end file in this directory is the repository address for Yum. [[email protected] ~]# cd /etc/yum.repos.d/  Create a temporary folder [[email protected]  YUM.REPOS.D] #mkdir   temp/   Modify the name [[EMAIL PROTECTED] YUM.REPOS.D] #cp  CentOS-Media.repo CentOS-Media.repo.bak     transfer excess files to temp/[[EMAIL PROTECTED] YUM.REPOS.D] #mv  CentOS-Base.repo  centos-debuginfo.repo centos-media.repo.bak centos-vault.repo  temp/  Modifying the Yum source path [[Email  protected] yum.repos.d]# vim centos-media.repo[c6-media]name=centos-$releasever  -  mediabaseurl=file:///mnt/vcdrom1/        file:///media/cdrom/         file:///media/cdrecorder/gpgcheck=0enabled=1  make the Yum source effective immediately [[ email protected] ~ #yum  clean all[[email protected] ~] #yum   List (if no error is given, all RPM packages are listed)  2: New User (Oracle) [[Email protected] ~]# groupadd oinstall[[email  protected] ~]# groupadd dba[[email protected] ~]# useradd -g  Oinstall -g dba oracle[[email protecTed] ~]# passwd oracle change user  oracle  password  . New   Password: Re-enter the new   password:passwd:  all authentication tokens have been successfully updated.   3: Creating an Oracle folder [[email protected] ~] #mkdir  -p /home/oracle/app[[email  Protected] ~] #mkdir  -p /home/oracle/app/oracle[[email protected] ~] #mkdir  -p  /home/oracle/app/oradata[[email protected] ~] #mkdir  -p /home/oracle/app/oracle/ Product[[email protected] ~] #chown  -R oracle:oinstall /home/oracle/app   4: Modify user's resource limit (PAM authentication profile)   /etc/security/limits.conf  Yes  Linux  Resource Usage profile to restrict user usage of system resources [[ email protected] ~]# vi /etc/security/limits.conforacle  soft     nproc   2047                  #  warning Set the maximum number of open processes for all users is 2047oracle  hard   nproc    16384          #  strictly set the maximum number of open processes for all users is 16384oracle  soft    nofile  1024                      #  warning Set the maximum number of open files for all users is 1024oracle  hard   nofile  65535         #  Strictly set the maximum number of open files for all users is 65535   and add the profile to the login verification module and prevent local login from returning to login status [[Email protected] ~]# vim  /etc/pam.d/loginsession    required     /lib/security/pam_ limits.sosession    required     pam_limits.so~   Environment variables file User (Oracle) process limits [[email protected] ~]# vi /etc/profileif [  $USER  =   "Oracle"  ]; then  if [  $SHELL  =  "/bin/ksh"  ]; then     ulimit -p 16384            #设定shell启动进程所设置管道缓冲区的最大值      ulimit -n 65536                    #设置内核可以同时打开的文件描述符的最大值.   else    ulimit -u 16384 -n 65536  fifi[[email  protected] ~]# source /etc/profile (make configuration effective immediately)  5: Modify the Linux kernel parameters (comment out the original kernel.shmall/ Kernel.shmmax) [[email protected] ~]# vi /etc/sysctl.conffs.aio-max-nr =  1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax =  536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_ local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max =  4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586 [[email  prOtected] ~] #sysctl  -p   (make configuration Effective)     6: Turn off SELinux (security protocol) [[email  protected] ~]# vim  /etc/selinux/config    (permanently closed, requires reboot to take effect)  SELINUX= disabled [[email protected] ~]# setenforce 0   (temporary shutdown without restart) 7: Turn off the firewall [email  protected] ~]# service iptables stop[[email protected] ~]# chkconfig  iptables off     IV,            Install Oracle Database 1: Upload and unzip the installation package [[email protected] ~]# cd /tmp/[[email protected] tmp]#  unzip  linux.x64_11gR2_database_1of2.zip[[email protected] tmp]# unzip   LINUX.X64_11GR2_DATABASE_2OF2.ZIP 2: Modify environment variables (switch Oracle account) [[Email protected] ~]# su  - oracle[[email protected] /]$ vim ~/.bash_profileumask 022export  Oracle_base=/home/oracle/appexport oraCle_home= $ORACLE _base/oracle/product/11.2.0/dbhome_1export oracle_sid=orclexport path= $PATH: $HOME/ Bin: $ORACLE _home/binexport ld_library_path= $ORACLE _home/lib:/usr/lib64[[email protected] /]$  source ~/.bash_profile (make configuration effective immediately)  3: Fix system Installation garbled (if system is English, ignore) [[email protected] ~]$  Export. UTF-8 4: Start installing Oracle using Oracle Account Login System Interface Installation: [[Email protected]~]$ cd  /tmp/database[[email  protected]~]$./runinstaller 5: You will be prompted to run the shell script during installation [[email protected]~] $sh    home/ Oracle/orainventory/orainstroot.sh [[email protected]~] $sh    home/oracle/app/oracle/ product/11.2.0/dbhome_1/root.sh    Wu,             problem phenomenon and resolution Q1:IP address does not match the Hosts file view local Hosts file [[email protected] ~]# vim /etc/hosts127.0.0.1    localhost localhost.localdomain localhost4 localhost4.localdomain4::1          localhost localhost.localdomain localhost6  localhost6.localdomain6oracledb   192.168.120.250     found that the host name and IP address order is reversed and modified normally.   Q2: Error during installation (RPM dependent package problem) above for some of the missing dependencies, do not cancel the error, after reinstalling all the dependent packages by SECURECRT root account, click "Retry" to install properly


Linux installation oracle11g Description documentation

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.