Redhat安裝Oracle 11G 數據庫

環境:Redhat 6.5 + Oracle 11G
一、關閉Linux防火牆、禁用Selinuxlinux

二、安裝須要的RPM包
yum install -y binutils compat-libcap compat-libstdc gcc gcc-c++ glibc glibc-devel libgcc libstdc libstdc++-devel libaio libaio-devel make sysstat unixODBC unixODBC-devel pdkshc++

三、建立OS用戶組、用戶
groupadd oinstall
groupadd dba
useradd –g oinstall –G dba oraclesql

四、配置內核參數
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1043888128
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
sysctl -p(手動執行生效命令)數據庫

五、配置限制條件
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536bash

六、建立安裝目錄
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/oracle

七、配置oracle用戶環境變量
vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATHapp

八、打開xmanager passive,在系統中執行
[root@localhost ~]# export DISPLAY=192.168.1.100:0.0
(IP爲須要進行接收oracle 圖形化界面安裝的機器)ide

九、安裝oracle 數據庫(安裝數據庫軟件、建立監聽netca、建立數據庫dbca)
[oracle@localhost ~]$ cd /soft/database/
[oracle@localhost database]$ ./runInstaller
(1)打開oracle 11g安裝界面3d

Redhat安裝Oracle 11G 數據庫
(2)跳過軟件更新
Redhat安裝Oracle 11G 數據庫
(3)僅安裝數據庫軟件
Redhat安裝Oracle 11G 數據庫
(4)單實例數據庫安裝
Redhat安裝Oracle 11G 數據庫
(5)選擇安裝路徑
Redhat安裝Oracle 11G 數據庫
(6)執行配置腳本
Redhat安裝Oracle 11G 數據庫
Redhat安裝Oracle 11G 數據庫
(7)安裝完成
Redhat安裝Oracle 11G 數據庫unix

十、配置數據庫監聽
(1)oracle 用戶下執行 netca命令
[oracle@localhost ~]$ netca
(2)彈出配置界面Redhat安裝Oracle 11G 數據庫
(3)一直下一步直到完成便可

十一、安裝數據庫
(1)在oracle 用戶下執行dbca命令
[oracle@localhost ~]$ dbca
(2)彈出安裝界面
Redhat安裝Oracle 11G 數據庫
(3)建立數據庫
Redhat安裝Oracle 11G 數據庫
(4)爲數據庫用戶建立密碼(此處選擇建立統一的密碼)
Redhat安裝Oracle 11G 數據庫
(5)選擇數據庫存儲類型(此處選擇File System)
Redhat安裝Oracle 11G 數據庫
(6)開啓並指定閃回區域(根據實際需求開啓或關閉)
Redhat安裝Oracle 11G 數據庫
(7)選擇示例方案(根據實際需求啓用或關閉)
Redhat安裝Oracle 11G 數據庫
(8)配置共享內存、字符集等信息
Redhat安裝Oracle 11G 數據庫
(9)單擊完成後,數據庫開始安裝
Redhat安裝Oracle 11G 數據庫
(10)進入數據庫,並查看數據庫狀態
[oracle@localhost ~]$ sqlplus / as sysdba
SQL> show user;
USER is "SYS"
SQL> select status from v$instance;

STATUS

OPEN

相關文章
相關標籤/搜索