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
相关推荐
剑客狼心7 小时前
Oracle:什么是存储过程
数据库·oracle
mah66610 小时前
SpringBoot项目连接Oracle视图报错整理
spring boot·后端·oracle
weixin_3077791315 小时前
Python Pandas带多组参数和标签的Oracle数据库批量数据导出程序
数据库·python·oracle·pandas
yqcoder16 小时前
Express + MongoDB 实现更新用户时用户名变化验证数据库是否存在,不变不验证
服务器·数据库·oracle
m0_7482352418 小时前
MySQL四种备份表的方式
mysql·adb·oracle
汤汤upup19 小时前
面试八股文--数据库基础知识总结(1)
数据库·sql·oracle
灰色人生qwer19 小时前
数据库的常见权限作用
数据库·oracle
北珣.1 天前
MySQL增删改查(进阶)
数据库·mysql·oracle
Albert Tan1 天前
Oracle Fusion Middleware 12C安装 - 呆瓜式
oracle·中间件·数据库架构
一抓掉一大把2 天前
sql server笔记
数据库·笔记·oracle