How to install Oracle in CentOS5.3 and how to create a software account

Source: Internet
Author: User
After learning how to install Oracle in centos for a long time, you may encounter an Oracle Installation problem in centos. Here we will introduce how to solve the Oracle Installation problem in centos.

After learning how to install Oracle in CentOS 5.3 for a long time, you may encounter an Oracle Installation problem in CentOS 5.3. Here we will introduce how to solve the Oracle Installation problem in CentOS 5.3.

After learning how to install Oracle in CentOS 5.3 for a long time, you may encounter an Oracle Installation problem in CentOS 5.3. Here we will introduce how to solve the Oracle Installation problem in CentOS 5.3, centOS Linux has a strict version correspondence with RHEL products. For example, if RHEL 4 source code is used to re-compile and release CentOS Linux 4.0, RHEL 5 corresponds to CentOS Linux 5.0. CentOS 5.3 installation of Oracle 10g summary document.

I. Preface

I have heard rumors that CentOS 5.3 is very BT to install Oracle. I tried it today: <, so I am determined to organize the problems encountered in the installation into this document for future reference.

Ii. Install basic Oracle configuration in CentOS 5.3

Before installing Oracle in CentOS 5.3, I would like to talk about machine configuration problems first. Because of single machine problems, it may waste more than one day!
1) remaining hard disk space: 10 Gb or above
Although the 10 Gb Installation File of Oracle is only over 800 MB, the installed oracle + oraInventory directory will use approximately 4 GB space, in addition, the temporary file generated by Oracle during installation (the/tmp directory must be at least 400 MB )... therefore, 10 Gb hard disk space is already the lowest configuration, because you may need to deal with some special circumstances.
2) memory GB or above
The official documentation says the M memory can also be installed. Yes, it does, but I cannot guarantee that it will run normally after installation... previously, I used a 1 GB memory Virtual Machine to install Oracle 10 Gb. When I was about to start it, I was prompted that the remaining memory was insufficient. To avoid unnecessary troubles, add more memory.
3) Swap Zone 2G

3. Install Oracle 10g in CentOS 5.3

1. Prerequisites
1] official installation documentation for megael 10 GB
2] installation package: 10201_database_linux_x86_64.cpio.gz

2. Install Oracle 10g in CentOS 5.3
1) Prepare for Installation
To avoid errors caused by missing packets, run the following command before installing Oracle:
Yum install yum-fastestmirror-yyum install compat-db * yum install compat-libc * yum install compat-gcc * yum install libXp. so.6yum install libc-* yum install libaio * yum install openmotifyum install glibc-devel * yum install libgcc * yum install gnome-lib *
2) install and decompress the Oracle package in CentOS 5.3
Zcat/tmp/10201_database_linux_x86_64.cpio.gz/data/setupfiles/Oracle/| cpio-idmv
3] Create CentOS 5.3 to install the Oracle group and User Account
Create an account for installing and maintaining the Oracle 10g software. User accounts are called oracle, while groups are called oinstall and dba. Run the following command as the root user:
#/Usr/sbin/groupadd oinstall #/usr/sbin/groupadd dba #/usr/sbin/useradd-m-g oinstall-G dba oracle # id oracleuid = 501 (oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (dba)
Set the password for the oracle account
# Passwd oracleChanging password for user oracle. New password: Retype new password: passwd: all authentication tokens updated successfully.
4. Create a directory
Create the directory of Oracle 10 GB and its database files, and run the following command as the root user:
# Mkdir-p/data1/oracle # mkdir-p/data1/oradata # chown-R oracle: oinstall/data1/oracle/data1/oradata # chmod-R 775/data1/oracle/data1/oradata
5. Modify kernel parameters.
To install Oracle on CentOS 5.3, you must modify the kernel parameters for 10 Gb. Otherwise, a Failed Error is reported during installation detection, which may even cause an Error during installation. Run the following command as root:
Cat>/etc/sysctl. conf < If there is no problem with the check, you can start to install Oralce 10g.
6) install Oracle 10 Gb in CentOS 5.3
1) log on to XWindow as an Oracle user installed in CentOS 5.3. The installation of oracle will pop up the interface for you to configure, if you use putty to log on to the installation, you can not operate the pop-up box, so be sure to log on to XWindow, and then start the installation program in Terminal.
Another problem is that you must use an oracle user to log on to XWindow and start the installation program in Terminal as an oracle user. Why not use root permissions? First, an error occurs when you log on to XWindow as The root user and start the installation program. The prompt "the user is root. Oracle Universal Installer cannot continue installation if The user is root." is displayed .". If you log on to XWindow as root and start the installation program in Terminal as an oracle user, some dialog boxes may not pop up, leading to installation freezing. I have encountered this before, although it cannot be confirmed that the problem is caused by root logon to XWindow, to avoid unnecessary problems, you should log on to XWindow as an oracle user and start the installation program as an oracle user.
2) if your system language is Chinese, set it to English. Otherwise, garbled characters will appear during installation.
3) Start the Oracle 10g installer in Terminal:
[Oracle @ vmlincn80ce5/] $./data/setupfiles/Oracle/database/runInstaller:
If you encounter a "Checking operating system version: must be RedHat-2.1, redhat-3, SUSE-9, SuSE-8 or UnitedLinux-1.0 Failed" issue when you start runInstaller at Terminal, it indicates that oracle cannot identify your system kernel, you can solve this problem by modifying the Kernel configuration file as follows:
Cat>/etc/redhat-release <EOFRed Hat Enterprise Linux AS release 3 (Taroon) EOF
4) install Oracle 10 Gb configuration in CentOS 5.3
Modify Oralce Home Localtion, enter the database password, and press "Next ".
5) Database Configuration
Modify Inventory directory, Specify Operating System group name: oinstall, and then "Next ",
6) check before installing Oracle in CentOS 5.3
Check whether the installation requirements are met and whether the configuration needs to be modified. If you follow the steps above, the warning here should be 0 and then "Next ".
7) Install Oracle 10g
Directly press "Install ".
8) Installing...
Now you can try to make a pot of Oolong tea... if you install it on a virtual machine, it will take longer ...... zzzzzzzzz
9) Configuration Assistant
After CentOS 5.3 is installed on Oracle, Configuration Assistant is automatically configured.
Including the Configuration of Oracle Net Configuration Assistant, Oracle Database Configuration Assistant, and iSQL * Plus Configuration Assistant.
When the Configuration of Oracle Database Configuration Assistant is complete, a confirmation box is displayed, which records some important information, including SID, Server Parameter Filename, and Database Control URL, this information will be useful in the future. You can record it and then "OK ".
10) run the script with root permission
When iSQL * Plus Configuration Assistant is configured, a dialog box is displayed, which contains two srcips that require you to run with the root permission.
Run the above two scripts with the root permission in Terminel:
[Root @ vmlincn80ce5 oradata] #. /orainstRoot. shChanging permissions of/data1/oradata to 770. changing groupname of/data1/oradata to oinstall. the execution of the script is complete [root @ vmlincn80ce5 oracle] #. /root. shRunning Oracle10 root. sh script... the following environment variables are set as: ORACLE_OWNER = oracle ORACLE_HOME =/data1/oracleEnter the full pathname of the local bin directory: [/usr/local/bin]: copying dbhome to/usr/local/bin... copying oraenv to/usr/local/bin... copying coraenv to/usr/local/bin... creating/etc/oratab file... entries will be added to the/etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root. sh script. now product-specific root actions will be saved med.
Then press "OK ".
11) Oracle 10 Gb installation is complete
Congratulations, CentOS 5.3 has finished installing Oracle 10 GB:>. Press "Exit" to Exit the installation.

Iii. Postscript

In fact, it seems that installing Oracle 10 Gb in CentOS 5.3 is not that difficult. It is mainly because various kinds of Warnning/Error may be reported during installation, most of these are caused by the lack of some packages in the system. If you have installed all the packages mentioned in "[2.1] Preparation and installation, this type of problem should be basically solved (Google is not enough ...). Then there is a hard disk space problem. Every Oracle Installation will generate a temporary file of about MB under/tmp. If an error occurs during installation and exits, these files will not be automatically deleted, so remember to clear the garbage, otherwise it will easily lead to insufficient disk space.

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.