No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

eSight V300R009C00 Single-Node System Software Installation Guide (SUSE Linux) 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Preparing for the Installation

Preparing for the Installation

This topic describes how to prepare for the installation.

Checking the Operating System

This topic describes how to check the Linux operating system version and install required component packages.

Procedure
  1. Log in to the Oracle database server as the root user.
  2. Check the kernel version of the Linux operating system.

    # cat /proc/version

    The following information in bold is the kernel version. The kernel version must be later than 4.4.103-92.53.

    Linux version 4.4.103-92.53-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) ) #1 SMP Thu Jun 22 14:29:09 UTC 2017 (d11a83a)

    If the kernel version is incorrect, reinstall the operating system.

  3. Check the main version of the Linux operating system.

    # cat /etc/SuSE-release

    The following information is displayed:

    SUSE Linux Enterprise Server 12 (x86_64) 
    VERSION = 12 
    PATCHLEVEL = 2
    • If the displayed information includes SUSE Linux Enterprise Server 12 (x86_64), select the Oracle Database 11g Release 2 x86-64 installation package.
    • If the displayed information shows that the Linux operating system is of another version, obtain an Oracle installation package for this version from the Oracle website. To use the pre-paid functions of the Oracle software, contact the Oracle company.

  4. Check the component packages of the Linux operating system.

    • The gcc command is required during Oracle installation. Because the gcc command depends on the cpp compiling software, gcc and cpp compiling software must be retained.
    • Risk notification: If the gcc command is retained, users can compile the C and C++ source code.

    # rpm -q binutils gcc gcc48 gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit libaio1 libaio-devel libcap1 libstdc++48-devel libstdc++48-devel-32bit libstdc++6 libstdc++6-32bit libstdc++-devel libstdc++-devel-32bit libgcc_s1 libgcc_s1-32bit mksh make sysstat xorg-x11-driver-video xorg-x11-server xorg-x11-essentials xorg-x11-Xvnc xorg-x11-fonts-core xorg-x11 xorg-x11-server-extra xorg-x11-libs xorg-x11-fonts

    • If the version of the component package is earlier than the listed version, upgrade the component package to the version listed in Table 13-1.
    • If "package xxx is not installed" is displayed, the system does not have the component package installed.
    Table 13-1 Component packages to be checked

    Component Package

    Minimum Version Requirement

    binutils

    2.25.0-13.1

    gcc

    4.8-6.189

    gcc48

    4.8.5-24.1

    gcc-c++

    4.8–6.189

    glibc

    2.19-31.9

    glibc-32bit

    2.19-31.9

    glibc-devel

    2.19-31.9

    glibc-devel-32bit

    2.19-31.9

    libaio1

    0.3.109-17.15

    libaio-devel

    0.3.109-17.15

    libcap1

    1.10-59.61

    libstdc++48-devel

    4.8.5-24.1

    libstdc++48-devel-32bit

    4.8.5-24.1

    libstdc++6

    5.2.1+r226025-4.1

    libstdc++6-32bit

    5.2.1+r226025-4.1

    libstdc++-devel

    4.8-6.189

    libstdc++-devel-32bit

    4.8-6.189

    libgcc_s1

    5.2.1+r226025-4.1

    libgcc_s1-32bit

    5.2.1+r226025-4.1

    mksh

    50-2.13

    make

    4.0-4.1

    sysstat

    10.2.1-3.1

    xorg-x11-driver-video

    7.6_1-14.30

    xorg-x11-server

    7.6_1.15.2-36.21

    xorg-x11-essentials

    7.6_1-14.17

    xorg-x11-Xvnc

    1.4.3-7.2

    xorg-x11-fonts-core

    7.6-29.45

    xorg-x11

    7.6_1-14.17

    xorg-x11-server-extra

    7.6_1.15.2-36.21

    xorg-x11-libs

    7.6-45.14

    xorg-x11-fonts

    7.6-29.45

    Perform the following operations to install or upgrade the component package:

    1. Insert the SUSE Linux 12 SP2 installation CD-ROM to the drive.
    2. Run the yast2 command.
    3. Choose Software > Software Management.

      The window for adding software is displayed.

    4. Enter the component package name in the Search field, and click Search.
    5. Select the component package to be installed or updated from the search results on the right area.
    6. Click Accept to install or update the component package.
    7. Optional: Repeat the preceding steps if another component package is not installed.

  5. Check whether the mapping between the host name and IP addresses is correct.

    1. Run the following command:

      # hostname -i

      • If the host IP address is displayed, the configuration is correct.
      • If "name or service not known" is displayed, perform Configuring the Network.

  6. Verifying that the orarun software is not installed.

    Check whether the orarun software has been installed.

    # rpm -qa orarun*

    orarun-1.9-172.20.21.54     
    • If information similar to the preceding is displayed, the orarun software has been installed. Run the following command to uninstall the software:

      # rpm -e orarun-1.9-172.20.21.54

    NOTE:

    orarun-1.9-172.20.21.54 is the name of orarun software. Replace it with the actual value.

    • If no information is displayed, the orarun software has not been installed.

Creating Oracle Users and User Groups

This topic describes how to create Oracle users and user groups for installing and managing the Oracle database.

Context

Before installing the Oracle database, create the oracle user and the dba user group as follows:

  • Only the oracle user can install, start, or close the Oracle database.
  • Only users in the dba user group can manage the database.

When you select Oracle Server Base during the operating installation, the system creates the dba user group and the oracle user by default. You are advised to delete the default oracle user created by the system and create a new one.

Procedure
  1. Log in to the Oracle database server as the root user.
  2. Run the following commands to check whether the oracle user and user group dba are exited.

    # cat /etc/passwd | grep oracle

    # cat /etc/group | grep dba

    • If no command output is displayed, go to the next step.
    • If command output is displayed, run the following commands to delete the existing oracle user, the home directory of the user and user group dba.

      # userdel -r oracle

      # groupdel dba

  3. Create the dba user group.

    # groupadd -g 201 dba

    NOTE:

    In the preceding command, -g specifies the user group ID. If a message is displayed, indicating that the user group ID exists, change the ID to another one.

  4. Create the oracle user.

    # useradd -u 300 -d /home/oracle -s /bin/bash -m -g dba -G dba oracle

    The parameters in the preceding command are described as follows:

    • -u: Specifies a user ID. If a message is displayed, indicating that the user ID exists, change it to another one.
    • -d: Specifies the home directory of the user.
    • -s: Specifies the login shell type of the user.
    • -m: Creates the home directory if the home directory does not exist.
    • -g: Specifies the primary user group that the user belongs to.
    • -G: Specifies the secondary user group that the user belongs to.

  5. Check whether the oracle user is created properly.

    # more /etc/passwd | grep oracle

    If the oracle user is created, the following information is displayed:

    oracle:x:300:201::/home/oracle:/bin/bash
    NOTE:

    If the preceding command output is not displayed, run the userdel -r oracle command to delete the user.

    See Step 4 to create the oracle user again.

  6. Change the password of the oracle user as prompted.

    # passwd oracle

    Enter the new password and confirm it as prompted.

Modifying Kernel Parameters of the Operating System

This topic describes how to modify the kernel parameters of the operating system for improving the performance of system.

Procedure
  1. Log in to the Oracle database server as the root user.
  2. Run the grep MemTotal /proc/meminfo command to check the physical memory size of a local host.
  3. Run the getconf PAGE_SIZE command to check the page size.
  4. Run the following commands to modify the kernel parameter configuration file /etc/sysctl.conf.

    # vi /etc/sysctl.conf

    • Set kernel.shmmax to half of the physical memory.
    • Set kernel.shmall to the physical memory divided by the page size.
    • If the parameters do not exist, manually enter the following content:
    NOTE:
    • Run the grep MemTotal /proc/meminfo command to check the physical memory size.

      Information similar to the following is displayed:

      MemTotal:       32480760 kB
    • Run the getconf PAGE_SIZE command to check the physical memory size.

      Information similar to the following is displayed:

      4096

    If the memory size is 32480760 KB and the page size is 4096, set kernel.shmmax to 16630149120 (32480760 x 1024/2) and kernel.shmall to 8120190 (32480760 x 1024/4096).

    kernel.shmmax=16630149120
    kernel.shmall=8120190

  5. Make the modification in the sysctl.conf take effect.

    # /sbin/sysctl -p

Granting Permissions on Directories

This topic describes how to grant permission on the directories involved in the Oracle database installation.

Procedure
  1. Log in to the Oracle database server as the root user.
  2. Create the oracle folder.

    # mkdir /opt/oracle

    # mkdir -p /opt/oraInventory

  3. Change the oracle folder owner and group.

    # chown -R oracle:dba /opt/oracle

    # chown -R oracle:dba /opt/oraInventory

  4. Change the permission on the oracle folder.

    # chmod -R 755 /opt/oracle

    # chmod -R 755 /opt/oraInventory

Modifying Environment Variables of the Oracle User

This topic describes how to modify the environment variable file that is used during the Oracle database installation.

Procedure
  1. Log in to the Oracle database server as the oracle user.
  2. Create an environment variable file .bash_profile under the home directory of the oracle user.

    1. Access the /home/oracle directory.

      > cd /home/oracle

    2. Create a .bash_profile file, and add the following information to the file, save and close the file.

      > vi .bash_profile

    The following lists the environment variables such as the base directory, home directory, database language, and character set required for installing the Oracle database. Set the database language and character set based on the following information.

    • ORACLE_BASE indicates the installation directory of the Oracle database. In this document, /opt/oracle is used.
    • ORACLE_SID indicates the SID of the Oracle database. Ensure that the parameter value is consistent with the database instance name configured during database installation.
    • The .bash_profile file must not contain unauthorized characters (such as ^M). Otherwise, the installation may fail.
      export ORACLE_BASE=/opt/oracle 
      export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 
      export ORACLE_SID=esight 
      #export NLS_LANG=AMERICAN_AMERICA.UTF8 
      export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK 
      export PATH=/usr/lib64:$ORACLE_HOME/bin:$PATH 
      #export TMP=/opt/oracle/tmp 
      #export TMPDIR=/opt/oracle/tmp 
      umask 027 
      #Set following environment variables according to eSight oracle machine 
      export ORACLE_TERM=xterm 
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/lib32:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib 
      export SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32 
      export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib 
      export TNS_ADMIN=$ORACLE_HOME/network/admin     

  3. Enable the environment variables.

    > source .bash_profile

  4. Verify the environment variable setting.

    > env | grep variable name

    Run the env | grep ORACLE_HOME command for example, if the setting is variable, the following information is displayed.

    ORACLE_HOME=/opt/oracle/product/11.2.0/db_1

  5. Run the following command to assign the permission of the /home/oracle/.bash_profile file to the oracle user.

    > chown oracle:dba /home/oracle/.bash_profile

    > chmod 755 -R /home/oracle

Uploading and Decompressing the Installation Package

This topic describes how to upload and decompress the installation package to the server.

Procedure
  1. Log in to the server as the root user.
  2. Run the following command to create /opt/oracle_install.

    # mkdir -p /opt/oracle_install

  3. Insert the Oracle installation CD-ROM to the drive, upload the p13390677_112040_Linux-x86-64_1of7.zip and p13390677_112040_Linux-x86-64_2of7.zip to /opt/oracle_install on the server.
  4. Decompress the Oracle server installation package.

    # cd /opt/oracle_install

    # unzip p13390677_112040_Linux-x86-64_1of7.zip

    # unzip p13390677_112040_Linux-x86-64_2of7.zip

    After the package is decompressed, the database directory is generated.

  5. Granting permissions on installation directories.

    # chown -R oracle:dba /opt/oracle_install

    # chmod -R 775 /opt/oracle_install

Download
Updated: 2019-08-10

Document ID: EDOC1100011860

Views: 96030

Downloads: 144

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next