ORACLE11GR2 For Linux RAC安裝筆記
作業系統開發包欄全都安裝
公共,私有網路卡全都在安裝作業系統的時候進行ip地址的設定
開啟telnet ftp
安裝中不使用防火牆和selinux
gateway地址要設定對
時間要矯正
私有網路卡不可以用反線連線
rsh rlogin 要選裝
環境 oracle 11.2.0.1.0 grid+database 64bit
oracle enterprise server linux 5.4 64bit
設定到init 3
取消sendmail
設定root到中文
####################################
安裝中需要選擇的欄
Desktop Environments
GNOME Desktop Environment
Applications
Editors
Graphical Internet
Text-based Internet
Development
Development Libraries
Development Tools
Legacy Software Development
Servers
Server Configuration Tools
Base System
Administration Tools
Base
Java
Legacy Software Support
System Tools
X Window System
####################################
必須選擇的補丁
64 位 (x86_64) 安裝
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3(32 位)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24(32 位)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5(32 位)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106(32 位)
libaio-devel-0.3.106 -----------
libaio-devel-0.3.106(32 位) ----------
libgcc-4.1.2
libgcc-4.1.2(32 位)
libstdc++-4.1.2
libstdc++-4.1.2(32 位)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2 -----------
unixODBC-2.2.11 -----------
unixODBC-2.2.11(32 位) -----------
unixODBC-devel-2.2.11 -----------
unixODBC-devel-2.2.11(32 位)-----------
####################################
192.168.0.5 racnode1
192.168.0.7 racnode1-vip
192.168.0.6 racnode2
192.168.0.8 racnode2-vip
192.168.5.5 racnode1-priv
192.168.5.6 racnode2-priv
192.168.0.4 racnode-cluster-scan
####################################
刪除
::1 localhost6.localdomain6 localhost6
確保 /etc/hosts 檔案的環回地址中不包含節點名(racnode1 或 racnode2)。如果計算機名出現在環回地址條目中,如下所示:
127.0.0.1 racnode1 localhost.localdomain localhost
不配置防火牆選項
####################################
叢集時間同步服務
root下執行
/sbin/service ntpd stop
chkconfig ntpd off
mv /etc/ntp.conf /etc/ntp.conf.original
rm /var/run/ntpd.pid
在安裝後,要確認 ctssd 處於活動狀態,請作為網格安裝所有者 (grid) 輸入以下命令:
[grid@racnode1 ~]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 0
########################################
iscsi裝置的載入
[root@racnode1 rpm]# rpm -ivh iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm
warning: iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:iscsi-initiator-utils ########################################### [100%]
[root@racnode1 rpm]# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})n"| grep iscsi-initiator-utils
iscsi-initiator-utils-6.2.0.871-0.10.el5 (x86_64)
[root@racnode1 rpm]#
[root@racnode1 rpm]# service iscsid start
[ OK ]off network shutdown. Starting iSCSI daemon: [ OK ]
[ OK ]
[root@racnode1 rpm]#
[root@racnode1 rpm]# chkconfig iscsid on
[root@racnode1 rpm]# chkconfig iscsi on
[root@racnode1 rpm]# iscsiadm -m discovery -t sendtargets -p 192.168.0.10
192.168.0.10:3260,1 iqn.2006-01.com.openfiler:asm.data
[root@racnode1 rpm]# iscsiadm -m node -T iqn.2006-01.com.openfiler:asm.data -p 192.168.0.10 -l
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:asm.data, portal: 192.168.0.10,3260]
Login to [iface: default, target: iqn.2006-01.com.openfiler:asm.data, portal: 192.168.0.10,3260]: successful
iscsiadm -m node -T iqn.2006-01.com.openfiler:asm.asm1 -p 192.168.0.10 --op update -n node.startup -v automatic
########################################
將以下行新增到 /etc/modprobe.conf:
options sbp2 exclusive_login=0
alias scsi_hostadapter sbp2
########################################
安裝儲存控制卡驅動等
詳細參考在 Oracle Enterprise Linux 和 iSCSI 上構建您自己的 Oracle RAC 叢集.htm
最後確認在一個機器上使用fdisk劃分出的分割槽後 第2臺機器可以看到
# partprobe
# fdisk -l
此時進行系統重新啟動來驗證
####################################
為 Grid Infrastructure 建立組和使用者
在本節中,我們首先在兩個 Oracle RAC 節點上為 Grid Infrastructure 建立推薦的作業系統組和使用者:
groupadd -g 1000 oinstall
groupadd -g 1200 asmadmin
groupadd -g 1201 asmdba
groupadd -g 1202 asmoper
useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash -c "Grid Infrastructure Owner" grid
[root@racnode1 ~]# id grid
uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper)
設定 grid 帳戶的口令:
[root@racnode1 ~]# passwd grid
Changing password for user grid.
New UNIX password: xxxxxxxxxxx
Retype new UNIX password: xxxxxxxxxxx
passwd: all authentication tokens updated successfully.
[root@racnode1 ~]# su - grid
# ---------------------------------------------------
# .bash_profile
# ---------------------------------------------------
# OS User: grid
# Application: Oracle Grid Infrastructure
# Version: Oracle 11g release 2
# ---------------------------------------------------
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
alias ls="ls -FA"
# ---------------------------------------------------
# ORACLE_SID
# ---------------------------------------------------
# Specifies the Oracle system identifier (SID)
# for the Automatic Storage Management (ASM)instance
# running on this node.
# Each RAC node must have a unique ORACLE_SID.
# (i.e. +ASM1, +ASM2,...)
# ---------------------------------------------------
ORACLE_SID=+ASM1; export ORACLE_SID
# ---------------------------------------------------
# JAVA_HOME
# ---------------------------------------------------
# Specifies the directory of the Java SDK and Runtime
# Environment.
# ---------------------------------------------------
JAVA_HOME=/usr/local/java; export JAVA_HOME
# ---------------------------------------------------
# ORACLE_BASE
# ---------------------------------------------------
# Specifies the base of the Oracle directory structure
# for Optimal Flexible Architecture (OFA) compliant
# installations. The Oracle base directory for the
# grid installation owner is the location where
# diagnostic and administrative logs, and other logs
# associated with Oracle ASM and Oracle Clusterware
# are stored.
# ---------------------------------------------------
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
# ---------------------------------------------------
# ORACLE_HOME
# ---------------------------------------------------
# Specifies the directory containing the Oracle
# Grid Infrastructure software. For grid
# infrastructure for a cluster installations, the Grid
# home must not be placed under one of the Oracle base
# directories, or under Oracle home directories of
# Oracle Database installation owners, or in the home
# directory of an installation owner. During
# installation, ownership of the path to the Grid
# home is changed to root. This change causes
# permission errors for other installations.
# ---------------------------------------------------
ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME
# ---------------------------------------------------
# ORACLE_PATH
# ---------------------------------------------------
# Specifies the search path for files used by Oracle
# applications such as SQL*Plus. If the full path to
# the file is not specified, or if the file is not
# in the current directory, the Oracle application
# uses ORACLE_PATH to locate the file.
# This variable is used by SQL*Plus, Forms and Menu.
# ---------------------------------------------------
ORACLE_PATH=/u01/app/oracle/common/oracle/sql; export ORACLE_PATH
# ---------------------------------------------------
# SQLPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# SQL*Plus searches for a login.sql file.
# ---------------------------------------------------
# SQLPATH=/u01/app/common/oracle/sql; export SQLPATH
# ---------------------------------------------------
# ORACLE_TERM
# ---------------------------------------------------
# Defines a terminal definition. If not set, it
# defaults to the value of your TERM environment
# variable. Used by all character mode products.
# ---------------------------------------------------
ORACLE_TERM=xterm; export ORACLE_TERM
# ---------------------------------------------------
# NLS_DATE_FORMAT
# ---------------------------------------------------
# Specifies the default date format to use with the
# TO_CHAR and TO_DATE functions. The default value of
# this parameter is determined by NLS_TERRITORY. The
# value of this parameter can be any valid date
# format mask, and the value must be surrounded by
# double quotation marks. For example:
#
# NLS_DATE_FORMAT = "MM/DD/YYYY"
#
# ---------------------------------------------------
NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT
# ---------------------------------------------------
# TNS_ADMIN
# ---------------------------------------------------
# Specifies the directory containing the Oracle Net
# Services configuration files like listener.ora,
# tnsnames.ora, and sqlnet.ora.
# ---------------------------------------------------
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
# ---------------------------------------------------
# ORA_NLS11
# ---------------------------------------------------
# Specifies the directory where the language,
# territory, character set, and linguistic definition
# files are stored.
# ---------------------------------------------------
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
# ---------------------------------------------------
# PATH
# ---------------------------------------------------
# Used by the shell to locate executable programs;
# must include the $ORACLE_HOME/bin directory.
# ---------------------------------------------------
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH
# ---------------------------------------------------
# LD_LIBRARY_PATH
# ---------------------------------------------------
# Specifies the list of directories that the shared
# library loader searches to locate shared object
# libraries at runtime.
# ---------------------------------------------------
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
# ---------------------------------------------------
# CLASSPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# contain compiled Java classes.
# ---------------------------------------------------
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH
# ---------------------------------------------------
# THREADS_FLAG
# ---------------------------------------------------
# All the tools in the JDK use green threads as a
# default. To specify that native threads should be
# used, set the THREADS_FLAG environment variable to
# "native". You can revert to the use of green
# threads by setting THREADS_FLAG to the value
# "green".
# ---------------------------------------------------
THREADS_FLAG=native; export THREADS_FLAG
# ---------------------------------------------------
# TEMP, TMP, and TMPDIR
# ---------------------------------------------------
# Specify the default directories for temporary
# files; if set, tools that create temporary files
# create them in one of these directories.
# ---------------------------------------------------
export TEMP=/tmp
export TMPDIR=/tmp
# ---------------------------------------------------
# UMASK
# ---------------------------------------------------
# Set the default file mode creation mask
# (umask) to 022 to ensure that the user performing
# the Oracle software installation creates files
# with 644 permissions.
# ---------------------------------------------------
umask 022
####################################
為 Oracle 資料庫軟體建立組和使用者
接下來,我們在兩個 Oracle RAC 節點上為 Oracle 資料庫軟體建立推薦的作業系統組和使用者:
groupadd -g 1300 dba
groupadd -g 1301 oper
useradd -m -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle
[root@racnode1 ~]# id oracle
uid=1101(oracle) gid=1000(oinstall) groups=1000(oinstall),1201(asmdba),1300(dba),1301(oper)
設定 oracle 帳戶的口令:
[root@racnode1 ~]# passwd oracle
Changing password for user oracle.
New UNIX password: xxxxxxxxxxx
Retype new UNIX password: xxxxxxxxxxx
passwd: all authentication tokens updated successfully.
[root@racnode1 ~]# su - oracle
# ---------------------------------------------------
# .bash_profile
# ---------------------------------------------------
# OS User: oracle
# Application: Oracle Database Software Owner
# Version: Oracle 11g release 2
# ---------------------------------------------------
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
alias ls="ls -FA"
# ---------------------------------------------------
# ORACLE_SID
# ---------------------------------------------------
# Specifies the Oracle system identifier (SID) for
# the Oracle instance running on this node.
# Each RAC node must have a unique ORACLE_SID.
# (i.e. racdb1, racdb2,...)
# ---------------------------------------------------
ORACLE_SID=racdb1; export ORACLE_SID
# ---------------------------------------------------
# ORACLE_UNQNAME
# ---------------------------------------------------
# In previous releases of Oracle Database, you were
# required to set environment variables for
# ORACLE_HOME and ORACLE_SID to start, stop, and
# check the status of Enterprise Manager. With
# Oracle Database 11g release 2 (11.2) and later, you
# need to set the environment variables ORACLE_HOME
# and ORACLE_UNQNAME to use Enterprise Manager.
# Set ORACLE_UNQNAME equal to the database unique
# name.
# ---------------------------------------------------
ORACLE_UNQNAME=racdb; export ORACLE_UNQNAME
# ---------------------------------------------------
# JAVA_HOME
# ---------------------------------------------------
# Specifies the directory of the Java SDK and Runtime
# Environment.
# ---------------------------------------------------
JAVA_HOME=/usr/local/java; export JAVA_HOME
# ---------------------------------------------------
# ORACLE_BASE
# ---------------------------------------------------
# Specifies the base of the Oracle directory structure
# for Optimal Flexible Architecture (OFA) compliant
# database software installations.
# ---------------------------------------------------
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
# ---------------------------------------------------
# ORACLE_HOME
# ---------------------------------------------------
# Specifies the directory containing the Oracle
# Database software.
# ---------------------------------------------------
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
# ---------------------------------------------------
# ORACLE_PATH
# ---------------------------------------------------
# Specifies the search path for files used by Oracle
# applications such as SQL*Plus. If the full path to
# the file is not specified, or if the file is not
# in the current directory, the Oracle application
# uses ORACLE_PATH to locate the file.
# This variable is used by SQL*Plus, Forms and Menu.
# ---------------------------------------------------
ORACLE_PATH=/u01/app/common/oracle/sql; export ORACLE_PATH
# ---------------------------------------------------
# SQLPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# SQL*Plus searches for a login.sql file.
# ---------------------------------------------------
# SQLPATH=/u01/app/common/oracle/sql; export SQLPATH
# ---------------------------------------------------
# ORACLE_TERM
# ---------------------------------------------------
# Defines a terminal definition. If not set, it
# defaults to the value of your TERM environment
# variable. Used by all character mode products.
# ---------------------------------------------------
ORACLE_TERM=xterm; export ORACLE_TERM
# ---------------------------------------------------
# NLS_DATE_FORMAT
# ---------------------------------------------------
# Specifies the default date format to use with the
# TO_CHAR and TO_DATE functions. The default value of
# this parameter is determined by NLS_TERRITORY. The
# value of this parameter can be any valid date
# format mask, and the value must be surrounded by
# double quotation marks. For example:
#
# NLS_DATE_FORMAT = "MM/DD/YYYY"
#
# ---------------------------------------------------
NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT
# ---------------------------------------------------
# TNS_ADMIN
# ---------------------------------------------------
# Specifies the directory containing the Oracle Net
# Services configuration files like listener.ora,
# tnsnames.ora, and sqlnet.ora.
# ---------------------------------------------------
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
# ---------------------------------------------------
# ORA_NLS11
# ---------------------------------------------------
# Specifies the directory where the language,
# territory, character set, and linguistic definition
# files are stored.
# ---------------------------------------------------
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
# ---------------------------------------------------
# PATH
# ---------------------------------------------------
# Used by the shell to locate executable programs;
# must include the $ORACLE_HOME/bin directory.
# ---------------------------------------------------
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH
# ---------------------------------------------------
# LD_LIBRARY_PATH
# ---------------------------------------------------
# Specifies the list of directories that the shared
# library loader searches to locate shared object
# libraries at runtime.
# ---------------------------------------------------
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
# ---------------------------------------------------
# CLASSPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# contain compiled Java classes.
# ---------------------------------------------------
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH
# ---------------------------------------------------
# THREADS_FLAG
# ---------------------------------------------------
# All the tools in the JDK use green threads as a
# default. To specify that native threads should be
# used, set the THREADS_FLAG environment variable to
# "native". You can revert to the use of green
# threads by setting THREADS_FLAG to the value
# "green".
# ---------------------------------------------------
THREADS_FLAG=native; export THREADS_FLAG
# ---------------------------------------------------
# TEMP, TMP, and TMPDIR
# ---------------------------------------------------
# Specify the default directories for temporary
# files; if set, tools that create temporary files
# create them in one of these directories.
# ---------------------------------------------------
export TEMP=/tmp
export TMPDIR=/tmp
# ---------------------------------------------------
# UMASK
# ---------------------------------------------------
# Set the default file mode creation mask
# (umask) to 022 to ensure that the user performing
# the Oracle software installation creates files
# with 644 permissions.
# ---------------------------------------------------
umask 022
要確定該使用者是否存在,輸入以下命令:
# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
####################################
建立 Oracle 基目錄路徑
mkdir -p /u01/app/grid
mkdir -p /u01/app/11.2.0/grid
chown -R gridinstall /u01
mkdir -p /u01/app/oracle
chown oracleinstall /u01/app/oracle
chmod -R 775 /u01
####################################
為 Oracle 軟體安裝使用者設定資源限制
[root@racnode1 ~]# cat >> /etc/security/limits.conf <> /etc/pam.d/login <> /etc/profile <> /etc/sysctl.conf <> /etc/modprobe.conf
echo "/sbin/modprobe hangcheck-timer" >> /etc/rc.local
modprobe hangcheck-timer
grep Hangcheck /var/log/messages | tail -2
####################################
如果沒有 SSH,安裝程式會嘗試使用 rsh 和 rcp 命令取代 ssh 和 scp
chkconfig rsh on
chkconfig rlogin on
service xinetd reload
Reloading configuration:[ OK ]
要使“oracle”UNIX 使用者帳戶在 RAC 節點中獲得信任,在叢集中的所有節點上建立 /etc/hosts.equiv 檔案:
# su -
touch /etc/hosts.equiv
chmod 600 /etc/hosts.equiv
chown root.root /etc/hosts.equiv
現在,將所有 RAC 節點新增到叢集中類似於以下示例的所有節點的 /etc/hosts.equiv 檔案中:
# cat /etc/hosts.equiv
+racnode1 oracle
+racnode2 oracle
+racnode1-priv oracle
+racnode2-priv oracle
+racnode1 grid
+racnode2 grid
+racnode1-priv grid
+racnode2-priv grid
mv /usr/kerberos/bin/rsh /usr/kerberos/bin/rsh.original
mv /usr/kerberos/bin/rcp /usr/kerberos/bin/rcp.original
mv /usr/kerberos/bin/rlogin /usr/kerberos/bin/rlogin.original
####################################
使用標準 Linux I/O 的 ASM:此方法不使用 ASMLib。此方法使用標準 Linux I/O 系統呼叫在 ASM 管理的原始字元裝置 上建立所有的 Oracle 資料庫檔案。您將需要為 ASM 使用的所有磁碟分割槽建立原始裝置
編輯檔案 /etc/sysconfig/rawdevices,如下所示:
# raw device bindings
# format:
#
# example:/dev/raw/raw1 /dev/sda1
# /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdb2
########################################
chown grid:asmadmin /dev/raw/raw1; chmod 660 /dev/raw/raw1
chown grid:asmadmin /dev/raw/raw2; chmod 660 /dev/raw/raw2
rc3.d
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH
case "$1" in
start)
chown grid:asmadmin /dev/raw/raw1; chmod 660 /dev/raw/raw1
chown grid:asmadmin /dev/raw/raw2; chmod 660 /dev/raw/raw2
echo "start-----`date`" >> /root/chmod.log
;;
stop)
echo "stop######`date`" >> /root/chmod.log
;;
*)
echo "Usage: test1 {start|stop}"
exit 1
esac
exit 0
此時 建立在 /etc/rc3.d中 S88raws
chmod 755 S88raws
vi /etc/inittab 改成 3
dd if=/dev/zero of=/dev/raw/raw1 bs=819200 count=128
dd if=/dev/zero of=/dev/raw/raw2 bs=819200 count=128
####################################
以 grid 使用者身份解壓縮 Oracle Grid Infrastructure 軟體:
mkdir -p /home/grid/software/oracle
mv linux.x64_11gR2_grid.zip /home/grid/software/oracle
cd /home/grid/software/oracle
unzip linux.x64_11gR2_grid.zip
以 oracle 使用者身份解壓縮 Oracle Database 和 Oracle Examples 軟體:
mkdir -p /home/oracle/software/oracle
mv linux.x64_11gR2_database_1of2.zip /home/oracle/software/oracle
mv linux.x64_11gR2_database_2of2.zip /home/oracle/software/oracle
mv linux.x64_11gR2_examples.zip /home/oracle/software/oracle
cd /home/oracle/software/oracle
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
unzip linux.x64_11gR2_examples.zip
####################################
驗證有效性
要安裝 cvuqdisk RPM,執行以下步驟:
找到 cvuqdisk RPM 程式包,位於 racnode1 節點中安裝介質的 rpm 目錄下:
[racnode1]: /home/grid/software/oracle/grid/rpm/cvuqdisk-1.0.7-1.rpm
以 grid 使用者帳戶將 cvuqdisk 程式包從 racnode1 複製到 racnode2:
[racnode2]: /home/grid/software/oracle/grid/rpm/cvuqdisk-1.0.7-1.rpm
以 root 使用者身份分別登入到兩個 Oracle RAC 節點:
[grid@racnode1 rpm]$ su
[grid@racnode2 rpm]$ su
設定環境變數 CVUQDISK_GRP,使其指向作為 cvuqdisk 的所有者所在的組(本文為 oinstall):
[root@racnode1 rpm]# CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
[root@racnode2 rpm]# CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
在儲存 cvuqdisk RPM 的目錄中,使用以下命令在兩個 Oracle RAC 節點上安裝 cvuqdisk 程式包:
[root@racnode1 rpm]# rpm -iv cvuqdisk-1.0.7-1.rpm
Preparing packages for installation...
cvuqdisk-1.0.7-1
[root@racnode2 rpm]# rpm -iv cvuqdisk-1.0.7-1.rpm
Preparing packages for installation...
cvuqdisk-1.0.7-1
grid 使用者在將要執行 Oracle 安裝的節點 (racnode1) 上執行
grid@racnode1 ~]$ cd /home/grid/software/oracle/grid
[grid@racnode1 grid]$ ./runcluvfy.sh stage -pre crsinst -n racnode1,racnode2 -fixup -verbose
在 racnode1 節點上以具有使用者等效性配置的 grid 使用者帳戶執行以下命令:
[grid@racnode1 ~]$ cd /home/grid/software/oracle/grid
[grid@racnode1 grid]$ ./runcluvfy.sh stage -post hwos -n racnode1,racnode2 -verbose
####################################
root@racnode1 ~]# mv /usr/bin/nslookup /usr/bin/nslookup.original
然後,新建一個名為 /usr/bin/nslookup 的 shell 指令碼,在該指令碼中用 24.154.1.34 替換主 DNS,用 racnode-cluster-scan 替換 SCAN 主機名,用 192.168.1.187 替換 SCAN IP 地址,如下所示:
#!/bin/bash
HOSTNAME=${1}
if [[ $HOSTNAME = "racnode-cluster-scan" ]]; then
echo "Server: 24.154.1.34"
echo "Address: 24.154.1.34#53"
echo "Non-authoritative answer:"
echo "Name: racnode-cluster-scan"
echo "Address: 192.168.0.4"
else
/usr/bin/nslookup.original $HOSTNAME
fi
最後,將新建的 nslookup shell 指令碼更改為可執行指令碼:
[root@racnode1 ~]# chmod 755 /usr/bin/nslookup
記住要在兩個 Oracle RAC 節點上執行這些操作。
現在,在 Oracle Grid Infrastructure 的安裝過程中,當 CVU 嘗試驗證您的 SCAN 時,它就會成功透過:
[grid@racnode1 ~]$ cluvfy comp scan -verbose
####################################
為叢集安裝 Oracle Grid Infrastructure
僅在叢集的一個 Oracle RAC 節點 (racnode1) 上執行以下安裝過程
餘下圖形部分參考
先能做enable的都做
srvctl enable oc4j
srvctl enable nodeapps -v
然後用root執行
/u01/app/11.2.0/grid/bin/crsctl stop cluster -all
/u01/app/11.2.0/grid/bin/crsctl start cluster -all [@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1046824/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle11gR2 RAC在Linux上的安裝OracleLinux
- Linux下Oracle 11.2.0.1 RAC安裝筆記LinuxOracle筆記
- Oracle11gR2系統安裝筆記(1)Oracle筆記
- linux下安裝oracle11gR2LinuxOracle
- ORACLE11GR2 RAC解除安裝ASM例項步驟OracleASM
- Oracle 12c RAC On linux Using VMwate Workstation(安裝筆記-圖解)一OracleLinux筆記圖解
- Oracle 12c RAC On linux Using VMwate Workstation(安裝筆記-圖解)二OracleLinux筆記圖解
- Oracle 12c RAC On linux Using VMwate Workstation(安裝筆記-圖解)三OracleLinux筆記圖解
- Oracle /RAC linux 安裝大全OracleLinux
- Linux 筆記分享二:Linux 系統安裝Linux筆記
- Linux 筆記分享十四:YUM 線上安裝Linux筆記
- Linux 學習筆記 - 軟體安裝Linux筆記
- AIX6104安裝Oracle11GR2 RAC問題彙總AIOracle
- redhat6.5中Rac11g安裝錯誤筆記Redhat筆記
- linux配置multipath 並安裝racLinux
- Linux 筆記分享十五:原始碼包安裝Linux筆記原始碼
- Linux 筆記分享十六:指令碼安裝包Linux筆記指令碼
- Linux學習筆記-軟體安裝管理Linux筆記
- linux下Nagios安裝學習筆記LinuxiOS筆記
- Manjaro安裝筆記JAR筆記
- laravel安裝筆記Laravel筆記
- ZooKeeper安裝筆記筆記
- oracle11gR2在Oracle Linux 6.0下的安裝OracleLinux
- linux下mysql5.1.73原始碼安裝筆記LinuxMySql原始碼筆記
- 【RAC】RAC安裝錯誤手工解除安裝
- Oracle11GR2 在Linux 5.5 安裝所依賴的包OracleLinux
- linux6.5安裝11g rac過程記錄 一Linux
- linux6.5安裝11g rac過程記錄 二Linux
- 【安裝】安裝centos79的筆記CentOS筆記
- RAC安裝
- 安裝PHP ImageMagick筆記PHP筆記
- Ubuntu安裝docker筆記UbuntuDocker筆記
- influxdb 筆記: 安裝UX筆記
- disconf 安裝筆記筆記
- solr安裝使用筆記Solr筆記
- 黑蘋果安裝筆記蘋果筆記
- 解除安裝Oracle11gr2 for SolarisOracle
- Orace RAC安裝-DNS安裝DNS