紀錄工作上的點點滴滴

windows 透過 CLI 檢查有沒有自動更新
2024-03-28 工作雜記 winsows
今天突然收到客戶需要檢查windows 有沒有設定自動檢查更新,因為有多台實在懶得一台一台進入,然後一個一個點擊視窗擷圖,因此想說有沒有輸入 CLI 指令檢查的方法。 windows server 2000 以下是操作的版本 windows server 指令 reg query ... Read More
DB2 切 db2diag.log
2024-03-25 DB2
今天在工作時碰到 db2diag.log 膨脹到把硬碟塞滿,在這邊分享一下處理過程 db2diag -A 可以很放心去執行,執行過程中不會對現形資料庫運作產生任何影響 操作資料庫環境 OS: RedHat 6 DB2 Version: 9.7 ... Read More
jmeter CLI 模式
2024-03-14 工作雜記 jmeter
前幾個月在幫專案做壓力測試,因為對方主機執行壓力測試環境是 Linux,於是我尋找一下JMeter 有沒有 CLI 模式下執行測試,順手紀錄一下。 壓力測試 CLI 範例 先廢話不多說,先線上範例,windows 跟 Linux 各舉例一個,Windows是後來順手寫一下,因為這樣我久可以不用開 ... Read More
MSSQL 雜記
2024-03-13 MSSQL MSSQL
查詢執行很久的SQL SELECT TOP 10 [總執行時間(秒)] =CAST(a.total_elapsed_time / 1000000.0 AS DECIMAL(16, 2)) , [執行次數] =a.execution_count , [平均執行時間(秒)] ... Read More
Oracle PL/SQL 學習筆記
2024-03-13 Oracle Oracle PL/SQL
切字串成陣列 regexp_substr select regexp_substr ( :str, '[^,]+', 1, level ) value from dual 參考資料 How to split comma separated value strings into ... Read More
Oracle PL/SQL 學習筆記
2024-03-13 Oracle Oracle PL/SQL
判斷式 if else if a > b then t := 0; elsif a > c then t := 1; else t := 2; end if; 迴圈 LOOP ... V_LOOP_CONT := V_LOOP_CONT +1 ; IF V_TOTAL_LOOP_CONT ... Read More
Linux 發行板核心版本整理
2024-03-09 linux Linux Kernel rhel_3 rhel_4 rhel_5 rhel_6 rhel_7 rhel_8 Debian Oracle Linux Rocky Linux
前幾天在工作中因為要導入GBC,但是在客戶的系統當中有非RedHat衍生發行板的系統,所以想說用相近的 Linux Kernel 作為導入的基礎,在這邊把整好的核心版本整理一下 Linux 發行板 Kernel Version Rocky Linux 8 4.18.0 Rocky Linux 9 ... Read More
Oracle 學習筆記
2024-03-07 Oracle Oracle
最近在工作上遇到Oracle 發生的系統效能問題,雖然有順利解決了,但是在解決的過程中似乎覺的自己對Oracle知識相當貧乏,於是在這邊筆記一下我學到的知識。 學習的過過程中難免會出現紀錄錯誤,而且目前是因為工作上需要而自學。因此內容有錯還請見諒。 Oracle Instance Instance ... Read More
oracle 監控SQL 效能
2024-03-05 Oracle Oracle 系統調校
這幾天在調校系統校能,想說從資料庫快取中看看能不能找出花費系統高的系統資源,後來從網路拼拼湊湊加上過去的經驗拼湊下面的監控SQL。拼湊好後,會透過kettle 搭配系統排程匯出查詢結果。 SELECT * FROM ( SELECT 1 QUERY_STATUS, SA.SQL_ID, ... Read More
oracle 記憶體監控
2024-03-04 Oracle Oracle 系統調校
透過 v$sgastat 、v$pgastat 檢測 SGA PGA 空間使用狀況 select name,used,free, pctused, max_allocated , sysdate opdt from ( select name,total,round(total-free,2) ... Read More