Redhat安裝Oracle 11G 資料庫

來源:互聯網
上載者:User

標籤:Linux Oracle

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

2、安裝需要的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 pdksh

3、建立OS使用者組、使用者
groupadd oinstall
groupadd dba
useradd –g oinstall –G dba oracle

4、配置核心參數
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(手動執行生效命令)

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

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

7、配置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:$PATH

8、開啟xmanager passive,在系統中執行
[[email protected] ~]# export DISPLAY=192.168.1.100:0.0
(IP為需要進行接收oracle 圖形化介面安裝的機器)

9、安裝oracle 資料庫(安裝資料庫軟體、建立監聽netca、建立資料庫dbca)
[[email protected] ~]$ cd /soft/database/
[[email protected] database]$ ./runInstaller
(1)開啟oracle 11g安裝介面


(2)跳過軟體更新

(3)僅安裝資料庫軟體

(4)單一實例資料庫安裝

(5)選擇安裝路徑

(6)執行配置指令碼


(7)安裝完成

10、設定資料庫監聽
(1)oracle 使用者下執行 netca命令
[[email protected] ~]$ netca
(2)彈出配置介面
(3)一直下一步直到完成即可

11、安裝資料庫
(1)在oracle 使用者下執行dbca命令
[[email protected] ~]$ dbca
(2)彈出安裝介面

(3)建立資料庫

(4)為資料庫使用者建立密碼(此處選擇建立統一的密碼)

(5)選擇資料庫儲存類型(此處選擇File System)

(6)開啟並指定閃回地區(根據實際需求開啟或關閉)

(7)選擇樣本方案(根據實際需求啟用或關閉)

(8)配置共用記憶體、字元集等資訊

(9)單擊完成後,資料庫開始安裝

(10)進入資料庫,並查看資料庫狀態
[[email protected] ~]$ sqlplus / as sysdba
SQL> show user;
USER is "SYS"
SQL> select status from v$instance;

STATUS

OPEN

Redhat安裝Oracle 11G 資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.