1. Download Oracle Luinux 5.8 and Oracle 10g database software
2. Operating system Installation
(1). Graphical interface Installation
(2). System Partition
/root partition (9G)
/home Install Oracle partition (10G)
Swap swap partition (1G)
(3). Disable firewall
(4). Disable SELinux
3. Build Yum Network source
[Email protected] server]# cd/etc/yum.repos.d/
[Email protected] yum.repos.d]# wget Http://public-yum.oracle.com/public-yum-el5.repo
[Email protected] yum.repos.d]# vim Public-yum-el5.repo
[Ol5_u8_base]
Name=oracle Linux $releasever Update 8 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/oraclelinux/ol5/8/base/$basearch/
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-oracle
Gpgcheck=1
enabled=1 --Open
[email protected] yum.repos.d]# Yum repolist
4. Installing system-dependent packages
[email protected]]# Yum Install
Binutils
compat-*
gcc-*
glibc-*
Libxp
Libxt
Libxtst
libaio*
libgcc
libstdc++-*
Libgomp
Make
Numactl-devel
Sysstat-y
5. Modifying kernel parameters
[Email protected] ~]# vim/etc/sysctl.conf
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
[[email protected] ~]# sysctl-p--Added parameters to take effect
6. User restrictions on the system
[Email protected] ~]# vim/etc/security/limits.conf
Oracle Soft Nproc 16384
Oracle Hard Nproc 16384
Oracle Soft Nofile 65536
Oracle Hard Nofile 65536
[Email protected] ~]#
7. User restrictions on the shell
[Email protected] ~]# Vim/etc/profile
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
[Email protected] ~]#. /etc/profile
8. User Login Verification Module
[Email protected] security]# Vim/etc/pam.d/login
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so
[Email protected] security]#
9. Host each and IP address resolution, modify the system version
[Email protected] ~]# vim/etc/hosts
192.168.2.143 Oracle1
[Email protected] ~]# vim/etc/redhat-release
Red Hat Enterprise Linux Server Release 4 (Tikanga)
[Email protected] ~]# vim/etc/oracle-release
Oracle Linux Server Release 4
[Email protected] ~]#
10. Create users and user groups
[Email protected] ~]# groupadd-g Oinstall
[[email protected] ~]# GROUPADD-G 501 DBA
[Email protected] ~]# useradd-g oinstall-g dba oracle-d/home/oracle
[Email protected] ~]# chown-r oracle:oinstall/home/oracle
[[Email protected] ~]# password Oracle--Set Password
11. Setting Environment variables with Oracle User login
[Email protected] ~]# su-oracle
[Email protected] ~]$ vim ~/.bash_profile
Export Oracle_base=/home/oracle
Export Oracle_home= $ORACLE _base/product/10.2.0.1/db_1
Export ORACLE_SID=ORCL10
Export path= $ORACLE _home/bin: $PATH
[Email protected] ~]$
12. Extract and install Oracle 10g software
[Email protected] ~]# Zcat 10201_database_linux_x86_64.cpio.gz | Cpio-idvm
[Email protected] ~]# Xhost +
[Email protected] ~]# su-oracle
[Email protected] ~]# CD database/
[Email protected] database]#./runinstaller
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/7A/wKiom1eRvYfjVbk2AAMK3HjTtD8443.png-wh_500x0-wm_3 -wmp_4-s_3589438642.png "style=" Float:none; "title=" 10.png "alt=" Wkiom1ervyfjvbk2aamk3hjttd8443.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/7A/wKiom1eRvYnj3M7iAAMgvtZ3l7A626.png-wh_500x0-wm_3 -wmp_4-s_3639049349.png "style=" Float:none; "title=" 11.png "alt=" Wkiom1ervynj3m7iaamgvtz3l7a626.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/79/wKioL1eRvYqSs3v5AAMoQuwf8mE686.png-wh_500x0-wm_3 -wmp_4-s_2080719592.png "style=" Float:none; "title=" 12.png "alt=" Wkiol1ervyqss3v5aamoquwf8me686.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/84/79/wKioL1eRvYzAgvspAAMPwVnW7vE698.png-wh_500x0-wm_3 -wmp_4-s_674862338.png "style=" Float:none; "title=" 13.png "alt=" Wkiol1ervyzagvspaampwvnw7ve698.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/7A/wKiom1eRvY7A8BnmAAJH3WFDCEw561.png-wh_500x0-wm_3 -wmp_4-s_3497632816.png "style=" Float:none; "title=" 14.png "alt=" Wkiom1ervy7a8bnmaajh3wfdcew561.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/7A/wKiom1eRvY-Rll6PAAMx7f8KD0k557.png-wh_500x0-wm_3 -wmp_4-s_3407517229.png "style=" Float:none; "title=" 15.png "alt=" Wkiom1ervy-rll6paamx7f8kd0k557.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/79/wKioL1eRvZGxjRLxAAM0WXOegyg977.png-wh_500x0-wm_3 -wmp_4-s_303947833.png "style=" Float:none; "title=" 16.png "alt=" Wkiol1ervzgxjrlxaam0wxoegyg977.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/7A/wKiom1eRvZLQNGsKAAM3DFNsrR0969.png-wh_500x0-wm_3 -wmp_4-s_2964051944.png "style=" Float:none; "title=" 17.png "alt=" Wkiom1ervzlqngskaam3dfnsrr0969.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/84/7A/wKioL1eRvZTB8SVnAAMItfER8w0796.png-wh_500x0-wm_3 -wmp_4-s_3757287795.png "style=" Float:none; "title=" 18.png "alt=" Wkiol1ervztb8svnaamitfer8w0796.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/84/7A/wKiom1eRvZbAsZnbAAMsBddjc4w860.png-wh_500x0-wm_3 -wmp_4-s_2339134147.png "style=" Float:none; "title=" 19.png "alt=" Wkiom1ervzbasznbaamsbddjc4w860.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/84/7A/wKioL1eRvZjBqFolAAMkC8DQbYE289.png-wh_500x0-wm_3 -wmp_4-s_757858793.png "style=" Float:none; "title=" 20.png "alt=" Wkiol1ervzjbqfolaamkc8dqbye289.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/7A/wKiom1eRvZnwPLCuAAJn_ukg2EM977.png-wh_500x0-wm_3 -wmp_4-s_2325116745.png "style=" Float:none; "title=" 21.png "alt=" Wkiom1ervznwplcuaajn_ukg2em977.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/7A/wKioL1eRvZqzwgukAAFaVaH5uxs294.png-wh_500x0-wm_3 -wmp_4-s_2242574379.png "style=" Float:none; "title=" 22.png "alt=" Wkiol1ervzqzwgukaafavah5uxs294.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/7A/wKioL1eRvbzggJjRAAFVWqpbrqU332.png-wh_500x0-wm_3 -wmp_4-s_2308503253.png "title=" 23.png "alt=" Wkiol1ervbzggjjraafvwqpbrqu332.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/7A/wKiom1eRv1KRgas5AADx6_Pwf0Q468.png-wh_500x0-wm_3 -wmp_4-s_3466511671.png "style=" Float:none; "title=" 24.png "alt=" Wkiom1erv1krgas5aadx6_pwf0q468.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/84/7A/wKioL1eRv1PxC2ZOAADwkpP_AIw487.png-wh_500x0-wm_3 -wmp_4-s_4165540961.png "style=" Float:none; "title=" 25.png "alt=" Wkiol1erv1pxc2zoaadwkpp_aiw487.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/7A/wKiom1eRv1XSKwe8AAEFzSDnMRU131.png-wh_500x0-wm_3 -wmp_4-s_2754322756.png "style=" Float:none; "title=" 26.png "alt=" Wkiom1erv1xskwe8aaefzsdnmru131.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/7A/wKioL1eRv1aQ1u0AAAGQG8OrdsI498.png-wh_500x0-wm_3 -wmp_4-s_992156499.png "style=" Float:none; "title=" 27.png "alt=" Wkiol1erv1aq1u0aaagqg8ordsi498.png-wh_50 "/>
13. Log in to Oracle database
[Email protected] ~]# su-oracle
[Email protected] ~]$ Sqlplus/as SYSDBA
Sql*plus:release 10.2.0.1.0-production on Fri Jul 22 14:41:09 2016
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-64bit Production
With the partitioning, OLAP and Data Mining options
Sql> Show user;
USER is "SYS"
Sql>
This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1828676
Oracle Linux 5.8 installs Oracle 10 database