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
相关推荐
姚远Oracle ACE16 分钟前
Oracle AWR 报告中的SQL来自哪儿?
数据库·sql·oracle
一辉ComeOn3 小时前
【大数据高并发核心场景实战】 数据持久化层 - 查询分离
java·大数据·数据库·elasticsearch·缓存·oracle
好记忆不如烂笔头abc3 小时前
通过gdb推进修改oracle scn
数据库·oracle
无敌最俊朗@15 小时前
SQLite 核心知识点讲解
jvm·数据库·oracle
pen-ai16 小时前
【数据工程】14. Stream Data Processing
数据库·oracle
Lisonseekpan17 小时前
为什么要避免使用 `SELECT *`?
java·数据库·后端·sql·mysql·oracle
zzhongcy18 小时前
分库分表详解,以及ShardingJDBC介绍
数据库·oracle
Tiandaren2 天前
自用提示词02 || Prompt Engineering || RAG数据切分 || 作用:通过LLM将文档切分成chunks
数据库·pytorch·深度学习·oracle·prompt·rag
消失在人海中2 天前
图形数据库Neo4J简介
数据库·oracle·neo4j
-Initiation2 天前
数据库的安全与保护(下)
java·数据库·oracle