I. Check swap partitions
- Grep SwapTotal/proc/meminfo
Please make sure it is 4 GB or above. If not, use the following method to add swap partitions:
- It is best to disable swap partition: swapoff-
- The partition size, in KB.
- Run the command: ddIf=/Dev/xero of =/swapfile bs = 1024 count = 5120000. The system may restart after execution.
- Run mkswap/swapfile
- 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:
- /// Etc/group
- Dba :! : 1000: Oracle
- Success :! : 1001: oracle
- Asmadmin :! : 1002: oracle
- Oinstall :! : 1003:
- /// Etc/passwd
- 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:
- Export PATH = $ PATH:/sbin
2. Create an oracle Installation Directory
- Mkdir-p/opt/oracle
- Chown-R oracle: oinstall/opt/oracle
- Chmod-R 755/opt/oracle
- Mkdir-p/opt/oraInventory
- Chown-R oracle: oinstall/opt/oraInventory
- 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:
- Export ORACLE_BASE =/opt/oracle
- Export ORACLE_HOME = $ ORACLE_BASE/product/11g
- Export ORACLE_SID = msgplus
- Export LANG = en_US.UTF-8
- Export NLS_LANG = AMERICAN_AMERICA.AL32UTF8
- 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:
- Oracle soft nproc 2047
- Hard nproc 16384
- Oracle soft nofile 1024
- Oracle hard nofile 65536
Modify the "login" file under "/etc/pam. d/" and add the following content:
- 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:
- Kernel. shmall = 2097152
- Kernel. shmmax = 2147483647
- Kernel. shmmni = 4096
- Kernel. sem = 250 256000 100 1024
- 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
2. Grant the oinstall group the permission to create shared memory segments.
- Id oracle
- Echo 1003>/proc/sys/vm/hugetlb_shm_group
- 1003 indicates the oinstall group ID in the system.
- Add the following content at the end of the "sysctl. conf" file under "/etc:
- Vm. hugetlb_shm_group = 1003
- Change the current kernel parameters of the system
- Sbin/sysctl-p
3. Enter the following command to automatically read the "sysctl. conf" file under "/etc/" at system startup.
- /Sbin/chkconfig boot. sysctl on