oracle安装

oracle安装前的环境准备

安装以下包binutils-2.17.50.0.6-5.el5
compat-db-4.2.52-5.1
control-center-2.16.0-14.el5
gcc-4.1.2-14.el5
gcc-c++-4.1.2-14.el5
glibc-2.5-18
libXp-1.0.0-8.1.el5
libstdc++-4.1.2-14.el5
libstdc++-devel-4.1.2-14.el5
make-3.81-1.1
openmotif-2.3.1-2.el5.i386.rpm
安装依赖包
yum -y install control-center
yum -y install sysstat修改语言vim /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

root用户设置核心参数
vim /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
 kernel.sem = 25032000100128
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
oracle只能安装在4以下版本所心要改这个文件
vim/etc/redhat-release
Red Hat Enterprise Linux Server release 3
通知内核参数发生改变
/sbin/sysctl -p

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

用户环境变量
oracle 要以oracle 的身份运行所以要建相应的组于应户
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle[root@localhost ~]# su - oracle
设置变量
vim .bash_profile
ORACLE_BASE=/oracle/app
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
ORACLE_SID=TEST
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
LANG=en_US.UTF-8
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH LANG
让变量生效
source .bash_profile

把oracle 安装包cp 到linux下

解压缩

 unzip oracle_database_linux32.zip

在hosts文件中加上

本机IP     sq1

建目录

mkdir -p /oracle/app

给目录权限

chmod 777 /oracle

chown -R oracle.oinstall /oracle

用oracle登录linux

到解压缩文件夹下执行./runInstaller

选高级安装

 

 

 

 

 

 

 

 

 

 

 

 

 不知道怎么回事图传不上去了

 

 [oracle@sql ~]$ ps -ef | grep ora_

oracle   10429     1  0 22:08 ?        00:00:00 ora_pmon_TEST

oracle   10431     1  0 22:08 ?        00:00:00 ora_psp0_TEST

oracle   10433     1  0 22:08 ?        00:00:00 ora_mman_TEST

oracle   10435     1  0 22:08 ?        00:00:00 ora_dbw0_TEST

oracle   10437     1  0 22:08 ?        00:00:00 ora_lgwr_TEST

oracle   10439     1  0 22:08 ?        00:00:00 ora_ckpt_TEST

oracle   10441     1  0 22:08 ?        00:00:00 ora_smon_TEST

oracle   10443     1  0 22:08 ?        00:00:00 ora_reco_TEST

oracle   10445     1  0 22:08 ?        00:00:00 ora_cjq0_TEST

oracle   10447     1  0 22:08 ?        00:00:00 ora_mmon_TEST

oracle   10449     1  0 22:08 ?        00:00:00 ora_mmnl_TEST

oracle   10451     1  0 22:08 ?        00:00:00 ora_d000_TEST

oracle   10453     1  0 22:08 ?        00:00:00 ora_s000_TEST

oracle   10458     1  0 22:08 ?        00:00:00 ora_qmnc_TEST

oracle   10464     1  0 22:08 ?        00:00:00 ora_p000_TEST

oracle   10466     1  0 22:08 ?        00:00:00 ora_p001_TEST

oracle   10468     1  0 22:08 ?        00:00:00 ora_p002_TEST

oracle   10470     1  0 22:08 ?        00:00:00 ora_p003_TEST

oracle   10476     1  0 22:08 ?        00:00:00 ora_q000_TEST

oracle   10478     1  0 22:08 ?        00:00:00 ora_q001_TEST

oracle   10521 10012  0 22:10 pts/1    00:00:00 grep ora_

[oracle@sql ~]$ sqlplus sys/123 as sysdba

 

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 24 22:10:51 2012

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

 

SQL> select open_mode from V$database;

 

OPEN_MODE

----------

READ WRITE

 

SQL> 

 

 

 

你可能感兴趣的:(Oracle安装)