精华内容
下载资源
问答
  • Oracle rac 10g for linux vmware安装笔记

    千次阅读 2010-11-02 12:46:00
    Oracle rac 10g for linux vmware安装笔记 文章分类:数据库 笔记未加整理,仅供参考,有不明白的朋友可以一起探讨。呵呵 一、安装主机网卡 主机为dell Optiplex 780,预装版为...

    Oracle rac 10g for linux vmware安装笔记

    文章分类:数据库 笔记未加整理,仅供参考,有不明白的朋友可以一起探讨。呵呵
    一、安装主机网卡
    主机为dell Optiplex 780,预装版为ubuntu,将其格式为windows 2003 server版之后,发现不能识别网卡,下载网卡驱动将其打上,驱动地址为
    http://ftp.us.dell.com/network/R197373.exe

    单节点配置虚拟机
    二、安装虚拟机
    此处虚拟机选用VMwareServerv1.0.5Build80187.exe
    安装vmtool
    点击vm选择install vmware tools==>install
    系统提示警告:

    引用
    WARNING:You cannot install the VMware Tools package until the guest operating system is running.If your guest operating system is not running,choose Cancel
    and install the VMware tools package later.


    解决办法:
    理论上应该会自动挂载vmware tools光盘,但根本没有出现,于是采用手动挂载
    将虚拟机光驱指向linux.iso

    引用
    [root@mcrac1 ~]# mkdir -p /mnt/cdrom
    [root@mcrac1 ~]# mount /dev/cdrom /mnt/cdrom
    mount: block device /dev/cdrom is write-protected, mounting read-only


    双机桌面图标vmware tools,进入之后双击*.rpm

    引用
    [root@mcrac1 cdrom]# cp  VMwareTools-1.0.5-80187.tar.gz /tmp
    [root@mcrac1 cdrom]# tar zxpf VMwareTools-1.0.5-80187.tar.gz


    虚拟机窗口执行

    引用
    [root@mcrac1 vmware-tools-distrib]# ./vmware-install.pl



    三、同步主机和linux系统时间(Synchronize Guest OS time with Host OS)
    虚拟机窗口root用户执行

    引用
    #vmware-toolbox


    会在启动文件中看到

    引用
    tools.syncTime = "TRUE"


    编辑/boot/grub/grub.conf

    引用
    default=0
    timeout=5
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux AS (2.6.9-55.ELsmp)
            root (hd0,0)
            kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ rhgb quiet clock=pit nosmp noapic nolapic
            initrd /boot/initrd-2.6.9-55.ELsmp.img
    title Red Hat Enterprise Linux AS-up (2.6.9-55.EL)
            root (hd0,0)
            kernel /boot/vmlinuz-2.6.9-55.EL ro root=LABEL=/ rhgb quiet clock=pit nosmp noapic nolapic
            initrd /boot/initrd-2.6.9-55.EL.img


    重启主机

    引用
    #reboot



    启用网卡时出现错误:

    引用
    Device eth0 has different MAC address than expected, ignoring


    解决办法:
    注释掉/etc/sysconfig/network-scripts/ifcfg-eth0中HWADDR=xx:xx:xx:xx:xx:xx这一行。

    四、配置oracle用户

    引用
    [root@mcrac1 asm]# groupadd dba
    [root@mcrac1 asm]# groupadd oinstall
    [root@mcrac1 asm]# useradd -m -g oinstall -G dba oracle
    [root@mcrac1 asm]# id oracle
    uid=501(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)
    [root@mcrac1 asm]# passwd oracle
    [root@mcrac1 /]# chown -R oracle:dba /oracle
    [root@mcrac1 /]# chmod -R 775 /oracle



    oracle用户环境变量配置:

    引用
    export ORACLE_SID=dbrac1
    export ORACLE_BASE=/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_2
    export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/db_1
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
    umask 022



    五、安装asm包
    下载和内核相关的asm rpm包,其网址为
    http://www.oracle.com/technology/tech/linux/asmlib/index.html
    linux内核版本为

    引用
    [root@mcrac1 ~]# uname -a
    Linux mcrac1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux


    安装asm lib相关包

    引用
    [root@mcrac1 asm]# rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpm
    warning: oracleasm-support-2.1.3-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    Preparing...                ########################################### [100%]
       1:oracleasm-support      ########################################### [100%]
    [root@mcrac1 asm]# rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm
    warning: oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    error: Failed dependencies:
            oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el4.i386
    [root@mcrac1 asm]# rpm -ivh oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm
    Preparing...                ########################################### [100%]
       1:oracleasm-2.6.9-55.ELsm########################################### [100%]
    [root@mcrac1 asm]# rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm
    warning: oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    Preparing...                ########################################### [100%]
       1:oracleasmlib           ########################################### [100%]

    [root@mcrac1 asm]# rpm -qa|grep oracleasm
    oracleasm-support-2.1.3-1.el4
    oracleasmlib-2.0.4-1.el4
    oracleasm-2.6.9-55.ELsmp-2.0.3-1




    六、配置系统文件

    引用
    [root@mcrac1 /]# cat /etc/security/limits.conf
    # End of file
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536



    /etc/pam.d/login添加

    引用
    session required pam_limits.so



    /etc/profile添加

    引用
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi



    /etc/modprobe.conf添加

    引用
    options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180

     

    引用
    [root@mcrac1 ~]# modprobe -v hangcheck-timer
    insmod /lib/modules/2.6.9-55.ELsmp/kernel/drivers/char/hangcheck-timer.ko



    /etc/sysctl.conf添加

    引用
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 1048576
    net.core.rmem_max = 1048576
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144


    引用
    [root@mcrac1 ~]# sysctl -p



    配置hosts文件

    引用
    [root@mcrac1 ~]# more /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1       localhost
    172.16.4.81      mcrac1
    172.16.4.82      mcrac1_vip
    192.168.0.10     mcrac1_priv
    172.16.4.83      mcrac2
    172.16.4.84      mcrac2_vip
    192.168.0.11     mcrac2_priv




    七、检查系统包

    引用
    [root@mcrac1 /]# rpm -qa|grep libaio
    libaio-devel-0.3.105-2
    libaio-0.3.105-2
    [root@mcrac1 /]# rpm -qa|grep openmotif21
    openmotif21-2.1.30-11.RHEL4.6



    八、配置共享磁盘

    引用
    [root@mcrac1 /]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.

    This will configure the on-boot properties of the Oracle ASM library
    driver.  The following questions will determine whether the driver is
    loaded on boot and what permissions it will have.  The current values
    will be shown in brackets ('[]').  Hitting <ENTER> without typing an
    answer will keep that current value.  Ctrl-C will abort.

    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [  OK  ]
    Scanning the system for Oracle ASMLib disks: [  OK  ]


    创建asm磁盘出现以下问题:

    引用
    [root@mcrac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "VOL1" as an ASM disk: [FAILED]
    [root@mcrac1 ~]# tail -f /var/log/oracleasm
    Writing disk header: oracleasm-write-label: Unable to clear device "/dev/sdc1": No space left on device
    failed
    Unable to label device "/dev/sdc1"
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Disk "VOL1" does not exist or is not instantiated
    Writing disk header: oracleasm-write-label: Unable to clear device "/dev/sdc1": No space left on device
    failed
    Unable to label device "/dev/sdc1"


    解决办法:
    重新划分pdisk将扩展分区变为主分区

    引用
    [root@mcrac1 raw]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "VOL1" as an ASM disk: [  OK  ]
    [root@mcrac1 raw]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1
    Marking disk "VOL2" as an ASM disk: [  OK  ]
    [root@mcrac1 raw]# /etc/init.d/oracleasm createdisk VOL3 /dev/sde1
    Marking disk "VOL3" as an ASM disk: [  OK  ]





    可以利用 /etc/init.d/oracleasm 的 'enable' 和 'disable' 选项来启用或禁用自动启动。


    配置raw设备

    引用
    [root@mcrac1 ~]# cat /etc/sysconfig/rawdevices
    # This file and interface are deprecated.
    # Applications needing raw device access should open regular
    # block devices with O_DIRECT.
    # raw device bindings
    # format:  <rawdev> <major> <minor>
    #          <rawdev> <blockdev>
    # example: /dev/raw/raw1 /dev/sda1
    #          /dev/raw/raw2 8 5
    /dev/raw/raw1 /dev/sdc1
    /dev/raw/raw2 /dev/sdd1
    /dev/raw/raw3 /dev/sde1

    [root@mcrac1 ~]# /sbin/service rawdevices restart
    Assigning devices:
               /dev/raw/raw1  -->   /dev/sdc1
    /dev/raw/raw1:  bound to major 8, minor 32
               /dev/raw/raw2  -->   /dev/sdd1
    /dev/raw/raw2:  bound to major 8, minor 48
               /dev/raw/raw3  -->   /dev/sde1
    /dev/raw/raw3:  bound to major 8, minor 64
    done


    [root@mcrac1 raw]# chown oracle:dba *
    [root@mcrac1 raw]# ls -rtl
    total 0
    crw-rw----  1 oracle dba 162, 1 Mar 30 12:25 raw1
    crw-rw----  1 oracle dba 162, 2 Mar 30 12:25 raw2
    crw-rw----  1 oracle dba 162, 3 Mar 30 12:25 raw3




    九、拷贝rac1文件夹下虚拟机文件至rac2文件夹下修改虚拟机启动文件

    引用
    displayname='rac2'


    并在两个虚拟机启动文件中添加如下参数

    引用
    disk.locking = "FALSE"
    diskLib.dataCacheMaxSize = "0"
    scsi1.sharedBus = "virtual"
    scsi1:0.deviceType = "disk"
    scsi1:1.deviceType = "disk"
    scsi1:2.deviceType = "disk"
    scsi1:3.deviceType = "disk"


    启动rac2虚拟机
    修改ip地址
    即时生效:

    引用
    # ifconfig eth0 172.16.4.83 netmask 255.255.255.0
    # ifconfig eth1 192.168.0.11 netmask 255.255.255.0


    启动生效:
    修改/etc/sysconfig/network-scripts/ifcfg-eth0
    修改/etc/sysconfig/network-scripts/ifcfg-eth1

    修改host name
    即时生效:

    引用
    # hostname rac2


    启动生效:
    修改/etc/sysconfig/network

    十、配置ssh
    需要root和oracle用户双节点互通,注意自身用户也需通
    十一、配置时间同步
    mcrac1启动服务

    引用
    #chkconfig time on 


    mcrac2 crontab中配置

    引用
    [root@mcrac2 ~]# crontab -l
    */1 * * * * rdate -s 172.16.4.81



    十二、配置ocfs2
    下载网址为
    http://oss.oracle.com/projects/ocfs2-tools/files/RedHat/RHEL4/i386/1.2.7-1/
    http://oss.oracle.com/projects/ocfs2/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-55.EL/

    双节点安装

    引用
    [root@mcrac2 ocfs2]# rpm -ivh ocfs2-tools-1.2.7-1.el4.i386.rpm
    Preparing...                ########################################### [100%]
       1:ocfs2-tools            ########################################### [100%]
    [root@mcrac2 ocfs2]#  rpm -ivh ocfs2console-1.2.7-1.el4.i386.rpm
    Preparing...                ########################################### [100%]
       1:ocfs2console           ########################################### [100%]
    [root@mcrac2 ocfs2]# rpm -ivh ocfs2-2.6.9-55.ELsmp-1.2.9-1.el4.i686.rpm
    Preparing...                ########################################### [100%]
       1:ocfs2-2.6.9-55.ELsmp   ########################################### [100%]


    引用
    [root@mcrac1 ocfs2]# rpm -qa|grep ocfs
    ocfs2-2.6.9-55.ELsmp-1.2.9-1.el4
    ocfs2-tools-1.2.7-1.el4
    ocfs2console-1.2.7-1.el4



    要禁用 SELinux,运行“Security Level Configuration”GUI 实用程序:

    引用
    # /usr/bin/system-config-securitylevel &



    现在,单击 SELinux 选项卡并取消选中“Enabled”复选框。单击 [OK] 后,将显示一个警告对话框。只需单击“Yes”确认该警告。禁用 SELinux 选项,

    在集群中的两个节点上进行此更改后,将需要重新引导每个节点以实施更改:在继续配置 OCFS2 之前,必须禁用 SELinux!

    引用
    # init 6

    重启主机

    引用
    # ocfs2console



    Configure Nodes --> Add --> 输入NODE名和IP --> OK --> Apply
    出现如下错误:

    引用
        o2cb_ctl: Unable to access cluster service while creating node
            Could not add node node1



    解决办法:


    将/etc/ocfs2/下的不正确的cluster.conf文件删掉,重新用ocfs2console 配置

    双节点cluster.conf文件显示

    引用
    [root@mcrac1 ocfs2]# more cluster.conf
    node:
            ip_port = 7777
            ip_address = 172.16.4.81
            number = 0
            name = mcrac1
            cluster = ocfs2

    node:
            ip_port = 7777
            ip_address = 172.16.4.83
            number = 1
            name = mcrac2
            cluster = ocfs2

    cluster:
            node_count = 2
            name = ocfs2



    双节点执行

    引用
    [root@mcrac1 ocfs2]# /etc/init.d/o2cb unload
    Stopping O2CB cluster ocfs2: OK
    Unmounting ocfs2_dlmfs filesystem: OK
    Unloading module "ocfs2_dlmfs": OK
    Unmounting configfs filesystem: OK
    Unloading module "configfs": OK

     

    引用
    [root@mcrac1 ocfs2]# /etc/init.d/o2cb configure
    Configuring the O2CB driver.

    This will configure the on-boot properties of the O2CB driver.
    The following questions will determine whether the driver is loaded on
    boot.  The current values will be shown in brackets ('[]').  Hitting
    <ENTER> without typing an answer will keep that current value.  Ctrl-C
    will abort.

    Load O2CB driver on boot (y/n) [y]: y
    Cluster to start on boot (Enter "none" to clear) [ocfs2]:           
    Specify heartbeat dead threshold (>=7) [31]: 61
    Specify network idle timeout in ms (>=5000) [30000]:
    Specify network keepalive delay in ms (>=1000) [2000]:
    Specify network reconnect delay in ms (>=2000) [2000]:
    Writing O2CB configuration: OK
    Loading module "configfs": OK
    Mounting configfs filesystem at /config: OK
    Loading module "ocfs2_nodemanager": OK
    Loading module "ocfs2_dlm": OK
    Loading module "ocfs2_dlmfs": OK
    Mounting ocfs2_dlmfs filesystem at /dlm: OK
    Starting O2CB cluster ocfs2: OK



    单节点格式化OCFS2

    引用
    [root@mcrac1 ocfs2]# mkfs.ocfs2 -b 4K -C 32K -N 4 -L  crsfile /dev/sdb1
    mkfs.ocfs2 1.2.7
    Filesystem label=crsfile
    Block size=4096 (bits=12)
    Cluster size=32768 (bits=15)
    Volume size=2146762752 (65514 clusters) (524112 blocks)
    3 cluster groups (tail covers 1002 clusters, rest cover 32256 clusters)
    Journal size=67108864
    Initial number of node slots: 4
    Creating bitmaps: done
    Initializing superblock: done
    Writing system files: done
    Writing superblock: done
    Writing backup superblock: 1 block(s)
    Formatting Journals: done
    Writing lost+found: done
    mkfs.ocfs2 successful


    引用
    [root@mcrac1 ocfs2]# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs2



    二节点mount

    引用
    root@mcrac2 ocfs2]# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs2
    ocfs2_hb_ctl: Bad magic number in inode while reading uuid
    mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
    [root@mcrac2 ocfs2]# mounted.ocfs2 -f
    Device                FS     Nodes
    /dev/sdb1             ocfs2  Unknown: Bad magic number in inode 



    解决办法:
    经过检查发现,这个问题是由于在为虚拟机创建磁盘的时候没有选择“allocate all disk space now”,导致ocfs在加入第二个节点时出错,关掉虚拟机删除该磁盘,重新创建一个立即分配空间的盘再格式化,两个节点都能正常mount了。

    双节点编辑fstab

    引用
    /dev/sdb1              /ocfs2 ocfs2 _netdev,datavolume,nointr 0 0



    十三、安装crs软件:
    双节点执行

    引用
    [oracle@mcrac1 logs]$ su
    Password
    /oracle/app/oraInventory/orainstRoot.sh


    注意二节点不要在远程会话终端执行,需要在虚拟机上执行

    引用
    /oracle/app/product/10.2.0/db_1/root.sh

    The root.sh script on rac2 invoked the VIPCA automatically but it failed with the error "The
    given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs."
    As you are using a non-routable IP address (192.168.x.x) for the public interface, the Oracle
    Cluster Verification Utility (CVU) could not find a suitable public interface. A workaround is to
    run VIPCA manually.


    在vipca配置栏中根据/etc/hosts来配置
    执行后期检查

    引用
    [oracle@mcrac2 ~]$ cluvfy stage -post crsinst -n mcrac1,mcrac2

    Performing post-checks for cluster services setup

    Checking node reachability...
    Node reachability check passed from node "mcrac2".


    Checking user equivalence...
    User equivalence check passed for user "oracle".

    Checking Cluster manager integrity...


    Checking CSS daemon...
    Daemon status check passed for "CSS daemon".

    Cluster manager integrity check passed.

    Checking cluster integrity...


    Cluster integrity check passed


    Checking OCR integrity...

    Checking the absence of a non-clustered configuration...
    All nodes free of non-clustered, local-only configurations.

    Uniqueness check for OCR device passed.

    Checking the version of OCR...
    OCR of correct Version "2" exists.

    Checking data integrity of OCR...
    Data integrity check for OCR passed.

    OCR integrity check passed.

    Checking CRS integrity...

    Checking daemon liveness...
    Liveness check passed for "CRS daemon".

    Checking daemon liveness...
    Liveness check passed for "CSS daemon".

    Checking daemon liveness...
    Liveness check passed for "EVM daemon".

    Checking CRS health...
    CRS health check passed.

    CRS integrity check passed.

    Checking node application existence...


    Checking existence of VIP node application (required)
    Check passed.

    Checking existence of ONS node application (optional)
    Check passed.

    Checking existence of GSD node application (optional)
    Check passed.


    Post-check for cluster services setup was successful.


    引用
    [oracle@mcrac2 ~]$ crs_stat -t
    Name           Type           Target    State     Host       
    ------------------------------------------------------------
    ora.mcrac1.gsd application    ONLINE    ONLINE    mcrac1     
    ora.mcrac1.ons application    ONLINE    ONLINE    mcrac1     
    ora.mcrac1.vip application    ONLINE    ONLINE    mcrac1     
    ora.mcrac2.gsd application    ONLINE    ONLINE    mcrac2     
    ora.mcrac2.ons application    ONLINE    ONLINE    mcrac2     
    ora.mcrac2.vip application    ONLINE    ONLINE    mcrac2



    十四、安装数据库
    二节点启动ASM实例报错

    引用
    SQL> startup
    ASM instance started

    Total System Global Area   92274688 bytes
    Fixed Size                  1217884 bytes
    Variable Size              65890980 bytes
    ASM Cache                  25165824 bytes
    ORA-15032: not all alterations performed
    ORA-15063: ASM discovered an insufficientnumber of disks for diskgroup
    "DATADG


    后台alert日志显示

    引用
    Wed Mar 31 10:30:39 2010
    SQL> ALTER DISKGROUP ALL MOUNT
    Wed Mar 31 10:30:39 2010
    NOTE: cache registered group DATADG number=1 incarn=0xc102e171
    Wed Mar 31 10:30:39 2010
    Loaded ASM Library - Generic Linux, version 2.0.4 (KABI_V2) library for asmlib interface
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open],  error = [1],  mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open],  error = [1],  mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open],  error = [1],  mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ERROR: no PST quorum in group 1: required 1, found 0
    Wed Mar 31 10:30:39 2010
    NOTE: cache dismounting group 1/0xC102E171 (DATADG)
    NOTE: dbwr not being msg'd to dismount
    ERROR: diskgroup DATADG was not mounted


    解决办法:
    init+ASM2节点添加

    引用
    asm_diskstring=ORCL:*


    添加之后,后台alert显示

    引用
    Wed Mar 31 11:01:23 2010
    SQL> ALTER DISKGROUP ALL MOUNT
    Wed Mar 31 11:01:23 2010
    NOTE: cache registered group DATADG number=1 incarn=0xc105b157
    Wed Mar 31 11:01:23 2010
    Loaded ASM Library - Generic Linux, version 2.0.4 (KABI_V2) library for asmlib interface
    Wed Mar 31 11:01:23 2010
    ERROR: no PST quorum in group 1: required 2, found 0
    Wed Mar 31 11:01:23 2010
    NOTE: cache dismounting group 1/0xC105B157 (DATADG)
    NOTE: dbwr not being msg'd to dismount
    ERROR: diskgroup DATADG was not mounted


    解决办法:
    重启主机,怪异!
    安装完毕之后,rac状态显示

    引用
    [oracle@mcrac2 ~]$ crs_stat -t
    Name           Type           Target    State     Host       
    ------------------------------------------------------------
    ora.dbrac.db   application    ONLINE    ONLINE    mcrac1     
    ora....c1.inst application    ONLINE    ONLINE    mcrac1     
    ora....c2.inst application    ONLINE    ONLINE    mcrac2     
    ora....SM1.asm application    ONLINE    ONLINE    mcrac1     
    ora....C1.lsnr application    ONLINE    ONLINE    mcrac1     
    ora.mcrac1.gsd application    ONLINE    ONLINE    mcrac1     
    ora.mcrac1.ons application    ONLINE    ONLINE    mcrac1     
    ora.mcrac1.vip application    ONLINE    ONLINE    mcrac1     
    ora....SM2.asm application    ONLINE    ONLINE    mcrac2     
    ora....C2.lsnr application    ONLINE    ONLINE    mcrac2     
    ora.mcrac2.gsd application    ONLINE    ONLINE    mcrac2     
    ora.mcrac2.ons application    ONLINE    ONLINE    mcrac2     
    ora.mcrac2.vip application    ONLINE    ONLINE    mcrac2    

    address:http://itspace.javaeye.com/blog/631585
    展开全文
  • Linux mcrac1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux[/quote] 安装asm lib相关包 [quote]# rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpm warning: oracleasm-support-...
    笔记未加整理,仅供参考,有不明白的朋友可以一起探讨。呵呵
    一、安装主机网卡
    主机为dell Optiplex 780,预装版为ubuntu,将其格式为windows 2003 server版之后,发现不能识别网卡,下载网卡驱动将其打上,驱动地址为
    http://ftp.us.dell.com/network/R197373.exe

    单节点配置虚拟机
    二、安装虚拟机
    此处虚拟机选用VMwareServerv1.0.5Build80187.exe
    安装vmtool
    点击vm选择install vmware tools==>install
    系统提示警告:
    [quote]WARNING:You cannot install the VMware Tools package until the guest operating system is running.If your guest operating system is not running,choose Cancel
    and install the VMware tools package later.[/quote]
    [b]解决办法:[/b]
    理论上应该会自动挂载vmware tools光盘,但根本没有出现,于是采用手动挂载
    将虚拟机光驱指向linux.iso
    [quote]# mkdir -p /mnt/cdrom
    # mount /dev/cdrom /mnt/cdrom
    mount: block device /dev/cdrom is write-protected, mounting read-only[/quote]
    双机桌面图标vmware tools,进入之后双击*.rpm
    [quote]# cp VMwareTools-1.0.5-80187.tar.gz /tmp
    # tar zxpf VMwareTools-1.0.5-80187.tar.gz[/quote]
    虚拟机窗口执行
    [quote]# ./vmware-install.pl[/quote]

    三、同步主机和linux系统时间(Synchronize Guest OS time with Host OS)
    虚拟机窗口root用户执行
    [quote]#vmware-toolbox[/quote]
    会在启动文件中看到
    [quote]tools.syncTime = "TRUE"[/quote]
    编辑/boot/grub/grub.conf
    [quote]default=0
    timeout=5
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux AS (2.6.9-55.ELsmp)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ rhgb quiet clock=pit nosmp noapic nolapic
    initrd /boot/initrd-2.6.9-55.ELsmp.img
    title Red Hat Enterprise Linux AS-up (2.6.9-55.EL)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.9-55.EL ro root=LABEL=/ rhgb quiet clock=pit nosmp noapic nolapic
    initrd /boot/initrd-2.6.9-55.EL.img[/quote]
    重启主机
    [quote]#reboot[/quote]

    启用网卡时出现错误:
    [quote]Device eth0 has different MAC address than expected, ignoring[/quote]
    [b]解决办法:[/b]
    注释掉/etc/sysconfig/network-scripts/ifcfg-eth0中HWADDR=xx:xx:xx:xx:xx:xx这一行。

    四、配置oracle用户
    [quote]# groupadd dba
    # groupadd oinstall
    # useradd -m -g oinstall -G dba oracle
    # id oracle
    uid=501(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)
    # passwd oracle
    # chown -R oracle:dba /oracle
    # chmod -R 775 /oracle[/quote]

    oracle用户环境变量配置:
    [quote]export ORACLE_SID=dbrac1
    export ORACLE_BASE=/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_2
    export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/db_1
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
    umask 022[/quote]

    五、安装asm包
    下载和内核相关的asm rpm包,其网址为
    http://www.oracle.com/technology/tech/linux/asmlib/index.html
    linux内核版本为
    [quote]# uname -a
    Linux mcrac1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux[/quote]
    安装asm lib相关包

    [quote]# rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpm
    warning: oracleasm-support-2.1.3-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    Preparing... ########################################### [100%]
    1:oracleasm-support ########################################### [100%]
    # rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm
    warning: oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el4.i386
    # rpm -ivh oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm
    Preparing... ########################################### [100%]
    1:oracleasm-2.6.9-55.ELsm########################################### [100%]
    # rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm
    warning: oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
    Preparing... ########################################### [100%]
    1:oracleasmlib ########################################### [100%]

    # rpm -qa|grep oracleasm
    oracleasm-support-2.1.3-1.el4
    oracleasmlib-2.0.4-1.el4
    oracleasm-2.6.9-55.ELsmp-2.0.3-1[/quote]


    六、配置系统文件
    [quote]# cat /etc/security/limits.conf
    # End of file
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536[/quote]

    /etc/pam.d/login添加
    [quote]session required pam_limits.so[/quote]

    /etc/profile添加
    [quote]if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi[/quote]

    /etc/modprobe.conf添加
    [quote]options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180[/quote]
    [quote]# modprobe -v hangcheck-timer
    insmod /lib/modules/2.6.9-55.ELsmp/kernel/drivers/char/hangcheck-timer.ko[/quote]

    /etc/sysctl.conf添加
    [quote]kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 1048576
    net.core.rmem_max = 1048576
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144[/quote]

    [quote]# sysctl -p[/quote]

    配置hosts文件
    [quote]# more /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost
    172.16.4.81 mcrac1
    172.16.4.82 mcrac1_vip
    192.168.0.10 mcrac1_priv
    172.16.4.83 mcrac2
    172.16.4.84 mcrac2_vip
    192.168.0.11 mcrac2_priv[/quote]


    七、检查系统包
    [quote]# rpm -qa|grep libaio
    libaio-devel-0.3.105-2
    libaio-0.3.105-2
    # rpm -qa|grep openmotif21
    openmotif21-2.1.30-11.RHEL4.6[/quote]

    八、配置共享磁盘
    [quote]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.

    This will configure the on-boot properties of the Oracle ASM library
    driver. The following questions will determine whether the driver is
    loaded on boot and what permissions it will have. The current values
    will be shown in brackets ('[]'). Hitting <ENTER> without typing an
    answer will keep that current value. Ctrl-C will abort.

    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [ OK ]
    Scanning the system for Oracle ASMLib disks: [ OK ][/quote]
    创建asm磁盘出现以下问题:
    [quote]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "VOL1" as an ASM disk: [FAILED]
    # tail -f /var/log/oracleasm
    Writing disk header: oracleasm-write-label: Unable to clear device "/dev/sdc1": No space left on device
    failed
    Unable to label device "/dev/sdc1"
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Disk "VOL1" does not exist or is not instantiated
    Writing disk header: oracleasm-write-label: Unable to clear device "/dev/sdc1": No space left on device
    failed
    Unable to label device "/dev/sdc1"[/quote]
    [b]解决办法:[/b]
    重新划分pdisk将扩展分区变为主分区
    [quote]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "VOL1" as an ASM disk: [ OK ]
    # /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1
    Marking disk "VOL2" as an ASM disk: [ OK ]
    # /etc/init.d/oracleasm createdisk VOL3 /dev/sde1
    Marking disk "VOL3" as an ASM disk: [ OK ]
    [/quote]


    可以利用 /etc/init.d/oracleasm 的 'enable' 和 'disable' 选项来启用或禁用自动启动。


    配置raw设备
    [quote]# cat /etc/sysconfig/rawdevices
    # This file and interface are deprecated.
    # Applications needing raw device access should open regular
    # block devices with O_DIRECT.
    # raw device bindings
    # format: <rawdev> <major> <minor>
    # <rawdev> <blockdev>
    # example: /dev/raw/raw1 /dev/sda1
    # /dev/raw/raw2 8 5
    /dev/raw/raw1 /dev/sdc1
    /dev/raw/raw2 /dev/sdd1
    /dev/raw/raw3 /dev/sde1

    # /sbin/service rawdevices restart
    Assigning devices:
    /dev/raw/raw1 --> /dev/sdc1
    /dev/raw/raw1: bound to major 8, minor 32
    /dev/raw/raw2 --> /dev/sdd1
    /dev/raw/raw2: bound to major 8, minor 48
    /dev/raw/raw3 --> /dev/sde1
    /dev/raw/raw3: bound to major 8, minor 64
    done


    # chown oracle:dba *
    # ls -rtl
    total 0
    crw-rw---- 1 oracle dba 162, 1 Mar 30 12:25 raw1
    crw-rw---- 1 oracle dba 162, 2 Mar 30 12:25 raw2
    crw-rw---- 1 oracle dba 162, 3 Mar 30 12:25 raw3
    [/quote]


    九、拷贝rac1文件夹下虚拟机文件至rac2文件夹下修改虚拟机启动文件
    [quote]displayname='rac2'
    [/quote]
    并在两个虚拟机启动文件中添加如下参数
    [quote]disk.locking = "FALSE"
    diskLib.dataCacheMaxSize = "0"
    scsi1.sharedBus = "virtual"
    scsi1:0.deviceType = "disk"
    scsi1:1.deviceType = "disk"
    scsi1:2.deviceType = "disk"
    scsi1:3.deviceType = "disk"[/quote]
    启动rac2虚拟机
    修改ip地址
    即时生效:
    [quote]# ifconfig eth0 172.16.4.83 netmask 255.255.255.0
    # ifconfig eth1 192.168.0.11 netmask 255.255.255.0[/quote]
    启动生效:
    修改/etc/sysconfig/network-scripts/ifcfg-eth0
    修改/etc/sysconfig/network-scripts/ifcfg-eth1

    修改host name
    即时生效:
    [quote]# hostname rac2[/quote]
    启动生效:
    修改/etc/sysconfig/network

    十、配置ssh
    需要root和oracle用户双节点互通,注意自身用户也需通
    十一、配置时间同步
    mcrac1启动服务
    [quote]#chkconfig time on [/quote]
    mcrac2 crontab中配置
    [quote]# crontab -l
    */1 * * * * rdate -s 172.16.4.81[/quote]

    十二、配置ocfs2
    下载网址为
    http://oss.oracle.com/projects/ocfs2-tools/files/RedHat/RHEL4/i386/1.2.7-1/
    http://oss.oracle.com/projects/ocfs2/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-55.EL/

    双节点安装
    [quote]# rpm -ivh ocfs2-tools-1.2.7-1.el4.i386.rpm
    Preparing... ########################################### [100%]
    1:ocfs2-tools ########################################### [100%]
    # rpm -ivh ocfs2console-1.2.7-1.el4.i386.rpm
    Preparing... ########################################### [100%]
    1:ocfs2console ########################################### [100%]
    # rpm -ivh ocfs2-2.6.9-55.ELsmp-1.2.9-1.el4.i686.rpm
    Preparing... ########################################### [100%]
    1:ocfs2-2.6.9-55.ELsmp ########################################### [100%]
    [/quote]

    [quote]# rpm -qa|grep ocfs
    ocfs2-2.6.9-55.ELsmp-1.2.9-1.el4
    ocfs2-tools-1.2.7-1.el4
    ocfs2console-1.2.7-1.el4[/quote]

    要禁用 SELinux,运行“Security Level Configuration”GUI 实用程序:

    [quote]# /usr/bin/system-config-securitylevel &[/quote]

    现在,单击 SELinux 选项卡并取消选中“Enabled”复选框。单击 [OK] 后,将显示一个警告对话框。只需单击“Yes”确认该警告。禁用 SELinux 选项,

    在集群中的两个节点上进行此更改后,将需要重新引导每个节点以实施更改:在继续配置 OCFS2 之前,必须禁用 SELinux!

    [quote]# init 6[/quote]重启主机

    [quote]# ocfs2console[/quote]

    Configure Nodes --> Add --> 输入NODE名和IP --> OK --> Apply
    出现如下错误:
    [quote] o2cb_ctl: Unable to access cluster service while creating node
    Could not add node node1[/quote]
    [b]
    解决办法:[/b]

    将/etc/ocfs2/下的不正确的cluster.conf文件删掉,重新用ocfs2console 配置

    双节点cluster.conf文件显示
    [quote]# more cluster.conf
    node:
    ip_port = 7777
    ip_address = 172.16.4.81
    number = 0
    name = mcrac1
    cluster = ocfs2

    node:
    ip_port = 7777
    ip_address = 172.16.4.83
    number = 1
    name = mcrac2
    cluster = ocfs2

    cluster:
    node_count = 2
    name = ocfs2
    [/quote]

    双节点执行
    [quote]# /etc/init.d/o2cb unload
    Stopping O2CB cluster ocfs2: OK
    Unmounting ocfs2_dlmfs filesystem: OK
    Unloading module "ocfs2_dlmfs": OK
    Unmounting configfs filesystem: OK
    Unloading module "configfs": OK[/quote]
    [quote]# /etc/init.d/o2cb configure
    Configuring the O2CB driver.

    This will configure the on-boot properties of the O2CB driver.
    The following questions will determine whether the driver is loaded on
    boot. The current values will be shown in brackets ('[]'). Hitting
    <ENTER> without typing an answer will keep that current value. Ctrl-C
    will abort.

    Load O2CB driver on boot (y/n) [y]: y
    Cluster to start on boot (Enter "none" to clear) [ocfs2]:
    Specify heartbeat dead threshold (>=7) [31]: 61
    Specify network idle timeout in ms (>=5000) [30000]:
    Specify network keepalive delay in ms (>=1000) [2000]:
    Specify network reconnect delay in ms (>=2000) [2000]:
    Writing O2CB configuration: OK
    Loading module "configfs": OK
    Mounting configfs filesystem at /config: OK
    Loading module "ocfs2_nodemanager": OK
    Loading module "ocfs2_dlm": OK
    Loading module "ocfs2_dlmfs": OK
    Mounting ocfs2_dlmfs filesystem at /dlm: OK
    Starting O2CB cluster ocfs2: OK[/quote]

    单节点格式化OCFS2
    [quote]# mkfs.ocfs2 -b 4K -C 32K -N 4 -L crsfile /dev/sdb1
    mkfs.ocfs2 1.2.7
    Filesystem label=crsfile
    Block size=4096 (bits=12)
    Cluster size=32768 (bits=15)
    Volume size=2146762752 (65514 clusters) (524112 blocks)
    3 cluster groups (tail covers 1002 clusters, rest cover 32256 clusters)
    Journal size=67108864
    Initial number of node slots: 4
    Creating bitmaps: done
    Initializing superblock: done
    Writing system files: done
    Writing superblock: done
    Writing backup superblock: 1 block(s)
    Formatting Journals: done
    Writing lost+found: done
    mkfs.ocfs2 successful[/quote]

    [quote]# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs2[/quote]

    二节点mount
    [quote]root@mcrac2 ocfs2]# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs2
    ocfs2_hb_ctl: Bad magic number in inode while reading uuid
    mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
    # mounted.ocfs2 -f
    Device FS Nodes
    /dev/sdb1 ocfs2 Unknown: Bad magic number in inode [/quote]

    [b]解决办法:[/b]
    经过检查发现,这个问题是由于在为虚拟机创建磁盘的时候没有选择“allocate all disk space now”,导致ocfs在加入第二个节点时出错,关掉虚拟机删除该磁盘,重新创建一个立即分配空间的盘再格式化,两个节点都能正常mount了。

    双节点编辑fstab
    [quote]/dev/sdb1 /ocfs2 ocfs2 _netdev,datavolume,nointr 0 0[/quote]

    十三、安装crs软件:
    双节点执行
    [quote][oracle@mcrac1 logs]$ su
    Password
    /oracle/app/oraInventory/orainstRoot.sh[/quote]
    注意二节点不要在远程会话终端执行,需要在虚拟机上执行
    [quote]/oracle/app/product/10.2.0/db_1/root.sh

    The root.sh script on rac2 invoked the VIPCA automatically but it failed with the error "The
    given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs."
    As you are using a non-routable IP address (192.168.x.x) for the public interface, the Oracle
    Cluster Verification Utility (CVU) could not find a suitable public interface. A workaround is to
    run VIPCA manually.[/quote]
    在vipca配置栏中根据/etc/hosts来配置
    执行后期检查
    [quote][oracle@mcrac2 ~]$ cluvfy stage -post crsinst -n mcrac1,mcrac2

    Performing post-checks for cluster services setup

    Checking node reachability...
    Node reachability check passed from node "mcrac2".


    Checking user equivalence...
    User equivalence check passed for user "oracle".

    Checking Cluster manager integrity...


    Checking CSS daemon...
    Daemon status check passed for "CSS daemon".

    Cluster manager integrity check passed.

    Checking cluster integrity...


    Cluster integrity check passed


    Checking OCR integrity...

    Checking the absence of a non-clustered configuration...
    All nodes free of non-clustered, local-only configurations.

    Uniqueness check for OCR device passed.

    Checking the version of OCR...
    OCR of correct Version "2" exists.

    Checking data integrity of OCR...
    Data integrity check for OCR passed.

    OCR integrity check passed.

    Checking CRS integrity...

    Checking daemon liveness...
    Liveness check passed for "CRS daemon".

    Checking daemon liveness...
    Liveness check passed for "CSS daemon".

    Checking daemon liveness...
    Liveness check passed for "EVM daemon".

    Checking CRS health...
    CRS health check passed.

    CRS integrity check passed.

    Checking node application existence...


    Checking existence of VIP node application (required)
    Check passed.

    Checking existence of ONS node application (optional)
    Check passed.

    Checking existence of GSD node application (optional)
    Check passed.


    Post-check for cluster services setup was successful.
    [/quote]

    [quote][oracle@mcrac2 ~]$ crs_stat -t
    Name Type Target State Host
    ------------------------------------------------------------
    ora.mcrac1.gsd application ONLINE ONLINE mcrac1
    ora.mcrac1.ons application ONLINE ONLINE mcrac1
    ora.mcrac1.vip application ONLINE ONLINE mcrac1
    ora.mcrac2.gsd application ONLINE ONLINE mcrac2
    ora.mcrac2.ons application ONLINE ONLINE mcrac2
    ora.mcrac2.vip application ONLINE ONLINE mcrac2 [/quote]

    十四、安装数据库
    二节点启动ASM实例报错
    [quote]SQL> startup
    ASM instance started

    Total System Global Area 92274688 bytes
    Fixed Size 1217884 bytes
    Variable Size 65890980 bytes
    ASM Cache 25165824 bytes
    ORA-15032: not all alterations performed
    ORA-15063: ASM discovered an insufficientnumber of disks for diskgroup
    "DATADG[/quote]
    后台alert日志显示
    [quote]Wed Mar 31 10:30:39 2010
    SQL> ALTER DISKGROUP ALL MOUNT
    Wed Mar 31 10:30:39 2010
    NOTE: cache registered group DATADG number=1 incarn=0xc102e171
    Wed Mar 31 10:30:39 2010
    Loaded ASM Library - Generic Linux, version 2.0.4 (KABI_V2) library for asmlib interface
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ORA-15186: ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted]
    Wed Mar 31 10:30:39 2010
    ERROR: no PST quorum in group 1: required 1, found 0
    Wed Mar 31 10:30:39 2010
    NOTE: cache dismounting group 1/0xC102E171 (DATADG)
    NOTE: dbwr not being msg'd to dismount
    ERROR: diskgroup DATADG was not mounted[/quote]
    [b]解决办法:[/b]
    init+ASM2节点添加
    [quote]asm_diskstring=ORCL:*[/quote]
    添加之后,后台alert显示
    [quote]Wed Mar 31 11:01:23 2010
    SQL> ALTER DISKGROUP ALL MOUNT
    Wed Mar 31 11:01:23 2010
    NOTE: cache registered group DATADG number=1 incarn=0xc105b157
    Wed Mar 31 11:01:23 2010
    Loaded ASM Library - Generic Linux, version 2.0.4 (KABI_V2) library for asmlib interface
    Wed Mar 31 11:01:23 2010
    ERROR: no PST quorum in group 1: required 2, found 0
    Wed Mar 31 11:01:23 2010
    NOTE: cache dismounting group 1/0xC105B157 (DATADG)
    NOTE: dbwr not being msg'd to dismount
    ERROR: diskgroup DATADG was not mounted
    [/quote]
    [b]解决办法:[/b]
    重启主机,怪异!
    安装完毕之后,rac状态显示
    [quote][oracle@mcrac2 ~]$ crs_stat -t
    Name Type Target State Host
    ------------------------------------------------------------
    ora.dbrac.db application ONLINE ONLINE mcrac1
    ora....c1.inst application ONLINE ONLINE mcrac1
    ora....c2.inst application ONLINE ONLINE mcrac2
    ora....SM1.asm application ONLINE ONLINE mcrac1
    ora....C1.lsnr application ONLINE ONLINE mcrac1
    ora.mcrac1.gsd application ONLINE ONLINE mcrac1
    ora.mcrac1.ons application ONLINE ONLINE mcrac1
    ora.mcrac1.vip application ONLINE ONLINE mcrac1
    ora....SM2.asm application ONLINE ONLINE mcrac2
    ora....C2.lsnr application ONLINE ONLINE mcrac2
    ora.mcrac2.gsd application ONLINE ONLINE mcrac2
    ora.mcrac2.ons application ONLINE ONLINE mcrac2
    ora.mcrac2.vip application ONLINE ONLINE mcrac2 [/quote]
    展开全文
  • VMware Tools for linux

    2018-05-07 16:07:08
    VMware Tools for linux VMware Tools for linuxVMware Tools for linux
  • VMWare Tools for linux 支持VMWare! 相关下载链接://download.csdn.net/download/huzhongxiang20/1527104?utm_source=bbsseo
  • VMware Tools for Linux

    2010-01-30 09:15:11
    VMware Tools for Linux ^_^ 压缩包里面是116M的ISO文件。
  • vmware tools for linux.iso

    2016-08-01 09:25:48
    vmware tools for linux.iso 完成虚拟机增强的工具
  • Linux VMware Tools安装步骤简易版Linux VMware Tools安装估计有点困难,我也在网上看了好多版本的Linux安装VMware Tools,方法都一样。但是自己在安装过程中,还是遇到了点问题。但是最终还是搞定。我运行的是...

    Linux VMware Tools安装步骤简易版

    Linux VMware Tools安装估计有点困难,我也在网上看了好多版本的Linux安装VMware Tools,方法都一样。但是自己在安装过程中,还是遇到了点问题。但是最终还是搞定。我运行的是VMware workstation 8.0.4 , OS: CentOS 6.0

    1. 在CD-ROM虚拟光驱中选择使用ISO镜像,找到VMWARE TOOLS 安装文件,如C:\program\VMware\VMware Workstation\Programs\linux.iso
        当然这个ISO是你安装VMware workstation 的目录下的Linux.iso,不是你的Linux OS 镜像文件。VMware Tools一般都在这个文件里。

    2. 以管理员身份进入Linux,root账号

    3. 退出到windows,在虚拟机菜单栏中点击 虚拟机-> 安装 VMWARE TOOLS 子菜单,会弹出对话框,点击"确认" 安装
    4. 挂载光驱:Mount -t iso9660 /dev/cdrom /mnt

                    加载CDROM设备,这是如果进入/mnt 目录下,你会发现一个文件:

                      VMwareTools-8.8.4-743747.tar.gz

                        这个就死VMware Tools的Linux软件包,也是我们刚才使用的WinISO打开的Liunx.ISO

        有的虚拟机上估计执行mount /dev/cdrom /mnt/cdrom

        如果提示如下错误,挂载点不存在。,[root@localhost /]#mount /dev/cdrom /mnt/cdrom
                                 mount: mount point /mnt/cdrom dose not exist

       请直接执行此命令:

         mount /dev/cdrom /opt
         cd /opt
    或者应该可以使用自动挂载,直接进入
         cd /misc/cd

    5. copy 此文件到临时文件夹

       cp /mnt/mVMwareTools-8.8.4-743747.tar.gz /tmp

    6. 卸载CDROM,执行 umount /dev/cdrom

    7. 进入tmp文件目录并解压此文件包

       cd /tmp

       tar zxf vmware-linux-tools.tar.gz

       解压默认到vmware-tools-distrib目录下:此时你可以使用ls -ll 查看文件夹下的文件

    8. 进入vmware-tools-distrib,安装vmware tools.

        ./vmware-install.pl  执行安装,

        安装过程中他会一步一步的有问题回应,此过程中,你遇到后面显示[yes],[no],[yes][no]的直接输入yes,然后回车。其他的问题不管[]里面是什么,直接回车就好了,不要输入。

    9. 大约5分钟左右安装完成。 执行init 6重启ok。

    Linux VMware Tools安装步骤图文版,大家可以参考下



    操作过程如下:

    [root@localhost ~]# cd /
    [root@localhost /]# ls
    bin   dev home lost+found misc net proc sbin     srv tftpboot usr
    boot etc lib   media       mnt   opt root selinux sys tmp       var
    [root@localhost /]# cd /media
    [root@localhost media]# ls
    VMware Tools
    [root@localhost media]# cd VMware\ Tools/
    [root@localhost VMware Tools]# ls
    manifest.txt VMwareTools-8.1.3-203739.tar.gz
    [root@localhost VMware Tools]# cp VMwareTools-8.1.3-203739.tar.gz    /tmp
    [root@localhost VMware Tools]# cd /tmp
    [root@localhost tmp]# ls
    gconfd-root                                 scim-helper-manager-socket-root
    keyring-lbbFvv                              scim-panel-socket:0-root
    mapping-root                                scim-socket-frontend-root
    orbit-root                                  ssh-FmnVlj2751
    scim-bridge-0.3.0.lockfile-0@localhost:0.0 virtual-root.ZxmHUV
    scim-bridge-0.3.0.socket-0@localhost:0.0    VMwareTools-8.1.3-203739.tar.gz
    [root@localhost tmp]# tar -zxf VMwareTools-8.1.3-203739.tar.gz 
    [root@localhost tmp]# ls
    gconfd-root                                 scim-panel-socket:0-root
    keyring-lbbFvv                              scim-socket-frontend-root
    mapping-root                                ssh-FmnVlj2751
    orbit-root                                  virtual-root.ZxmHUV
    scim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz
    scim-bridge-0.3.0.socket-0@localhost:0.0    vmware-tools-distrib
    scim-helper-manager-socket-root
    [root@localhost tmp]# cd vmware-tools-distrib/
    [root@localhost vmware-tools-distrib]# ls
    bin doc etc FILES INSTALL installer lib vmware-install.pl
    [root@localhost vmware-tools-distrib]# ./vmware-install.pl 
    Creating a new VMware Tools installer database using the tar4 format.

    Installing VMware Tools.

    In which directory do you want to install the binary files? 
    [/usr/bin] yes   


    The path "yes" is a relative path. Please enter an absolute path.

    In which directory do you want to install the binary files? 
    [/usr/bin] 

    What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
    [/etc/rc.d] 

    What is the directory that contains the init scripts? 
    [/etc/rc.d/init.d] 

    In which directory do you want to install the daemon files? 
    [/usr/sbin] 

    In which directory do you want to install the library files? 
    [/usr/lib/vmware-tools] 

    The path "/usr/lib/vmware-tools" does not exist currently. This program is 
    going to create it, including needed parent directories. Is this what you want?
    [yes] 

    yes   

    In which directory do you want to install the documentation files? 
    [/usr/share/doc/vmware-tools] 
    The path "yes" is a relative path. Please enter an absolute path.

    In which directory do you want to install the documentation files? 
    [/usr/share/doc/vmware-tools] 
    The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
    is going to create it, including needed parent directories. Is this what you 
    want? [yes] 
    The installation of VMware Tools 8.1.3 build-203739 for Linux completed 
    successfully. You can decide to remove this software from your system at any 
    time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

    Before running VMware Tools for the first time, you need to configure it by 
    invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
    this program to invoke the command for you now? [yes] 

    Stopping VMware Tools services in the virtual machine:
    Guest operating system daemon:                          [确定]
    Virtual Printing daemon:                                [确定]
    Unmounting HGFS shares:                                 [确定]
    Guest filesystem driver:                                [确定]

    Found a compatible pre-built module for vmmemctl. Installing it...

    Found a compatible pre-built module for vmhgfs. Installing it...

    Found a compatible pre-built module for vmxnet. Installing it...

    Found a compatible pre-built module for vmblock. Installing it...

    [EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
    creates backups of virtual machines. Please refer to the VMware Knowledge Base 
    for more details on this capability. Do you wish to enable this feature? 
    [no] 

    Found a compatible pre-built module for vmci. Installing it...

    Found a compatible pre-built module for vsock. Installing it...

    Found a compatible pre-built module for vmxnet3. Installing it...

    Found a compatible pre-built module for pvscsi. Installing it...

    Detected X.org version 7.1.

    Host resolution detected as "1440 x 900".

    Please choose one of the following display sizes that X will start with:

    [1] "320x200"
    [2] "320x240"
    [3] "400x300"
    [4] "512x384"
    [5] "640x400"
    [6] "640x480"
    [7] "720x480"
    [8] "800x480"
    [9] "854x480"
    [10] "720x576"
    [11] "800x600"
    [12] "1024x768"
    [13] "1280x720"
    [14] "1280x768"
    [15] "1152x864"
    [16] "1280x800"
    [17]< "1366x768"
    Please enter a number between 1 and 17:

    [17] 12   


    X Window System Version 7.1.1
    Release Date: 12 May 2006
    X Protocol Version 11, Revision 0, Release 7.1.1
    Build Operating System: Linux 2.6.18-128.1.16.el5 i686 Red Hat, Inc.
    Current Operating System: Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686
    Build Date: 22 July 2009
    Build ID: xorg-x11-server 1.1.1-48.67.el5 
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Module Loader present
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (++) Log file: "/tmp/vmware-config0/XF86ConfigLog.16172", Time: Thu Apr 1 02:40:28 2010
    (++) Using config file: "/tmp/vmware-config0/XF86Config.16172"
    The XKEYBOARD keymap compiler (xkbcomp) reports:
    > Warning:          Multiple symbols for level 1/group 1 on key <I5F>
    >                   Using XF86Sleep, ignoring XF86Standby
    > Warning:          Symbol map for key <I5F> redefined
    >                   Using last definition for conflicting fields
    Errors from xkbcomp are not fatal to the X server

    X is running fine with the new config file.

    FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
    Creating a new initrd boot image for the kernel.
    Starting VMware Tools services in the virtual machine:
    Switching to guest configuration:                       [确定]
    Paravirtual SCSI module:                                [确定]
    Guest filesystem driver:                                [确定]
    Mounting HGFS shares:                                   [失败]
    Guest memory manager:                                   [确定]
    Guest vmxnet fast network device:                       [确定]
    VM communication interface:                             [确定]
    VM communication interface socket family:               [确定]
    Blocking file system:                                   [确定]
    File system sync driver:                                [确定]
    Guest operating system daemon:                          [确定]
    Virtual Printing daemon:                                [确定]

    The configuration of VMware Tools 8.1.3 build-203739 for Linux for this running
    kernel completed successfully.

    You must restart your X session before any mouse or graphics changes take 
    effect.

    You can now run VMware Tools by invoking the following command: 
    "/usr/bin/vmware-toolbox" during an X server session.

    To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
    file and text copy/paste), you will need to do one (or more) of the following:
    1. Manually start /usr/bin/vmware-user
    2. Log out and log back into your desktop session; and,
    3. Restart your X session.

    To use the vmxnet driver, restart networking using the following commands: 
    /etc/init.d/network stop
    rmmod pcnet32
    rmmod vmxnet
    modprobe vmxnet
    /etc/init.d/network start

    Enjoy,

    --the VMware team

    Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device 
    /dev/hdc ...
    [root@localhost vmware-tools-distrib]# 

    转载于:https://www.cnblogs.com/shanhua-fu/p/7088678.html

    展开全文
  • VMware TOOLS 9.0 FOR linux

    2013-10-24 14:30:24
    VMware TOOLS 9.0 FOR linux的压缩包 解压缩之后拷贝到虚拟机中进行安装
  • Open Ubuntu VM machine...Go and click menu VM -> Install VMware Tools… Please go to step4 if you see the error below: Use physical drive instead for CD/DVD (SATA),CD/DVD 2(SATA) and Floppy. See below: P
    1. Open Ubuntu VM machine

    2. Go and click menu VM -> Install VMware Tools…
      这里写图片描述

    3. Please go to step4 if you see the error below:
      这里写图片描述

    4. Use physical drive instead for CD/DVD (SATA),CD/DVD 2(SATA) and Floppy. See below:
      这里写图片描述

    5. Please go to step 2 after finished step 4. You will see the following folder in Ubuntu machine:
      这里写图片描述

    6. Copy VMwareTools-9.6.1-1378637.tar.gz to somewhere, e.g. Desktop and upzip it via “tar –xf VMwareTools-9.6.1-1378637.tar.gz” in Terminal.
      这里写图片描述

    7. Go to folder which created by step 6, here means foder “vmware-tools-distrib” and you will see file vmware-install.pl

      这里写图片描述

    8. Install vmware-install.pl in Terminal via “sudo ./vmware-install.pl” and then next by next
      这里写图片描述

    9. Please re-log in after installed.
    展开全文
  • VMWare for Linux

    2009-08-18 12:10:00
    先上官方网站注册,下一个VMware for linux的版本,选后缀名为.bundle的那个(一定要,不然会很麻烦,而且容易出错)网上提供的命令是这两条第一步:sudo chmod +x ****.bundle第二步:sudo ./****.bundle没错,这是...
  • VMWare Tools for linux 支持VMWare! 相关下载链接://download.csdn.net/download/huzhongxiang20/1527104?utm_source=bbsseo
  • 安装VMware Tools for Linux

    千次阅读 2018-11-06 11:10:01
    第一步: 下载VMware Tools for Linux, 可通过vmware软件自动下载, 下载完后在vmware软件安装目录下, 文件名为linux.iso 第二步: 选择ISO镜像 第三步: 进入终端 挂载cdrom: mount /dev/cdrom /mnt cd到/mnt下:...
  • Didirectional drag and drop, copy and paste sudo apt-get install open-vm-tools sudo apt-get install open-vm* 现在你就...essential If the VMware cannot connect to the Internet, have a look at this page: ...
  • VMWare Horizon 7 for Linux 桌面配置指南 VMware Horizon 7 7.5 目录 设置 VMware Horizon 7 for Linux 桌面 6 功能和系统要求 7 Horizon Linux 桌面的功能 7 Horizo n 7 for Linux 桌面的配置步骤概述 11 Horizon ...
  • vmware for linux

    2008-01-29 11:03:27
    [root@localhost mycomputer]# cd /[root@localhost /]# vmwarevmware is installed, but it has not been (correctly) co...
  • vmware-tools for linux 各版本下载
  • VMware Remote Console 可以实现控制台访问,以及客户端设备与远程主机上的虚拟机之间的连接。您将需要先下载此安装程序,然后才能直接从 VMware vSphere 和 vRealize Automation Web 客户端启动外部 VMRC 应用程序...
  • VMware Remote Console 可以实现控制台访问,以及客户端设备与远程主机上的虚拟机之间的连接。您将需要先下载此安装程序,然后才能直接从 VMware vSphere 和 vRealize Automation Web 客户端启动外部 VMRC 应用程序...
  • 优麒麟/ubuntu安装VMware for linux-附件资源
  • VMware-horizonagent-linux-x86_64-7.8.0-12610615.tar.gz Linux 端的 Horizon Agent
  • 安装VMTools [root@localhost~]#mkdir/mnt/cdrom [root@localhost~]#mount/dev/cdrom/mnt/cdrom/ [root@localhost~]#cd/mnt/cdrom [root@localhost~]#ls ...VMwareTools-9.0.0-782409.tar.gz ...
  • VMware tools for linux

    2009-08-05 12:15:58
    装BT3需要的东东。 很多人都要这个,从别处下载的,大家共享
  • Vmware for linux 光驱

    2013-06-05 17:21:00
    移动linux.iso到安装目录下,讲虚拟机的光驱指向这个文件! linux.iso:http://kuai.xunlei.com/d/5DCHDAIRSQDzA69Rcad 转载于:https://www.cnblogs.com/oyyyy/archive/2013/06/05/3119306.html...
  • 安装linux虚拟机的时候,装好ubuntu后第一步就是要安装VMware-tools了,如果不安装,虚拟机的大小是不能改变的; 有时侯安装vnware-tools的时候,提示“vmware-tools-distrib:cannot mkdir :read-only file system...
  • vmware tools 9.6.2 linux.iso 从 vmware workstation 10.0.2 windows版本里面提取的,可以用在新的vm w里面。
  • Vmware horizon view client for linux 官方安装配置文档
  • VMWARE FOR LINUX卸载

    2014-02-19 13:38:00
    For a list of which products are installed, you may run:  vmware-installer --list-products or:  vmware-installer -l [root @localhost ~]# vmware-installer -l Product Name Product ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,702
精华内容 680
关键字:

forlinuxvmware

linux 订阅