当前位置: 首页 > news >正文

GDS 命令的使用 srvctl service TAF application continuity

文档中prim and stdy在同一台机器上,不同机器需要添加address list

TAF ENABLED GLOBAL SERVICE in GDS ENVIRONMNET 12C. (Doc ID 2283193.1)​编辑To Bottom


In this Document

Goal
Solution

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

GOAL

NOTE: In the images and/or the document content below, the user information and environment data used represents
fictitious data from the Oracle sample schema(s),Public Documentation delivered with an Oracle database product or
other training material. Any similarity to actual environments, actual persons, living or dead, is purely coincidental
and not intended in any manner.

For the purposes of this document, the following fictitious environment is used as an example
to describe the procedure:

NETWORK_NAME: SERVICE: prim.stpool.oradbcloud
REGIONS: stregion
DATABASE: STDB1, DB1
SERVICE: prim.stpool.oradbcloud

Goal of this article is to explain how we can create the TAF enabled Global Data Services in 12c environment and it will allow application continuity.

SOLUTION

 ++ Global Service PRIM is created as below:

GDSCTL>add service -service prim -gdspool stpool -preferred_all -role PRIMARY -tafpolicy BASIC -failovertype SELECT -failovermethod BASIC -failoverretry 20 -failoverdelay 15

 GDSCTL>config service -service prim
Catalog connection is established
Name: prim
Network name: prim.stpool.oradbcloud
Pool: stpool
Started: Yes
Preferred all: Yes
Locality: ANYWHERE
Region Failover: No
Role: PRIMARY
Primary Failover: No
Lag: ANY
Runtime Balance: SERVICE_TIME
Connection Balance: LONG
Notification: Yes
TAF Policy: BASIC
Policy: AUTOMATIC
DTP: No
Failover Method: BASIC
Failover Type: SELECT
Failover Retries: 20
Failover Delay: 15
Edition:
PDB:
Commit Outcome:
Retention Timeout:
Replay Initiation Timeout:
Session State Consistency: DYNAMIC
SQL Translation Profile:

Databases
------------------------
Database Preferred Status
-------- --------- ------
db1 Yes Enabled
stdb1 Yes Enabled

  Client Side TNS enrty:

PRIM =
(DESCRIPTION=
(FAILOVER=on)
(ADDRESS_LIST=
(LOAD_BALANCE=ON)
(ADDRESS=(PROTOCOL = TCP)(host= localhost.localdomain)(port=1522)))
(CONNECT_DATA=
(SERVICE_NAME=prim.stpool.oradbcloud)
(REGION=stregion)
(FAILOVER_MODE=
(TYPE=SELECT)
(METHOD=basic)
(RETRIES=20)
(DELAY=15))
)
))

 Test the Select during switchover:

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
[oracle@localhost ~]$ sqlplus sys/<PASSWORD>@prim as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 4 16:21:46 2017

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL>select * from dba_objects;

At the same time issue switchover from the broker.

DGMGRL> switchover to "DB1"
Performing switchover NOW, please wait...
New primary database "DB1" is opening...
Operation requires startup of instance "stdb1" on database "STDB1"
Starting instance "stdb1"...
ORACLE instance started.
Database mounted.
Database opened.
Switchover succeeded, new primary is "DB1"
DGMGRL> switchover to "STDB1"
Performing switchover NOW, please wait...
Operation requires a connection to instance "stdb1" on database "STDB1"
Connecting to instance "stdb1"...
Connected as SYSDBA.
New primary database "STDB1" is opening...
Operation requires startup of instance "db1" on database "DB1"
Starting instance "db1"...
ORACLE instance started.
Database mounted.
Database opened.
Switchover succeeded, new primary is "STDB1"

Result of select:

SHARING E O
------------- - -
NONE Y

OWNER
--------------------------------------------------------------------------------
OBJECT_NAME
--------------------------------------------------------------------------------
SUBOBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_
---------- -------------- ----------------------- --------- ---------
TIMESTAMP STATUS T G S NAMESPACE
------------------- ------- - - - ----------
EDITION_NAME
--------------------------------------------------------------------------------
SHARING E O
------------- - -


>>>>>>>>>select paused during switchover and then continued instead of throwing ORA-03113 error.

OWNER
--------------------------------------------------------------------------------
OBJECT_NAME
--------------------------------------------------------------------------------
SUBOBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_
---------- -------------- ----------------------- --------- ---------
TIMESTAMP STATUS T G S NAMESPACE
------------------- ------- - - - ----------
EDITION_NAME
--------------------------------------------------------------------------------
SHARING E O
------------- - -
NONE N

OWNER
--------------------------------------------------------------------------------
OBJECT_NAME
--------------------------------------------------------------------------------
SUBOBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_
---------- -------------- ----------------------- --------- ---------
TIMESTAMP STATUS T G S NAMESPACE
------------------- ------- - - - ----------
EDITION_NAME
--------------------------------------------------------------------------------
SHARING E O
------------- - -

90801 rows selected.

http://www.lryc.cn/news/231750.html

相关文章:

  • go 语言之 select
  • 23款奔驰GLC260L升级小柏林音响 全新15个扬声器
  • ssh 免密码登录
  • 小程序使用腾讯位置插件获取当前位置
  • 零基础学Python怎么学习?我来告诉你
  • 开源软件 FFmpeg 生成模型使用图片数据集
  • Linux Shell 通配符 / glob 模式
  • 深入了解域名与SSL证书的关系
  • 计算属性与watch的区别,fetch与axios在vue中的异步请求,单文本组件使用,使用vite创建vue项目,组件的使用方法
  • 2023.11.14 hivesql的容器,数组与映射
  • Android Glide照片宫格RecyclerView,点击SharedElement共享元素动画查看大图,Kotlin(1)
  • SELinux零知识学习八、SELinux策略语言之客体类别和许可(2)
  • deepstream-测试发送AMQP
  • LLMs可以遵循简单的规则吗?
  • 如何挑选护眼灯?光照均匀度、色温、眩光这3点!
  • python 实验7
  • 日历应用程序 BusyCal mac中文版软件特点
  • 软件测试/测试开发丨接口自动化测试,接口鉴权的多种方式
  • 08 robotframework 修改乱码问题
  • 门店如何设置多个联系电话和营业时间
  • 第5章 字典和结构化数据
  • 2023年咸阳市《网络建设与运维》赛题
  • Spring Cloud Netflix微服务组件-Eureka
  • FreeRTOS_任务创建与删除
  • 什么是Vue的前端微服务架构(Micro Frontends)?
  • 什么是原生IP与广播IP?原生IP有何优势?
  • vnodeToString函数把vnode转为string(innerhtml)
  • 【Halcon】C# HTuple多参数设置小技巧
  • 此芯科技加入绿色计算产业联盟,参编绿色计算产业发展白皮书
  • webrtc 生成unpack_aecdump工具