紀錄工作上的點點滴滴

Oracle Clusterware 初學

2024-07-03 工作雜記 Oracle

指令 crsctl status res -t crsctl status res -t 功能: 顯示集群資源的狀態,以表格形式展示各資源的詳細信息。 參數: -t 是 –terse 的縮寫,表示以簡潔的表格格式輸出信息。 示例 NAME TARGET STATE SERVER ... Read More

Oracle OCFS2 初學

2024-07-03 工作雜記 Oracle

Oracle Cluster File System 2 (OCFS2) 文件系统 指令 手動掛載 mount -t ocfs2 /dev/xvdb1 /data 處理結果 [root@testAP ~]# df -h Filesystem Size Used Avail Use% Mounted ... Read More

Oracle PL/SQL 學習筆記

2024-03-13 工作雜記 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 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

Oracle 學習筆記

2024-03-07 自學筆記 Oracle

最近在工作上遇到Oracle 發生的系統效能問題,雖然有順利解決了,但是在解決的過程中似乎覺的自己對Oracle知識相當貧乏,於是在這邊筆記一下我學到的知識。 學習的過過程中難免會出現紀錄錯誤,而且目前是因為工作上需要而自學。因此內容有錯還請見諒。 Oracle Instance Instance ... Read More

oracle 監控SQL 效能

2024-03-05 工作雜記 Oracle 系統調校

這幾天在調校系統校能,想說從資料庫快取中看看能不能找出花費系統高的系統資源,後來從網路拼拼湊湊加上過去的經驗拼湊下面的監控SQL。拼湊好後,會透過kettle 搭配系統排程匯出查詢結果。 SELECT * FROM ( SELECT 1 QUERY_STATUS, SA.SQL_ID, ... Read More

oracle 記憶體監控

2024-03-04 工作雜記 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