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
相关推荐
Apple_羊先森5 小时前
Oracle数据库操作深入研究:备份、数据删除与性能优化
数据库·oracle·性能优化
好记忆不如烂笔头abc20 小时前
另类pdb恢复方式-2
oracle
Menior_1 天前
【补充】数据库中有关系统编码和校验规则的简述
数据库·mysql·oracle
H2122021651 天前
SQLite3库链接与加载问题解决方案
数据库·oracle·sqlite
开航母的李大2 天前
Navicat 全量&增量数据库迁移
数据库·oracle
Apple_羊先森2 天前
Oracle表数据维护全流程指南:备份、删除与性能优化
数据库·oracle·性能优化
汤姆花花3 天前
OCI编程高级篇(八) LOB写操作
oracle·asm·dul·oracle oci 编程
laizhenghua3 天前
解决:[64000][257] ORA-00257: 归档程序错误。只有在解析完成后才以 AS SYSDBA 方式连接问题
oracle
꒰ঌ 安卓开发໒꒱3 天前
SQL Server安全删除数据并释放空间的技术方案
数据库·安全·oracle
kura_tsuki3 天前
[Oracle数据库] ORACLE的用户维护和权限操作
数据库·oracle