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

网站内页如何做排名/优化大师百科

网站内页如何做排名,优化大师百科,做传销网站违法,网站建设网站免费DBA的日常功能SQL之一,绝对原创。 查看数据库的日志切换频率及生成速度是DBA的日常工作之一,通过观察相关信息可以调整online redo 的大小及切换频率。 非归档模式主要是查询 v$log_history 归档模式主要是查询 v$archived_log,也可以查询 …

DBA的日常功能SQL之一,绝对原创。


查看数据库的日志切换频率及生成速度是DBA的日常工作之一,通过观察相关信息可以调整online redo 的大小及切换频率。


非归档模式主要是查询 v$log_history

归档模式主要是查询 v$archived_log,也可以查询   v$log_history , 只是v$archived_log.completion_time 和 v$log_history.first_time 在时间上group by时稍有差异。




非归档模式

-- 日志切换频率
-- v$log_history
SELECT 
    trunc(first_time) "Date",
      to_char(first_time, 'Dy') "Day",
      THREAD#,
      count(1) "Total",
      SUM(decode(to_char(first_time, 'hh24'),'00',1,0)) "h0_1",
      SUM(decode(to_char(first_time, 'hh24'),'01',1,0)) "h1_2",
      SUM(decode(to_char(first_time, 'hh24'),'02',1,0)) "h2_3",
      SUM(decode(to_char(first_time, 'hh24'),'03',1,0)) "h3_4",
      SUM(decode(to_char(first_time, 'hh24'),'04',1,0)) "h4_5",
      SUM(decode(to_char(first_time, 'hh24'),'05',1,0)) "h5_6",
      SUM(decode(to_char(first_time, 'hh24'),'06',1,0)) "h6_7",
      SUM(decode(to_char(first_time, 'hh24'),'07',1,0)) "h7_8",
      SUM(decode(to_char(first_time, 'hh24'),'08',1,0)) "h8_9",
      SUM(decode(to_char(first_time, 'hh24'),'09',1,0)) "h9_10",
      SUM(decode(to_char(first_time, 'hh24'),'10',1,0)) "h10_11",
      SUM(decode(to_char(first_time, 'hh24'),'11',1,0)) "h11_12",
      SUM(decode(to_char(first_time, 'hh24'),'12',1,0)) "h12_13",
      SUM(decode(to_char(first_time, 'hh24'),'13',1,0)) "h13_14",
      SUM(decode(to_char(first_time, 'hh24'),'14',1,0)) "h14_15",
      SUM(decode(to_char(first_time, 'hh24'),'15',1,0)) "h15_16",
      SUM(decode(to_char(first_time, 'hh24'),'16',1,0)) "h16_17",
      SUM(decode(to_char(first_time, 'hh24'),'17',1,0)) "h17_18",
      SUM(decode(to_char(first_time, 'hh24'),'18',1,0)) "h18_19",
      SUM(decode(to_char(first_time, 'hh24'),'19',1,0)) "h19_20",
      SUM(decode(to_char(first_time, 'hh24'),'20',1,0)) "h20_21",
      SUM(decode(to_char(first_time, 'hh24'),'21',1,0)) "h21_22",
      SUM(decode(to_char(first_time, 'hh24'),'22',1,0)) "h22_23",
      SUM(decode(to_char(first_time, 'hh24'),'23',1,0)) "h23_24"
FROM v$log_history
group by trunc(first_time), to_char(first_time, 'Dy'),THREAD#
Order by 1 desc,3 



归档模式

--归档生成频率
-- v$archived_log
SELECT 
      trunc(completion_time) "Date",
      to_char(completion_time, 'Dy') "Day",
      THREAD#,
      dest_id,
      count(1) "Total",
      SUM(decode(to_char(completion_time, 'hh24'),'00',1,0)) "h0_1",
      SUM(decode(to_char(completion_time, 'hh24'),'01',1,0)) "h1_2",
      SUM(decode(to_char(completion_time, 'hh24'),'02',1,0)) "h2_3",
      SUM(decode(to_char(completion_time, 'hh24'),'03',1,0)) "h3_4",
      SUM(decode(to_char(completion_time, 'hh24'),'04',1,0)) "h4_5",
      SUM(decode(to_char(completion_time, 'hh24'),'05',1,0)) "h5_6",
      SUM(decode(to_char(completion_time, 'hh24'),'06',1,0)) "h6_7",
      SUM(decode(to_char(completion_time, 'hh24'),'07',1,0)) "h7_8",
      SUM(decode(to_char(completion_time, 'hh24'),'08',1,0)) "h8_9",
      SUM(decode(to_char(completion_time, 'hh24'),'09',1,0)) "h9_10",
      SUM(decode(to_char(completion_time, 'hh24'),'10',1,0)) "h10_11",
      SUM(decode(to_char(completion_time, 'hh24'),'11',1,0)) "h11_12",
      SUM(decode(to_char(completion_time, 'hh24'),'12',1,0)) "h12_13",
      SUM(decode(to_char(completion_time, 'hh24'),'13',1,0)) "h13_14",
      SUM(decode(to_char(completion_time, 'hh24'),'14',1,0)) "h14_15",
      SUM(decode(to_char(completion_time, 'hh24'),'15',1,0)) "h15_16",
      SUM(decode(to_char(completion_time, 'hh24'),'16',1,0)) "h16_17",
      SUM(decode(to_char(completion_time, 'hh24'),'17',1,0)) "h17_18",
      SUM(decode(to_char(completion_time, 'hh24'),'18',1,0)) "h18_19",
      SUM(decode(to_char(completion_time, 'hh24'),'19',1,0)) "h19_20",
      SUM(decode(to_char(completion_time, 'hh24'),'20',1,0)) "h20_21",
      SUM(decode(to_char(completion_time, 'hh24'),'21',1,0)) "h21_22",
      SUM(decode(to_char(completion_time, 'hh24'),'22',1,0)) "h22_23",
      SUM(decode(to_char(completion_time, 'hh24'),'23',1,0)) "h23_24"
FROM v$archived_log
group by trunc(completion_time), 
         to_char(completion_time, 'Dy'),
         THREAD#,
         dest_id
Order by 1 desc,3,4 



 


----归档生成大小
-- v$archived_log
SELECT 
      trunc(completion_time) "Date",
      to_char(completion_time, 'Dy') "Day",
      THREAD#,
      dest_id,
      round(sum(blocks*block_size)/1024/1024) "Total_mb",
      round(SUM(decode(to_char(completion_time, 'hh24'),'00',blocks*block_size,0))/1024/1024) h0_1_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'01',blocks*block_size,0))/1024/1024) h1_2_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'02',blocks*block_size,0))/1024/1024) h2_3_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'03',blocks*block_size,0))/1024/1024) h3_4_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'04',blocks*block_size,0))/1024/1024) h4_5_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'05',blocks*block_size,0))/1024/1024) h5_6_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'06',blocks*block_size,0))/1024/1024) h6_7_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'07',blocks*block_size,0))/1024/1024) h7_8_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'08',blocks*block_size,0))/1024/1024) h8_9_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'09',blocks*block_size,0))/1024/1024) h9_10_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'10',blocks*block_size,0))/1024/1024) h10_11_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'11',blocks*block_size,0))/1024/1024) h11_12_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'12',blocks*block_size,0))/1024/1024) h12_13_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'13',blocks*block_size,0))/1024/1024) h13_14_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'14',blocks*block_size,0))/1024/1024) h14_15_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'15',blocks*block_size,0))/1024/1024) h15_16_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'16',blocks*block_size,0))/1024/1024) h16_17_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'17',blocks*block_size,0))/1024/1024) h17_18_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'18',blocks*block_size,0))/1024/1024) h18_19_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'19',blocks*block_size,0))/1024/1024) h19_20_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'20',blocks*block_size,0))/1024/1024) h20_21_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'21',blocks*block_size,0))/1024/1024) h21_22_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'22',blocks*block_size,0))/1024/1024) h22_23_mb,
      round(SUM(decode(to_char(completion_time, 'hh24'),'23',blocks*block_size,0))/1024/1024) h23_24_mb
FROM v$archived_log
group by trunc(completion_time), 
         to_char(completion_time, 'Dy'),
         THREAD#,
         dest_id
Order by 1 desc,3,4



 


 





转载于:https://www.cnblogs.com/ctypyb2002/p/9793180.html

http://www.lbrq.cn/news/1240129.html

相关文章:

  • dw做旅游网站教程/北京网站优化推广方案
  • 网站参考模板/seo项目完整流程
  • 移动网站开发的视频下载/广告联盟app下载
  • 网站建设启动资金预算/seo网站搭建是什么
  • 治多县网站建设公司/新营销模式有哪些
  • 绵阳网站建设开发/seo快速排名软件品牌
  • 乐云网站建设/cms建站
  • 响应式网站建设外文文献/bt种子磁力搜索引擎
  • 漳州做网站含博大网/实时热榜
  • 做ppt介绍网站/网络推广费用
  • 建站网站图片不显示/9 1短视频安装
  • 京东网站难做吗/关键词广告
  • Wordpress 手机网站/网络推广员工作好做吗
  • 一键优化下载安装/江苏seo外包
  • 中教在线3d建模培训/seo推广排名
  • 乌兰县网站建设公司/百度sem优化师
  • 这是我做的网站/友情链接交换软件
  • 怎样做自己的微商网站/百度网站推广价格
  • 自己公司内网网站和外网怎么做同步/免费的发帖收录网站
  • 开发平台网站多少钱/海阳seo排名优化培训
  • 武穴市住房和城乡建设局网站/友情链接教程
  • 有赞微商城官网登录/seo网站排名的软件
  • 如何做网站预览/项目网
  • 商务网站设计与制作/百度咨询
  • 网站在vps能访问 在本地访问不了/学校seo推广培训班
  • 做门户型网站/网站视频
  • 七牛云建网站/下载百度app最新版到桌面
  • 牡丹江市营商环境建设监督局网站/廊坊关键词排名优化
  • 牛杂网这类网站怎么做的/aso推广公司
  • 手机网站自适应代码/常州seo建站
  • 一加Ace5无法连接ColorOS助手解决(安卓设备ADB模式无法连接)
  • 大语言模型涉及的一些概念(持续更新)
  • 字节Seed发布扩散语言模型,推理速度达2146 tokens/s,比同规模自回归快5.4倍
  • Android 15 限制APK包手动安装但不限制自升级的实现方案
  • 【RK3568 RTC 驱动开发详解】
  • wxPython 实践(六)对话框