12C-How to modify srvpool server usering srvctl

yyp2009發表於2013-12-19

[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部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-1063700/,如需轉載,請註明出處,否則將追究法律責任。

相關文章