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
相关推荐
_童年的回忆_21 小时前
【PHP】关于守护进程报错:SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
开发语言·oracle·php
悟能不能悟1 天前
查找oracle,存储过程包含某个单词的存储过程名称
数据库·oracle
知识分享小能手1 天前
Oracle 19c入门学习教程,从入门到精通,Oracle 过程、函数、触发器和包详解(7)
数据库·学习·oracle
liux35281 天前
MySQL日志系统全面解析:从基础到高级管理(六)
数据库·mysql·oracle
aa765aa1 天前
VM OS Oracle Linux 8.10 安装Oracle19C
oracle
曹牧1 天前
Oracle:增加十分钟
数据库·oracle
ascarl20101 天前
达梦与 Oracle 的关系及数据库架构差异
数据库·oracle·数据库架构
悟能不能悟1 天前
在Oracle中,包分为包头(PACKAGE)和包体(PACKAGE BODY),存储过程的实现代码在包体中。以下是几种查找方法
数据库·oracle
好好学操作系统1 天前
notion+excel自动创建表格| 了解了notion api
数据库·python·oracle·excel·notion
爱吃山竹的大肚肚1 天前
达梦(DM)数据库中设置表空间
java·数据库·sql·mysql·spring·spring cloud·oracle