1. Install the operating system Oracle Enterprise Linux 5.2
2. Create a user
Create an oracle user, create a dba group and an oinstall Group
[Root @ oel_11g ~] # Groupadd oinstall
[Root @ oel_11g ~] # Groupadd dba
Then, create a directory/u01/app/oracle under the root directory. We plan to install the Oracle11G software in the/u01/app/oracle directory.
Create user and password
Add an oracle user with the password: oracle. The primary group is oinstall. The secondary group is dba. The default root directory is/u01/oracle.
[Root @ oel_11g ~] # Useradd-g oinstall-G dba oracle
Set password and confirm
[Root @ oel_11g ~] # Passwd oracle
[Root @ oel_11g ~] # Cd/
[Root @ oel_11g ~] # Ls-l
Changed to the oracle user.
[Root @ oel_11g/] # chown-R oracle: oinstall/u01/app/oracle
[Oracle @ oel_11g/] $ chmod-R 775/u01/app/oracle
[Root @ oel_11g/] # ls-l
Check whether the nobody user exists.
[Root @ oracle11g/] # id nobody
Uid = 99 (nobody) gid = 99 (nobody) groups = 99 (nobody)
3. Check whether the packages for installing the oracle11g database are complete.
The Oracle Enterprise Linux 5.2 operating system requires the following packages:
Binutils-2.17.50.0.6
Compat-libstdc ++-33-3.2.3
E
Lfutils-libelf-0.125
Elfutils-libelf-devel-0.125
Elfutils-libelf-devel-static-0.125
Gcc-4.1.2
G
Cc-c ++-4.1.2
G
Libc-2.5-24
Glibc-common-2.5
G
Libc-devel-2.5
Ksh-20060214
Libaio-0.3.106
L
Ibaio-devel-0.3.106
L
Ibgcc-4.1.2
Libgomp-4.1.2
L
Ibstdc ++ 4.1.2
L
Ibstdc +-devel-4.1.2
Make-3.81
Sysstat-7.0.2
[Root @ oel_11g ~] : Rpm-q
You can use the rpm-q method for testing, but sometimes it is too cumbersome. I personally think it is better to configure yum for installation. Here is how to configure yum.
4. Configure yum
Configure the network yum server [helper house http://www.bkjia.com]
1) install the vsftpd package and the createrepo package
Run the rpm-q command to check whether the vsftpd and createrepo packages are installed.
The following two packages must be installed:
Createrepo-0.4.11-3.el5.noarch.rpm
Vsftpd-2.0.5-12.el5.i386.rpm
Use the rpm-ivh command for Installation
2) copy all the files on the system installation CD to/var/ftp/pub/OEL5U2 (assuming that the CD is mounted to the/mnt directory, in fact, just copy the content in the Server and TV files)
[Root @ oel_11g ~] # Cp-rf/mnt/*/var/ftp/pub/OEL5U2
3) run the createrepo command in the OEL5U2 directory.
[Root @ oel_11g OEL5U2] # createrepo ./
4) Start the vsftpd service
[Root @ oel_11g ~] # Service vsftpd start
Starting vsftpd for vsftpd: [OK]
Or
[Root @ oel_11g ~] /Etc/init. d/vsftpd restart
5) use the terminal connecting to the yum server (taking the local machine as an example) to edit the yum usage configuration file
# Vi/etc/yum. repos. d/rhel-debuginfo.repo
[Rhel-debuginfo]
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Debug
Baseurl = ftp: // 127.0.0.1/pub/OEL5U2
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
5. Configure Environment Variables
[Oracle @ oel_11g ~] $ Pwd/home/oracle
[Oracle @ oel_11g ~] $ Vi. bash_profile
Enter the following content:
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/
Export ORACLE_SID = oracle11g
Export PATH = $ ORACLE_HOME/bin: $ PATH: $ HOME/bin
6. Install database software
[Oracle @ oel_11g ~] $./Runinstall
Complete the installation and run the script as the root user.
[Root @ oel_11g ~] # Sh/u01/oraInventory/orainstRoot. sh
[Root @ oel_11g ~] # Sh/u01/app/oracle/root. sh