ITPub博客

首页 > 数据库 > Oracle > 12C-How to modify srvpool server usering srvctl

12C-How to modify srvpool server usering srvctl

原创 Oracle 作者:yyp2009 时间:2013-12-19 09:42:12 0 删除 编辑

[oracle@oratest1 bin]$ ./crsctl status serverpool
NAME=Free
ACTIVE_SERVERS=

NAME=Generic
ACTIVE_SERVERS=oratest1 oratest2

NAME=ora.crm
ACTIVE_SERVERS=

NAME=ora.crm_noc
ACTIVE_SERVERS=oratest2

NAME=ora.crmnoc
ACTIVE_SERVERS=oratest2

NAME=ora.emrep
ACTIVE_SERVERS=oratest1

NAME=ora.ess
ACTIVE_SERVERS=

NAME=ora.essnoc
ACTIVE_SERVERS=oratest2

[oracle@oratest1 bin]$ ./crsctl status serverpool Generic -p
NAME=Generic
IMPORTANCE=0
MIN_SIZE=0
MAX_SIZE=-1
SERVER_NAMES=oratest1 oratest2
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:r-x,pgrp:oinstall:r-x,other::r-x
SERVER_CATEGORY=

[oracle@oratest1 bin]$ ./crsctl status serverpool ora.crm -p
NAME=ora.crm
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=ora.hub.category

[oracle@oratest1 bin]$  ./crsctl status serverpool ora.crm -p
NAME=ora.crm
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=ora.hub.category

[oracle@oratest1 bin]$  ./crsctl status serverpool ora.ess -p
NAME=ora.ess
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=ora.hub.category


[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.crm  -category ""
[oracle@oratest1 bin]$
[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.crm  -servers  "oratest1"
[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.crm  -servers  "oratest1" "oratest2"
PRKO-2002 : Invalid command line option: oratest2
[oracle@oratest1 bin]$  ./crsctl status serverpool ora.crm -p
NAME=ora.crm
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=oratest1
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=

[oracle@oratest1 bin]$  ./srvctl modify srvpool -serverpool ora.crm  -servers  "oratest2"
[oracle@oratest1 bin]$ ./crsctl status serverpool ora.crm -p
NAME=ora.crm
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=oratest2
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=

[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.crm  -servers  "oratest1"
[oracle@oratest1 bin]$
[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.ess   -servers  "oratest2"
PRCS-1097 : The serverpool ess already contains the server category
[oracle@oratest1 bin]$  ./srvctl modify srvpool -serverpool ora.ess   -category ""
[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.ess   -servers  "oratest2"
[oracle@oratest1 bin]$
[oracle@oratest1 bin]$
[oracle@oratest1 bin]$ ./crsctl status serverpool ora.ess -p
NAME=ora.ess
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=oratest2
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=

[oracle@oratest1 bin]$ ./srvctl modify srvpool -serverpool ora.ess   -servers  "oratest1"
[oracle@oratest1 bin]$ ./crsctl status serverpool ora.ess -p
NAME=ora.ess
IMPORTANCE=3
MIN_SIZE=2
MAX_SIZE=7
SERVER_NAMES=oratest1
PARENT_POOLS=
EXCLUSIVE_POOLS=
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
SERVER_CATEGORY=

[oracle@oratest1 bin]$ srvctl status oc4j
OC4J is enabled
OC4J is running on node oratest1
[oracle@oratest1 bin]$

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13750068/viewspace-1063700/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-10-17

  • 博文量
    330
  • 访问量
    1094548