Rac的osn配置
-
-
- Rac查看ons状态
-
-
-
- Ons.config内容
-
localport=6100 # line added by Agent
allowgroup=true
usesharedinstall=true
remoteport=6200 # line added by Agent
nodes=hdsb-db1:6200 # line added by Agent
loglevel=3
useocr=on
-
-
- 环境变量
-
/oracle/crs/crs_home/bin:/root/bin:/oracle/crs/crs_home/bin放到oracle/product的bin路径前边
-
-
- Ons状态测试
-
[[email protected] ~]# onsctl ping
ons is running ...
[[email protected] ~]# onsctl debug
HTTP/1.1 200 OK
Content-Length: 2887
Content-Type: text/html
Response:
== hdsb-db1:6200 27905 11/12/15 14:36:07 ==
Home: /oracle/crs/crs_home
======== ONS ========
IP ADDRESS PORT TIME SEQUENCE FLAGS
--------------------------------------- ----- -------- -------- --------
172.168.1.1 6200 4ee796c5 00000002 00000008
Listener:
TYPE BIND ADDRESS PORT SOCKET
-------- --------------------------------------- ----- ------
Local 127.0.0.1 6100 5
Remote any 6200 7
Remote any 6200 -
Servers: (1)
INSTANCE NAME TIME SEQUENCE FLAGS DEFER
---------------------------------------- -------- -------- -------- ----------
dbInstance_hdsb-db2_6200 4ee7880b 00000005 00000002 0
172.168.1.2 6200
Connection Topology: (2)
IP PORT VERS TIME
--------------------------------------- ----- ----- --------
172.168.1.2 6200 4 4ee7880b
** 172.168.1.1 6200
172.168.1.1 6200 4 4ee796c5=
** 172.168.1.2 6200
Server connections:
ID CONNECTION ADDRESS PORT FLAGS SENDQ REF SUB WSA
-------- --------------------------------------- ----- ------ ----- --- --- ---
4 0000:0000:0000:0000:0000:0000:aca8:0102 6200 090026 00000 001 000
Client connections:
ID CONNECTION ADDRESS PORT FLAGS SENDQ REF SUB WSA
-------- --------------------------------------- ----- ------ ----- --- --- ---
0 internal 0 01008a 00000 001 001
1 127.0.0.1 6100 01001a 00000 001 000
2 127.0.0.1 6100 01001a 00000 001 001
3 127.0.0.1 6100 01001a 00000 001 001
7e7 0000:0000:0000:0000:0000:ffff:aca8:0202 6200 09002a 00000 001 002
7e8 0000:0000:0000:0000:0000:ffff:aca8:0202 6200 09002a 00000 001 002
7e9 0000:0000:0000:0000:0000:ffff:aca8:0202 6200 09002a 00000 001 002
7ea 0000:0000:0000:0000:0000:ffff:aca8:0202 6200 09002a 00000 001 002
request 127.0.0.1 6100 03201a 00000 001 000
Worker Ticket: 48573/48573, Last: 11/12/15 14:35:51
THREAD FLAGS
-------- --------
412c9940 00000012
412d1940 00000012
414db940 00000012
Resources:
Notifications:
Received: Total 5 (Internal 2), in Receive Q: 0
Processed: Total 5, in Process Q: 0
Pools:
Message: 49/50 (1), Link: 100/100 (1), Ack: 100/100 (1)
[[email protected] ~]#