Install Oracle 11g in SUSE

Source: Internet
Author: User

I. Check swap partitions

  1. Grep SwapTotal/proc/meminfo

Please make sure it is 4 GB or above. If not, use the following method to add swap partitions:

  1. It is best to disable swap partition: swapoff-
  2. The partition size, in KB.
  3. Run the command: ddIf=/Dev/xero of =/swapfile bs = 1024 count = 5120000. The system may restart after execution.
  4. Run mkswap/swapfile
  5. Run the following command: swapon/swapfile.

2. Check the required software packages.

Input rpm-qPackage nameCheck whether the following software packages are installed.

Software Package Security name

CD storage path

Binutils-2.16.91.0.5

SUSE/x86_64/binutils-2.16.91.0.5-23.31.x86_64.rpm

Compat-libstdc +++-5.0.7-22.2

Suse/x86_64/compat-libstdc ++-5.0.7-22.2.x86 _ 64.rpm

Gcc-4.1.0

Suse/x86_64/gcc-4.1.2_20070115-0.21.x86_64.rpm

Gcc-c ++-4.1.0

Suse/x86_64/gcc-c ++-4.1.2 _ 20070115-0.21.x86_64.rpm

Glibc-2.4-31.2

Suse/x86_64/glibc-2.4-31.54.x86_64.rpm

Glibc-32bit-2.4-31.2 (32 bits)

Suse/x86_64/glibc-32bit-2.4-31.54.x86_64.rpm

Glibc-devel-2.4

Suse/x86_64/glibc-devel-2.4-31.54.x86_64.rpm

Glibc-devel-32bit-2.4 (32 bits)

Suse/x86_64/glibc-devel-32bit-2.4-31.54.x86_64.rpm

Libaio-0.3.104

Suse/x86_64/libaio-0.3.104-14.2.x86_64.rpm

Libaio-32bit-0.3.104 (32 bits)

Suse/x86_64/libaio-32bit-0.3.104-14.2.x86_64.rpm

Libaio-devel-0.3.104

Suse/x86_64/libaio-devel-0.3.104-14.2.x86_64.rpm

Libelf-0.8.5

Suse/x86_64/libelf-0.8.5-47.2.x86_64.rpm

Libgcc-4.1.0

Suse/x86_64/libgcc-4.1.2_20070115-0.21.x86_64.rpm

Libstdc ++-4.1.0

Suse/x86_64/libstdc ++-4.1.2 _ 20070115-0.21.x86_64.rpm

Libstdc +-devel-4.1.0

Suse/x86_64/libstdc ++ devel-4.1.2_20070115-0.21.x86_64.rpm

Make-3.80

Suse/x86_64/make-3.80-202.2.x86_64.rpm

Sysstat-6.0.2

Suse/x86_64/sysstat-8.0.4-1.4.x86_64.rpm

If the package in the table is not installed, run the following command to install it:

Rpm-ivhAbsolute path of the software package

For example:

Mount/dev/sr0/media

Rpm-ivh/media/suse/x86_64/binutils-2.16.91.0.5-23.31.x86_64.rpm

 

3. Check the network configuration.

Check whether the IP address and host name are written into the "/etc/hosts" file.

Vi/etc/hosts

If no, you need to manually add the ing between the IP address and the host name, for example:

10.71.124.53 mmgg


4. create necessary user groups and users.

1. I like to directly change relevant files, as shown below:

  1. /// Etc/group
  2. Dba :! : 1000: Oracle
  3. Success :! : 1001: oracle
  4. Asmadmin :! : 1002: oracle
  5. Oinstall :! : 1003:
  1. /// Etc/passwd
  2. Oracle: x: 1001: 1003:/home/oracle:/bin/bash

Create the oracle directory in/home. Then change the password (passwd oracle ). Oracle users may not be able to use the/sbin command. In this case, you can execute:

  1. Export PATH = $ PATH:/sbin
2. Create an oracle Installation Directory
  1. Mkdir-p/opt/oracle
  2. Chown-R oracle: oinstall/opt/oracle
  3. Chmod-R 755/opt/oracle
  4. Mkdir-p/opt/oraInventory
  5. Chown-R oracle: oinstall/opt/oraInventory
  6. Chmod-R 755/opt/oraInventory
3. Modify the environment variables of oracle users.

Modify the ". profile" file under "/home/oracle/" and add the following content:

  1. Export ORACLE_BASE =/opt/oracle
  2. Export ORACLE_HOME = $ ORACLE_BASE/product/11g
  3. Export ORACLE_SID = msgplus
  4. Export LANG = en_US.UTF-8
  5. Export NLS_LANG = AMERICAN_AMERICA.AL32UTF8
  6. Export PATH = $ ORACLE_HOME/bin: $ PATH
4. Modify the Shell restrictions of oracle users.

Modify the "limits. conf" file under "/etc/security/" and add the following four lines:

  1. Oracle soft nproc 2047
  2. Hard nproc 16384
  3. Oracle soft nofile 1024
  4. Oracle hard nofile 65536
Modify the "login" file under "/etc/pam. d/" and add the following content:
  1. Session required pam_limits.so

5. Update System Kernel configuration parameters.

1. Edit the "sysctl. conf" file under "/etc/" and add the following content to the file:

  1. Kernel. shmall = 2097152
  2. Kernel. shmmax = 2147483647
  3. Kernel. shmmni = 4096
  4. Kernel. sem = 250 256000 100 1024
  5. Net. ipv4.ip _ local_port_range = 1024 65000
  6. Net. core. rmem_default = 4194304
  7. Net. core. rmem_max = 4194304
  8. Net. core. wmem_default = 262144
  9. Net. core. wmem_max = 262144
2. Grant the oinstall group the permission to create shared memory segments.
  1. Id oracle
  2. Echo 1003>/proc/sys/vm/hugetlb_shm_group
  3. 1003 indicates the oinstall group ID in the system.
  4. Add the following content at the end of the "sysctl. conf" file under "/etc:
  5. Vm. hugetlb_shm_group = 1003
  6. Change the current kernel parameters of the system
  7. Sbin/sysctl-p
3. Enter the following command to automatically read the "sysctl. conf" file under "/etc/" at system startup.
  1. /Sbin/chkconfig boot. sysctl on
  • 1
  • 2
  • Next Page

Related Article

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.