After several days of hard work, I finally installed Oracle11G FOR Linux. I started to install RS4.0 and downloaded several versions of Oracle10g, or Oracle and Linux were incompatible, either the inventory directory cannot be found, or the net config cannot be started during the installation process. After a bold attempt yesterday, we finally succeeded. Below we will record our experience for memo:
1. Download RS5.0 Enterprise Edition. I downloaded a DVD from thunder. Do not forget to find a serial number. I found a Red Hat Enterprise Linux (Server including virtualization ):
2515dd4e215225dd
2. Download Oracle11G from the Oracle official website.
Next let's start the installation:
1. Create user group
#/Usr/sbin/groupadd oinstall
#/Usr/sbin/groupadd dba
2. Create a user and set a password
#/Usr/sbin/useradd-g oinstall-G dba oracle
# Passwd oracle
3. Set directory permission
# Chown-R oracle: oinstall/ora10g/app/oracle/ora10b/oradata
# Chmod-R 775/ora10g/app/oracle/ora10b/oradata
4. Add the following configuration to the/etc/security/limits. conf file:
Soft nproc 2047
Hard nproc 16384
Soft nofile 1024
Hard nofile 65536
Add the following configuration to the/etc/pam. d/login file:
Session required/lib/security/pam_limits.so
Add the following script to the configuration file/etc/profile for the shell of an Oracle user separately:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Set oracle environment variables
1. Log On As an oracle user:
Add umask 022 to the configuration file. bash_profile to set the user's default umask
Execute the $ ../. bash_profile configuration to take effect.
2. Set temporary file directory
$ TEMP =/directory
$ TMPDIR =/directory
$ Export TEMP TMPDIR
4. Set ORACLE_BASE and ORACLE_SID Variables
$ ORACLE_BASE =/ora10g/app/oracle // This is the master program directory of Oracle created earlier
$ ORACLE_SID = sales
$ Export ORACLE_BASE ORACLE_SID