12772154 Installing Oracle Application Server 10g Release 2 on CentOS

  • Upload
    jonjon

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    1/17

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    2/17

    Oracle Application Server 10g Release 2

    (10.2.0) Installation On CentOS

    Created by: Nguyen Quoc Huy Email: [email protected] In this article I'll describe theinstallation of Oracle Application Server 10g Release 2 (10.2.0) on CentOS 5. Additional steps may

    be necessary when starting with a different base OS installation.

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50524f46494c4500010100000c484c696e6f021000006d6e74725247422058595

    a2007ce00020009000600310000616373704d5346540000000049454320735247420000000000000000000000000000f6d6000100000000d32d485

    0202000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001163707274000001500

    000003364657363000001840000006c77747074000001f000000014626b

    707400000204000000147258595a00000218000000146758595a0000022

    c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c400000088767565640000034c000000867669657700000

    3d4000000246c756d69000003f8000000146d6561730000040c0000002474656368000004300000000c725452430000043c0000080c67545243000

    0043c0000080c625452430000043c0000080c7465787400000000436f70

    797269676874202863292031393938204865776c6574742d5061636b617

    26420436f6d70616e790000646573630000000000000012735247422049454336313936362d322e310000000000000000000000127352474220494

    54336313936362d322e31000000000000000000000000000000000000000000000000000000

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    3/17

    ffd8ffe000104a4649460001010100c000c00000ffe1005a4578696600

    0049492a0008000000050001030500010000004a0000000303010001

    000000000000001051010001000000010000001151040001000000d52100001251040001000000d521000000000000a08601008fb10000ffd

    b004300080606070605080707070909080a0c140d0c0b0b0c1912130f

    141d1a1f1e1d1a1c1c20242e2720222c231c1c2837292c30313434341f27393d38323c2e333432ffdb0043010909090c0b0c180d0d1832211c2

    13232323232323232323232323232323232323232323232323232323

    232323232323232323232323232323232323232323232ffc00011080258032003012200021101031101ffc4001f00000105010101010101000

    00000000000000102030405060708090a0bffc400b510000201030302

    0403050504040000017d010203000411051221314106135161072271

    14328191a1082342b1c11552d1f02433627282090a161718191a25262728292a3435363738393a434445464748494a535455565758595a6364

    65666768696a737475767778797a838485868788898a9293949596979

    8999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9ca

    d2d3d4d5d6d7d8d9dae1e2e3e4e5e6e7e8e9eaf1f2f3f4f5f6f7f8f9faffc4001f01000301010101010101010100000000000001020304

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50

    524f46494c4500010100000c484c696e6f021000006d6e74725247422058595a2007ce00020009000600310000616373704d53465400000000

    49454320735247420000000000000000000000000000f6d600010000

    0000d32d48502020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011

    63707274000001500000003364657363000001840000006c77747074

    000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000

    000146d6561730000040c0000002474656368000004300000000c725452430000043c0000080c675452430000043c0000080c625452430000

    043c0000080c7465787400000000436f7079726967687420286329203

    1393938204865776c6574742d5061636b61726420436f6d70616e790000646573630000000000000012735247422049454336313936362d32

    2e31000000000000000000000012735247422049454336313936362d

    322e31000000000000000000000000000000000000000000000000000000

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    4/17

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    5/17

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50

    524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d5346540000000049454320735247420000000000000000000000000000f6d600010000

    0000d32d485020200000000000000000000000000000000000000000

    0000000000000000000000000000000000000000000000000000001163707274000001500000003364657363000001840000006c77747074

    000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000

    000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000043c0000080c7465787400000000436f7079726967687420286329203

    1393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d32

    2e31000000000000000000000012735247422049454336313936362d322e3100000000000000000000000000000000000000000000000000

    0000

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d53465400000000

    49454320735247420000000000000000000000000000f6d6000100000000d32d485020200000000000000000000000000000000000000000

    00000000000000000000000000000000000000000000000000000011

    63707274000001500000003364657363000001840000006c77747074000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000

    043c0000080c7465787400000000436f70797269676874202863292031393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d32

    2e31000000000000000000000012735247422049454336313936362d322e3100000000000000000000000000000000000000000000000000

    0000

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    6/17

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50

    524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d5346540000000049454320735247420000000000000000000000000000f6d600010000

    0000d32d48502020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011

    63707274000001500000003364657363000001840000006c77747074000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a000002400000001464

    6d6e640000025400000070646d6464000002c400000088767565640000034c0000008676696577000003d4000000246c756d69000003f8000

    000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000043c0000080c7465787400000000436f7079726967687420286329203

    1393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d322e31000000000000000000000012735247422049454336313936362d322e3100000000000000000000000000000000000000000000000000

    0000

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50

    524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d5346540000000049454320735247420000000000000000000000000000f6d600010000

    0000d32d485020200000000000000000000000000000000000000000

    00000000000000000000000000000000000000000000000000000011

    63707274000001500000003364657363000001840000006c77747074000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a000002400000001464

    6d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000043c0000080c7465787400000000436f7079726967687420286329203

    1393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d322e31000000000000000000000012735247422049454336313936362d

    322e3100000000000000000000000000000000000000000000000000

    0000

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    7/17

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50

    524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d5346540000000049454320735247420000000000000000000000000000f6d600010000

    0000d32d485020200000000000000000000000000000000000000000

    0000000000000000000000000000000000000000000000000000001163707274000001500000003364657363000001840000006c77747074

    000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000

    000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000043c0000080c7465787400000000436f7079726967687420286329203

    1393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d32

    2e31000000000000000000000012735247422049454336313936362d322e3100000000000000000000000000000000000000000000000000

    0000

    ffd8ffe000104a4649460001020100c000c00000ffe20c584943435f50524f46494c4500010100000c484c696e6f021000006d6e74725247422

    058595a2007ce00020009000600310000616373704d53465400000000

    49454320735247420000000000000000000000000000f6d6000100000000d32d485020200000000000000000000000000000000000000000

    00000000000000000000000000000000000000000000000000000011

    63707274000001500000003364657363000001840000006c77747074

    000001f000000014626b707400000204000000147258595a000002180

    00000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646d6464000002c4000000887675656400

    00034c0000008676696577000003d4000000246c756d69000003f8000000146d6561730000040c0000002474656368000004300000000c725

    452430000043c0000080c675452430000043c0000080c625452430000

    043c0000080c7465787400000000436f70797269676874202863292031393938204865776c6574742d5061636b61726420436f6d70616e7900

    00646573630000000000000012735247422049454336313936362d32

    2e31000000000000000000000012735247422049454336313936362d322e3100000000000000000000000000000000000000000000000000

    0000

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    8/17

    Download Software

    Unpack Files

    Hosts File

    Setup

    Download Software

    Download the following software:Oracle Application Server 10g Release 2 (10.2.0) Software

    Sun JDK 1.4.2.18

    http://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#DownloadSoftwarehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#DownloadSoftwarehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#UnpackFileshttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#UnpackFileshttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#UnpackFileshttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#HostsFilehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#HostsFilehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#HostsFilehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#Setuphttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#Setuphttp://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.htmlhttp://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.htmlhttp://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.htmlhttps://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u10-oth-JPR@CDS-CDS_Developerhttps://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u10-oth-JPR@CDS-CDS_Developerhttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#UnpackFileshttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#HostsFilehttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#Setuphttp://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.htmlhttps://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u10-oth-JPR@CDS-CDS_Developerhttp://www.oracle-base.com/articles/10g/OracleAS10g3InstallationOnRedHatAndCentOS.php#DownloadSoftware
  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    9/17

    Unpack Files

    Unpack the contents of the file: unzip

    10201_database_linux32.zip The installation files unpack into the

    current directory (/tmp/oradb/).

    Hosts File

    The /etc/hosts file must contain a fully qualified name for the server:

    Set Up

    This section shows you how to install Oracle Database 10g R2. It will guide you through the

    following steps:

    Install Prerequisite package

    Create required groups and usersCreate directories storing oracle fileSet environment for user oracleConfigure Linux Kernel ParameterSet shell limits for user oracle

    Disable SElinuxInstall Oracle

    1.Install Prerequisite packageDepending on the products that you intend to install, verify that the following software is

    installed on the system

    Java Runtime Environment j2re-1.4.2.19make-3.81binutils-2.17.50.0.6gcc-4.1.1

    libaio-0.3.106libaio-devel-0.3.106libstdc++-4.1.1elfutils-libelf-devel-0.125sysstat-7.0.0compat-libstdc++-33-3.2.3libgcc-4.1.1libstdc++-devel-4.1.1unixODBC-2.2.11unixODBC-devel-2.2.11pdksh-5.2.14-30openmotif21-2.1.30-11compat-db-4.1.25-9compat-glibc-7.x-2.2.4.32.6compat-libstdc++-devel-7.3-2.96.128control-center-2.8.0-12setarch-1.6-1

    libXp-1.0.0-8.1.el5

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    10/17

    You want to check whether the packages are installed or not, run the following command: #rpm -q make binutils gcc libaio libaio-devel libstdc++ elfutils-libelf-

    devel sysstat compat-libstdc++ libgcc libstdc++-devel unixODBC-2.2.11unixODBC-devel To install the package, run command: # yum y install libXp

    2.Create required groups and usersDepending on the Oracle software being installed on this system, you need to create operatinggroups and users. The groups and user required to create are dba, oinstall group and oracleuser.

    To create these groups and user, enter the following command with user root:

    # groupadd oinstall # groupadd dba # useradd -m -g oinstall -G dba

    oracle # passwd oracle Check user oracle is belong to oinstall and dba group: # idoracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

    3.Create directories storing oracle filesThe system need directory to store data file, configuration. You create the folder /u01 and

    assign right to it

    # mkdir -p /u01/app/oracle/product/10.2.0 # chown -Roracle:oinstall /u01/app # chmod -R 775 /u01/app

    4.Set environment for user oracleLog into the oracle user. If you are using X emulation then set the DISPLAY environmentalvariable: DISPLAY=:0.0; export DISPLAY

    Edit file /home/oracle/.bash_profile and insert the following line:

    #environment for oracle ORACLE_BASE=/u01/app/oracleORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 ORACLE_SID=fsrvorclPATH=$PATH:$ORACLE_HOME/bin

    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    11/17

    export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATHCLASSPATH

    5.Configure Linux Kernel ParameterUsing gedit to add below information to file /etc/sysctl.conf

    #This lines is for Oracle Installation kernel.shmall = 2097152kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 25032000 100 128 fs.file-max = 6553600 net.ipv4.ip_local_port_range= 1024 65000 net.core.rmem_default = 4194304net.core.wmem_default = 262144 net.core.rmem_max = 4194304net.core.wmem_max = 262144

    Checking result, enter command:#sysctl p

    6.Set shell limits for user oracleTo improve the performance of the software on Linux system, you must increase the

    following shell limits for the oracle user.

    As root, edit file /etc/security/ limits.conf and insert some text before # End of file

    oracle soft nofile 1024 oracle hard nofile65536 oracle soft nproc 2047 oracle hard nproc16384

    Verify file /etc/pam.d/system-auth to check the existing of two following lines:

    session required /lib/security/pam_limits.so sessionrequired pam_limits.so

    If you dont see the first line, insert it.

    7.Disable the SElinuxEdit file /etc/selinux/config, find SELINUX and change it to

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    12/17

    SELINUX=disabled

    8.Install OracleThe oracle 10gR2 is compatible with some linux :Red Hat Enterprise 3, 4 but not CentOS5. While installing oracle, the error will prompt in installation check. You need to edit file

    /etc/redhat-release and change its content:

    redhat-4

    Start the Oracle Universal Installer (OUI) by issuing the following command in the Oraclesource directory:

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    13/17

    ./runInstaller

    On installation method screen, choose Basic Installation. Check the Oracle home locationand installation type. Select option Create Starter Database

    Enter the database name fsrvorcl and password fsrvorcl

    Click Next on Specify Inventory directory and credentials

    Oracle app check the specific Prerequisite checks. Click Next.

    On Summary screen, all components will be installed. Click Next.

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    14/17

    Oracle installation is in progress. Waiting for completion

    Creating Starter database is in progress

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    15/17

    u - root # /u01/app/oraInventory/orainstRoot.sh # /u01/app/oracle/product/11.1.0/db_1/root.sh # exit # exit

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    16/17

    Click Ok

    Click Exit on End of Installation screen to complete.

  • 8/8/2019 12772154 Installing Oracle Application Server 10g Release 2 on CentOS

    17/17

    Open Oracle Enterprise Manager to view status of created database fsrvorcl