亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

如何查看oracle的redo日志組切換頻率

發布時間:2021-11-09 10:23:18 來源:億速云 閱讀:926 作者:小新 欄目:關系型數據庫

這篇文章主要介紹如何查看oracle的redo日志組切換頻率,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!

查看Oracle的redo日志切換頻率:

單位:分鐘

第一種:

select * from v$log a where a.THREAD# = 1 ;

set line 200

select b.SEQUENCE#, b.FIRST_TIME,a.SEQUENCE#,a.FIRST_TIME,round(((a.FIRST_TIME-b.FIRST_TIME)*24)*60,2) from v$log_history a, v$log_history b where a.SEQUENCE#=b.SEQUENCE#+1 and b.THREAD#=1 order by a.SEQUENCE# desc;

第二種:

set line 200

select sequence#,first_time,nexttime,round(((first_time-nexttime)*24)*60,2) diff from (select sequence#,first_time,lag(first_time) over(order by sequence#) nexttime from v$log_history where thread#=1) order by sequence# desc;

看你的redo日志大小。
Oracle給的建議是一般15-20分鐘左右,要根據數據量來判斷,最長時間(單位時間內數據量最少)維持在25-30分鐘,最好不要超過30分鐘。最短時間(單位時間內數據量最大),保持在10分鐘以上。

SELECT  trunc(first_time) "Date",

        to_char(first_time, 'Dy') "Day",

        count(1) "Total",

        SUM(decode(to_char(first_time, 'hh34'),'00',1,0)) "h0",

        SUM(decode(to_char(first_time, 'hh34'),'01',1,0)) "h2",

        SUM(decode(to_char(first_time, 'hh34'),'02',1,0)) "h3",

        SUM(decode(to_char(first_time, 'hh34'),'03',1,0)) "h4",

        SUM(decode(to_char(first_time, 'hh34'),'04',1,0)) "h5",

        SUM(decode(to_char(first_time, 'hh34'),'05',1,0)) "h6",

        SUM(decode(to_char(first_time, 'hh34'),'06',1,0)) "h7",

        SUM(decode(to_char(first_time, 'hh34'),'07',1,0)) "h7",

        SUM(decode(to_char(first_time, 'hh34'),'08',1,0)) "h8",

        SUM(decode(to_char(first_time, 'hh34'),'09',1,0)) "h9",

        SUM(decode(to_char(first_time, 'hh34'),'10',1,0)) "h20",

        SUM(decode(to_char(first_time, 'hh34'),'11',1,0)) "h21",

        SUM(decode(to_char(first_time, 'hh34'),'12',1,0)) "h22",

        SUM(decode(to_char(first_time, 'hh34'),'13',1,0)) "h23",

        SUM(decode(to_char(first_time, 'hh34'),'14',1,0)) "h24",

        SUM(decode(to_char(first_time, 'hh34'),'15',1,0)) "h25",

        SUM(decode(to_char(first_time, 'hh34'),'16',1,0)) "h26",

        SUM(decode(to_char(first_time, 'hh34'),'17',1,0)) "h27",

        SUM(decode(to_char(first_time, 'hh34'),'18',1,0)) "h28",

        SUM(decode(to_char(first_time, 'hh34'),'19',1,0)) "h29",

        SUM(decode(to_char(first_time, 'hh34'),'20',1,0)) "h30",

        SUM(decode(to_char(first_time, 'hh34'),'21',1,0)) "h31",

        SUM(decode(to_char(first_time, 'hh34'),'22',1,0)) "h32",

        SUM(decode(to_char(first_time, 'hh34'),'23',1,0)) "h33"

FROM    V$log_history

group by trunc(first_time), to_char(first_time, 'Dy')

Order by 1

以上是“如何查看oracle的redo日志組切換頻率”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

吐鲁番市| 定襄县| 开封市| 通道| 分宜县| 元朗区| 习水县| 湘乡市| 富锦市| 平顶山市| 永新县| 新丰县| 山阴县| 高州市| 维西| 承德县| 吕梁市| 卢湾区| 新建县| 石狮市| 盱眙县| 准格尔旗| 同江市| 兰西县| 彩票| 通州区| 拜城县| 韩城市| 灵台县| 嘉善县| 威远县| 敖汉旗| 康乐县| 鸡东县| 长葛市| 化隆| 庆元县| 徐汇区| 德庆县| 荆州市| 青川县|