Installing oracle in linux is a daunting task. Its complexity far exceeds that of installing the linux operating system. If oracle is successfully installed, some linux technologies are also mastered. This article describes how to install oracle 10 GB in redhat linux. Here, we will explain that Oracle 10 GB g stands for grid, which is a cutting-edge network computing technology.
Oracle 10g has very high requirements on hardware and software, so it takes a lot of money to make fun of it. First, let's take a look at its Hardware Requirements: Memory 512 MB (1 GB recommended), cpu clock speed above 7200 GB, hard disk speed above rpm (scsi hard disk recommended). According to this condition, I only need to buy a server. Second, Software Requirements: in oracle official documents, there are only three operating systems supported by the x86 series (radhat ES/AS 2.1 (x86 ), redhat ES/AS 3 (x86), unitedlinux1.0 (x86), which can be installed only if redhat 9 is used, but it takes a little trouble. Of course, oracle 10g requires more software modules for installation. I will describe these software modules one by one later. In this example, RedHat ES 3 (x86) is used as the operating platform and xwindow is installed.
Next, check whether the installation requirements of oracle 10g are met and list them in a table. The first is the hardware. Log on to the system as root and start x-window. If the value output by the following table command is greater than or equal to the recommended value, please
Check recommended project commands/methods
Memory # grep MemTotal/proc/meminfo 512 MB
Swap partition # grep SwapTotal/proc/meminfo 1 GB
/Tmp directory idle zone # df-k/tmp 400 MB
Hard disk free space # df-k 4 GB
Continue to check the software requirements. For redhat ES 3 (x86), the following software packages are required:
· Gnu gcc package, gcc-3.2.3-2 or higher
The following package must also be installed: · make-3.79 · binutils-2.11 · openmotif-2.2.2-16 · setarch-1.3-1 · compat-db-4.0.14.5 · compat-gcc-c ++-7.3-2.96.122 · compat-libstdc ++-7.3-2.96.122 · compat-libstdc +-devel-7.3-2.96.122
To ensure that the system meets the requirements, perform the following steps to check the installed linux version and installed suite.
Check recommended project commands/methods
Linux # cat/etc/issue ES 3
Installed packages # required packages for rpm-q package_name installation (listed in the table above)
Here we have thoroughly checked the software and hardware environment required to install oracle 10 GB, and then we will create a group and a user for the installation.
The following groups and users must exist.
The oinstall group (the oracle inventory group)
The dba group (the OSDBA group)
The oracle user (the oracle owner)
If the preceding groups and users do not exist, use the following steps to create them. (1) check whether these groups and users exist:
# Grep oinstall/etc/group
# Grep dba/etc/group
(2) create groups and users required to install oracle
# Groupadd osintall
# Groupadd dba
# Useradd-g oinstall-G dba oracle check whether oracle belongs to the group oinstall and dba (# id oracle) and then set a user password for oracle # passwd oracle enter the password twice.
Create the directory/u01/app/oracle (the oracle base directory),/u02/oradata (an optional default directory) required for installation, and create it using the command form in the following table. then change its directory permissions.
Create directory change permission
# Mkdir-p/u01/app/oracle # chown-R oracle: Oinstall/u01/app/oracle/u02/oradata
# Mkdir-p/u02/oradata # chmod-R 755/u01/app/oracle/u02/oradata
Configure the kernel parameters. The following table lists the kernel parameter values recommended by oracle. For more information, see.
Parameter Value File
Semmslsemmnssemopmsemmni 25032000100128/proc/sys/kernel/sem
Shmall 2097152/proc/sys/kernel/shmall
Shmmax Half the size of physical memory/proc/sys/kernel/shmmax
Shmmni 4096/proc/sys/kernel/shmmni
File-max 65536/proc/sys/fs/file-max
Ip_local_port_range 1024 65000/proc/sys/net/ipv4/ip_local_port_range
Make sure that the current parameter value is greater than or equal to the values listed in the preceding table. So how to view these parameter values? Run the command #/sbin/sysctl-a | grep <parameter name>. For example, to view semmsl, run #/sbin/sysctl-a | grep sem. The rest is similar to this. View These parameter values one by one. If the parameter values do not meet the requirements, modify them. Complete these steps
A. Use a text editor to create or edit the/etc/sysctl. conf file and add or modify the following lines:
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
B. Use the command #/sbin/sysctl-p to change the value of the current kernel parameter.
To improve the performance of running software on linux, you must set the following shell limits for oracle users.
Shell Limit Item in limits. conf Hard Limit
Maximum number of open file descriptors nofile 65536
Maximum number of processes available to a single user nproc 16384
Now create these limits:
1. Add the following row to the file/etc/security/limits. conf.
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
2. Add the following row to the file/etc/pam. d/login. If it does not exist
Session required/lib/security/pam_limits.so
3. Based on the default shell of oracle users, change the default shell start-up file as follows. If it is a Bourne, Bash, or Korn shell, modify the environment variable/etc/profile file as follows:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
If it is a c shell, the change value of the environment variable file/etc/csh. login is as follows:
If ($ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Endif
Next, attach the CD, # mount/dev/cdrom/mnt/cdrom.
Log on to the system with the oracle user name and configure the oracle user environment. You can use the installer to install oracle using an oracle account. Before running the installer, you must set the environment variables of the oracle User. Therefore, you must:
Set umask of the shell startup file to 022
Set the environment variables of DISPLAY, ORACLE_BASE, and ORACLE_SID. The following steps are used to set these environment variables:
1. Start a terminal session
2. Check whether the xwindow is displayed normally. # Xhost +
3. Change the user to oracle. $ su-oracle
4. Check the oracle user's default shell. $ echo $ SHELL
5. Use a text editor to modify the environment variables of oracle users
Bash shell on redhat
$ Vi. bash_profile
C shell
% Vi. login
6. Insert the following row into the file edited above
Umask 022
7. Save the file and exit
8. Run the shell start script:
Bash shell on Red Hat $.../. profile
C shell % source./. login
9. Set environment variables
Bash shell
$ ORACLE_BASE =/u01/app/oracle
$ ORACLE_SID = sales
$ Export ORACLE_BASE ORACLE_SID
C shell
% Setenv ORACLE_BASE/u01/app/oracle
% Setenv ORACLE_SID sales
10. Confirm that the ORACLE_HOME and TNS_ADMIN environment variables are not set by the user.
Bash shell
$ Unset ORACLE_HOME
$ Unset TNS_ADMIN
C shell
% Unsetenv ORACLE_HOME
% Unsetenv TNS_ADMIN
11. Check whether the environment variables set above are correct.
$ Umask
$ Env | more
Oh! Finally, the preparation is complete. Drink your saliva and stretch your waist. Go to the installation directory $ cd/tmp where the installer (runInstaller) is located to run and install $/mnt/cdrom/runInstaller. Follow the prompts to complete the installation.