11gRAC安裝

路途中的人2012發表於2016-02-22
主hostname:enmoedu1  
副hostname:enmoedu2    
安裝包:
11g oracle軟體:p13390677_112040_Linux-x86-64_1of7.zip;p13390677_112040_Linux-x86-64_2of7.zip
GI軟體:p13390677_112040_Linux-x86-64_3of7.zip

主備host關閉iptabls;NetworkManager;selinux
[root@enmoedu1 Desktop]# uname -a
Linux enmoedu1 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@enmoedu2 Desktop]# uname -a
Linux enmoedu2 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
service iptables stop
service NetworkManager stop
chkconfig iptables off
chkconfig NetworkManager off
vi /etc/sysconfig/selinux 
selinux=disabled
主備host配置yum
[root@enmoedu1 yum.repos.d]# pwd
/etc/yum.repos.d
[root@enmoedu1 yum.repos.d]# ls
public-yum-ol6.repo
[root@enmoedu1 yum.repos.d]# vi public-yum-ol6.repo 
[Server]
name=OEL6.5
baseurl=file:///mnt/Server
gpgcheck=0
enabled=1
[root@enmoedu1 yum.repos.d]# yum repolist
Loaded plugins: refresh-packagekit, security
Server                                                                                                                                           | 3.7 kB     00:00 ... 
Server/primary_db                                                                                                                                | 3.0 MB     00:00 ... 
repo id                                                                          repo name                                                                        status
Server                                                                           OEL6.5                                                                           3,669
repolist: 3,669

[root@enmoedu2 yum.repos.d]# yum repolist
Loaded plugins: refresh-packagekit, security
Server                                                                                                                                           | 3.7 kB     00:00 ... 
Server/primary_db                                                                                                                                | 3.0 MB     00:00 ... 
repo id                                                                          repo name                                                                        status
Server                                                                           OEL6.5                                                                           3,669
repolist: 3,669
主備host安裝rpm包
[root@enmoedu1 yum.repos.d]# yum install binutils compat-libcap1 vsftpd compat-libstdc++-33 iptraf gcc gcc-c++ glibc-devel glibc elfutils-libelf-devel compat-libcap1 compat-libstdc++-33 libaio-devel ksh libgcc libstdc libstdc++ libstdc++-devel libaio libaio-devel make sysstat unixODBC unixODBC-devel -y
[root@enmoedu2 yum.repos.d]# yum install binutils compat-libcap1 vsftpd compat-libstdc++-33 iptraf gcc gcc-c++ glibc-devel glibc elfutils-libelf-devel compat-libcap1 compat-libstdc++-33 libaio-devel ksh libgcc libstdc libstdc++ libstdc++-devel libaio libaio-devel make sysstat unixODBC unixODBC-devel -y
Installed:
  iptraf.x86_64 0:3.0.1-14.el6                 ksh.x86_64 0:20120801-10.el6          libaio-devel.x86_64 0:0.3.107-10.el6      unixODBC.x86_64 0:2.2.14-12.el6_3     
  unixODBC-devel.x86_64 0:2.2.14-12.el6_3      vsftpd.x86_64 0:2.2.2-11.el6_4.1     

Complete!
主庫配置網路卡
[root@enmoedu1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=08:00:27:C8:56:C9
TYPE=Ethernet
UUID=cd7e225f-bf7b-4e2f-9a4b-b639af82680f
ONBOOT=yes
IPADDR=192.168.80.10
NETMASK=255.255.255.0

[root@enmoedu1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
HWADDR=08:00:27:02:96:7A
TYPE=Ethernet
UUID=b13139a0-56fc-4868-a471-3a9f96ad26ca
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.81.10

[root@enmoedu1 ~]# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=enmoedu1
GATEWAY=192.168.80.1
NOZEROCONF=yes

[root@enmoedu2 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=08:00:27:CE:B3:32
TYPE=Ethernet
UUID=5a4b4fb1-0806-4552-9e54-84af08d92459
ONBOOT=yes
IPADDR=192.168.80.11
NETMASK=255.255.255.0


[root@enmoedu2 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
HWADDR=08:00:27:1E:E1:0E
TYPE=Ethernet
UUID=de8b51ea-17f8-4439-9778-3bd973924bc6
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.81.11

[root@enmoedu2 ~]# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=enmoedu2
NOZEROCONF=yes

配置hosts檔案
[root@enmoedu1 ~]# vi /etc/hosts
[root@enmoedu2 ~]# vi /etc/hosts


127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
# enmoedu-rac1
192.168.80.10     enmoedu1.us.oracle.com      enmoedu1
192.168.80.20    enmoedu1-vip.us.oracle.com      enmoedu1-vip
192.168.81.10       enmoedu1-priv.us.oracle.com     enmoedu1-priv


# enmoedu-rac2
192.168.80.11    enmoedu2.us.oracle.com          enmoedu2
192.168.80.21   enmoedu2-vip.us.oracle.com      enmoedu2-vip
192.168.81.11        enmoedu2-priv.us.oracle.com     enmoedu2-priv
#scan
192.168.80.30     enmoedu-scan.us.oracle.com          enmoedu-scan

修改核心引數
[root@enmoedu1 ~]# vim /etc/sysctl.conf
[root@enmoedu2 ~]# vim /etc/sysctl.conf

# Controls the maximum number of shared memory segments, in pages

kernel.shmall = 4294967296
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65500
fs.file-max = 6815744
fs.aio-max-nr = 1048576
[root@enmoedu2 ~]# sysctl -p
[root@enmoedu1 ~]# sysctl -p

限制資源
[root@enmoedu1 ~]# vi /etc/security/limits.conf
[root@enmoedu2 ~]# vi /etc/security/limits.conf


# End of file
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768

新增使用者使用者組;使用者

[root@enmoedu1 ~]# groupadd -g 1000 oinstall 
[root@enmoedu1 ~]# groupadd -g 1001 dba 
[root@enmoedu1 ~]# groupadd -g 1002 oper 
[root@enmoedu1 ~]# groupadd -g 1003 asmadmin 
[root@enmoedu1 ~]# groupadd -g 1004 asmoper 
[root@enmoedu1 ~]# groupadd -g 1005 asmdba 
[root@enmoedu1 ~]# useradd -u 1100 -g oinstall -G dba,oper,asmadmin,asmdba,asmoper   grid
[root@enmoedu1 ~]# useradd -u 1101 -g oinstall -G dba,oper,asmdba   oracle
[root@enmoedu1 ~]# echo "oracle" | passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
[root@enmoedu1 ~]# echo "grid" | passwd --stdin grid
Changing password for user grid.
passwd: all authentication tokens updated successfully.

[root@enmoedu2 ~]# groupadd -g 1000 oinstall 
[root@enmoedu2 ~]# groupadd -g 1001 dba 
[root@enmoedu2 ~]# groupadd -g 1002 oper 
[root@enmoedu2 ~]# groupadd -g 1003 asmadmin 
[root@enmoedu2 ~]# groupadd -g 1004 asmoper 
[root@enmoedu2 ~]# groupadd -g 1005 asmdba 
[root@enmoedu2 ~]# useradd -u 1100 -g oinstall -G dba,oper,asmadmin,asmdba,asmoper   grid
[root@enmoedu2 ~]# useradd -u 1101 -g oinstall -G dba,oper,asmdba   oracle
[root@enmoedu2 ~]# echo "oracle" | passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
[root@enmoedu2 ~]# echo "grid" | passwd --stdin grid
Changing password for user grid.
passwd: all authentication tokens updated successfully.

建立目錄結構

[root@enmoedu1 ~]# mkdir -p /u01/app/grid
[root@enmoedu1 ~]# mkdir -p /u01/app/11.2.0/grid
[root@enmoedu1 ~]# mkdir -p /u01/app/oracle
[root@enmoedu1 ~]# chown -R oracle:oinstall /u01
[root@enmoedu1 ~]# chown -R grid:oinstall /u01/app/grid
[root@enmoedu1 ~]# chown -R grid:oinstall /u01/app/11.2.0
[root@enmoedu1 ~]# chmod -R 775 /u01

[root@enmoedu2 ~]# mkdir -p /u01/app/grid
[root@enmoedu2 ~]# mkdir -p /u01/app/11.2.0/grid
[root@enmoedu2 ~]# mkdir -p /u01/app/oracle
[root@enmoedu2 ~]# chown -R oracle:oinstall /u01
[root@enmoedu2 ~]# chown -R grid:oinstall /u01/app/grid
[root@enmoedu2 ~]# chown -R grid:oinstall /u01/app/11.2.0
[root@enmoedu2 ~]# chmod -R 775 /u01

配置環境變數
[oracle@enmoedu1 ~]$ vi .bash_profile


# .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=enmoedu1.us.oracle.com
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_UNQNAME=PROD
export ORACLE_SID=PROD1
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib 
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
umask 022

[grid@enmoedu1 ~]$ vi .bash_profile

# .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH


export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=enmoedu1.us.oracle.com
export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export NLS_DATE_FORMAT="yy-mm-dd hh24:mi:ss"
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
umask 022

[oracle@enmoedu2 ~]$ vi .bash_profile

# .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=enmoedu2.us.oracle.com
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_UNQNAME=PROD
export ORACLE_SID=PROD2
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib 
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
umask 022

[grid@enmoedu2 ~]$ vi .bash_profile

# .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=enmoedu2.us.oracle.com
export ORACLE_SID=+ASM2
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export NLS_DATE_FORMAT="yy-mm-dd hh24:mi:ss"
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
umask 022

在主備host上手動新增一塊共享硬碟,並分割槽

[root@enmoedu1 ~]# fdisk -l


Disk /dev/sda: 43.1 GB, 43149426688 bytes
255 heads, 63 sectors/track, 5245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d42f9


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        5246    41624576   8e  Linux LVM


Disk /dev/sdb: 46.9 GB, 46880653312 bytes
255 heads, 63 sectors/track, 5699 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@enmoedu1 ~]# fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').


Command (m for help): p


Disk /dev/sdb: 46.9 GB, 46880653312 bytes
255 heads, 63 sectors/track, 5699 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0e63b52d


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         262     2104483+  83  Linux
/dev/sdb2             263         524     2104515   83  Linux
/dev/sdb3             525         786     2104515   83  Linux
/dev/sdb4             787        5699    39463672+   5  Extended
/dev/sdb5             787        4703    31463271   83  Linux
/dev/sdb6            4704        5699     8000338+  83  Linux

配置裸裝置
[root@enmoedu1 ~]# vim /etc/udev/rules.d/99-AsmDisk.rules

ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdb3", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdb5", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw6 %N"
KERNEL=="raw[1-6]*", OWNER="grid", GROUP="asmdba", MODE="775"
[root@enmoedu1 ~]# start_udev
Starting udev:                                             [  OK  ]
[root@enmoedu1 ~]# ll /dev/raw/*
crwxrwxr-x 1 grid asmdba 162, 1 Jan 10 20:47 /dev/raw/raw1
crwxrwxr-x 1 grid asmdba 162, 2 Jan 10 20:47 /dev/raw/raw2
crwxrwxr-x 1 grid asmdba 162, 3 Jan 10 20:47 /dev/raw/raw3
crwxrwxr-x 1 grid asmdba 162, 5 Jan 10 20:47 /dev/raw/raw5
crwxrwxr-x 1 grid asmdba 162, 6 Jan 10 20:47 /dev/raw/raw6
crw-rw---- 1 root disk   162, 0 Jan 10 20:47 /dev/raw/rawctl

[root@enmoedu2 ~]# vim /etc/udev/rules.d/99-AsmDisk.rules

ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdb3", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdb5", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw6 %N"
KERNEL=="raw[1-6]*", OWNER="grid", GROUP="asmdba", MODE="775"
                                                             
[root@enmoedu2 ~]# start_udev
Starting udev:                                             [  OK  ]
[root@enmoedu2 ~]# ll /dev/raw*
total 0
crwxrwxr-x 1 grid asmdba 162, 1 Jan 10 20:52 raw1
crwxrwxr-x 1 grid asmdba 162, 2 Jan 10 20:52 raw2
crwxrwxr-x 1 grid asmdba 162, 3 Jan 10 20:52 raw3
crwxrwxr-x 1 grid asmdba 162, 5 Jan 10 20:52 raw5
crwxrwxr-x 1 grid asmdba 162, 6 Jan 10 20:52 raw6
crw-rw---- 1 root disk   162, 0 Jan 10 20:52 rawctl

安裝GI軟體
[root@enmoedu1 tmp]# unzip p13390677_112040_Linux-x86-64_3of7.zip 
安裝CVUQDISK
[root@enmoedu1 tmp]# cd grid/
[root@enmoedu1 grid]# ls
install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

[root@enmoedu1 grid]# cd rpm/
[root@enmoedu1 rpm]# ls
cvuqdisk-1.0.9-1.rpm
[root@enmoedu1 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm 
Preparing...                ########################################### [100%]
Using default group oinstall to install package
   1:cvuqdisk               ########################################### [100%]

[root@enmoedu1 rpm]# scp cvuqdisk-1.0.9-1.rpm enmoedu2:/tmp
root@enmoedu2's password: 
cvuqdisk-1.0.9-1.rpm                                                                                                                  100% 8288     8.1KB/s   00:00  


[root@enmoedu2 tmp]# rpm -vih cvuqdisk-1.0.9-1.rpm 
Preparing...                ########################################### [100%]
Using default group oinstall to install package
   1:cvuqdisk               ########################################### [100%]
安裝GI前檢查
[grid@enmoedu1 grid]$ ./runcluvfy.sh stage -pre crsinst -n enmoedu1,enmoedu2 -fixup -verbose


Performing pre-checks for cluster services setup 


Checking node reachability...


Check: Node reachability from node "enmoedu1"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  enmoedu2                              yes                     
  enmoedu1                              yes                     
Result: Node reachability check passed from node "enmoedu1"




Checking user equivalence...


Check: User equivalence for user "grid"
  Node Name                             Status                  
  ------------------------------------  ------------------------
  enmoedu2                              failed                  
  enmoedu1                              failed                  
Result: PRVF-4007 : User equivalence check failed for user "grid"


ERROR: 
User equivalence unavailable on all the specified nodes
Verification cannot proceed




Pre-check for cluster services setup was unsuccessful on all the nodes. 

開始安裝
[root@enmoedu1 tmp]# xhost +
access control disabled, clients can connect from any host

[grid@enmoedu1 grid]$ ls
install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html
[grid@enmoedu1 grid]$ ./runInstaller 














點選Add新增節點




點選Setup




























在安裝節點enmoedu1上執行第一個指令碼orainstRoot.sh,再在第二個節點enmoedu2上執行第一個指令碼orainstRoot.sh
同樣在安裝節點enmoedu1上執行第二個指令碼root.sh,再在第二個節點enmoedu2上執行第二個指令碼root.sh
執行順序不可逆!!









[grid@enmoedu1 grid]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.LISTENER.lsnr
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.asm
               ONLINE  ONLINE       enmoedu1                 Started             
               ONLINE  ONLINE       enmoedu2                 Started             
ora.gsd
               OFFLINE OFFLINE      enmoedu1                                     
               OFFLINE OFFLINE      enmoedu2                                     
ora.net1.network
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.ons
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       enmoedu1                                     
ora.cvu
      1        ONLINE  ONLINE       enmoedu1                                     
ora.enmoedu1.vip
      1        ONLINE  ONLINE       enmoedu1                                     
ora.enmoedu2.vip
      1        ONLINE  ONLINE       enmoedu2                                     
ora.oc4j
      1        ONLINE  ONLINE       enmoedu1                                     
ora.scan1.vip
      1        ONLINE  ONLINE       enmoedu1   




安裝oracle軟體
[root@enmoedu1 tmp]# unzip p13390677_112040_Linux-x86-64_1of7.zip 
[root@enmoedu1 tmp]# unzip p13390677_112040_Linux-x86-64_2of7.zip 
[root@enmoedu1 tmp]# su - oracle
[oracle@enmoedu1 ~]$ cd /tmp/database/
[oracle@enmoedu1 database]$ ls
install  readme.html  response  rpm  runInstaller  sshsetup  stage  welcome.html
[oracle@enmoedu1 database]$ ./runInstaller 












點選Setup





















在主備節點上執行指令碼;點選OK;Next


安裝資料庫
新增磁碟組
[oracle@enmoedu1 database]$ su - grid
Password: 
[grid@enmoedu1 ~]$ asmca








[grid@enmoedu1 ~]$ su - oracle
Password: 
[oracle@enmoedu1 ~]$ dbca





















[grid@enmoedu1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASM.dg
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.DATA.dg
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.FRA.dg
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.LISTENER.lsnr
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.asm
               ONLINE  ONLINE       enmoedu1                 Started             
               ONLINE  ONLINE       enmoedu2                 Started             
ora.gsd
               OFFLINE OFFLINE      enmoedu1                                     
               OFFLINE OFFLINE      enmoedu2                                     
ora.net1.network
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
ora.ons
               ONLINE  ONLINE       enmoedu1                                     
               ONLINE  ONLINE       enmoedu2                                     
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       enmoedu1                                     
ora.cvu
      1        ONLINE  ONLINE       enmoedu1                                     
ora.enmoedu1.vip
      1        ONLINE  ONLINE       enmoedu1                                     
ora.enmoedu2.vip
      1        ONLINE  ONLINE       enmoedu2                                     
ora.oc4j
      1        ONLINE  ONLINE       enmoedu1                                     
ora.prod.db
      1        ONLINE  ONLINE       enmoedu1                 Open                
      2        ONLINE  ONLINE       enmoedu2                 Open                
ora.scan1.vip
      1        ONLINE  ONLINE       enmoedu1                   


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

相關文章