Installing Oracle Application Server 11g R1 On Centos

  • Uploaded by: Nguyen Quoc Huy
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Installing Oracle Application Server 11g R1 On Centos as PDF for free.

More details

  • Words: 958
  • Pages: 13
Oracle Application Server 11g Release 1 (11.1.0) Installation On CentOS 5 Created by: Nguyen Quoc Huy Email: [email protected] In this article I'll describe the installation of Oracle Application Server 11g Release 1 (11.1.0) on CentOS 5. Additional steps may be necessary when starting with a different base OS installation.    

Download Software Unpack Files Hosts File Setup

Download Software Download the following software:  

Oracle Application Server 11g Release 1 (11.1.0) Software Sun JDK 1.4.2.19

Unpack Files Unpack the contents of the file: unzip linux_11gR1_database_1013.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:



<machine-name>

Set Up This section shows you how to install Oracle Database 11gR1. It will guide you through the following steps:    

Install Prerequisite package Create required groups and users Create directories storing oracle file Set environment for user oracle

   

Configure Linux Kernel Parameter Set shell limits for user oracle Disable SElinux Install Oracle

1. Install Prerequisite package Depending 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.19  libXp-1.0.0-8.1.el5  binutils-2.17.50.0.6-2.el5  compat-libstdc++-33-3.2.3-61  elfutils-libelf-0.125-3.el5  elfutils-libelf-devel-0.125  gcc-4.1.1-52  gcc-c++-4.1.1-52  glibc-2.5-12  glibc-common-2.5-12  glibc-devel-2.5-12  glibc-headers-2.5-12  libaio-0.3.106  libaio-devel-0.3.106  libgcc-4.1.1-52  libstdc++-4.1.1  libstdc++-devel-4.1.1-52.e15  make-3.81-1.1  sysstat-7.0.0  unixODBC-2.2.11  unixODBC-devel-2.2.11 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.11 unixODBC-devel

To install the package, run command: # yum –y install

libXp

2. Create required groups and users Depending on the Oracle software being installed on this system, you need to create operating groups and users. The groups and user required to create are dba, oinstall group and oracle user. 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: # id oracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

3. Create directories storing oracle files The system need directory to store data file, configuration. You create the folder /u01 and assign right to it # mkdir -p /u01/app/oracle/product/11.1.0 # chown -R oracle:oinstall /u01/app # chmod -R 775 /u01/app

4. Set environment for user oracle Log into system with user oracle. Edit file /home/oracle/.bash_profile and insert the following line: #environment for oracle ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/11.1.0/fsrv ORACLE_SID=fsrvorcl PATH=$PATH:$ORACLE_HOME/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/j lib export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH CLASSPATH

5. Configure Linux Kernel Parameter Using gedit to add below information to file /etc/sysctl.conf fs.file-max = 6553600 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304

net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 net.ipv4.tcp_wmem = 262144 262144 262144 net.ipv4.tcp_rmem = 4194304 4194304 4194304

Checking result, enter command to change the current values of the kernel: # /sbin/sysctl

–p

Enter command to confirm that the values are set correctly: # /sbin/sysctl

–a

6. Set shell limits for user oracle To 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

nproc

2047

oracle

hard

nproc

16384

oracle

soft

nofile

1024

oracle

hard

nofile

65536

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

required

/lib/security/pam_limits.so

session

required

pam_limits.so

If you don’t see the first line, insert it. 7. Disable the SElinux Edit file /etc/selinux/config, find SELINUX and change it to SELINUX=disabled

8. Install Oracle To install the Oracle software, you must use the Oracle Universal installer.  Start the Oracle Universal Installer (OUI) by issuing the following command in the Oracle source directory: ./runInstaller

 On Installation Method screen, choose Basic Installation. Check the Oracle home location and installation type. Select option Create Starter Database Enter the database name fsrvorcl and password and confirmed password fsrvorcl

 You need to specify your Inventory directory. The location should be set to /u01/app/oracle/oraInventory. Accept the default Operating System group name, oinstall. Then, click Next.

 The installer now verifies that the system meets all the minimum requirements for installing and configuring the chosen product. Please correct any reported errors before continuing. When the check successfully completes, click Next.

 Oracle Configuration Manager allows you to associate your configuration information with your Metalink account. You can choose to enable it on this window. Then, click Next.

 Review the Summary window to verify what is to be installed. Then, click Install.

 Oracle installation is in progress. Waiting for completion.

 The Configure Assistants windows appears.

 Your database is now being created.

 When the database has been created, you can unlock the users you want to use. Click OK.

 You need to execute orainstRoot.sh and root.sh as the root user $ su - root # /u01/app/oraInventory/orainstRoot.sh # /u01/app/oracle/product/11.1.0/db_1/root.sh # exit # exit

<- close terminal

Switch back to the Universal Installer and click OK

 Click Exit on End of Installation screen. Click Yes to confirm exit

 Access database control login. Open IE or Firefox, then enter url: https://vnfsora01.fsrv.vn:1158/em/ Enter sys as username, fsrvorcl as password and connect as SYSDBA. Click Login

Note: if you can’t access this web console, please start OEM Database Control, listener and open database. $ su - oracle # emctl start dbconsole # lsnrctl start # sqlplus “/ as sysdba” > startup open

 The Database Control Home Page appears. Your installation was successful.

Related Documents


More Documents from ""