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
相关推荐
何以解忧,唯有..2 小时前
数据库索引失效的常见情况与优化策略
数据库·sql·oracle
oradh4 小时前
Oracle UNDO表空间管理维护总结
数据库·oracle·undo表空间·undo表空间管理·undo表空间管理维护
一个有温度的技术博主6 小时前
MySQL 三大日志协同机制:redo log、undo log 与 binlog 的联合运作
数据库·mysql·oracle
lixora10 小时前
oracle 控制文件解析
oracle
渣渣盟11 小时前
误删数据之后:MySQL、PostgreSQL、Oracle三库紧急恢复完全实操手册
mysql·postgresql·oracle
haerapicom14 小时前
Loop Engineering 落地:用检查点把 Agent 循环变成可审计流水线
服务器·数据库·oracle
Light Gao2 天前
企业级灰度发布技术方案
网络·数据库·oracle
腾科IT教育2 天前
Oracle OCP/OCM认证含金量实测2026版
数据库·oracle·ocp·ocm·甲骨文
一个有温度的技术博主2 天前
DeepSeek Harness 深度解析:与 LangChain / LangGraph 的本质区别
数据库·oracle·langchain·harness
隔窗听雨眠2 天前
Oracle误Truncate操作恢复:从原理到实战的完整指南
数据库·oracle