Detailed steps for installing Oracle 10 Gb in RHEL5.2 System

Source: Internet
Author: User

I. Check hardware requirements
 
Memory Requirements (at least 1 GB) # grep MemTotal/proc/meminfo
Swap zone requirements # grep SwapTotal/proc/meminfo
/Tmp directory (at least MB space) # df-m/tmp
Ii. system software requirements
 
View the operating system version # cat/et c/issue
View the kernel version # uname-r
System software package Query
Binutils
Compat-db
Compat-libstdc ++-296
Control-center
Gcc
Gcc-c ++
Glibc
Glibc-common
Gnome-libs
Libstdc ++
Listdc ++-devel
Make
Pdksh
Sysstat
Xscreensaver
Setarch
LibXp
Openmotif
Libaio-0.3.106
Modify the/etc/hosts file (add the correspondence between the local host name and the IP address)
 
# Vi/etc/hosts
100.100.100.200 linux5
3. Create users and groups
#/Usr/sbin/groupadd oinstall
#/Usr/sbin/groupdd dba
#/Usr/sbin/groupadd Partition
# Useradd-g oinstall-G dba, role Oracle
# Passwd oracle
4. confirm the existence of the user's nobody
# Id nobody
5. Adjust Kernel Parameters
Modify the/et c/sysctl. conf file (Add the following content to the end of the file)
Kernel. core_uses_pid = 1
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 = 10248576
Net. core. rmem_max = 1048576
Net. core. wmem_default = 262144
Net. core. wmem_max = 26144
Make kernel parameters take effect immediately
# Sysctl-p
6. Modify user restrictions
Edit the/etc/security/limits. conf file (Add the following content at the end of the file) oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Edit the/etc/pam. d/login file (Add the following content at the end of the file)
Session required pam_selinux.so open
Session required/lib/security/pam_limits.so
Session required pam_limits.so
Edit the/etc/profile file (Add the following content at the end of the file)
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Edit the/etc/csh. login file
If ($ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Endif
 
7. Create an oracle software installation directory
[Root @ linux5 ~] # Mkdir-p/db/oracle
[Root @ linux5 ~] # Chown-R oracle: oinstall/db/oracle/
[Root @ linux5 ~] # Chmod-R 775/db/oracle/
8. Set oracle user environment variables (Add the following content)
[Root @ linux5 ~] # Su-oracle
[Oracle @ linux5 ~] $ Vi. bash_profile
Umake 022
ORACLE_BASE =/db/oracle
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID = yang
PATH = $ ORACLE_HOME/bin: $ PATH :.
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
9. Upload the oracle database software
Start the vsftpd service on a linux Server
[Root @ linux5 ~] # Service vsftpd start
Starting vsftpd for vsftpd: [OK]
Upload the oracle database software over ftp on a windows Host

11. Install the oracle database
Because orcale10 does not support RHEL5, you need to change/etc/redhat_real.pdf to Red Hat Enterprise Linux Server release 5 (Tikanga) to Red Hat Enterprise Linux Server release 4 (Tikanga)
# Cd/home/oracle/database
#./RunInstaller
1. Do not select "create starter database"
2. Check the parameter file added earlier
3. Install the agent by default.
4. When the installation is complete, a prompt is displayed to execute the script file as the root user.
[Oracle @ linux5 db_1] $ su-
Password:
[Root @ linux5 ~] # Sh/db/oracle/product/10.2.0/db_1/root. sh
[Root @ linux5 ~] # Sh/db/oracle/oraInventory/orainstRoot. sh
Click OK after the execution is complete.
Exit
12. Configure the listener
1. Enable the configuration listening Assistant
[Oracle @ linux5 ~] $ Netca
2. click next.
3. Complete!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.