Dear buddy,
Have you confuse that how activity about my databases, if we conside it by using backup size about archive files(oracle) and transaction log
(mssql). we can use the following way.

First , use the script to find out which DB generate the most transaction size under the same instance in Msssql.

select database_name,
SUM(cast(backup_size/1024.0/1024.0 as numeric(11,1))) as backup_size_MB
from msdb.dbo.backupset a with (nolock)
join msdb.dbo.backupmediafamily b with (nolock) on b.media_set_id = a.media_set_id
where type='L' and (backup_finish_date >= '2018-01-10' AND backup_finish_date < '2018-01-11')
group by database_name

then we can get

Yes, you can see the most big transacrion log backup size DB. That is C4.

Seconday , we can use the follow script to check how much size of archive files generated each day or how much of traction log was backuped.

Oracle:
select SUM(blocks)*512/1024/1024 from v$archived_log where completion_time >= TO_DATE(20180107,'yyyymmdd') and completion_time <TO_DATE(20180108,'yyyymmdd') and thread#=1
union all
select SUM(blocks)*512/1024/1024 from v$archived_log where completion_time >= TO_DATE(20180107,'yyyymmdd') and completion_time <TO_DATE(20180108,'yyyymmdd') and thread#=2

MSSQL:

select
SUM(cast(backup_size/1024.0/1024.0 as numeric(11,1))) as backup_size_MB
from msdb.dbo.backupset a with (nolock)
join msdb.dbo.backupmediafamily b with (nolock) on b.media_set_id = a.media_set_id
where type='L' and (backup_finish_date >= '2018-01-10' AND backup_finish_date < '2018-01-11')
--- and database_name in ('')

A way to find out how activity for mssql and oracle的更多相关文章

  1. LR11

    HP LoadRunner Readme for the Windows operating system Software version: 11.00 Publication date: Octo ...

  2. EBS Archiving and Purging: You Know you need to

    A number of trends in the IT industry have contributed to the increasing size of ERP application dat ...

  3. 转 安装EBS前期检查工具 - RDA - Health Check / Validation Engine Guide

    http://blog.itpub.net/35489/viewspace-1295028/ 参考文档        RDA - Health Check / Validation Engine Gu ...

  4. java:activiti(工作流简介 )

    1.工作流:(workflow) 整个工作的流程 eg:请假工作流 (我)员工-->组长-->经理-->主管-->人事-->总经理(董事会) eg:出差(报账)工作流 ( ...

  5. EventBus实现activity跟fragment交互数据

    最近老是听到技术群里面有人提出需求,activity跟fragment交互数据,或者从一个activity跳转到另外一个activity的fragment,所以我给大家介绍一个开源项目,EventBu ...

  6. Android—Service与Activity的交互

    service-Android的四大组件之一.人称"后台服务"指其本身的运行并不依赖于用户可视的UI界面 实际开发中我们经常需要service和activity之间可以相互传递数据 ...

  7. Android:Activity+Fragment及它们之间的数据交换.

    Android:Activity+Fragment及它们之间的数据交换 关于Fragment与Fragment.Activity通信的四种方式 比较好一点的Activity+Fragment及它们之间 ...

  8. Android中Activity处理返回结果的实现方式

    大家在网上购物时都有这样一个体验,在确认订单选择收货人以及地址时,会跳转页面到我们存入网站内的所有收货信息(包含收货地址,收货人)的界面供我们选择,一旦我们点击其中某一条信息,则会自动跳转到订单提交界 ...

  9. 报错:You need to use a Theme.AppCompat theme (or descendant) with this activity.

    学习 Activity 生命周期时希望通过 Dialog 主题测试 onPause() 和 onStop() 的区别,点击按钮跳转 Activity 时报错: E/AndroidRuntime: FA ...

随机推荐

  1. Django框架之ORM的相关操作之一对一关系(四)

    ORM中一对一在当一张表的某一些字段查询的比较频繁,另外一些字段查询的不是特别频繁,那么就把不常用的字段单独拿出来做成一张表,然后通过一对一进行关联起来.举个例子:在我们登录某个账户的时候,一般会显示 ...

  2. mybatis批量插入和更新

    批量插入 <insert id="add" parameterType="java.util.List"> insert all <forea ...

  3. opencv:图形绘制与填充

    #include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace st ...

  4. tp5 自定义公共函数,前台模板调用

    最近用tp5做一个cms,在添加模型的时候,选择类型,这类型太多了,如果一个个的去判断显示,能累死人了,干脆写个公共方法, 首先写公共方法用到Common.php,目录project/applicat ...

  5. springboot 注解@EnableConfigurationProperties @ConfigurationProperties作用

    @EnableConfigurationProperties 在springboot启动类添加,当springboot程序启动时会立即加载@EnableConfigurationProperties注 ...

  6. Cygwin不能编译及解决办法

    最近不知道什么原因,以前使用cygwin编译Android动态库,现在不能使用了,报下面的错误. Android NDK: Host 'awk' tool is outdated. Please de ...

  7. Jenkins+Maven+Github+Springboot实现可持续自动部署(非常详细)

    目前公司开发的项目已经部署到服务器上,部署项目的测试环境和生产环境,加上每个项目n个服务,于是我就 , 骚就是骚,但是就是太累了,于是花点时间研究了一下Jenkins. Jenkins的作用和它的lo ...

  8. leetCode练题——28. Implement strStr()

    1.题目 28. Implement strStr()——Easy Implement strStr(). Return the index of the first occurrence of ne ...

  9. @Value注解的使用

    前提它需要在spring 管理的Bean中有效 (如@Service...) #{...} 此方式可以使用 SpEL 表达式如 #{30-15} ${...} 可以获取配置文件中的值 如 ${jwt. ...

  10. list随机生成数值

    List<int> numbers = Enumerable.Range(5, 10).ToList();