Oracle 10g 在linux redhat 5.3系統安裝圖解全過程

Oracle 10g 在linux redhat 5.3系統安裝圖解全過程
 
 
 

1

,安裝相關的軟件包

 

,安裝相關的軟件包

 

清單如下:

binutils-2.15.92.0.2-13.EL4

compat-db-4.1.25-9

compat-libstdc++-296-2.96-132.7.2

control-center-2.8.0-12

gcc-3.4.3-22.1.EL4

gcc-c++-3.4.3-22.1.EL44

glibc-2.3.4-2.9

glibc-common-2.3.4-2.9

gnome-libs-1.4.1.2.90-44.1

libstdc++-3.4.3-22.1

libstdc++-devel-3.4.3-22.1

make-3.80-5

pdksh-5.2.14-30

sysstat-5.0.5-1

xscreensaver-4.18-5.rhel4.2

setarch-1.6-1

libaio-0.3.103-3

libXp(as 5)

 

2,編輯vi /etc/sysctl.conf文件,末尾添加如下行(原文件如有重複的,屏蔽掉)

kernel.shmall = 2097152

kernel.shmmax = 268435456

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

執行命令生效:/sbin/sysctl –p

 

3,編輯vi /etc/security/limits.conf文件,在末尾添加下列行

oracle           soft    nproc   2047

oracle           hard    nproc   16384

oracle           soft    nofile  1024

oracle           hard    nofile  65536

 

4,建立相關的安裝目錄

 

mkdir /u01

mkdir /u01/app

mkdir /u01/app/oracle

 

5,建立dba,oinstall組與oracle用戶

#groupadd oinstall

#groupadd dba

#useradd -g oinstall -G dba -d /u01/app/oracle oracle -s bin/bash

#passwd oracle

#chown -R oracle.oinstall /u01

 

6,執行命令,使其進入圖形安裝模式

xhost +

 

7,切換到oracle用戶 (su  - oracle)

編輯.bash_profile文件,添加如下行,設置oracle用戶的環境變量

 

TMP=/tmp;export TMP

TMPDIR=$TMP;export TMPDIR

ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME

ORACLE_SID=orcl;export ORACLE_SID

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

PATH=$ORACLE_HOME/bin:$PATH; export PATH

執行命令,立即生效:source /u01/app/oracle/.bash_profile

 

8,解壓oracle安裝文件

tar  -xvzf 10201_database_linux32.tar.gz

 

9,安裝oracle

執行命令./runInstaller

 

10,下面是安裝過程圖解

 

 

 

 

安裝完成之後,再執行兩個腳本就可以了:

使用root用戶來執行該腳本,分別執行/u01/app/oracle/oraInventory/orainstRoot.sh/u01/app/oracle/product/10.2.0/db_1/root.sh

退出安裝界面

切換到oracle用戶進入SQL操作界面:

Sqlplus / as sysdba    (sqlplus / nolog)

SQL>

 

查看是否可以進入web界面管理oracle10g數據庫

執行命令:emctl status dbconsole

啓動web界面:emctl start dbconsole

停止web界面:emctl stop dbconsole

(默認安裝完oracle之後就已經啓動oracle 10g web的管理界面)

在火狐瀏覽器輸入http://127.0.0.1 :1158/em進入web操作界面

轉自:http://blog.chinaunix.net/u3/94782/showart_2041791.html

發佈了18 篇原創文章 · 獲贊 3 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章