[root@localhost yum.repos.d]# yum -y install binutils compat-db control-center glibc libXp libstdc++ libstdc++-devel make openmotif sysstat
[root@localhost yum.repos.d]# cat /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
vim /etc/redhat-release
Red Hat Enterprise Linux Server release 3 (Tikanga)
vim /etc/sysctl.conf
[root@localhost yum.repos.d]# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.shmall = 2097152
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
vim /etc/security/limits.conf
oracle
soft nproc 2047
oracle
hard nproc 16384
oracle
soft nofile 1024
oracle
hard nofile 65536
vim /etc/pam.d/login
session
required /lib/security/pam_limits.so
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# vim /home/oracle/.bash_profile
[root@localhost /]# mkdir -p /oracle/app
[root@localhost /]# chmod 777 /oracle
[root@localhost /]# chown -R oracle.oinstall /oracle
[root@localhost yum.repos.d]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.18.108
oracle localhost.localdomain localhost
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ vi .bash_profile
[oracle@localhost ~]$ source .bash_profile
[oracle@localhost ~]$ cd /home/oracle/
[oracle@localhost ~]$ unzip oracle_database_linux32.zip
9.[oracle@localhost ~]$./runInstaller
[oracle@localhost ~]$ ls
database Desktop oracle_database_linux32.zip
[oracle@localhost ~]$ cd database/
[oracle@localhost database]$ ls
doc install response runInstaller stage welcome.html
[oracle@localhost database]$ ./runInstaller
选择高级安装(advanced installation)
注意此处为oinstall组点击下一步
此处选择企业版下一步
选择安装目录
下一步
/oracle/app/oracle/product/10.2.0/db_1
(注意安装目录要跟bash_profile中 ORACLE_HOME目录一样)
检测是否缺乏软件包(警告为正常)下一步
只安装数据库软件(install database software only)下一步
选择安装
安装最后提示需要root身份 执行两个脚本
执行后退出即可
--------------------------
dbca 创建数据库
数据库SID 参照 用户环境变量中的设置(TEST)
[oracle@localhost database]$ cd /oracle/app/oradata/
[oracle@localhost oradata]$ ls
test
[oracle@localhost oradata]$ cd test/
[oracle@localhost test]$ ls
control01.ctl redo01.log sysaux01.dbf undotbs01.dbf
control02.ctl redo02.log system01.dbf users01.dbf
control03.ctl redo03.log temp01.dbf
######test下有这些东西和下面的显示说明建成功##########
[oracle@localhost test]$ ps -ef | grep ora_
oracle
14291 1 0 22:14 ? 00:00:00 ora_pmon_test
oracle
14293 1 0 22:14 ? 00:00:00 ora_psp0_test
oracle
14295 1 0 22:14 ? 00:00:00 ora_mman_test
oracle
14297 1 0 22:14 ? 00:00:00 ora_dbw0_test
oracle
14299 1 0 22:14 ? 00:00:00 ora_lgwr_test
oracle
14301 1 0 22:14 ? 00:00:00 ora_ckpt_test
oracle
14303 1 0 22:14 ? 00:00:00 ora_smon_test
oracle
14305 1 0 22:14 ? 00:00:00 ora_reco_test
oracle
14307 1 0 22:14 ? 00:00:00 ora_cjq0_test
oracle
14309 1 0 22:14 ? 00:00:00 ora_mmon_test
oracle
14311 1 0 22:14 ? 00:00:00 ora_mmnl_test
oracle
14313 1 0 22:14 ? 00:00:00 ora_d000_test
oracle
14315 1 0 22:14 ? 00:00:00 ora_s000_test
oracle
14320 1 0 22:14 ? 00:00:00 ora_qmnc_test
oracle
14327 1 0 22:14 ? 00:00:00 ora_p000_test
oracle
14329 1 0 22:14 ? 00:00:00 ora_p001_test
oracle
14331 1 0 22:14 ? 00:00:00 ora_p002_test
oracle
14333 1 0 22:14 ? 00:00:00 ora_p003_test
oracle
14337 1 0 22:14 ? 00:00:00 ora_q000_test
oracle
14339 1 0 22:14 ? 00:00:00 ora_q001_test
oracle
14399 6245 0 22:17 pts/1 00:00:00 grep ora_