Installation Background: due to the need of Graduation Project, Oracle 10g is installed on CentOS6.2 platform, mainly referring to the documents I think are more reliable on the Internet. It turns out that this is also true, here are my installation steps for your reference! (Because some documents with previous errors are lost, Google is recommended if you have any problems !)
Installation preparation:
1/10201 _database_linux32.zip
2/Centos6.2 platform, applicable with RedHat6.x
Installation steps:
A/initialize the system:
1/. Set Network Parameters
Edit/etc/sysconfig/network-scripts/ifcfg-eth0 to initialize network parameters. Here are my settings for reference only:
DEVICE = "eth0"
HWADDR = "00: 0C: 29: CF: C4: 2D"
NM_CONTROLLED = "yes"
ONBOOT = "yes"
TYPE = Ethernet
IPADDR = 192.168.1.200
PREFIX = 24
GATEWAY = 192.168.1.1
DNS1 = 6192.168.1.1
IPV6INIT = no
Edit/etc/hosts and add the corresponding IP address and Host Name
127.0.0.1 DB localhost
192.168.8.200 DB
PS: the hostname command and uname-n command on the Oracle server must be the same.
2. Set system services
Disable unnecessary system services:
Chkconfig iptables off
Chkconfig ip6tables off
Chkconfig cups off
Chkconfig firstboot off
Chkconfig wpa_supplicant off
Chkconfig postfix off
Disable SELinux:
Sed-I's/SELINUX = enforcing/SELINUX = disabled/'/etc/selinux/config
Set SSH:
Sed-I's/^ GSSAPIAuthentication yes $/GSSAPIAuthentication no/'/etc/ssh/sshd_config
Sed-I's/# UseDNS yes/UseDNS no/'/etc/ssh/sshd_config
PS: After completing the preceding two steps, restart the Network service:
[Root @ DB ~] #/Etc/init. d/network restart
3. Install common software and necessary software
Install kernel-devel and kernel-headers, and do not update kernel when updating the system.
Yum-y install kernel-devel kernel-headers & echo exclude = kernel *>/etc/yum. conf
Update System:
Yum-y update
Install common software:
Yum-y install autoconf automake binutils-devel bison cpp dos2unix ftp gcc-c ++ lrzsz python-devel
Install required Oracle software:
Yum-y install compat-db compat-db42 compat-db43 compat-gcc-34 compat-gcc-34-c + + compat-
Libstdc ++-33 glibc-*. i686 libXpm-*. i686 libXp. so.6 libXt. so.6 libXtst. so.6 libgcc_s.so.1 ksh XP lib
Libaio-devel numactl-devel unixODBC-devel
PS: after installing the above software, you 'd better restart the system.
4. Create Oracle-related users and directories
Groupadd oinstall
Groupadd dba
Useradd-g oinstall-G dba oracle
Passwd oracle
Usermod-g oinstall-G dba oracle
Mkdir-p/usr/local/oracle
Chown-R oracle: oinstall/usr/local/oracle
Chmod-R 755/usr/local/oracle
5. Modify the kernel parameters (the kernel parameters do not have to be modified. I have not modified them according to my actual situation !.)
Edit/etc/sysctl. conf and add the following content at the end.
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65500
Net. core. rmem_default = 4194304
Net. core. wmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_max = 262144
After modification, run sysctl-p to make the settings take effect.