您的位置:首页 > 数据库 > Oracle

如何判断是否实施了Oracle RAC?

2013-09-10 10:37 302 查看
方法1:
实施了RAC
SQL> show parameter cluster_database;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cluster_database                     boolean     TRUE

cluster_database_instances           integer     2
未实施RAC

SQL> show parameter cluster_database;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cluster_database                     boolean     FALSE
cluster_database_instances           integer     1


CLUSTER_DATABASE is a Real Application Clusters parameter that specifies whether or not Real Application Clusters is enabled.

CLUSTER_DATABASE_INSTANCES
is a Real Application Clusters parameter that specifies the number of instances that are configured as part of your cluster database. You must set this parameter for every instance. Normally you should set this parameter to the number of instances in your Real Application Clusters environment. A proper setting for this parameter can improve memory use.
Oracle uses the value of this parameter to compute the default value of the
LARGE_POOL_SIZE
parameter when the
PARALLEL_AUTOMATIC_TUNING
parameter is set to
true
. Note that the
PARALLEL_AUTOMATIC_TUNIG
parameter has been deprecated.

方法2:
select * from v$option WHERE Parameter = 'Real Application Clusters';
Output:True/False
V$OPTION
displays Oracle Database options and features. Typically, although not always, options must be separately licensed, whereas features come with the product and are enabled based on the product that is running (Standard Edition, Enterprise Edition, and so on).

方法3:
SELECT * from v$active_instances;
Output
INST_NUMBER INST_NAME
1 xyzdb1:abprod1
2 xyzdb2:abprod2

V$ACTIVE_INSTANCES displays the mapping between instance names and instance numbers for all instances that have the database currently mounted.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: