I. Hardware requirements 1. Memory swapMinimum: 1 GBofRAMRecommended: 2GBofRAMormore check the memory # grepMemTotalprocmeminfo # grepSwapTotalprocmeminfo2, hard disk after CentOS installation 4 ~ 5 GB, coupled with Oracle and so on, so please prepare a hard disk of at least 10 GB
I. Hardware requirements 1. Memory swap Minimum: 1 GB of RAM Recommended: 2 GB of RAM or more check memory # grep MemTotal/proc/meminfo # grep SwapTotal/proc/meminfo 2. The hard disk is almost 4 ~ after CentOS is installed ~ 5 GB, coupled with Oracle and so on, so please prepare a hard disk of at least 10 GB
I. Hardware requirements
1. Memory & swap
Minimum: 1 GB of RAM
Recommended: 2 GB of RAM or more
Check memory
# Grep MemTotal/proc/meminfo
# Grep SwapTotal/proc/meminfo
2. Hard Disk
Since CentOS is installed almost 4 ~ 5 GB, plus Oracle and so on, so please prepare at least 10 Gb hard disk space.
Check disk status
# Df-h
Ii. Software
System Platform: CentOS 6.3 (x86_64)
CentOS-6.3-x86_64-bin-DVD1.iso
Oracle version: Oracle 10g R2
10201_database_linux_x86_64.cpio
Patch: p6810189_10204
P6810189_10204_Linux-x86-64.zip
Iii. System Installation notes
During system installation, you must install the desktop mode. Otherwise, oracle cannot be installed. In addition, do not enable SELinux. oracle does not recommend SELinux, and CentOS Firewall should be temporarily disabled to reduce installation troubles. To prevent garbled characters during Oracle Installation, we recommend that you use English as the system language to install Oracle.
The system commands described in this article are marked as "#", which indicates the root permission, and "$" indicates the oracle permission.
4. system preparation before Oracle Installation
First, log in with the root account for some pre-set jobs.
1. Disable firewall and SELinux
# Setup
# Vi/etc/selinux/config
Modify SELINUX = disabled and restart.
If you do not want to restart the system, run the setenforce 0 command.
2. Install the dependency package
The installation package required by the Oracle official documentation:
Check whether the Oracle package has been installed:
Use yum to install the required packages:
# Yum-y install binutils compat-libstdc ++-33 compat-libstdc ++-33. i686 elfutils-libelf-devel gcc-c ++ glibc. i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio. i686 libaio-devel libaio-devel.i686 libgcc. i686 libstdc ++. i686 libstdc ++-devel make sysstat
Finally, you must install libXp Library. Otherwise, a java Exception occurs during Oracle installation.
# Yum install libXp
3. Create Oracle users and groups
Only the single host environment is discussed here, regardless of the configuration of the RAC environment.
Run the following command to add the users and groups required for oracle installation.
(1) create a group oinstall
# Groupadd oinstall
(2) create a group dba
# Groupadd dba
(3) Add the user oracle and add it to the oinstall and dba groups.
# Useradd-m-g oinstall-G dba oracle
(4) test whether the oracle account has been created
# Id oracle
(5) Create a New oracle Password
# Passwd oracle
4. Add oracle users to The sudo Group
# Vi/etc/sudoers
Find
Root ALL = (ALL) ALL
This line, and add it below
Oracle ALL = (ALL) ALL
Enter wq! (Because this is a read-only document, you need to add it !) And press Enter
5. Configure System Kernel Parameters
# Vi/etc/sysctl. conf
Modify and add the following content:
Kernel. shmall = 4294967296 // indicates the total amount of shared memory that can be used by the system at one time (in page ). The default value is 2097152, which does not need to be modified.
Kernel. shmmax = 68719476736 // defines the maximum size of the shared memory segment (in bytes ). The default value is 32 M. For oracle, the default value is too low and is usually set to 2G.
Kernel. shmmni = 4096 // used to set the maximum number of shared memory segments within the system. The default value of this parameter is 4096. Usually no need to change
Kernel. sem = 250 32000 100 128 // indicates the set semaphore
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304 // default Receiving Window Size
Net. core. rmem_max = 4194304 // maximum size of the Receiving Window
Net. core. wmem_default = 262144 // default sending window size
Net. core. wmem_max = 262144 // maximum size of the sending window
If there are some parameters that are repeated with the current ones, modify them to the ones provided on the file.
After editing, save and execute:
# Sysctl-p
Enable the change.
6. edit/etc/security/limits. conf.
# Vi/etc/security/limits. conf
Add the following four lines
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
7. edit/etc/pam. d/login.
# Vi/etc/pam. d/login
Add the following two lines
Session required/lib64/security/pam_limits.so
Session required pam_limits.so
8. Modify/etc/profile
# Vi/etc/profile
Add the following code to the profile file.
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
9. Modify the Linux release version
Since CentOS 6 was not released when Oracle 10g was released, Oracle 10g did not confirm support for CentOS 6. You need to modify the file so that Oracle 10g supports CentOS 6.
We need to manually modify the Linux release notes so that Oracle 10 Gb supports CentOS 6.
Edit the/etc/redhat-release file
# Vi/etc/redhat-release
Change CentOS release 6.3 (Final) to redhat 4.
10. Create an Oracle installation folder and a data storage folder
# Mkdir/opt/oracle
# Mkdir/opt/oracle/102
# Chown-R oracle: dba/opt/oracle
11. configure a Linux host