oracle10g查看rac,oracle10g R2 RAC 查看cluster interconnect使用的IP

10g R2中如何查看oracle cluster_interconnect使用的网卡地址

oracle10g R2中有三个办法来查看oracle cache fusion使用的网卡地址

1、使用oradebug ,在SQLPLUS中执行

SQL>conn / as sysdba

SQL>oradebug setmypid

SQL>oradebug ipc

到udump目录下查看对应的trace文件可以看到类似:

/oracle/admin/grid1/udump/grid1_ora_119052.trc

Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production

With the Partitioning, Real Application Clusters, OLAP and Data Mining options

ORACLE_HOME = /oracle/product/db

System name:        AIX

Node name:        xxxxx

Release:        3

Version:        5

Machine:        xxxxxxx

Instance name: grid1

Redo thread mounted by this instance: 1

Oracle process number: 33

Unix process pid: 119052, image: oracle@grid1 (TNS V1-V3)

*** SERVICE NAME

c58e339c7046a1ffce9c5508745874fa.gifSYS$USERS) 2006-12-28 18:24:59.920

*** SESSION ID

c58e339c7046a1ffce9c5508745874fa.gif519.115) 2006-12-28 18:24:59.920

Dump of unix-generic skgm context

areaflags            000000b7

realmflags           0000000f

mapsize              00001000

protectsize          00001000

lcmsize              00001000

seglen               00001000

largestsize  0000200000000000

smallestsize 0000000001000000

stacklimit    ffffffffe07c8c0

stackdir                   -1

mode                      640

magic                acc01ade

Handle:             1103eb490 `/oracle/product/dbgrid1'

Dump of unix-generic realm handle `/oracle/product/dbgrid1', flags = 00000000

Area #0 `Fixed Size' containing Subareas 0-0

Total size 0000000000209130 Minimum Subarea size 00000000

Area  Subarea    Shmid      Stable Addr      Actual Addr

0        0  3145737 0700000010000000 0700000010000000

Subarea size     Segment size

000000000020a000 0000000800011000

Area #1 `Variable Size' containing Subareas 2-2

Total size 00000007ff000000 Minimum Subarea size 01000000

Area  Subarea    Shmid      Stable Addr      Actual Addr

1        2  3145737 0700000011000000 0700000011000000

Subarea size     Segment size

00000007ff000000 0000000800011000

Area #2 `Redo Buffers' containing Subareas 1-1

Total size 0000000000df6000 Minimum Subarea size 00000000

Area  Subarea    Shmid      Stable Addr      Actual Addr

2        1  3145737 070000001020a000 070000001020a000

Subarea size     Segment size

0000000000df6000 0000000800011000

Area #3 `skgm overhead' containing Subareas 3-3

Total size 0000000000011000 Minimum Subarea size 00000000

Area  Subarea    Shmid      Stable Addr      Actual Addr

3        3  3145737 0700000810000000 0700000810000000

Subarea size     Segment size

0000000000011000 0000000800011000

Shared Memory:

ID                KEY

3145737         0xa2496450

Maximum processes:               = 500

ksxpdmp:  facility 0 (?) (0x0, 0x0) counts 0, 0

ksxpdmp:  Dumping the osd context

SKGXPCTX: 0x110441390 ctx

WAIT HISTORY

Time(msec)         Wait Type         Return Code

----------         ---------         ------------

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

0                 NORMAL                 invalid status code

wait delta 0 sec (38 msec) ctx ts 0x0 last ts 0x0

user cpu time since last wait 0 sec 0 ticks

system cpu time since last wait 0 sec 0 ticks

locked 1

blocked 0

timed wait receives 0

admno 0x5fd1a9d7 admport:

SSKGXPT 0x10442148 flags SSKGXPT_READPENDING         socket no 7         IP 10.10.10.11         UDP 33441

context timestamp 0

no ports

sconno     accono   ertt  state   seq#   sent  async   sync rtrans   acks

上面IP地址就是cachefusion使用的网卡地址。这种方法对于windows不适合,windows 的RAC中执行oradebug ipc得到错误

Statement processed.

ORA-00070: command ipc is not valid

Statement processed.

2 查看oracle数据字典gv$cluster_interconnects

SQL> select * from gv$cluster_interconnects;

INST_ID NAME            IP_ADDRESS           IS_PUBLIC       SOURCE

---------- --------------- ---------------- --------- -------------------------------

1     interface         10.10.10.11                 NO                     Oracle Cluster Repository

2    interface          10.10.10.12                 NO                     Oracle Cluster Repository

3 查看oracle内部的表x$ksxpia

SQL> conn sys/sys@grid1 as sysdba

已连接。

SQL> select * from x$ksxpia;

ADDR           INDX    INST_ID   PUB_KSXPIA PICKED_KSXPIA            NAME_KSXPIA     IP_KSXPIA

-------- ---------- ---------- ---------- ----------------------- ---------------   ------------

0C6A79EC          0          1      N              OCR                                 private         10.10.10.11

0C6A79EC          1          1      Y              OCR                                 public          192.168.0.231

SQL> conn sys/sys@grid2 as sysdba

已连接。

SQL> select * from x$ksxpia;

ADDR           INDX    INST_ID    PUB_KSXPIA PICKED_KSXPIA                NAME_KSXPIA     IP_KSXPIA

-------- ---------- ---------- ----------    ------------------------ --------------- -------------

0C6A79EC          0          2      N               OCR                                 private         10.10.10.12

0C6A79EC          1          2      Y               OCR                                 public          192.168.0.232

你可能感兴趣的:(oracle10g查看rac)