oracle创建服务

1.创建服务

复制代码
11g
[oracle@node1 ~]$ srvctl add service -d prod -s test -r prod1 -a prod2 -P PRECONNECT 
[oracle@node1 ~]$ srvctl start service -d prod -s test 
[oracle@node1 ~]$ srvctl status service -d prod -s test 

19c
 srvctl  add service -db orcl -service test  -preferred orcl1 -available orcl2
 srvctl  start service -db orcl -service test
 srvctl  status service -db orcl -service test
 srvctl  enable service -db orcl -service test

select dbs.NAME, dbs.FAILOVER_METHOD, dbs.FAILOVER_TYPE, dbs.CLB_GOAL
  from dba_services dbs;

2.服务迁移

复制代码
19c:
srvctl relocate service -d <db_unique_name> -s <service_name> -oldinst <old_instance_name> -newinst <new_instance_name>
srvctl relocate  service -db orcl -service test -oldinst orcl1 -newinst orcl2

11g:
srvctl relocate  service -d prod -s test -i prod1 -t prod2
相关推荐
oradh1 小时前
Oracle 11.2.0.1版本升级至11.2.0.4_单机环境
数据库·oracle·oracle11g·oracle升级
anzhxu1 小时前
QT数据库(三):QSqlQuery使用
数据库·qt·oracle
德彪稳坐倒骑驴1 小时前
Oracle 11g安装
数据库·oracle
想七想八不如114082 小时前
数据库--样题复习
数据库·sql·oracle
java修仙传4 小时前
MySQL 事务隔离级别详解
数据库·mysql·oracle
Irissgwe4 小时前
MySQL存储过程和触发器专题
数据库·mysql·oracle
执笔画情ora6 小时前
oracle数据库优化-表碎片优化性能。
数据库·oracle
Hvitur7 小时前
软考架构师【第六章】数据库设计基础知识
数据库·oracle
养生技术人7 小时前
Oracle OCP认证考试题目详解082系列第5题
运维·数据库·sql·oracle·开闭原则
码云数智-园园11 小时前
坚如磐石:数据库事务ACID特性的实现奥秘
数据库·oracle