oracle 收集asm例項資訊
以下這個指令碼用於方便收集asm例項資訊,以便出故障後,能夠快速解決問題:
生成的是html檔案
spool dbcollect_$ORACLE_SID.html
!date >> dbcollect_$ORACLE_SID.html
SET MARKUP HTML ON
set echo on
set pagesize 200
alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
select 'THIS ASM REPORT WAS GENERATED AT: ==)> ' , sysdate " " from dual;
select 'HOSTNAME ASSOCIATED WITH THIS ASM INSTANCE: ==)> ' , MACHINE " " from v$session where program like '%SMON%';
select * from v$asm_diskgroup;
SELECT * FROM V$ASM_DISK ORDER BY GROUP_NUMBER,DISK_NUMBER;
SELECT * FROM V$ASM_CLIENT;
select * from V$ASM_ATTRIBUTE;
select * from v$asm_operation;
select * from gv$asm_operation;
select * from v$version;
SELECT * FROM V$ASM_CLIENT;
SELECT * FROM V$ASM_DISK_STAT ORDER BY GROUP_NUMBER,DISK_NUMBER;
SELECT * FROM V$ASM_DISKGROUP_STAT ORDER BY GROUP_NUMBER;
SELECT * FROM V$ASM_FILE ORDER BY GROUP_NUMBER,FILE_NUMBER;
SELECT * FROM V$ASM_ALIAS ORDER BY GROUP_NUMBER,FILE_NUMBER;
SELECT * FROM V$ASM_TEMPLATE ORDER BY GROUP_NUMBER,ENTRY_NUMBER;
show parameter asm
show parameter cluster
show parameter instance_type
show parameter instance_name
show parameter spfile
show sga
spool off
exit
!date >> dbcollect_$ORACLE_SID.html
SET MARKUP HTML ON
set echo on
set pagesize 200
alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
select 'THIS ASM REPORT WAS GENERATED AT: ==)> ' , sysdate " " from dual;
select 'HOSTNAME ASSOCIATED WITH THIS ASM INSTANCE: ==)> ' , MACHINE " " from v$session where program like '%SMON%';
select * from v$asm_diskgroup;
SELECT * FROM V$ASM_DISK ORDER BY GROUP_NUMBER,DISK_NUMBER;
SELECT * FROM V$ASM_CLIENT;
select * from V$ASM_ATTRIBUTE;
select * from v$asm_operation;
select * from gv$asm_operation;
select * from v$version;
SELECT * FROM V$ASM_CLIENT;
SELECT * FROM V$ASM_DISK_STAT ORDER BY GROUP_NUMBER,DISK_NUMBER;
SELECT * FROM V$ASM_DISKGROUP_STAT ORDER BY GROUP_NUMBER;
SELECT * FROM V$ASM_FILE ORDER BY GROUP_NUMBER,FILE_NUMBER;
SELECT * FROM V$ASM_ALIAS ORDER BY GROUP_NUMBER,FILE_NUMBER;
SELECT * FROM V$ASM_TEMPLATE ORDER BY GROUP_NUMBER,ENTRY_NUMBER;
show parameter asm
show parameter cluster
show parameter instance_type
show parameter instance_name
show parameter spfile
show sga
spool off
exit
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-694523/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Oracle】ASM例項安裝入門OracleASM
- 【ASK_ORACLE】Relink ASM單例項資料庫詳細步驟OracleASM單例資料庫
- Oracle 11gR2 ASM例項記憶體管理OracleASM記憶體
- Oracle收集統計資訊Oracle
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- ORACLE11GR2 RAC解除安裝ASM例項步驟OracleASM
- oracle資料庫與oracle例項Oracle資料庫
- RAC+DG(asm單例項)ASM單例
- 【資料庫資料恢復】Oracle ASM例項無法掛載的資料恢復案例資料庫資料恢復OracleASM
- 【資料庫資料恢復】ASM例項不能掛載的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- 【TABLE】Oracle表資訊收集指令碼Oracle指令碼
- oracle 統計資訊檢視與收集Oracle
- 【統計資訊】Oracle常用的收集統計資訊方式Oracle
- 呀!ASM例項起不來可咋整ASM
- 【SCRIPT】Oracle資料庫基本資訊收集指令碼Oracle資料庫指令碼
- 4.1. Oracle例項Oracle
- Oracle Far Sync例項Oracle
- 【SQL】Oracle資料庫資料量及效能資訊收集SQLOracle資料庫
- Oracle統計資訊的收集和維護Oracle
- Oracle運維指令碼-收集統計資訊Oracle運維指令碼
- oracle 例項表查詢Oracle
- ASM單例項安裝後,需要手動設定ASM的引數檔案ASM單例
- [20191128]11GR2 asm例項audit檔案.txtASM
- 資訊收集
- 如何收集Oracle程式中的SQL跟蹤資訊KUOracleSQL
- oracle資料庫建立資料庫例項-九五小龐Oracle資料庫
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- ORACLE19c新特性-實時統計資訊收集Oracle
- oracle 10203啟動例項報警Oracle
- oracle監聽不到例項服務Oracle
- 2.10.3 使用 Oracle Automatic Storage Management (Oracle ASM) 克隆資料庫OracleASM資料庫
- [統計資訊系列7] Oracle 11g的自動統計資訊收集Oracle
- 手動收集——收集統計資訊
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- oracle asm 資料塊重構恢復OracleASM
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- MySQL和Oracle的後設資料抽取例項分析KRGXMySqlOracle
- Oracle ASM神書《撥雲見日 解密Oracle ASM核心》出版了OracleASM解密
- 【TUNE_ORACLE】定製化收集統計資訊SQL參考OracleSQL