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> 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章