Oracle HA 之 Server Pool 实战
--创建server pool的两种方式:
图形界面:console和dbca 演示-略
命令行工具:srvctl和crsctl
--srvctl和crsctl创建serverpool
[grid@node2 ~]$ srvctl add serverpool -g s_pool -l 1 -u 2 -i 1 -n node1,node2
[grid@node2 ~]$ crsctl add serverpool c_pool -attr "MIN_SIZE=1,MAX_SIZE=2,IMPORTANCE=1"
--查看server pool
[grid@node2 ~]$ srvctl config srvpool
Server pool name: Free
Importance: 0, Min: 0, Max: -1
Candidate server names:
Server pool name: Generic
Importance: 0, Min: 0, Max: -1
Candidate server names:
Server pool name: fasppool
Importance: 10, Min: 1, Max: 2
Candidate server names: node2,node1
Server pool name: s_pool
Importance: 1, Min: 1, Max: 2
Candidate server names: node1,node2
[grid@node2 ~]$ srvctl config serverpool
Server pool name: Free
Importance: 0, Min: 0, Max: -1
Candidate server names:
Server pool name: Generic
Importance: 0, Min: 0, Max: -1
Candidate server names:
Server pool name: fasppool
Importance: 10, Min: 1, Max: 2
Candidate server names: node2,node1
Server pool name: s_pool
Importance: 1, Min: 1, Max: 2
Candidate server names: node1,node2
[grid@node2 ~]$ srvctl status serverpool
Server pool name: Free
Active servers count: 0
Server pool name: Generic
Active servers count: 0
Server pool name: fasppool
Active servers count: 1
Server pool name: s_pool
Active servers count: 1
[grid@node2 ~]$ crsctl status serverpool -p
NAME=Free
IMPORTANCE=0
MIN_SIZE=0
MAX_SIZE=-1
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r-x
NAME=Generic
IMPORTANCE=0
MIN_SIZE=0
MAX_SIZE=-1
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:r-x,pgrp:oinstall:r-x,other::r-x
NAME=c_pool
IMPORTANCE=1
MIN_SIZE=1
MAX_SIZE=2
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
NAME=efmispool
IMPORTANCE=0
MIN_SIZE=0
MAX_SIZE=1
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
NAME=ora.fasppool
IMPORTANCE=10
MIN_SIZE=1
MAX_SIZE=2
SERVER_NAMES=node2 node1
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
NAME=ora.s_pool
IMPORTANCE=1
MIN_SIZE=1
MAX_SIZE=2
SERVER_NAMES=node1 node2
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
[grid@node2 ~]$ crsctl status serverpool -f
--删除server pool
[grid@node2 ~]$ srvctl remove serverpool -g s_pool
[grid@node2 ~]$ crsctl delete serverpool c_pool
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了