我原来已经在一台HP N4000上安装了oracle 9i r2的企业版本数据库软件,但是建立的都是单实例的数据库,但是现在准备和另一台N4000做RAC,我看了oracle的rac安装文档,发现rac的安装过程(只安装软件,不建立数据库)除了有一个NODE的选择,就没有什么不一样的,这样我是否可以不用在重新安装,直接就用DBCA或手工创建集群数据库?但是在看手工创建集群数据库的时候发现srvm目录下面少了admin目录下需要的文件,希望碰到过这类问题的朋友帮解答一下,谢谢。
还有一个问题,我用的裸设备创建数据库,除了配置.rhosts可以访问另一台N400后是否就可以开始创建集群数据库,不需要安装什么cluster ware了吧?对使用系统相关cluster ware部分了解的不是十分明确,希望明白的朋友也给回个信,谢谢。

解决方案 »

  1.   

    HPUX 不是很了解,cluster ware 还是需要的吧。
      

  2.   

    请问楼上,你在UNIX下面安装rac的?用的什么cluster ware?
      

  3.   

    HP Serviceguard 为 Oracle 提供了群集框架,是一种关系型数据库产品,在该产品中多个数据库实例可运行在不同的群集节点上。Real Application Cluster 的核心组件是分布式锁管理器 (DLM),该组件为数据库实例提供并行高速缓存管理。RAC 群集的每个节点都会在 Oracle 实例启动时启动一个 DLM 进程实例,之后这些实例将通过网络互相通信http://docs.hp.com/zh_cn/T1859-90062/ch01s06.html
      

  4.   

    感谢楼上的几位兄弟回复,今天重新查了一遍HP的资料,确实需要在hp的平台上装HP serviceguard和Serviceguard Extension for RAC两个hp的软件,由这两个软件提供oracle的集群功能,还有具体建立oracle集群的文档,谢谢了。
      

  5.   

    在9i下的非linux和windows平台安装rac,都必须使用vd的cluster来支撑,包括资源的分发以及对于raw device的使用.
      

  6.   

    两种方式,一种利用SERVICE GUARD做共享VG,lv上RAW设备来实现RAC。
    另一种直接用操作系统的底层 pv作为 RAW设备来实现RAC。
      

  7.   

    帖一个metalink上的noteSteps to convert your existing 9i single instance database to RAC
    -----------------------------------------------------------------1. Make a full database backup before you change anything.
    2. Copy the existing $ORACLE_HOME/dbs/init<SID1>.ora to 
       $ORACLE_HOME/dbs/init<db_name>.ora.  Add the following parameters to 
       $ORACLE_HOME/dbs/init<db_name>.ora:        *.cluster_database =  TRUE
            *.cluster_database_instances  = 2 
    *.undo_management=AUTO      (Add if you don't have it )
            <SID1>.undo_tablespace=undotbs  (undo tablespace which already exists)
    <SID1>.instance_name=RAC1
    <SID1>.instance_number=1
    <SID1>.thread=1
            <SID1>.local_listener=LISTENER_RAC1   where LISTENER_RAC1 is an entry in the tnsnames.ora file like:        LISTENER_RAC1 =
              (ADDRESS = (PROTOCOL = TCP)(HOST = <node1>)(PORT = 1521))   Keep only one line in $ORACLE_HOME/dbs/init<SID1>.ora:         ifile=$ORACLE_HOME/dbs/init<db_name>.ora   You could also create a common spfile from this pfile and add a line 
       like spfile=$ORACLE_HOME/dbs/spfile<db_name>.ora in each init<SIDn>.ora 
       file.  For more details about how to do this, please refer to Note 136327.1.
    3. Open your database and run $ORACLE_HOME/rdbms/admin/catclust.sql to create 
       cluster database specific views within the existing instance.
    4. Recreate control file if you defined maxinstances to be 1 when you created 
       the single instance database.    To check your current setting of maxinstances, run the following command 
       while the database is mounted or open and connected as a user with DBA 
       privileges:         % sqlplus /nolog 
           SQL> connect / as sysdba 
           SQL> startup mount 
           SQL> alter database backup controlfile to trace;      The trace file is located in udump directory.  Check the maxinstance value 
       in the CREATE CONTROLFILE statement.  Please refer to Note 118931.1 
       Recreating the Controlfile in RAC and OPS  
    5. Add instance specific parameters in the init<db_name>.ora for the second 
       instance on the second node and set appropriate values for it: *** Names may need to be modified <SID2>.instance_name=RAC2
    <SID2>.instance_number=2
    <SID2>.local_listener=LISTENER_RAC2
    <SID2>.thread=2
    <SID2>.undo_tablespace=UNDOTBS2
            <SID2>.cluster_database =  TRUE
            <SID2>.cluster_database_instances  = 2   where LISTENER_RAC2 is an entry in the tnsnames.ora file like:   LISTENER_RAC2 =
         (ADDRESS = (PROTOCOL = TCP)(HOST = <node2>)(PORT = 1521)) 
    6. From the first instance, mount the database and run the following command: *** Path names, file names, and sizes will need to be modified        alter database
            add logfile thread 2
              group 3 ('/dev/RAC/redo2_01_100.dbf') size 100M,
              group 4 ('/dev/RAC/redo2_02_100.dbf') size 100M;
            alter database enable public thread 2; 
           7. Create a second Undo Tablespace from the existing instance: *** Path names, file names, and sizes will need to be modified        CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE 
    '/dev/RAC/undotbs_02_210.dbf' SIZE 200M ;
    8. Set ORACLE_SID and ORACLE_HOME environment variables on the second node.
    9. Start the second Instance.