Deploying ORACLE10GR2 on the CentOS server

Source: Internet
Author: User
Tags centos server

1. Download the CentOS system Linux image file.
It is recommended to use centos5.4,:http://isoredirect.centos.org/centos/5/isos/i386/. This is a 32-bit Linux system image installation files, after entering the download page, if it is a DVD installation, you can only select Centos-5.4-i386-bin-dvd.torrent to download, download and get 3.9 GB Centos-5.4-i386-bi N-dvd.iso scene file. 64 people can go here to download: http://isoredirect.centos.org/centos/5/isos/x86_64/.

2, install the Linux system.
Prepare this information before installation: such as server IP address (such as 192.168.6.152), subnet mask (such as 255.255.255.0), default gateway (e.g. 192.168.6.2), DNS server (such as 202.102.152.3; 202.102.128.68); host name (such as Superman). This didn't see?, directly set up the BIOS, insert the disc to follow the steps on the line. Note the following points: Language selection Simplified Chinese, keyboard default, mouse default, installation type default, partition can choose to delete the Linux partition and default partition, set static IP, cancel DHCP, time zone Shanghai; Set the password for root, select all optional packages, and turn off the firewall.

3, the operating environment required by the system

Linux installation is complete, but as an Oracle server, we also need to determine which patches are installed. These patches can be found in the CentOS directory where the DVD is installed. Of course, you can also install directly with Yum:
compat-db-4.2.52-5.1.i386.rpm;
compat-gcc-34-3.4.6-4.i386.rpm;
compat-gcc-34-c++-3.4.6-4.i386.rpm;
compat-libstdc++-33-3.2.3-61.i386.rpm;
gcc-4.1.2-44.el5.i386.rpm;
glibc-2.5-34.i386.rpm;
libaio-0.3.106-3.2.i386.rpm;
libxp-1.0.0-8.1.el5.i386.rpm;
libxp-devel-1.0.0-8.1.el5.i386.rpm;
openmotif-2.3.1-2.el5.i386.rpm;
openmotif-devel-2.3.1-2.el5.i386.rpm;
make-3.81-3.el5.i386.rpm;
setarch-2.0-1.1.i386.rpm.
Some of these may have been loaded, but it's best to check them all and put them all on. Some packages are installed to download other dependent packages, if the download speed is too slow, if it is not our network failure, may be the problem of Yum source, you can install Yum-fastestmirror try:
#yum-y Install Yum-fastestmirror
If it is still slow, go online to search the domestic relatively fast source, and then modify the next Yum source.

You can also build a service installation to resolve dependencies on Linux packages

Also, it is best not to force the termination when using Yum. If forced termination is mandatory, yum clean all once before next use.

Download the installation file.
Latest Linux under JDK installer jdk-6u18-linux-i586.bin, size 80.8 mb,:http://java.sun.com/javase/downloads/widget/jdk6.jsp. You can install the JDK here. Linux Oracle 10g R2 installer 10201_database_linux32.zip, size 637.8 mb,:http://www.oracle.com/technology/software/products/ Database/oracle10g/htdocs/10201linuxsoft.html (32-bit). After downloading, place the Oracle installation files in the/downloads directory.
4, add groups and users.
This is to increase the number of database groups and Oracle users required for Oracle installation. Because the graphical interface is required for Oracle installations. So make sure you have the graphical interface gnome or KDE installed. If not, yum, please.
# yum Groupinstall "X window System"
# yum Groupinstall "X window System" "GNOME Desktop Environment"
Or a friend of KDE who has a unique passion for running:
# yum Groupinstall "X window System" "KDE Desktop Environment"
Reboot. Root login to start adding Oracle's groups and users:
# Groupadd Oinstall
# Groupadd DBA
# Groupadd Oper
# USERADD-G OINSTALL-G dba Oracle
# passwd Oracle
Then create the Oracle installation directory and pay the permissions to the Oracle User:
# mkdir-p/u01/app/oracle
# Chown-r Oracle:oinstall/u01/app/oracle
# Chmod-r 775/u01/app/oracle
5. Start setting kernel parameters, system variables, and user variables.
Now that the Oracle users and groups have been added, the following starts setting kernel parameters, system variables, and user variables. Warning: To develop a good habit, be sure to make a backup before you modify any files! Especially when modifying kernel parameters! If not, it may cause the system to fail to start! Remember!

In addition, many of the following commands are best pasted and copied. For starters, it's important to build confidence when you're not familiar with kernel commands for the time being.
1), modify the kernel parameters.
First look at whether all have, some words according to this change, did not add up.
# gedit/etc/sysctl.conf Add the following line: (Gedit is used in the graphical interface, if the text interface is used: vi/etc/sysctl.conf)
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
# SEMAPHORS:SEMMSL, Semmns, SEMOPM, Semmni
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Run the following command to make the kernel parameters effective:
#/sbin/sysctl-p
2), modify the/etc/security/limits.conf.
Gedit/etc/security/limits.conf at the bottom add the following: (Gedit is used in the graphical interface, if the text interface used: vi/etc/security/limits.conf)
#use for Oracle
* Soft Nproc 2047
* Hard Nproc 16384
* Soft Nofile 1024
* Hard Nofile 65536
3), modify the/etc/pam.d/login.
Gedit/etc/pam.d/login at the bottom add the following: (Gedit is used in the graphical interface, if the text interface used: Vi/etc/pam.d/login)
Session Required Pam_limits.so
4), turn off SELinux.
Turn off SELinux (Gedit is used in the graphical interface, if the text interface is used: Vi/etc/selinux/config)
# Gedit/etc/selinux/config
Ensure selinux=disabled
5), modify the current user variables (set environment variables for Oracle users).
Log in with an Oracle user, and first go back to the root directory of Oracle.
$ CD (cd/home/oracle)
$ VI. BASHRC or (gedit/.BASHRC)
Then add the following.
Java_home=/usr/java/jdk1.6.0_18
Path= $JAVA _home/bin: $PATH
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home
Export PATH
Export CLASSPATH
The following jdk1.6.0_18 this is the post-installation directory, that is, the version number, can be modified according to the version you installed, of course, according to the name of this directory. If you use the same installation file as me, then you don't have to change it.
6), edit the/etc/profile file.
To edit the # gedit/etc/profile file, set the environment variables for Oracle and add the following sections:
The installation permission to give this directory Orcale. It is a good idea to set the database installation file directory to the Oracle user permissions.
The way to set permissions is to see how to build the Orcale directory above.
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/10.2.0/db_1
Export ORACLE_SID=ORCL
Export path= $PATH: $ORACLE _home/bin
Export path= $PATH: $HOME/bin: $ORACLE _home/bin
Export Ld_library_path= $ORACLE _home/lib:/usr/lib
Export Lc_ctype=en_us. UTF-8

If [$USER = "Oracle"];then
If [$SHELL = "/bin/ksh"]; then
ulimit-p 16384
ulimit-n 65536
Else
Ulimi T-u 16384-n 65536
fi
fi 
        7, start the installation.
        After you finish step 7, the system is configured, restarted, and logged in to the system using an Oracle user.
        such as the Oracle installation file under/downloads, first unzip it, the database directory appears after decompression.
$CD/downloads/database
$LANG =c
$./runinstaller
        here basic and win The installation interface is the same as the steps below. If Java precompilation encounters Checking Network configuration requirement detection does not pass, you can modify the/etc/hosts file:
#vi/etc/hosts
#文件最前加上一条
192.168.6.152 Superman Superman
#其中, 192.168.6.152 is the native static IP address, Superman is the native hostname
         do not ignore the past, or completing database Creation error, resulting in installation failure, the database is not working properly

At the end of the installation, the user is prompted to do the following:
$ su Root
#/home/oracle/oralnventory/orainstroot.sh
#/oracle/product/10.2.0/db_1/root.sh
8. Test and run the installed Oracle system.
1), start the listener.
$ lsnrctl Start
2), start and close the database.
$ sqlplus/nolog
Sql> Connect/as SYSDBA
Connected to an idle instance.
Sql> Startup
sql> shutdown

3), set self-start.
#vi/etc/oratab
Tsh1:/oracle/product/10.2.0/db_1:y

Http://www.cnblogs.com/and/archive/2010/05/06/1729075.html

Deploying ORACLE10GR2 on the CentOS server

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.