安裝Oracle11.2.0.2 RAC for Linux X86-64(三)

yangtingkun發表於2011-05-15

Solaris上安裝過11.2RACLinux上還是第一次。描述一下安裝配置過程。

這一篇描述資料庫的安裝。

安裝Oracle11.2.0.2 RAC for Linux X86-64(一):http://yangtingkun.itpub.net/post/468/517812

安裝Oracle11.2.0.2 RAC for Linux X86-64(二):http://yangtingkun.itpub.net/post/468/517851

 

 

啟動圖形工具,開始DB軟體的安裝:

[root@rac3 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac3 ~]# su - oracle
[oracle@rac3 ~]$ cd /data/software/database
[oracle@rac3 database]$ ./runInstaller

第一個介面是安全更新,可以忽略掉;

第二個是metalink帳號資訊;

安裝選項:選擇只安裝軟體;

網格選擇:預設情況下,安裝型別配置為Oracle Real Application Clusters database installation,這時節點2應該出現,且被選中,如果沒有不是CLUSTER沒有啟動,就是CLUSTER的安裝存在問題。

配置SSH Connectivity:輸入oracle密碼,點選setup

確認兩個節點都選中後,點選NEXT

語言選擇:英文和簡體中文;

資料庫版本:企業版;

安裝位置:Oracle Base輸入/data/oracle,軟體位置輸入/data/oracle/product/11.2.0

作業系統組:輸入dba

系統安裝檢查:執行和安裝CLUSTER類似的步驟,在兩個節點上執行指令碼,使得Oracle可以修改可更新項:

[root@rac3 ~]# /tmp/CVU_11.2.0.2.0_oracle/runfixup.sh
/usr/bin/id
Response file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.enable
Log file location: /tmp/CVU_11.2.0.2.0_oracle/orarun.log
uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba)

忽略掉SWAP空間問題,開始安裝。

安裝結束之前,在兩個節點上執行指令碼:

[root@rac3 data]# /data/oracle/product/11.2.0/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/product/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

oracle使用者下新增環境變數:

umask 022
ORACLE_BASE=/data/oracle
export ORACLE_BASE
ORACLE_HOME=/data/oracle/product/11.2.0
export ORACLE_HOME
ORACLE_SID=rac1
export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
export PATH

利用dbca建立資料庫:

CLUSTER選擇:選擇Oracle Real Application Cluster database

操作型別:選擇建立資料庫;

模板選擇:選擇定製方式;

策略型別:選擇Admin-ManagedGlobal Database Name輸入rac.us.oracle.com,選擇兩個節點;

OEM選擇:是否配置OEM

密碼:輸入SYS/SYSTEM使用者密碼;

儲存位置:選擇ASM,使用OMF,輸入磁碟組DATA

閃回和歸檔:設定是否配置恢復區和歸檔;

元件選擇:選擇安裝資料庫的元件;

初始化引數調整:設定記憶體、BLOCK_SIZE和字符集;

空間設定:設定合適的資料檔案和日誌檔案的大小;

開始資料庫安裝。

資料庫安裝完畢後,登入sqlplus,檢查資料庫:

[root@rac3 data]# su - oracle
[oracle@rac3 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 26 02:26:00 2011

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> set pages 100 lines 120
SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL> select name from v$database;

NAME
---------
RAC

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
rac1

SQL> select instance_number, instance_name from gv$instance;

INSTANCE_NUMBER INSTANCE_NAME
--------------- ----------------
              1 rac1
              2 rac2

至此資料庫安裝完成。

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-695443/,如需轉載,請註明出處,否則將追究法律責任。

相關文章