Deploy Oracle 10.2.0.5 on Red Hat Enterprise Linux 6.4, deploy10.2.0.5
I. installation and configuration of Linux
1. Select Desktop when installing the system.
2. Set the eth0 Nic to a static IP address, add the subnet mask, gateway, and DNS, and configure automatic start.
3. Modify/etc/hosts and add the Host Name and corresponding IP address.
4. Disable firewall and selinux
Chkconfig iptables off
Vi/etc/selinux/config
SELINUX = disabled
[Root @ 10dg1 selinux] # setenforce 0
[Root @ 10dg1 selinux] # getenforce
Permissive
5. Configure the local yum Source
Mkdir/media/disk-p
Mount-t iso9660/dev/cdrom/media/disk
Mount: block device/dev/sr0 is write-protected, mounting read-only
Cd/media/disk/
Touch/etc/yum. repos. d/public-yum-rhel6.repo
Vi/etc/yum. repos. d/public-yum-rhel6.repo
[Rhel6]
Name = Red Hat Enterprise Linux 6.4 DVD
Baseurl = file: // media/disk/Server/
Gpgcheck = 0
Enabled = 1
6. Install the packages required by Oracle
Yum install oracle-rdbms-server-11gR2-preinstall
Yum install gcc
Yum install glibc
Yum install glibc-devel
Yum install libXp
Yum install libXt
Yum install libXtst
Yum install libstdc ++
Yum install libstdc ++-devel
Yum install compat-libstdc ++-296
Yum install compat-libstdc ++-33
Yum install compat-gcc-34
Check after installation
Rpm-qa gcc glibc libXp libXt libstdc ++-devel compat-libstdc ++-296 compat-libstdc ++-33 compat-gcc-34
7. Add users and groups
Groupadd oinstall 501
Groupadd DBAs 502
Useradd-g oinstall-G dba oracle
Password oracle
8. Create a directory and grant permissions
Mkdir-p/u01/app/oracle/product/10.2.0/db_1
Chown-R oracle: oinstall/u01
Chmod-R 755/u01/app/oracle or chmod-R ug = rx, o = rwx
9. Configure Kernel Parameters
Vi/etc/sysctl. conf
# For oracle install
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Make the change take effect
/Sbin/sysctl-p
Note: Generally it is 0.7 times of the Memory. The OLTP system SGA + PGA <(Total Memory) * 0.8, SGA <(Total Memory) * 0.8*0.8
10. Set the number of shell Chinese files and the number of processes
Vi/etc/security/limits. conf
# For oracle install
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
11. Add Login User restrictions on resources
Vi/etc/pam. d/login
# For oracle install
Session required/lib/security/pam_limits.so
Session requiredpam_limits.so
12. Add oracle environment variables
Su-oracle
Vi ~ /Home/oracle/. bash_profile
PATH = $ PATH: $ HOME/bin
Export PATH
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = zlm
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib: $ LD_LIBRARY_PATH
Export PATH = $ PATH: $ ORACLE_HOME/bin
# Umask 022
# Alias sqlplus = 'rlwrap sqlplus'
# Alias rman = 'rlwrap rman'
Stty erase ^
Source ~ /. Bash_profile or .~ /. Bash_profile
Ii. Database Installation
1. Install the database software 10.2.0.1
Use the Xmanage shell component to connect to the server
Su-oracle
Cpio-idvm <10201_database_linux_x86_64.cpio
Unzip p8202632_10205_Linux-x86-64.zip
Cd database/
./RunInstaller-ignoreSysPrereqs # RHEL6.4 ignore this parameter and you can also enter the graphical interface without modifying/etc/redhat-release to a lower version. Instead, you cannot enter the installation interface.
Because 10.2.0.1 does not authenticate Linux 6, files such as ins_ctx.mk, ins_rdbms.mk, ins_emdb.mk, and ins_net_client.mk cannot be linked during the compilation process. Click "continue" to continue, when upgrading 10.2.0.5, ensure that all links of the upgrade are successfully passed. Then, execute two scripts in sequence to complete the installation.
2. Upgrade the database software to the version 10.2.0.5.
Cd/Disk
./RunInstaller
An error occurred while installing the package.
OUI-11108: Packages information not specified.
Vi/etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)-> Red Hat Enterprise Linux Server release4 (Santiago)
Change 6.4 to 4, OUI-11108 error disappears
Official RHEL5 installation package
Rpm-q -- qf' % {NAME}-% {VERSION}-% {RELEASE} (% {ARCH }) \ n' binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel glibc-headers libaio-devel gligcc libstdc ++-devel make sysstat unixODBC-devel
Reinstall all required packages
Yum-y install binutils compat-libstdc ++-33 compat-libstdc ++-33. i686 elfutils-libelf-devel gcc-c ++ glibc. i686 glibc-common glibc-develglibc-devel.i686 glibc-headers ksh libaio. i686 libaio-devellibaio-devel.i686 libgcclibgcc. i686 libstdc ++. i686 libstdc ++-devel make sysstat
When installing 10.2.0.5, The link error will still be reported, because the previous use of yum install glibc installation, the system by default to the installed glibc-devel.X86_64, and 64 bit oracle needs a glibc-devel.i686, no wonder the link error is always reported. After the package is installed, the previous link error will not be reproduced.
3. dbca creates a listener and creates a database
Omitted