oracle linux configuration for database installation

Upload: mohammad-zaheer

Post on 06-Apr-2018

245 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    1/15

    Oracle Linux Configuration for Database InstallationVersion 11.2.0.1

    ResourcesLinks of

    Interest

    Download CDs

    Installation DocumentsOperatingSystem

    Oracle Enterprise Linux 5.2

    Operating System ConfigurationAs root:InstallmissingRPMs

    --mount CD3cd /media/cdrom/Enterprise/RPMS

    rpm -Uvh libaio-0 [Tab]

    rpm -Uvh libaio-devel-0.3.105-2.i386.rpm

    cd /

    eject cdrom

    -- mount CD4cd /media/cdrom/Enterprise/RPMS

    rpm -Uvh elfutils-libelf-0 [Tab]rpm -Uvh elfutils-libelf-devel-0.91.1-3.i386.rpm

    cd /

    eject cdrom

    -- mount CD1

    cd /media/cdrom/Enterprise/RPMS

    rpm -Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpmAs root:Create

    DBAGroupandOracleUser

    /usr/sbin/groupadd -g 500 oinstall/usr/sbin/groupadd -g 501 dba

    /usr/sbin/groupadd -g 502 oper/usr/sbin/useradd -u 500 -m -g oinstall -G dba,oper oracleid oracle

    -- set the password to oracle1 passwd oracle

    id nobody

    http://www.oracle.com/technology/tech/linux/index.htmlhttp://docs.oracle.com/http://edelivery.oracle.com/EPD/GetUserInfo/get_form?caller=LinuxWelcomehttp://docs.oracle.com/http://edelivery.oracle.com/EPD/GetUserInfo/get_form?caller=LinuxWelcomehttp://www.oracle.com/technology/tech/linux/index.html
  • 8/3/2019 Oracle Linux Configuration for Database Installation

    2/15

    -- if nobody does not exist then/usr/sbin/useradd nobody

    As root:CreateInstallationDirectories

    mkdir -p /app/oraclechown -R oracle:dba /app/oraclechmod -R 775 /app/oracle

    mkdir /stagechown -R oracle:dba /stage

    As root:Alter KernelParameters

    cat >> /etc/sysctl.conf /etc/security/limits.conf /etc/profile

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    3/15

    fiumask 022

    fiEOF

    >Asroot:Appendserversto hostsfile

    cd /etc

    Note: the line:127.0.0.1 omega#.mlib.org omega#localhost.localadmin localhostdelete the first two entries but do not deletelocalhost.localadminand local host or nothing will work properly.

    vi hostsvi command help

    Append Esc AInsert Esc I

    Abort andquit

    Escq!

    Save andquit

    Escwq

    192.168.1.211alpha1 alpha1.mlib.org192.168.1.212alpha2 alpha2.mlib.org192.168.1.221beta1 beta1.mlib.org192.168.1.222beta2 beta2.mlib.org192.168.1.231gamma1 gamma1.mlib.org192.168.1.232gamma2 gamma2.mlib.org192.168.1.241delta1 delta1.mlib.org192.168.1.242delta2 delta2.mlib.org192.168.1.251 eta1 eta1.mlib.org192.168.1.252 eta2 eta2.mlib.org

    -- ping all hosts (substitute actual node names for the"omega")ping 192.168.1.1ping www.oracle.comping omega1ping omega2ping omega1.mlib.org

    ping omega2.mlib.orgAs root:Modify .bashrc

    # cd /home/oracle

    vi .bashrc

    -- append the following:umask 022

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    4/15

    ORACLE_HOSTNAME= ? .mlib.orgORACLE_BASE=/app/oracle/productORACLE_HOME=/app/oracle/product/11.2.0/db_1ORACLE_SID= ?LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

    TMP=/tmpTEMP=/tmpTMPDIR=/tmpPATH=$ORACLE_HOME/bin:$PATHexport PATH ORACLE_BASE ORACLE_HOME ORACLE_SIDLD_LIBRARY_PATHexport TMP TEMP TMPDIR

    alias oh='cd $ORACLE_HOME'alias sql='sqlplus "/ as sysdba"'

    -- close all open terminal windows and open new ones

    $ set

    -- validate the environment

    Database Software-Only Installation

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    5/15

    After unzipping theinstallation fileschange

    to thedirectorycontainingrunInstaller

    Youmust betheoracleuser (notroot)and youmustverifyyour shell issetcorrectly

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    6/15

    Step 1:ChoosetheSoftwareOnlyinstall

    option

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    7/15

    Step 2:For astandalonedatabase

    choosethe firstoption.For aRACcluster thesecond

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    8/15

    Step 3:Acceptthedefault

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    9/15

    Step 4A:Acceptthedefault.Beforeselecting

    "Next"examinethe"SelectOptions"choices

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    10/15

    Step 4B:Reviewthe"SelectOptions"Choices

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    11/15

    Step 5:Acceptthedefaults... theyare

    basedon theenvironmentvariables set inyour shell

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    12/15

    Step 6:Acceptthedefault

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    13/15

    Step 7:Acceptthedefaults

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    14/15

    Step 8:This is atypicalresult if youdidn't

    read andfollowthedocs.

    Step 9:If Windows find acopy of OracleDatabase10.2.0.2through10.2.0.4andfollowthesesteps toget

    Step # Description1 Copy the following DDL files from the $ORACLE_HOME/bin directory of the 10gR2

    database to $ORACLE_HOME\bin of the 11.2.0.1 install.ltscsn10.dll oraldapclnt10.dll oranldap10.dll oraocr10.dll orasql10.dll

    oraclient10.dll oran10.dll oranls10.dll oraocrb10.dll oraunls10.dlloracommon10.dll orancds10.dll orannzsbb10.dll oraplp10.dll oravsn10.dll

    oracore10.dll orancrypt10.dll oranro10.dll orapls10.dll oraxml10.dllorageneric10.dll oranhost10.dll orantcp10.dll ORASLAX10.dll sqlplusw.exeorahasgen10.dll oranl10.dll orantns10.dll orasnls10.dll

    2 Copy the file spwus.msb from $ORACLE_HOME\sqlplus\mesg to the correspondingdirectory in the 11gR2 file system.

  • 8/3/2019 Oracle Linux Configuration for Database Installation

    15/15

    SQL*PlusWindows

    Related TopicsLinux Install for Oracle 10gR2Linux Install for Oracle 11gR1

    Unix & vi This site is maintained by Dan Morgan. Last Updated: 10/15/2011 20:30:22

    http://www.morganslibrary.com/reference/linux_oracle_inst10g.htmlhttp://www.morganslibrary.com/reference/linux_oracle_inst11g.htmlhttp://www.morganslibrary.com/reference/reference/unix_vi.htmlhttp://www.morganslibrary.com/legal.htmlhttp://www.morganslibrary.com/privacy.htmlhttp://www.morganslibrary.com/about.htmlhttp://www.morganslibrary.org/library.htmlhttps://login.facebook.com/login.php?http://twitter.com/loginhttp://www.addthis.com/bookmark.phphttp://mix.oracle.com/http://forums.oracle.com/forums/category.jspa?categoryID=18http://www.morganslibrary.com/reference/linux_oracle_inst10g.htmlhttp://www.morganslibrary.com/reference/linux_oracle_inst11g.htmlhttp://www.morganslibrary.com/reference/reference/unix_vi.html