SLES11安装参考我的博文

Installation SUSE Linux Enterprise Server 11

vzwc1:~ # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 11 SP3  (x86_64) - Kernel \r (\l).


vzwc1:~ # 

配置/etc/hosts文件

192.168.1.61     vzwc1
192.168.1.161    vzwc1-vip
10.10.10.61      vzwc1-priv


192.168.1.62     vzwc2
192.168.1.162    vzwc2-vip
10.10.10.62      vzwc2-priv

192.168.1.169    vzwc-cluster vzwc-cluster-scan

安装所需的rpm包

vzwc1:~ #  rpm -q binutils gcc gcc-32bit gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit ksh libaio libaio-32bit libaio-devel libaio-devel-32bit libstdc++33 libstdc++33-32bit libstdc++43 libstdc++43-32bit libstdc++43-devel libstdc++43-devel-32bit libgcc43 libstdc++-devel make sysstat unixODBC unixODBC-devel unixODBC-32bit unixODBC-devel-32bit libcap1
binutils-2.23.1-0.17.18
gcc-4.3-62.198
gcc-32bit-4.3-62.198
gcc-c++-4.3-62.198
glibc-2.11.3-17.54.1
glibc-32bit-2.11.3-17.54.1
glibc-devel-2.11.3-17.54.1
glibc-devel-32bit-2.11.3-17.54.1
ksh-93u-0.18.1
libaio-0.3.109-0.1.46
libaio-32bit-0.3.109-0.1.46
libaio-devel-0.3.109-0.1.46
libaio-devel-32bit-0.3.109-0.1.46
libstdc++33-3.3.3-11.9
libstdc++33-32bit-3.3.3-11.9
libstdc++43-4.6.9-0.11.38
libstdc++43-32bit-4.6.9-0.11.38
libstdc++43-devel-4.3.4_20091019-0.37.30
libstdc++43-devel-32bit-4.3.4_20091019-0.37.30
libgcc43-4.6.9-0.11.38
libstdc++-devel-4.3-62.198
make-3.81-128.20
sysstat-8.1.5-7.45.24
unixODBC-2.2.12-198.17
unixODBC-devel-2.2.12-198.17
unixODBC-32bit-2.2.12-198.17
unixODBC-devel-32bit-2.2.12-198.17
libcap1-1.10-6.10


创建oracle用户,用户组

groupadd -g 1000 oinstall 
groupadd -g 1200 asmadmin
groupadd -g 1201 asmdba 
groupadd -g 1202 asmoper 
groupadd -g 1300 dba
groupadd -g 1301 oper
useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper,dba -d /home/grid -s /bin/bash -c "Grid Infrastructure Owner" grid
useradd -m -u 1101 -g oinstall -G dba,oper,asmdba,asmadmin -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle
mkdir -p /u01/app/grid
mkdir -p /u01/app/11.2.0/grid
chown -R grid:oinstall /u01
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01

修改内核参数

/etc/sysctl.conf

vzwc1:~ # echo 1000 > /proc/sys/vm/hugetlb_shm_group 
vzwc1:~ # sysctl -p
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.inotify.max_user_watches = 65536
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
vm.hugetlb_shm_group = 1000
vzwc1:~ # chkconfig boot.sysctl on
/etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
/etc/pam.d/login
session required pam_limits.so

禁用NTP服务

vzwc1:~ # service ntp stop
Shutting down network time protocol daemon (NTPD)                                                                                                                                                              done
vzwc1:~ # chkconfig ntp off
vzwc1:~ # mv /etc/ntp.conf /etc/ntp.conf.bak

配置oracle,grid用户环境变量

oracle

ORACLE_SID=zwc2; export ORACLE_SID
ORACLE_UNQNAME=zwc; export ORACLE_UNQNAME
JAVA_HOME=/usr/local/java; export JAVA_HOME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_PATH=/u01/app/common/oracle/sql; export ORACLE_PATH
ORACLE_TERM=xterm; export ORACLE_TERM

TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG

PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH

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=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH

THREADS_FLAG=native; export THREADS_FLAG

export TEMP=/tmp
export TMPDIR=/tmp

if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
    else
        ulimit -u 16384 -n 65536
    fi
        umask 022
fi

alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
alias asmcmd="rlwrap asmcmd"
alias base="cd $ORACLE_BASE"
alias home="cd $ORACLE_HOME"
grid

ORACLE_SID=+ASM1; export ORACLE_SID
JAVA_HOME=/usr/local/java; export JAVA_HOME
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME
ORACLE_PATH=/u01/app/oracle/common/oracle/sql; export ORACLE_PATH
ORACLE_TERM=xterm; export ORACLE_TERM

TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG

PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH

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=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH

THREADS_FLAG=native; export THREADS_FLAG

export TEMP=/tmp
export TMPDIR=/tmp

if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
    else
        ulimit -u 16384 -n 65536
    fi
        umask 022
fi

alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
alias asmcmd="rlwrap asmcmd"
alias base="cd $ORACLE_BASE"
alias home="cd $ORACLE_HOME"

SUSE Linux下UDEV配置ASMdisk参考我的博文

SUSE Linux 使用UDEV配置ASMdisk


使用grid用户检查安装环境,忽略DNS错误

rid@vzwc1:~/grid> ./runcluvfy.sh stage -pre crsinst -n vzwc1,vzwc2 -fixup -verbose

Performing pre-checks for cluster services setup 

Checking node reachability...

Check: Node reachability from node "vzwc1"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  vzwc1                                 yes                     
  vzwc2                                 yes                     
Result: Node reachability check passed from node "vzwc1"


Checking user equivalence...

Check: User equivalence for user "grid"
  Node Name                             Status                  
  ------------------------------------  ------------------------
  vzwc2                                 passed                  
  vzwc1                                 passed                  
Result: User equivalence check passed for user "grid"

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status                  
  ------------------------------------  ------------------------
  vzwc2                                 passed                  
  vzwc1                                 passed                  

Verification of the hosts config file successful


Interface information for node "vzwc2"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.1.62    192.168.1.0     0.0.0.0         192.168.1.1     08:00:27:A1:B7:23 1500  
 eth1   10.10.10.62     10.10.10.0      0.0.0.0         192.168.1.1     08:00:27:DA:FB:17 1500  


Interface information for node "vzwc1"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.1.61    192.168.1.0     0.0.0.0         192.168.1.1     08:00:27:13:CE:76 1500  
 eth1   10.10.10.61     10.10.10.0      0.0.0.0         192.168.1.1     08:00:27:9F:D3:62 1500  


Check: Node connectivity of subnet "192.168.1.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  vzwc2[192.168.1.62]             vzwc1[192.168.1.61]             yes             
Result: Node connectivity passed for subnet "192.168.1.0" with node(s) vzwc2,vzwc1


Check: TCP connectivity of subnet "192.168.1.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  vzwc1:192.168.1.61              vzwc2:192.168.1.62              passed          
Result: TCP connectivity check passed for subnet "192.168.1.0"


Check: Node connectivity of subnet "10.10.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  vzwc2[10.10.10.62]              vzwc1[10.10.10.61]              yes             
Result: Node connectivity passed for subnet "10.10.10.0" with node(s) vzwc2,vzwc1


Check: TCP connectivity of subnet "10.10.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  vzwc1:10.10.10.61               vzwc2:10.10.10.62               passed          
Result: TCP connectivity check passed for subnet "10.10.10.0"


Interfaces found on subnet "192.168.1.0" that are likely candidates for VIP are:
vzwc2 eth0:192.168.1.62
vzwc1 eth0:192.168.1.61

Interfaces found on subnet "10.10.10.0" that are likely candidates for a private interconnect are:
vzwc2 eth1:10.10.10.62
vzwc1 eth1:10.10.10.61
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.1.0".
Subnet mask consistency check passed for subnet "10.10.10.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed

Checking multicast communication...

Checking subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0" passed.

Checking subnet "10.10.10.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "10.10.10.0" for multicast communication with multicast group "230.0.1.0" passed.

Check of multicast communication passed.

Checking ASMLib configuration.
  Node Name                             Status                  
  ------------------------------------  ------------------------
  vzwc2                                 passed                  
  vzwc1                                 passed                  
Result: Check for ASMLib configuration passed.

Check: Total memory 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         3.8676GB (4055444.0KB)    1.5GB (1572864.0KB)       passed    
  vzwc1         3.8676GB (4055444.0KB)    1.5GB (1572864.0KB)       passed    
Result: Total memory check passed

Check: Available memory 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         3.6958GB (3875336.0KB)    50MB (51200.0KB)          passed    
  vzwc1         3.6042GB (3779284.0KB)    50MB (51200.0KB)          passed    
Result: Available memory check passed

Check: Swap space 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         3.998GB (4192252.0KB)     3.8676GB (4055444.0KB)    passed    
  vzwc1         3.998GB (4192252.0KB)     3.8676GB (4055444.0KB)    passed    
Result: Swap space check passed

Check: Free disk space for "vzwc2:/tmp" 
  Path              Node Name     Mount point   Available     Required      Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              vzwc2         /             30.9814GB     1GB           passed      
Result: Free disk space check passed for "vzwc2:/tmp"

Check: Free disk space for "vzwc1:/tmp" 
  Path              Node Name     Mount point   Available     Required      Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              vzwc1         /             27.0689GB     1GB           passed      
Result: Free disk space check passed for "vzwc1:/tmp"

Check: User existence for "grid" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  vzwc2         passed                    exists(1100)            
  vzwc1         passed                    exists(1100)            

Checking for multiple users with UID value 1100
Result: Check for multiple users with UID value 1100 passed 
Result: User existence check passed for "grid"

Check: Group existence for "oinstall" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  vzwc2         passed                    exists                  
  vzwc1         passed                    exists                  
Result: Group existence check passed for "oinstall"

Check: Group existence for "dba" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  vzwc2         passed                    exists                  
  vzwc1         passed                    exists                  
Result: Group existence check passed for "dba"

Check: Membership of user "grid" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             yes           yes           yes           yes           passed      
  vzwc1             yes           yes           yes           yes           passed      
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed

Check: Membership of user "grid" in group "dba" 
  Node Name         User Exists   Group Exists  User in Group  Status          
  ----------------  ------------  ------------  ------------  ----------------
  vzwc2             yes           yes           yes           passed          
  vzwc1             yes           yes           yes           passed          
Result: Membership check for user "grid" in group "dba" passed

Check: Run level 
  Node Name     run level                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         5                         3,5                       passed    
  vzwc1         5                         3,5                       passed    
Result: Run level check passed

Check: Hard limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  vzwc2             hard          65536         65536         passed          
  vzwc1             hard          65536         65536         passed          
Result: Hard limits check passed for "maximum open file descriptors"

Check: Soft limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  vzwc2             soft          1024          1024          passed          
  vzwc1             soft          1024          1024          passed          
Result: Soft limits check passed for "maximum open file descriptors"

Check: Hard limits for "maximum user processes" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  vzwc2             hard          16384         16384         passed          
  vzwc1             hard          16384         16384         passed          
Result: Hard limits check passed for "maximum user processes"

Check: Soft limits for "maximum user processes" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  vzwc2             soft          2047          2047          passed          
  vzwc1             soft          2047          2047          passed          
Result: Soft limits check passed for "maximum user processes"

Check: System architecture 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         x86_64                    x86_64                    passed    
  vzwc1         x86_64                    x86_64                    passed    
Result: System architecture check passed

Check: Kernel version 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         3.0.76-0.11-default       2.6.27.19                 passed    
  vzwc1         3.0.76-0.11-default       2.6.27.19                 passed    
Result: Kernel version check passed

Check: Kernel parameter for "semmsl" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             250           250           250           passed          
  vzwc1             250           250           250           passed          
Result: Kernel parameter check passed for "semmsl"

Check: Kernel parameter for "semmns" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             32000         32000         32000         passed          
  vzwc1             32000         32000         32000         passed          
Result: Kernel parameter check passed for "semmns"

Check: Kernel parameter for "semopm" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             100           100           100           passed          
  vzwc1             100           100           100           passed          
Result: Kernel parameter check passed for "semopm"

Check: Kernel parameter for "semmni" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             128           128           128           passed          
  vzwc1             128           128           128           passed          
Result: Kernel parameter check passed for "semmni"

Check: Kernel parameter for "shmmax" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             2076387328    2076387328    2076387328    passed          
  vzwc1             2076387328    2076387328    2076387328    passed          
Result: Kernel parameter check passed for "shmmax"

Check: Kernel parameter for "shmmni" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             4096          4096          4096          passed          
  vzwc1             4096          4096          4096          passed          
Result: Kernel parameter check passed for "shmmni"

Check: Kernel parameter for "shmall" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             2097152       2097152       2097152       passed          
  vzwc1             2097152       2097152       2097152       passed          
Result: Kernel parameter check passed for "shmall"

Check: Kernel parameter for "file-max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             6815744       6815744       6815744       passed          
  vzwc1             6815744       6815744       6815744       passed          
Result: Kernel parameter check passed for "file-max"

Check: Kernel parameter for "ip_local_port_range" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             between 9000.0 & 65500.0  between 9000.0 & 65500.0  between 9000.0 & 65500.0  passed          
  vzwc1             between 9000.0 & 65500.0  between 9000.0 & 65500.0  between 9000.0 & 65500.0  passed          
Result: Kernel parameter check passed for "ip_local_port_range"

Check: Kernel parameter for "rmem_default" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             262144        262144        262144        passed          
  vzwc1             262144        262144        262144        passed          
Result: Kernel parameter check passed for "rmem_default"

Check: Kernel parameter for "rmem_max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             4194304       4194304       4194304       passed          
  vzwc1             4194304       4194304       4194304       passed          
Result: Kernel parameter check passed for "rmem_max"

Check: Kernel parameter for "wmem_default" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             262144        262144        262144        passed          
  vzwc1             262144        262144        262144        passed          
Result: Kernel parameter check passed for "wmem_default"

Check: Kernel parameter for "wmem_max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             1048576       1048576       1048576       passed          
  vzwc1             1048576       1048576       1048576       passed          
Result: Kernel parameter check passed for "wmem_max"

Check: Kernel parameter for "aio-max-nr" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  vzwc2             1048576       1048576       1048576       passed          
  vzwc1             1048576       1048576       1048576       passed          
Result: Kernel parameter check passed for "aio-max-nr"

Check: Package existence for "make" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         make-3.81-128.20          make-3.81                 passed    
  vzwc1         make-3.81-128.20          make-3.81                 passed    
Result: Package existence check passed for "make"

Check: Package existence for "libaio" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libaio-0.3.109-0.1.46     libaio-0.3.104            passed    
  vzwc1         libaio-0.3.109-0.1.46     libaio-0.3.104            passed    
Result: Package existence check passed for "libaio"

Check: Package existence for "binutils" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         binutils-2.23.1-0.17.18   binutils-2.19             passed    
  vzwc1         binutils-2.23.1-0.17.18   binutils-2.19             passed    
Result: Package existence check passed for "binutils"

Check: Package existence for "gcc(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         gcc(x86_64)-4.3-62.198    gcc(x86_64)-4.3           passed    
  vzwc1         gcc(x86_64)-4.3-62.198    gcc(x86_64)-4.3           passed    
Result: Package existence check passed for "gcc(x86_64)"

Check: Package existence for "gcc-c++(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         gcc-c++(x86_64)-4.3-62.198  gcc-c++(x86_64)-4.3       passed    
  vzwc1         gcc-c++(x86_64)-4.3-62.198  gcc-c++(x86_64)-4.3       passed    
Result: Package existence check passed for "gcc-c++(x86_64)"

Check: Package existence for "glibc" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         glibc-2.11.3-17.54.1      glibc-2.9                 passed    
  vzwc1         glibc-2.11.3-17.54.1      glibc-2.9                 passed    
Result: Package existence check passed for "glibc"

Check: Package existence for "glibc-devel" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         glibc-devel-2.11.3-17.54.1  glibc-devel-2.9           passed    
  vzwc1         glibc-devel-2.11.3-17.54.1  glibc-devel-2.9           passed    
Result: Package existence check passed for "glibc-devel"

Check: Package existence for "ksh" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         ksh-93u-0.18.1            ksh-93t                   passed    
  vzwc1         ksh-93u-0.18.1            ksh-93t                   passed    
Result: Package existence check passed for "ksh"

Check: Package existence for "libaio-devel" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libaio-devel-0.3.109-0.1.46  libaio-devel-0.3.104      passed    
  vzwc1         libaio-devel-0.3.109-0.1.46  libaio-devel-0.3.104      passed    
Result: Package existence check passed for "libaio-devel"

Check: Package existence for "libstdc++33" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libstdc++33-3.3.3-11.9    libstdc++33-3.3.3         passed    
  vzwc1         libstdc++33-3.3.3-11.9    libstdc++33-3.3.3         passed    
Result: Package existence check passed for "libstdc++33"

Check: Package existence for "libstdc++43-devel" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libstdc++43-devel-4.3.4_20091019-0.37.30  libstdc++43-devel-4.3.3_20081022  passed    
  vzwc1         libstdc++43-devel-4.3.4_20091019-0.37.30  libstdc++43-devel-4.3.3_20081022  passed    
Result: Package existence check passed for "libstdc++43-devel"

Check: Package existence for "libstdc++-devel(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libstdc++-devel(x86_64)-4.3-62.198  libstdc++-devel(x86_64)-4.3  passed    
  vzwc1         libstdc++-devel(x86_64)-4.3-62.198  libstdc++-devel(x86_64)-4.3  passed    
Result: Package existence check passed for "libstdc++-devel(x86_64)"

Check: Package existence for "libstdc++46" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libstdc++46-4.6.9-0.11.38  libstdc++46-4.6.1_20110701  passed    
  vzwc1         libstdc++46-4.6.9-0.11.38  libstdc++46-4.6.1_20110701  passed    
Result: Package existence check passed for "libstdc++46"

Check: Package existence for "libgcc46" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libgcc46-4.6.9-0.11.38    libgcc46-4.6.1_20110701   passed    
  vzwc1         libgcc46-4.6.9-0.11.38    libgcc46-4.6.1_20110701   passed    
Result: Package existence check passed for "libgcc46"

Check: Package existence for "sysstat" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         sysstat-8.1.5-7.45.24     sysstat-8.1.5             passed    
  vzwc1         sysstat-8.1.5-7.45.24     sysstat-8.1.5             passed    
Result: Package existence check passed for "sysstat"

Check: Package existence for "libcap1" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         libcap1-1.10-6.10         libcap1-1.10              passed    
  vzwc1         libcap1-1.10-6.10         libcap1-1.10              passed    
Result: Package existence check passed for "libcap1"

Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed 

Check: Current group ID 
Result: Current group ID check passed

Starting check for consistency of primary group of root user
  Node Name                             Status                  
  ------------------------------------  ------------------------
  vzwc2                                 passed                  
  vzwc1                                 passed                  

Check for consistency of root user's primary group passed

Starting Clock synchronization checks using Network Time Protocol(NTP)...

NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
No NTP Daemons or Services were found to be running

Result: Clock synchronization check using Network Time Protocol(NTP) passed

Checking Core file name pattern consistency...
Core file name pattern consistency check passed.

Checking to make sure user "grid" is not in "root" group
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  vzwc2         passed                    does not exist          
  vzwc1         passed                    does not exist          
Result: User "grid" is not part of "root" group. Check passed

Check default user file creation mask
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  vzwc2         0022                      0022                      passed    
  vzwc1         0022                      0022                      passed    
Result: Default user file creation mask check passed
Checking consistency of file "/etc/resolv.conf" across nodes

Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking DNS response time for an unreachable node
  Node Name                             Status                  
  ------------------------------------  ------------------------
  vzwc2                                 failed                  
  vzwc1                                 failed                  
PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms on following nodes: vzwc2,vzwc1

File "/etc/resolv.conf" is not consistent across nodes

Check: Time zone consistency 
Result: Time zone consistency check passed

Pre-check for cluster services setup was unsuccessful on all the nodes. 
grid@vzwc1:~/grid> 

grid用户安装GI

grid@vzwc1:~/grid> ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 26454 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4093 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-30_02-23-36PM. Please wait ...grid@vzwc1:~/grid> 


















忽略CVU报错信息

vzwc1:/home/grid/grid/rpm # /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
vzwc1:/home/grid/grid/rpm # /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'vzwc1'
CRS-2676: Start of 'ora.mdnsd' on 'vzwc1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'vzwc1'
CRS-2676: Start of 'ora.gpnpd' on 'vzwc1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'vzwc1'
CRS-2672: Attempting to start 'ora.gipcd' on 'vzwc1'
CRS-2676: Start of 'ora.cssdmonitor' on 'vzwc1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'vzwc1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'vzwc1'
CRS-2672: Attempting to start 'ora.diskmon' on 'vzwc1'
CRS-2676: Start of 'ora.diskmon' on 'vzwc1' succeeded
CRS-2676: Start of 'ora.cssd' on 'vzwc1' succeeded

ASM created and started successfully.

Disk Group SYSDG created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 6019fdb21fa74f48bfb9207ec743ce15.
Successful addition of voting disk 3a0096eab7dd4f08bf79b2e9442df4dc.
Successful addition of voting disk 59a294f915a64fffbfc685edb9055bf2.
Successfully replaced voting disk group with +SYSDG.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   6019fdb21fa74f48bfb9207ec743ce15 (/dev/asm-diskb) [SYSDG]
 2. ONLINE   3a0096eab7dd4f08bf79b2e9442df4dc (/dev/asm-diskc) [SYSDG]
 3. ONLINE   59a294f915a64fffbfc685edb9055bf2 (/dev/asm-diskd) [SYSDG]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'vzwc1'
CRS-2676: Start of 'ora.asm' on 'vzwc1' succeeded
CRS-2672: Attempting to start 'ora.SYSDG.dg' on 'vzwc1'
CRS-2676: Start of 'ora.SYSDG.dg' on 'vzwc1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
vzwc1:/home/grid/grid/rpm # 
vzwc2:~ # /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
vzwc2:~ # /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
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.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node vzwc1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded


创建ASM磁盘组





检查GI

grid@vzwc2:~> crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [11.2.0.3.0]
grid@vzwc2:~> 
grid@vzwc2:~> crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   6019fdb21fa74f48bfb9207ec743ce15 (/dev/asm-diskb) [SYSDG]
 2. ONLINE   3a0096eab7dd4f08bf79b2e9442df4dc (/dev/asm-diskc) [SYSDG]
 3. ONLINE   59a294f915a64fffbfc685edb9055bf2 (/dev/asm-diskd) [SYSDG]
Located 3 voting disk(s).
grid@vzwc2:~> 
grid@vzwc2:~> ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2548
         Available space (kbytes) :     259572
         ID                       : 1235846715
         Device/File Name         :     +SYSDG
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check bypassed due to non-privileged user

grid@vzwc2:~> 
grid@vzwc2:~> 
grid@vzwc2:~> crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATADG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.FRADG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.LISTENER.lsnr
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.SYSDG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.asm
               ONLINE  ONLINE       vzwc1                    Started             
               ONLINE  ONLINE       vzwc2                    Started             
ora.gsd
               OFFLINE OFFLINE      vzwc1                                        
               OFFLINE OFFLINE      vzwc2                                        
ora.net1.network
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.ons
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       vzwc1                                        
ora.cvu
      1        ONLINE  ONLINE       vzwc1                                        
ora.oc4j
      1        ONLINE  ONLINE       vzwc1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       vzwc1                                        
ora.vzwc1.vip
      1        ONLINE  ONLINE       vzwc1                                        
ora.vzwc2.vip
      1        ONLINE  ONLINE       vzwc2                                        
grid@vzwc2:~> 
grid@vzwc2:~> 
grid@vzwc2:~> crsctl check cluster -all
**************************************************************
vzwc1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
vzwc2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
grid@vzwc2:~> 

安装数据库软件,dbca创建数据库和单实例差不多,在此省略。

grid@vzwc1:~> crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATADG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.FRADG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.LISTENER.lsnr
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.SYSDG.dg
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.asm
               ONLINE  ONLINE       vzwc1                    Started             
               ONLINE  ONLINE       vzwc2                    Started             
ora.gsd
               OFFLINE OFFLINE      vzwc1                                        
               OFFLINE OFFLINE      vzwc2                                        
ora.net1.network
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
ora.ons
               ONLINE  ONLINE       vzwc1                                        
               ONLINE  ONLINE       vzwc2                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       vzwc1                                        
ora.cvu
      1        ONLINE  ONLINE       vzwc1                                        
ora.oc4j
      1        ONLINE  ONLINE       vzwc1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       vzwc1                                        
ora.vzwc1.vip
      1        ONLINE  ONLINE       vzwc1                                        
ora.vzwc2.vip
      1        ONLINE  ONLINE       vzwc2                                        
ora.zwc.db
      1        ONLINE  ONLINE       vzwc1                    Open                
      2        ONLINE  ONLINE       vzwc2                    Open         
C:\Users\Administrator>sqlplus sys/oracle@192.168.1.169:1521/zwc as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on 星期一 12月 30 18:06:00 2013

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


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

SQL> create or replace directory suse_release as '/etc';

目录已创建。

SQL> grant read,write on directory suse_release to public;

授权成功。

SQL> set serveroutput on
SQL> declare
  2      suse_res utl_file.file_type;
  3      v_buf varchar2(4000);
  4  begin
  5      suse_res :=utl_file.fopen('SUSE_RELEASE','SuSE-release','R');
  6      utl_file.get_line(suse_res,v_buf);
  7      dbms_output.put_line(v_buf);
  8      utl_file.fclose(suse_res);
  9  end;
 10  /
SUSE Linux Enterprise Server 11 (x86_64)

PL/SQL 过程已成功完成。

SQL>




GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐