一步一步在Linux上安装Oracle 11gR2 RAC (8–完结)

脚本附录

7.1 preusers.sh脚本

 

#!/bin/bash
#Purpose:Create 6 groups named 'oinstall','dba','asmadmin','asmdba','asmoper','oper', plus 2 users named 'oracle','grid'.
#Also setting the Environment
#variable for oracle user.
#variable for grid user.
#Usage:Log on as the superuser('root'),and then execute the command:#./1preusers.sh
#Author:Asher Huang

echo "Now create 6 groups named 'oinstall','dba','asmadmin','asmdba','asmoper','oper'"
echo "Plus 2 users named 'oracle','grid',Also setting the Environment"


groupadd -g 1000 oinstall 
groupadd -g 1200 asmadmin 
groupadd -g 1201 asmdba 
groupadd -g 1202 asmoper 
useradd -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash -c "grid Infrastructure Owner" grid 
echo "grid" | passwd --stdin grid

echo 'export PS1="`/bin/hostname -s`-> "'>> /home/grid/.bash_profile 
echo "export TMP=/tmp">> /home/grid/.bash_profile  
echo 'export TMPDIR=$TMP'>>/home/grid/.bash_profile 
echo "export ORACLE_SID=+ASM1">> /home/grid/.bash_profile 
echo "export ORACLE_BASE=/u01/app/grid">> /home/grid/.bash_profile
echo "export ORACLE_HOME=/u01/app/11.2.0/grid">> /home/grid/.bash_profile
echo "export ORACLE_TERM=xterm">> /home/grid/.bash_profile
echo "export NLS_DATE_FORMAT='yyyy/mm/dd hh24:mi:ss'" >> /home/grid/.bash_profile
echo 'export TNS_ADMIN=$ORACLE_HOME/network/admin'  >> /home/grid/.bash_profile
echo 'export PATH=/usr/sbin:$PATH'>> /home/grid/.bash_profile
echo 'export PATH=$ORACLE_HOME/bin:$PATH'>> /home/grid/.bash_profile
echo 'export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib'>> /home/grid/.bash_profile
echo 'export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib'>> /home/grid/.bash_profile
echo "export EDITOR=vi" >> /home/grid/.bash_profile
echo "export LANG=en_US" >> /home/grid/.bash_profile
echo "export NLS_LANG=american_america.AL32UTF8" >> /home/grid/.bash_profile
echo "umask 022">> /home/grid/.bash_profile

groupadd -g 1300 dba 
groupadd -g 1301 oper 
useradd -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle 
echo "oracle" | passwd --stdin oracle

echo 'export PS1="`/bin/hostname -s`-> "'>> /home/oracle/.bash_profile 
echo "export TMP=/tmp">> /home/oracle/.bash_profile  
echo 'export TMPDIR=$TMP'>>/home/oracle/.bash_profile 
echo "export ORACLE_HOSTNAME=node1.localdomain">> /home/oracle/.bash_profile 
echo "export ORACLE_SID=devdb1">> /home/oracle/.bash_profile 
echo "export ORACLE_BASE=/u01/app/oracle">> /home/oracle/.bash_profile
echo 'export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1'>> /home/oracle/.bash_profile
echo "export ORACLE_UNQNAME=devdb">> /home/oracle/.bash_profile
echo 'export TNS_ADMIN=$ORACLE_HOME/network/admin'  >> /home/oracle/.bash_profile
echo "export ORACLE_TERM=xterm">> /home/oracle/.bash_profile
echo 'export PATH=/usr/sbin:$PATH'>> /home/oracle/.bash_profile
echo 'export PATH=$ORACLE_HOME/bin:$PATH'>> /home/oracle/.bash_profile
echo 'export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib'>> /home/oracle/.bash_profile
echo 'export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib'>> /home/oracle/.bash_profile
echo "export EDITOR=vi" >> /home/oracle/.bash_profile
echo "export LANG=en_US" >> /home/oracle/.bash_profile
echo "export NLS_LANG=american_america.AL32UTF8" >> /home/oracle/.bash_profile
echo "export NLS_DATE_FORMAT='yyyy/mm/dd hh24:mi:ss'" >> /home/oracle/.bash_profile
echo "umask 022">> /home/oracle/.bash_profile

echo "The Groups and users has been created"
echo "The Environment for grid,oracle also has been set successfully"

 

7.2 predir.sh脚本

 

#!/bin/bash
#Purpose:Create the necessary directory for oracle,grid users and change the authention to oracle,grid users.
#Usage:Log on as the superuser('root'),and then execute the command:#./2predir.sh
#Author:Asher Huang

echo "Now create the necessary directory for oracle,grid users and change the authention to oracle,grid users..."
mkdir -p /u01/app/grid 
mkdir -p /u01/app/11.2.0/grid 
mkdir -p /u01/app/oracle 
chown -R oracle:oinstall /u01
chown -R grid:oinstall /u01/app/grid 
chown -R grid:oinstall /u01/app/11.2.0
chmod -R 775 /u01
echo "The necessary directory for oracle,grid users and change the authention to oracle,grid users has been finished"

 

7.3 prelimits.sh脚本

#!/bin/bash
#Purpose:Change the /etc/security/limits.conf.
#Usage:Log on as the superuser('root'),and then execute the command:#./3prelimits.sh
#Author:Asher Huang

echo "Now modify the /etc/security/limits.conf,but backup it named /etc/security/limits.conf.bak before"
cp /etc/security/limits.conf /etc/security/limits.conf.bak
echo "oracle soft nproc 2047" >>/etc/security/limits.conf
echo "oracle hard nproc 16384" >>/etc/security/limits.conf
echo "oracle soft nofile 1024" >>/etc/security/limits.conf
echo "oracle hard nofile 65536" >>/etc/security/limits.conf
echo "grid soft nproc 2047" >>/etc/security/limits.conf
echo "grid hard nproc 16384" >>/etc/security/limits.conf
echo "grid soft nofile 1024" >>/etc/security/limits.conf
echo "grid hard nofile 65536" >>/etc/security/limits.conf
echo "Modifing the /etc/security/limits.conf has been succeed."

7.4 prelogin.sh脚本

#!/bin/bash
#Purpose:Modify the /etc/pam.d/login.
#Usage:Log on as the superuser('root'),and then execute the command:#./4prelimits.sh
#Author:Asher Huang

echo "Now modify the /etc/pam.d/login,but with a backup named /etc/pam.d/login.bak"
cp /etc/pam.d/login /etc/pam.d/login.bak

echo "session required /lib/security/pam_limits.so" >>/etc/pam.d/login
echo "session required pam_limits.so" >>/etc/pam.d/login

echo "Modifing the /etc/pam.d/login has been succeed."

7.5 preprofile.sh脚本

#!/bin/bash
#Purpose:Modify the /etc/profile.
#Usage:Log on as the superuser('root'),and then execute the command:#./5preprofile.sh
#Author:Asher Huang

echo "Now modify the  /etc/profile,but with a backup named  /etc/profile.bak"
cp /etc/profile /etc/profile.bak
echo 'if [ $USER = "oracle" ]||[ $USER = "grid" ]; then' >>  /etc/profile
echo 'if [ $SHELL = "/bin/ksh" ]; then' >> /etc/profile
echo 'ulimit -p 16384' >> /etc/profile
echo 'ulimit -n 65536' >> /etc/profile
echo 'else' >> /etc/profile
echo 'ulimit -u 16384 -n 65536' >> /etc/profile
echo 'fi' >> /etc/profile
echo 'fi' >> /etc/profile
echo "Modifing the /etc/profile has been succeed."

7.6 presysctl.sh脚本

#!/bin/bash
#Purpose:Modify the /etc/sysctl.conf.
#Usage:Log on as the superuser('root'),and then execute the command:#./6presysctl.sh
#Author:Asher Huang

echo "Now modify the /etc/sysctl.conf,but with a backup named /etc/sysctl.bak"
cp /etc/sysctl.conf /etc/sysctl.conf.bak

echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf
echo "fs.file-max = 6815744" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 1054472192" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 9000 65500" >> /etc/sysctl.conf
echo "net.core.rmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.rmem_max = 4194304" >> /etc/sysctl.conf
echo "net.core.wmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048586" >> /etc/sysctl.conf
echo "net.ipv4.tcp_wmem = 262144 262144 262144" >> /etc/sysctl.conf
echo "net.ipv4.tcp_rmem = 4194304 4194304 4194304" >> /etc/sysctl.conf

echo "Modifing the /etc/sysctl.conf has been succeed."
echo "Now make the changes take effect....."
sysctl -p

评论 (16)

  • luoqi| 2013年1月15日

    黄老师,您好
    我完全按照您的操作步骤来做,不过我用的系统是centos 5.5 前面一切正常,在安装完grid运行root.sh时候报错,start of ‘ora.cssd’ on ‘node1’ failed,请问是什么原因啊?

  • luoqi| 2013年1月15日

    看了日志,报错从下面开始:
    Registering ohasd
    2013-01-15 09:27:37: init file = /u01/app/11.2.0/grid/crs/init/init.ohasd
    2013-01-15 09:27:37: Copying file /u01/app/11.2.0/grid/crs/init/init.ohasd to /etc/init.d directory
    2013-01-15 09:27:37: Setting init.ohasd permission in /etc/init.d directory
    2013-01-15 09:27:37: init file = /u01/app/11.2.0/grid/crs/init/ohasd
    2013-01-15 09:27:37: Copying file /u01/app/11.2.0/grid/crs/init/ohasd to /etc/init.d directory
    2013-01-15 09:27:37: Setting ohasd permission in /etc/init.d directory
    2013-01-15 09:27:37: Removing “/etc/rc.d/rc3.d/S96ohasd”
    2013-01-15 09:27:37: Removing file /etc/rc.d/rc3.d/S96ohasd
    2013-01-15 09:27:37: Failure with return code 1 from command rm /etc/rc.d/rc3.d/S96ohasd
    2013-01-15 09:27:37: Failed to remove file:
    然后
    Successfully created CRS resources for cluster daemon and ASM
    2013-01-15 09:28:26: Checking if initial configuration has been performed
    2013-01-15 09:28:26: Starting CSS in exclusive mode
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.gipcd’ on ‘node1’
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.mdnsd’ on ‘node1’
    2013-01-15 09:28:55: CRS-2676: Start of ‘ora.gipcd’ on ‘node1’ succeeded
    2013-01-15 09:28:55: CRS-2676: Start of ‘ora.mdnsd’ on ‘node1’ succeeded
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.gpnpd’ on ‘node1’
    2013-01-15 09:28:55: CRS-2676: Start of ‘ora.gpnpd’ on ‘node1’ succeeded
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘node1’
    2013-01-15 09:28:55: CRS-2676: Start of ‘ora.cssdmonitor’ on ‘node1’ succeeded
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.cssd’ on ‘node1’
    2013-01-15 09:28:55: CRS-2672: Attempting to start ‘ora.diskmon’ on ‘node1’
    2013-01-15 09:28:55: CRS-2674: Start of ‘ora.cssd’ on ‘node1’ failed
    2013-01-15 09:28:55: CRS-2679: Attempting to clean ‘ora.cssd’ on ‘node1’
    2013-01-15 09:28:55: CRS-2674: Start of ‘ora.diskmon’ on ‘node1’ failed
    启动ora.cssd就出错了。

  • luoqi| 2013年1月15日

    最后
    013-01-15 09:28:55: Querying for existing CSS voting disks
    2013-01-15 09:28:55: Performing initial configuration for cluster
    2013-01-15 09:29:42: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl start resource ora.ctssd -init
    2013-01-15 09:29:42: Start of resource “ora.ctssd -init” failed
    2013-01-15 09:29:42: Clusterware exclusive mode start of resource ora.ctssd failed
    2013-01-15 09:29:42: Exiting exclusive mode
    2013-01-15 09:29:42: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
    2013-01-15 09:29:42: Stop of resource “ora.crsd -init” failed
    2013-01-15 09:29:42: Failed to stop CRSD
    2013-01-15 09:29:42: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
    2013-01-15 09:29:42: Stop of resource “ora.asm -init” failed
    2013-01-15 09:29:42: Failed to stop ASM
    2013-01-15 09:29:43: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_node1.log for details

  • admin| 2013年1月17日

    @luoqi:从你贴出的部分日志结合我从Google上查到的可能原因是,你的userid used for ASMlib driver differs from grid software owner.
    也就是说你的ASMlib配置的用户和grid软件用户不同。
    你可以通过/usr/sbin/Oracleasm configure 命令来查看。
    如果是这种情况的话,那么解决办法是:
    ① /u01/app/11.2.0/grid/install/rootcrs.pl -deconfig -force
    ② 重新配置ASMlib driver 的用户为grid
    ③ 重新配置ASM磁盘组
    ④ 重新执行root.sh,执行的过程中,如果遇到有提示说Overwrite it?都选Y

  • luoqi| 2013年3月19日

    多谢黄老师的回复,应该不是grid用户的问题,我是这样解决的,在运行脚本前运行一下start_udev命令,就一切正常了,具体原因没时间分析了,分享出来给遇到相同问题的朋友吧。

  • yizhipingnew| 2014年5月26日

    黄老师:
    看过你的视频RAC+DG大作,钦佩至极。安装你的步骤。我在Enterprise-R5-U10-Server-x86_64-dvd+ 装grid正常,安装数据库 到第八步,检查内核和RPM包的 Checks环节出错,还是重要错误,具体错误如下:
    Architecture – This is a prerequisite condition to test whether the system has a certified architecture.
    Check Failed on Nodes: [node2,  node1]
    Verification result of failed node: node2
    Expected Value
     : x86
    Actual Value
     : x86_64
     List of errors:
     – 
    PRVF-7535 : Proper architecture is not found on node “node2” [Expected = “x86” ; Found = “x86_64”]  – Cause:  System architecture does not meet the requirement.  – Action:  Ensure that the correct software bundle is being used.
    Back to Top
    Verification result of failed node: node1
    Expected Value
     : x86
    Actual Value
     : x86_64
     List of errors:
     – 
    PRVF-7535 : Proper architecture is not found on node “node1” [Expected = “x86” ; Found = “x86_64”]  – Cause:  System architecture does not meet the requirement.  – Action:  Ensure that the correct software bundle is being used.
    Back to Top
    万分焦急,请指点。

    • admin| 2014年5月27日

      @yizhipingnew 你这问题应该是操作系统版本和数据库安装介质的版本不匹配导致的。
      正常情况下,32位的系统装32位的数据库,64位的系统装64位的库。
      32位的库可以装在64位的操作系统上,但是反过来就不行了,我猜想,你应该就是遇到这情况了。
      多谢关注,我目前在海外出差,回复不及时,谅解。

      • yizhipingnew| 2014年6月5日

        @admin
        黄老师你好:
        我按照你的步骤,做了dg物理备库的配置。但是在RAC主库做 switch logfile时候,物理备库接收不到归档日志。 alert日志报错如下:
        RA-16198: Timeout incurred on internal channel during remote archival
        Error 16198 for archive log file 2 to ‘racdb’
        LGWR: Failed to archive log 2 thread 1 sequence 34 (16198)
        Wed Jun 04 23:37:42 2014
        AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
        Thread 1 advanced to log sequence 34 (LGWR switch)
        Current log# 2 seq# 34 mem# 0: +DATA/racdb/onlinelog/group_2.260.849207513
        Current log# 2 seq# 34 mem# 1: +FLASH/racdb/onlinelog/group_2.273.849207515
        Wed Jun 04 23:37:43 2014
        Archived Log entry 72 added for thread 1 sequence 33 ID 0x3278cd4b dest 1:
        Wed Jun 04 23:37:43 2014
        ARC3: Archival destination is a Primary RAC instance: ‘racdb’
        Wed Jun 04 23:38:19 2014
        RFS[4]: Assigned to RFS process 5673
        RFS[4]: Identified database type as ‘primary cross instance archival’: Client is LGWR SYNC pid 4845
        RFS[4]: Possible network disconnect with primary database
        Wed Jun 04 23:38:22 2014
        RFS[5]: Assigned to RFS process 5682
        RFS[5]: Identified database type as ‘primary cross instance archival’: Client is ARCH pid 5034
        RFS[5]: Opened log for thread 2 sequence 30 dbid 846824271 branch 849207508
        Archived Log entry 75 added for thread 2 sequence 30 rlc 849207508 ID 0x3278cd4b dest 2:
        Wed Jun 04 23:52:07 2014
        ALTER SYSTEM SET log_archive_dest_2=’service=racdb lgwr sync NET_TIMEOUT=30 valid_for=(online_logfiles,primary_role) db_unique_name=racdb’ SCOPE=BOTH SID=’*’;
        Wed Jun 04 23:52:21 2014
        ******************************************************************
        LGWR: Setting ‘active’ archival for destination LOG_ARCHIVE_DEST_2
        ******************************************************************
        Wed Jun 04 23:52:21 2014
        NSS2 started with pid=48, OS id=5988
        Wed Jun 04 23:52:51 2014
        ORA-16198: LGWR received timedout error from KSR
        Errors in file /u01/app/oracle/diag/rdbms/racdb/racdb1/trace/racdb1_lgwr_5020.trc:
        ORA-16198: Timeout incurred on internal channel during remote archival
        Error 16198 for archive log file 1 to ‘racdb’
        LGWR: Failed to archive log 1 thread 1 sequence 35 (16198)
        Wed Jun 04 23:52:56 2014
        AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
        Thread 1 advanced to log sequence 35 (LGWR switch)
        Current log# 1 seq# 35 mem# 0: +DATA/racdb/onlinelog/group_1.261.849207509
        Current log# 1 seq# 35 mem# 1: +FLASH/racdb/onlinelog/group_1.272.849207513
        Wed Jun 04 23:52:56 2014
        Archived Log entry 76 added for thread 1 sequence 34 ID 0x3278cd4b dest 1:
        Wed Jun 04 23:52:57 2014
        ARC3: Archival destination is a Primary RAC instance: ‘racdb’
        Wed Jun 04 23:56:37 2014
        Thread 1 cannot allocate new log, sequence 36
        Checkpoint not complete
        Current log# 1 seq# 35 mem# 0: +DATA/racdb/onlinelog/group_1.261.849207509
        Current log# 1 seq# 35 mem# 1: +FLASH/racdb/onlinelog/group_1.272.849207513
        ******************************************************************
        LGWR: Setting ‘active’ archival for destination LOG_ARCHIVE_DEST_2
        ******************************************************************
        Wed Jun 04 23:56:39 2014
        NSS2 started with pid=51, OS id=6105
        Wed Jun 04 23:57:09 2014
        ORA-16198: LGWR received timedout error from KSR
        Errors in file /u01/app/oracle/diag/rdbms/racdb/racdb1/trace/racdb1_lgwr_5020.trc:
        ORA-16198: Timeout incurred on internal channel during remote archival
        Error 16198 for archive log file 2 to ‘racdb’
        LGWR: Failed to archive log 2 thread 1 sequence 36 (16198)
        Wed Jun 04 23:57:14 2014
        AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
        Thread 1 advanced to log sequence 36 (LGWR switch)
        Current log# 2 seq# 36 mem# 0: +DATA/racdb/onlinelog/group_2.260.849207513
        Current log# 2 seq# 36 mem# 1: +FLASH/racdb/onlinelog/group_2.273.849207515
        Wed Jun 04 23:57:14 2014
        Archived Log entry 78 added for thread 1 sequence 35 ID 0x3278cd4b dest 1:
        Wed Jun 04 23:57:15 2014
        ARC3: Archival destination is a Primary RAC instance: ‘racdb’
        针对 ORA_16198错误,我已经修改了参数:
        ALTER SYSTEM SET log_archive_dest_2=’service=racdb lgwr sync NET_TIMEOUT=30 valid_for=(online_logfiles,primary_role) db_unique_name=racdb’ SCOPE=BOTH SID=’*’; 但是还是报错。
        我的实验环境不太好,I7的本子 8G内存,内存不太够用,三个虚拟机跑起来内存占用 85%,不知道是不是超时的原因,如果是 NET_TIMEOUT 还能改多大?期盼赐教!
        感谢乐于分享的黄老师,晚安!

        • admin| 2014年6月5日

          @yizhipingnew 你好,如果 NET_TIMEOUT=30 还是不行的话,把sync改为异步async,试试看?

  • yizhipingnew| 2014年6月25日

    黄老师:
    您好!
    我还是根据你的视频资料,安装好了DG,也运行了一段时间,无奈根基尚浅,上次的问题是我根本没理解,日志是咋传输的 log_archive_dest_2 ,参数配置错误导致的。后来我在做实验的时候遇到主库、备库数据不一致的问题,主库做了日志切换,备库也收到了,但是备查询 v$archived_log,总有applied为NO的记录,v$archive_gap中则没有记录。请赐教

    • admin| 2014年6月25日

      @yizhipingnew 1 归档日志的applied为NO的很正常,因为备库有可能来不及应用归档或者其它原因;2 同时v$archive_gap中没有记录也正常,说明此时你的备库和主控之间并未出现日志断档啊,也就是说备库已经顺利接收了主库传递的所有归档。
      你得先弄清楚的概念是什么是archive log gap,然后再弄清楚v$archive_gap数据字典表是做什么用的,就有你自己的答案了。(*^__^*)

  • leon| 2015年7月2日

    黄老师,您好!
    我做到第三步2.4 建用户、改口令、修改用户配置文件,我从您的7.脚本附录拷贝过去的,用CHMOD A+X赋权限之后,但是执行脚本如下提示
    [root@node1 shell]# ll
    total 24
    -rwxrwxr-x 1 root root 3614 Jul 2 09:08 1preusers.sh
    -rw-r–r– 1 root root 672 Jul 2 09:09 2predir.sh
    -rw-r–r– 1 root root 872 Jul 2 09:09 3prelimits.sh
    -rw-r–r– 1 root root 479 Jul 2 09:10 4prelogin.sh
    -rw-r–r– 1 root root 666 Jul 2 09:10 5preprofile.sh
    -rw-r–r– 1 root root 1159 Jul 2 09:14 6presysctl.sh
    [root@node1 shell]# ./1preusers.sh
    -bash: ./1preusers.sh: /bin/bash^M: bad interpreter: No such file or directory
    [root@node1 shell]#
    请问是什么原因呀?
    我又查看了下/BIN/下面的文件:
    [root@node1 shell]# ./1preusers.sh
    -bash: ./1preusers.sh: /bin/bash^M: bad interpreter: No such file or directory
    [root@node1 shell]# cd /bin
    [root@node1 bin]# ls
    alsacard egrep mkdir sort
    alsaunmute env mknod stty
    arch ex mktemp su
    awk false more sync
    basename fgrep mount tar
    bash fusermount mountpoint taskset
    cat gawk mt tcptraceroute
    chgrp gettext mv tcsh
    chmod grep netstat touch
    chown gtar nice tracepath
    cp gunzip nisdomainname tracepath6
    cpio gzip pgawk traceroute
    csh hostname ping traceroute6
    cut igawk ping6 tracert
    date ipcalc ps true
    dbus-cleanup-sockets kbd_mode pwd ulockmgr_server
    dbus-daemon keyctl raw umount
    dbus-monitor kill red uname
    dbus-send ksh redhat_lsb_init unicode_start
    dbus-uuidgen ksh93 rm unicode_stop
    dd link rmdir unlink
    df ln rpm usleep
    dmesg loadkeys rvi vi
    dnsdomainname loadkeys.static rview view
    doexec logger sed ypdomainname
    domainname login setfont zcat
    dumpkeys ls setserial zsh
    echo mail sh
    ed mailx sleep
    [root@node1 bin]#

    • leon| 2015年7月2日

      @leon
      脚本可以执行了,我是这样做的:
      用UltraEdit先将脚本编码转换,再执行。转换方式如下(UltraEdit):File–>Conversions–>DOS->UNIX。
      但是我执行之后,貌似建立用户不成功:
      [root@node1 ssh]# ./1preusers.sh

      Now create 6 groups named ‘oinstall’,’dba’,’asmadmin’,’asmdba’,’asmoper’,’oper’

      Plus 2 users named ‘oracle’,’grid’,Also setting the Environment

      groupadd: group oinstall exists

      Changing password for user grid.

      passwd: all authentication tokens updated successfully.

      groupadd: group dba exists

      useradd: user oracle exists

      Changing password for user oracle.

      passwd: all authentication tokens updated successfully.

      The Groups and users has been created

      The Environment for grid,oracle also has been set successfully

      [root@node1 ssh]# pwd

      /ssh

      [root@node1 ssh]# id grid

      uid=1100(grid) gid=54321(oinstall) groups=54321(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper)

      [root@node1 ssh]# id oracle

      uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba)

  • luoqiu| 2015年9月2日

    感谢你的帮助,在一个月的时间里,我终于装好了RAC,信心稍微回增了一点。

  • ts| 2018年8月3日

    网上关于oracle高可用的教程实在太少了,感谢黄老师提供这么完整的视频和文档教程。。。。

  • 发表评论

    邮箱地址不会被公开。 必填项已用*标注