1. Install RHEL6. Note: The commands mentioned in this article are marked with # as root user input, and $ as individual user input. Here it refers to oracle user, the personal explanation marked with ---- is for viewing only. 2. Mount the CD directory. A) connect the disc to the system. B) Use the mount command to mount the mnt directory # mountdevcdr
1. Install RHEL 6. Note: The commands mentioned in this article are marked with # as root user input, and $ as individual user input. Here it refers to oracle user, the personal explanation marked with ---- is for viewing only. 2. Mount the CD directory. A) connect the disc to the system. B) Use the mount command to mount the/mnt directory # mount/dev/cdr
1. Install RHEL 6.
Note: The commands mentioned in this article are marked with # as root user input, and $ as individual user input. Here it refers to oracle user, the personal explanation marked with ---- is for viewing only.
2. Mount the CD directory.
A) connect the disc to the system.
B) mount the/mnt directory using the mount command.
# Mount/dev/cdrom/mnt
3. Create the/etc/yum. repos. d/*. repo file:
[Rhel] ---- Custom name
Name = Red Hat Enterprise Linux ---- Name of the local system, which can be customized
Baseurl = file: // mnt ---- Yum Source Path
Enabled = 1 ----
Gpgcheck = 1 ---- If the value is 1, the key file must be used for security check. If the value is 0, the key file is ignored.
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release ---- When gpgcheck = 1, you need to write this key file. If it is 0, you can leave it empty.
4. install ftp with yum
A) install vsftpd: # yum install vsftp *
B) install the ftp Client: # yum install ftp *
C) restart the ftp service: # service vsftpd restart
D) Other yum commands
# Yum remove * ---- Uninstall installed applications
# Yum sreach * ---- Search
# Yum list * ---- List of installed applications
# Yum clean all * ---- Clear yum Cache
5. Create Oracle user information
A) create user group
# Groupadd dba
# Groupadd oinstaller
B) create user
# Useradd-g dba-G oinstaller oracle
C) change user passwd (login root) change oracle Password
# Passwd oracle
D) create dest create the oracle directory
# Cd/opt
# Mkdir oracle10g
# Chown oracle: dba oracle10g/
6. Use yum to install the RHEL package missing from oracle
# Yum install binutils *
# Yum install compat *
# Yum install control *
# Yum install gcc *
# Yum install glibc *
# Yum install gnome *
# Yum install libstdc *
# Yum install make *
# Yum install ksh *
# Yum install sysstat *
# Yum install setarch *
# Yum install libXp. i686 libXp-devel.i686 libXt. i686 libXt-devel.i686 libXtst. i686 libXtst-devel.i686 make. x86_64 gcc. x86_64 libaio. x86_64 glibc-devel.i686 libgcc. i686 glibc-devel.x86_64 compat-libstdc + +-33
This is a brief input:
# Yum install glibc * gcc * make * compat-db * libstdc * libXp * libXtst * compat-libstdc ++ * setarch *
7. Use the FTP tool on the local machine to upload the Oracle Installation Package and upgrade package
A) first open the ftp tool to connect to linux, then the ftp tool will display two kinds of errors: 530 Login incorrect error and 530 Permission denied Error
530 Permission denied solution:
Because the root permission is not granted, You Need To comment out the root user.
I. # vi/etc/vsftpd/user_list, comment out the root user (that is, add a new one before #) ---- We recommend using this
1. # vi/etc/vsftpd. conf. Change userlist_enable = YES to NO.
530 solution to Login incorrect:
# Vi/etc/vsftpd/ftpusers comment out the root user
B) A new error occurs after the user permission is granted. 500 OOPS: cannot change directory:/root:
The main directory cannot be opened. solution:
Aa. Check the status of SELinux: # sestatus-B | grep ftp
Bb. You can see in the result: ftp_home_dirOff
Cc. Use the command to open: setsebool-P ftp_home_dirOn
Dd. Restart the ftp service and then perform service vsftpd resatart. ---- This step is optional.
C) Then you can start uploading the Oracle Installation Package and upgrade package.
8. Configure Kernel Parameters
# Vi/etc/sysctl. confAdd the following field at the end of the file
Kernel. shmall = 2097152
Kernel. shmmax =536870912 ---- Here is half of your physical memory (in bytes). Here is 512 MB.
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 = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Save and exit. Execute the command #/sbin/sysctl-pMake it take effect
9. configure system resource limits
# Add a field to the end of the vi/etc/security/limits. conf file.
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
# Vi/etc/pam. d/login Add a field at the end of the file
Session Required /Lib/security/pam_limits.so
Session Required Pam_limits.so
10. decompress the oracle Installation File.
# Mv/10201_database_linux_x86_64.cpio.gz/home/oracle/ ---- Because I uploaded the file in the/main directory, decompress the package to the Home Directory of oracle.
# Su-oracle ---- Switch to oracle user
$ Gunzip 10201_database_linux_x86_64.cpio.gz ---- Decompress the gz file with gunzip (ensure it is oracle and it is in the home directory) to obtain the cpio File
$ Cpio-idmv <10201_database_linux_x86_64.cpio ---- Release the cpio file (ensure that it is oracle and under the Home Directory)
The/home/oracle directory contains multiple database folders.
If you download the package from the oracle official website, you can directly decompress the zip package to install it.
# Unzip 10201_database_linux32.zip
...
...
11. Modify the environment variable $ vi/home/oracle/. bash_profile:
Delete the original environment variable and add the following fields:
Export ORACLE_SID = orcl
Export ORACLE_BASE =/opt/oracle10g
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export PATH = $ PATH: $ ORACLE_HOME/bin: $ HOME/bin
12. Start Installation
A) You need to modify the system version. Otherwise, the database fails to be checked during installation.
# Vi/etc/redhat-release ---- Return to the root user for execution
Change version 6.2 to 4, and fill in the brackets as needed.
B) In order to display a graphical interface during installation, you need to add a command to return to the oracle user.
$ Xhost +
PS: if the error "xhost: unable to open display" is reported, run # export DISPLAY =: 0.0 under root.
C) run the script
$ Cd database/ ---- Go to the database directory
$./RunInstaller ---- Run
At this time, we can see the Oracle Graphical System Interface pop-up.
PS: You need to use Secure CRT to connect to the virtual machine and configure Liunx.
1. Configure the IP address
A) Enter # cd/etc/sysconfig/network-scripts/
B) EDIT # vi ifcfg-eth0 File
DEVICE = eth0 ---- Specify the NIC device name as eth0
HWADDR = 00: 0c: 29: f9: 67: 5b ---- Specify the physical NIC address as: 00: 0c: 29: f9: 67: 5b
NM_CONTROLLED = yes ---- Can the device eth0 be managed by the Network Manager graphical management tool? When the Network adapter is restarted, this must be changed to no. Otherwise, an error will be reported.
ONBOOT = no ---- Whether to enable eth0 with the network service. It is disabled by default. Change this parameter to yes when you restart the NIC. Otherwise, an error is reported.
BOOTPROTO = dhcp ---- The start protocol is automatically obtained by dhcp.
TYPE = Ethernet ---- The network type is Ethernet
IPADDR = -.-.-.- ---- Fixed IP Address
C) restart the NIC # service network reastart
D) You can use # system-network-config to view the graphic interface. (This is the value of NM_CONTROLLED)