Install the oracle10g____oracle on the centos4.x

Source: Internet
Author: User
Tags chmod dba documentation oracle database installation prepare centos filezilla sqlplus
install oracle10g on centos4.x system

2009-09-17 10:58:57| Category: DataBase reading 439 comments 9 Font size: Big medium Small subscription

have been on their own laptop on the Windows XP upload oracle10g, would like to be able to install a Linux system, and oracle10g installed on Linux, according to the experience provided by netizens, Part of the video and oracle10g documentation This document, took two days finally in the virtual machine loaded with CentOS4.8 and, will oracle10g installed, to run normally.

In order to record the results of these two days, it is organized into a document, posted on my NetEase blog, one for later can be consulted, if a friend is also learning, hope to have more help. Nonsense is not much to say, directly into the subject.

I. Installation of CentOS4.8

Pre-Installation Preparation:

1, the choice of CentOS reasons: It is said that the Redhat version of Linux is relatively good, but not completely free, and CentOS is very close to Redhat, and Redhat and CentOS version is basically one by one corresponding, Another important reason is that CentOS is completely free.

2, Pre-installation: A centos4.x operating system files or CD-ROM, I am from the www.centos.org official website downloaded centos-4.8-i386-bindvd.iso file; b) VMware virtual machine software, can download VMS from the Web site Server or VM Workstation, optional one to install this virtual machine in XP system, I choose VM Server, can download from the official website.

Installation steps:

1, install VM Server, this step simpler, just like we install other software in Windows XP, choose the installation directory, next step, OK.

2, after installing the VM, we need to create a directory as a virtual operating system file directory, such as: D:/mylinux, and then start VM Server Console, the VM server opened, first select Local, follow the step-by-step steps to complete the VM Machine settings, here is to note: When choosing a network, we choose Host-only. The exact reason is not detailed here.

3, on the newly established CentOS virtual machine on the CD, double-click the edit, select User image, and then browse, select the Centos-4.8-i386-bindvd.iso file we downloaded, this is the installation file

4, and then to the virtual machine power to start, and then a step-by-step centos system installation, there is basically no problem, the specific installation CentOS, please refer to other information on the website or find some books, this log mainly about the installation of oracle10g on Linux, So the emphasis will be on the bottom.

5, at this time, CentOS has been installed successfully.

second, the installation of oracle10g

Pre-Installation Preparation:

1, oracle10g Linux version of the installation files, can be downloaded from the Www.oracle.com website, how to download, the unknown, I use the oracle10g. zip file.

2, oracle10g's documentation document, this also can download from Www.oracle.com's website, why needs downloading this document. Need to use the following

3, FileZilla Software: used in the mainframe and host between the transfer of documents, the software can be downloaded from the website.

Installation steps:

1, through the open source software FileZilla software, will download to the 10201_database_linux32.zip file through the FileZilla to the CentOS system, here may take a certain amount of time. The operation is: A to connect to the CentOS host by configuring the SSH2 in FileZilla, and B to locate the 10201_database_ in the Windows system after the connection is successful Linux32.zip files, drag them directly into a directory in the CentOS system on the right side of the box, and wait for the delivery to complete and prepare the oracle10g installation files.

2, transmission may take a certain amount of time, this step to prepare Oracle installed in Linux before the installation parameters such as the preparation. Will oracle10g documentation decompression, opens inside Index.html's homepage, may refer to inside the database installation Guide for Linux x86 this documentation, You can open HTML and PDF format, which is a personal preference. The specific requirements for preparation and setup before installation should be noted below:

A, according to the checking Software requirements directory inside the documentation, first check operating system and kernel version, which is their own Linux counterpart and kernel version, I use the CentOS4.8, so the corresponding is REDHAT4 this version of the kernel through the # cat/proc/version;

B, check the package, the document lists all the packages needed to install Oracle, and then through the command # RPM–QA | grep package_name, to find, package_name in the corresponding document listed in sequence, if there are, it is lucky not to pack, if some of the package does not exist, you need to reinstall, the same applies to filezilla the missing packets to the CentOS system, Then execute command # RPM–IVH *.PRM, so that all the missing packages are installed;

C, find the directory of creating Required operating System Groups and users, create the groups and users needed to install Oracle, see the documentation, and use the following command to create

#/usr/sbin/groupadd Oinstall

#/usr/sbin/groupadd DBA

Then create the directory in the root directory

# CD/

# mkdir–p/u01/oracle----Here for the back plan to put oracle10g in the/u01/oracle directory

# useradd–g OINSTALL–G dba–d/u01/oracle Oracle---Increase user Oracle, Primary group Oinstall, Auxiliary Group DBA

#passwd Oracle--Assign a password to an Oracle user, and then enter the password you set

Then modify the properties of the/u01 directory to modify:

#chmod –R Oracle:oinstall u01

D, configure Parameters (configuring Kernel Parameters), here I am not very clear the parameters inside, copy the documentation inside the line

# vi/etc/sysctl.conf, will

Kernel.shmall = 2097152

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Fs.file-max = 65536

Net.ipv4.ip_local_port_range = 1024 65000

Net.core.rmem_default = 1048576

Net.core.rmem_max = 1048576

Net.core.wmem_default = 262144

Net.core.wmem_max = 262144

Copy complete Save, refer to configuration/etc/security/limits.conf,/etc/pam.d/login and/etc/profile in turn

E, set Oracle environment variables, switch users to Oracle, and then add environment variables

#vi. Bash_profile---To edit and add the following environment variables to the file

ORACLE_BASE=/U01 (all Oracle company's software installation directory, including non-database software)

Oracle_home= $ORACLE _base/oracle (ORACLE database installation directory)

Oracle_sid=test

Path= #ORACLE_HOME/bin: $PATH (after setting, you can use Sqlplus, otherwise you will get an error using Sqlplus)

Export Oracle_base oracle_home oracle_sid PATH

Save, exit.

3, after setting the above parameters and environment variables, will be passed to the CentOS system in the 10201_database_linux32.zip, through the # unzip 10201_database_ Linux32.zip for decompression, get the database folder extract file directory, the properties of the database to modify: #chmod –R Oracle:oinstall Database, Primarily to enable Oracle users to access the database

4, because the installation process requires the use of graphical interface, so through STARTX switch to the graphical interface, Open Terminal, enter the command input mode, access to the database directory, the implementation

#./runinstaller--performing the installation

5, in the installation process may appear warning and requirement, may appear semopm error, this is mainly the above settings file, not effective, you can not restart the operating system, you can use #/sbin/sysctl–p/ect/ Sysctl.conf, and then if there is a package requirement, installation through 2.b section, and then continue to install Oracle, because the installation is a graphical interface, do not specify, until the installation is over.

At this point, the oracle10g has been successfully installed on the CentOS, you can start, close, and use the database remotely and locally. ~

Reference Document: Http://www.oracle.com/pls/db102/homepage

This article link: http://blog.163.com/zhoucl_0220/blog/static/145454692009817105857999/

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.