Relocate the service.

来源:互联网 发布:apm飞控用的什么单片机 编辑:程序博客网 时间:2024/04/29 18:55

$ srvctl status service -d RPTs
Service RPTS1 is running on instance(s) RPTS2
Service RPTS2 is running on instance(s) RPTS2
Service RPTS3 is running on instance(s) RPTS2
Service RPTS0 is running on instance(s) RPTS3, RPTS2
$ srvctl relocate service -h
Usage: srvctl relocate service -d <name> -s <service_name> -i <old_inst_name> -t <new_inst_name> [-f]
   -d <name>           Unique name for the database
   -s <service>        Service name
   -i <old_inst>       Old instance name
   -t <new_inst>       New instance name
   -f                  Disconnect all sessions during stop or relocate service operations
   -h                  Print usage
$ srvctl relocate service -d RPTS -s RPTS3 -i RPTS2 -t RPTS3
$ srvctl status service -d RPTS
Service RPTS1 is running on instance(s) RPTS2
Service RPTS2 is running on instance(s) RPTS2
Service RPTS3 is running on instance(s) RPTS3
Service RPTS0 is running on instance(s) RPTS3, RPTS2

原创粉丝点击