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
相关推荐
野生技术架构师1 小时前
数据库连接池爆满如何排查
网络·数据库·oracle
百***81271 小时前
从 SQL 语句到数据库操作
数据库·sql·oracle
百***3282 小时前
数据库(MySQL):使用命令从零开始在Navicat创建一个数据库及其数据表(一).创建基础表
数据库·mysql·oracle
z***y8627 小时前
GitGraphQLAPI
oracle·udp·wireshark
q***017721 小时前
【MySQL】表的基本操作
数据库·mysql·oracle
g***72701 天前
【MySQL】数据库和表的操作
数据库·mysql·oracle
“αβ”1 天前
MySQL库的操作
linux·服务器·网络·数据库·c++·mysql·oracle
wljt1 天前
Redis常用命令
数据库·redis·oracle
秋邱1 天前
驾驭数据洪流:Python如何赋能您的数据思维与决策飞跃
jvm·算法·云原生·oracle·eureka·数据分析·推荐算法
s***4531 天前
解决Spring Boot中Druid连接池“discard long time none received connection“警告
spring boot·后端·oracle