1. Resolve package dependency rpm-Uvh.disk3RedHatRPMSglibc-kernheaders-2.4-9.1.100.EL.i386.rpmrpm-Uvh.disk3RedHatRPMSglibc-he
1. solution package dependency rpm-Uvh./disk3/RedHat/RPMS/glibc-kernheaders-2.4-9.1.100.EL.i386.rpmrpm-Uvh./disk3/RedHat/RPMS/glibc-he
1. Solve the package dependency
Rpm-Uvh./disk3/RedHat/RPMS/glibc-kernheaders-2.4-9.1.100.EL.i386.rpm.
Rpm-Uvh./disk3/RedHat/RPMS/glibc-headers-2.3.4-2.36.i386.rpm.
Rpm-Uvh./disk3/RedHat/RPMS/glibc-devel-2.3.4-2.36.i386.rpm.
Rpm-Uvh./disk3/RedHat/RPMS/gcc-3.4.6-8.i386.rpm.
Rpm-Uvh./disk2/RedHat/RPMS/libstdc ++-3.4.6-8. i386.rpm
Rpm-Uvh./disk3/RedHat/RPMS/libstdc ++-devel-3.4.6-8.i386.rpm
Rpm-Uvh./disk4/RedHat/RPMS/compat-gcc-32-c ++-3.2.3-47.3.i386.rpm
Rpm-Uvh./disk4/RedHat/RPMS/compat-gcc-32-3.2.3-47.3.i386.rpm.
Rpm-Uvh./disk2/RedHat/RPMS/compat-libstdc ++-33-3.2.3-47.3.i386.rpm
2. Create a group
Groupadd oinstall
Groupadd dba
3. Create a user
Useradd-g oinstall-G dba Oracle
Passwd oracle
4. confirm that the user's nobody exists.
Id nobody
Return uid = 99 (nobody) gid = 99 (nobody) groups = 99 (nobody)
5. Check kernel settings
References
Or directly modify/etc/sysctl. conf and add the following content:
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
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
(Restart required)
6. Modify the oracle user configuration
Modify/etc/security/limits. conf and add the following content:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Modify/etc/pam. d/login and add the following content:
Session required/lib/security/pam_limits.so
Modify/etc/profile and add the following content:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
7. Create a folder
Format/ /App/
Here/u01/oracle/app/oracle
Mkdir-p/u01/oracle/app/oracle
Chown-R oracle: oinstall/u01/oracle/app/oracle
Chmod-R 775/u01/oracle/app/oracle
Modify the. profile of an oracle user and set Environment Variables
ORACLE_BASE =/u01/oracle/app/oracle
Export ORACLE_BASE
8. Create a Database folder and a Recovery folder
Mkdir/u01/oracle/app/oracle/oradata
Chown oracle: oinstall/u01/oracle/app/oracle/oradata
Chmod 775/u01/oracle/app/oracle/oradata
Mkdir/u01/oracle/app/oracle/flash_recovery_area
Chown oracle: oinstall/u01/oracle/app/oracle/flash_recovery_area
Chmod 775/u01/oracle/app/oracle/flash_recovery_area
9. Run runInstaller for Installation
Use oracle users for Installation
Java. lang. InternalError: Can't connect to X11 window server using ': 1.0' as the value of DISPLAY variable.
Solution: run the xhost + command as the root user and switch to the oracle user for installation.
Then install the SDK based on the instructions.
10. Set Environment Variables
ORACLE_BASE =/u01/oracle/app/oracle
Export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_HOME
ORACLE_SID = orcl
Export ORACLE_SID
ORACLE_TERM = xterm
Export ORACLE_TERM
PATH =/usr/sbin: $ PATH
Export PATH
PATH = $ ORACLE_HOME/bin: $ PATH
Export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Export CLASSPATH