OPatch 如何判断一个数据库是否是RAC?

[复制链接]
查看11 | 回复9 | 2011-5-7 01:45:08 | 显示全部楼层 |阅读模式
今天准备迁移一个以数据库,用OPatch 察看安装补丁的烈表时发现
$ opatch lsinventory
Oracle Interim Patch Installer version 1.0.0.0.52
Copyright (c) 2005 Oracle Corporation. All Rights Reserved..
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com
Oracle Home = /u01a/app/oracle/product/9.2.0.1
Location of Oracle Universal Installer components = /u01a/app/oracle/product/9.2.0.1/oui
Location of OraInstaller.jar= "/u01a/app/oracle/product/9.2.0.1/oui/jlib"
Oracle Universal Installer shared library = /u01a/app/oracle/product/9.2.0.1/oui/lib/aix/liboraInstaller.so
Location of Oracle Inventory Pointer = /etc/oraInst.loc
Location of Oracle Inventory = /u01a/app/oracle/product/9.2.0.1/inventory
Path to Java = /u01a/app/oracle/product/9.2.0.1/jre/1.4.2/bin/java
Log file = /u01a/app/oracle/product/9.2.0.1/.patch_storage//*.log
Creating log file "/u01a/app/oracle/product/9.2.0.1/.patch_storage/LsInventory__11-16-2010_11-49-41.log"
Result:

Installed Patch List:
=====================
1) Patch 4658188 applied on Sun Mar 30 06:36:31 GMT+08:00 2008
[ Base Bug(s): 4658188]
----------------------------
Single-Node RAC System
----------------------------
这个数据库是一个非RAC环境,没有装CRS,为什么OPatch认为这是一个单节点的RAC?
他从什么地方判断的?
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
select * from v$option;
看看rac是true or false?
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
原帖由 jieyancai 于 2010-11-16 14:57 发表
select * from v$option;
看看rac是true or false?

若数据库是关闭的,能否知道? 或者说,让楼主关闭数据库,能否看到同样的结果?
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
原帖由 jieyancai 于 2010-11-16 14:57 发表
select * from v$option;
看看rac是true or false?


SQL> select * from v$option where parameter='Real Application Clusters';
PARAMETER
VALUE
------------------------- ----------------------------------------------------------------
Real Application Clusters FALSE
Elapsed: 00:00:00.03
。。。。


灵异呀...
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
原帖由 ZALBB 于 2010-11-16 14:59 发表

若数据库是关闭的,能否知道? 或者说,让楼主关闭数据库,能否看到同样的结果?



不能关闭。。。 生产用着呢...
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
grep一下inventory/ContentsXML目录下的xml文件
看看有没有匹配的结果?
grep Single-Node *.xml
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
SQL> show instance
instance "local"
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
原帖由 〇〇 于 2010-11-16 16:53 发表
SQL> show instance
instance "local"


SQL> show instance
instance "local"
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
原帖由 jieyancai 于 2010-11-16 16:52 发表
grep一下inventory/ContentsXML目录下的xml文件
看看有没有匹配的结果?
grep Single-Node *.xml


..
$ cd ContentsXML
$ ls -ltr
total 1224
-rwxr-x--- 1 oracle_w dba
232 Apr 12 2006oraclehomeproperties.xml
-rw-rw-r-- 1 oracle_w dba
8357 Mar 30 2008libs.xml
-rw-rw-r-- 1 oracle_w dba
195 Mar 30 2008config.xml
-rw-rw-r-- 1 oracle_w dba
606115 Mar 30 2008comps.xml
$ grep Single-Node *.xml
$
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
I guess oracle will check some files in inventory or ORACLE_HOME
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行