Deploy Oracle 10.2.0.5 on Red Hat Enterprise Linux 6.4

Source: Internet
Author: User

First, the Linux system installation configuration


1. Select Desktop when installing the system


2. Set eth0 nic as static IP, add subnet mask, gateway, DNS, and configure auto-start


3. Modify/etc/hosts, add host name and corresponding IP


4. Disabling firewall and SELinux
Chkconfig iptables off
Vi/etc/selinux/config
Selinux=disabled

[Email protected] selinux]# setenforce 0
[Email protected] 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


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 required packages for Oracle
Yum Install glibc.i686
Yum Install Glibc-devel. i686
Yum Install Libxp. i686
Yum Install Libxt. i686
Yum Install LIBXTST. i686
Yum Install libstdc++. i686
Yum Install Libstdc++-devel. i686
Yum Install compat-libstdc++-296. i686
Yum Install compat-libstdc++-33. i686
Yum Install compat-gcc-34 #这个没有i686的包, x86_64 is installed by default
Yum Install GCC #这个没有i686的包, x86_64 is installed by default
Yum Install Oracle-rdbms-server-11gr2-preinstall #只有OEL6才有这个包, the installation of Oracle will automatically configure the environment to facilitate


Check it out after you've loaded it.

[Email protected] disk]# RPM-QAglibc glibc-devel libxp libxt libxtst libstdc++ libstdc++-devel compat-libstdc++-296 compat-libstdc++-33 compat-gcc-34 GCC
Gcc-4.4.7-3.el6.x86_64
libxp-1.0.0-15.1.el6.i686
libstdc++-4.4.7-3.el6.i686
Libxt-1.1.3-1.el6.x86_64
Libstdc++-4.4.7-3.el6.x86_64
glibc-devel-2.12-1.107.el6.i686
compat-libstdc++-33-3.2.3-69.el6.i686
Libxtst-1.2.1-2.el6.x86_64
Glibc-2.12-1.107.el6.x86_64
glibc-2.12-1.107.el6.i686
libxtst-1.2.1-2.el6.i686
compat-libstdc++-296-2.96-144.el6.i686
libstdc++-devel-4.4.7-3.el6.i686
libxt-1.1.3-1.el6.i686
Compat-gcc-34-3.4.6-19.el6.x86_64
Glibc-devel-2.12-1.107.el6.x86_64


7. Adding users and Groups
Groupadd Oinstall 501
Groupadd DBA 502
USERADD-G oinstall-g dba Oracle
Password Oracle


8. Create a directory and give permissions
Mkdir-p/u01/app/oracle/product/10.2.0/db_1
Chown-r oracle:oinstall/u01
Chmod-r 755/u01/app/oracle orchmod-r ug=rx,o=rwx


9. Configuring 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 changes take effect
/sbin/sysctl-p


Note: Typically 0.7 times times the memory, the OLTP system sga+pga< (total memory) *0.8,sga< *0.8*0.8


10. Set restrictions on the number of Chinese pieces and number of processes in the shell
vi/etc/security/limits.conf
#for Oracle Install
Oracle Soft Nproc 2047
Oracle 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. Adding 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


Second, the database installation


1. Install 10.2.0.1 database Software
Connecting to a server using the Xmanage Shell component
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 can also enter the graphical interface, do not need to modify the/etc/redhat-release for the lower version, change to 5 instead of the installation interface


because 10.2.0.1 does not certify Linux 6, the compilation process will prompt ins_ctx.mk,ins_rdbms.mk,ins_emdb.mk,ins_net_client.mk and other files cannot link, Direct Click Continue continue, to 10.2.0.5 upgrade to ensure that the link all smooth pass, and then execute 2 scripts to complete the installation


2. Upgrading the database software PSR to 10.2.0.5
Cd/disk
./runinstaller
will prompt for a package that does not have an installed error
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 (S Antiago)
After changing 6.4 to 4, OUI-11108 error disappears.


Official RHEL5 packages required for installation

Rpm-q--qf '%{name}-%{version}-%{release} (%{arch}) \ n ' binutils compat-libstdc++-33 elfutils-libelf Elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libst Dc++-devel make Sysstat UnixODBC unixodbc-devel



Reinstall all the packages you need

Yum-y Install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-develglibc-devel.i686 glibc-headers ksh Libaio libaio.i686 libaio-devellibaio-devel.i686 libgcclibgcc.i686 libstdc++ libstdc++.i686 Libstdc++-devel make Sysstat


When 10.2.0.5 PSR is installed, the link error is still reported becausepreviously installed with the Yum install GLIBC, the system defaults to Glibc-devel. X86_64, and the "glibc-devel.i686" Oracle needs to be, no wonder the link error has been reported, after loading the package, the previous link error will no longer reproduce


3.NETCA Create monitoring, DBCA build Library

Slightly


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.