DG相关查询
发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,1.Standby database process status: You can run following query on standby database to see what MRP a
千家信息网最后更新 2025年01月31日DG相关查询
1.Standby database process status: You can run following query on standby database to see what MRP and RFS processes are doing, which block of which archivelog sequences are being shipped or being applied.
SQL> select process, status, thread#, sequence#, block#, blocks from v$managed_standby ;PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS--------- ------------ ---------- ---------- ---------- ----------ARCH CLOSING1 301 75776 1432ARCH CLOSING1 299 77824 1825ARCH CONNECTED0 0 0 0ARCH CLOSING1 300 75776 1422RFS IDLE0 0 0 0RFS IDLE0 0 0 0RFS IDLE1 302 72377 1MRP0 WAIT_FOR_LOG1 302 0 08 rows selected.
2.Last applied log: Run this query on the standby database to see the last applied archivelog sequence number for each thread.
SQL> SELECT thread#, max(SEQUENCE#) FROM V$ARCHIVED_LOG where APPLIED='YES' group by thread#; THREAD# MAX(SEQUENCE#)---------- -------------- 1 301
3.Archivelog difference: Run this on primary database. (not for real time apply)
SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';Session altered.SQL> SELECT a.thread#, b. last_seq, a.applied_seq, a. last_app_timestamp, b.last_seq-a.applied_seq ARC_DIFF FROM (SELECT thread#, MAX(sequence#) applied_seq, MAX(next_time) last_app_timestamp FROM gv$archived_log WHERE applied = 'YES' GROUP BY thread#) a, (SELECT thread#, MAX (sequence#) last_seq FROM gv$archived_log GROUP BY thread#) b WHERE a.thread# = b.thread#; THREAD# LAST_SEQ APPLIED_SEQ LAST_APP_TIMESTAMP ARC_DIFF---------- ---------- ----------- -------------------- ---------- 1 301 301 08-OCT-2015 01:06:460
4.Apply/transport lags: v$dataguard_stats view will show the general synchronization status of standby database.
SQL> select * from v$dataguard_stats;NAME VALUE UNIT TIME_COMPUTED DATUM_TIME------------------------- -------------------- ------------------------------ ------------------------------ ------------------------------transport lag +00 00:00:00 day(2) to second(0) interval 10/08/2015 09:21:40 10/08/2015 09:21:39apply lag +00 08:14:59 day(2) to second(0) interval 10/08/2015 09:21:40 10/08/2015 09:21:39apply finish time +00 00:00:02.091 day(2) to second(3) interval 10/08/2015 09:21:40estimated startup time 19 second 10/08/2015 09:21:40
5.
SQL> select * from v$recovery_progress;START_TIM TYPE ITEM UNITSSOFARTOTAL TIMESTAMP COMMENTS--------- ------------------------------ ------------------------- --------------- ---------- ------- --------- --------------------23-SEP-15 Media Recovery Log Files Files 229 023-SEP-15 Media Recovery Active Apply Rate KB/sec16045 023-SEP-15 Media Recovery Average Apply Rate KB/sec 6 023-SEP-15 Media Recovery Maximum Apply Rate KB/sec17761 023-SEP-15 Media Recovery Redo Applied Megabytes 7891 023-SEP-15 Media Recovery Last Applied Redo SCN+Time 0 0 08-OCT-15 SCN: 395781823-SEP-15 Media Recovery Active Time Seconds 871 023-SEP-15 Media Recovery Apply Time per Log Seconds 3 023-SEP-15 Media Recovery Checkpoint Time per Log Seconds 0 023-SEP-15 Media Recovery Elapsed Time Seconds 1248075 023-SEP-15 Media Recovery Standby Apply Lag Seconds14784 011 rows selected.
a.
b.
查询
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库的英文全称以及缩写
计算机网络技术可以做程序员吗
上不了网dns服务器是什么意思
我国网络安全事件损失
平顶山用友软件开发
应用软件开发大学
大连锦程物流网络技术
李晓霞视频软件开发
运维 ng是什么服务器
炼金化学服务器
服务器硬盘更换后黄灯绿灯在闪
地瓜网络技术授权
服务器启动一直跳到dhcp
网络安全售前江西
医院有线网络服务器选择
数据库事务全解
密乐短视频软件开发者是谁
国内展館馆网络技术
paradox数据库下载
软件开发技术论文怎么写
网络技术b在上海百首
申论网络安全
戴尔服务器是进口吗
400字网络安全
mysql数据库厂家
怀柔区多功能网络技术口碑推荐
奉贤区企业金融网络技术服务选择
人民警察关于网络安全演讲稿
北京棱镜网络技术服务
服务器液冷 上市公司