Oracle之外部表警告日誌
首先需要建立一個Directory
SQL> create or replace directory bdump as '/u01/app/oracle/admin/orcl/bdump';
查詢確認
SQL> col DIRECTORY_PATH for a30
SQL> col owner for a10
SQL> select * from dba_directories;
建立一個外部表:
SQL> create table alert_orcl ( text varchar2(4000) )
organization external (
type oracle_loader
default directory BDUMP
access parameters (
records delimited by newline
nobadfile
nodiscardfile
nologfile
)
location('alert_orcl.log')
)
reject limit unlimited
/
通過外部表進行查詢警告日誌的內容:
SQL> select * from alert_log where rownum < 51;
檢視資料庫中曾經出現過的ORA-錯誤
SQL> select * from alert_log where text like 'ORA-%';
SQL> create or replace directory bdump as '/u01/app/oracle/admin/orcl/bdump';
查詢確認
SQL> col DIRECTORY_PATH for a30
SQL> col owner for a10
SQL> select * from dba_directories;
建立一個外部表:
SQL> create table alert_orcl ( text varchar2(4000) )
organization external (
type oracle_loader
default directory BDUMP
access parameters (
records delimited by newline
nobadfile
nodiscardfile
nologfile
)
location('alert_orcl.log')
)
reject limit unlimited
/
通過外部表進行查詢警告日誌的內容:
SQL> select * from alert_log where rownum < 51;
檢視資料庫中曾經出現過的ORA-錯誤
SQL> select * from alert_log where text like 'ORA-%';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20976446/viewspace-674323/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用Oracle的外部表查詢警告日誌Oracle
- 使用Oracle的外部表查詢警告日誌檔案Oracle
- 使用外部表訪問警告日誌檔案
- Oracle之外部表監聽日誌Oracle
- 使用外部表管理Oracle 告警日誌Oracle
- 使用外部表檢視ORACLE報警日誌薦Oracle
- oracle 11g的警告日誌Oracle
- 使用外部表讀日誌檔案
- 使用外部表儲存巡檢日誌
- 使用外部表訪問監聽日誌
- 使用外部表管理Oracle 告警日誌(ALAERT_$SID.LOG)Oracle
- 刪除oracle 11g的警告日誌和監聽日誌Oracle
- 利用外部表讀取告警日誌檔案
- oracle外部表記錄alert日誌&&資料庫執行報告Oracle資料庫
- Oracle 警告日誌 (alert log) 中包含哪些內容 ?Oracle
- 用外部表實現Alert日誌的檢視
- Oracle外部表Oracle
- Oracle 外部表Oracle
- 警告日誌檔案alert_.log
- oracle之 Oracle歸檔日誌管理Oracle
- 【轉】Oracle 外部表Oracle
- alert日誌中出現ash size的警告
- oracle 外部表 external tableOracle
- Oracle外部表 External TableOracle
- Oracle外部表學習Oracle
- 介紹oracle外部表Oracle
- oracle sqlldr 與 外部表OracleSQL
- 【聽海日誌】之SCN與OracleOracle
- 通過日誌審計追蹤外部***
- Oracle之備份和清理監聽日誌、告警日誌指令碼Oracle指令碼
- Oracle日誌Oracle
- Oracle10g DML錯誤日誌表Oracle
- 【Oracle日誌】- 日誌檔案重建Oracle
- 由一條日誌警告所做的調優分析
- mysql 日誌之錯誤日誌MySql
- ORACLE學習之外部表Oracle
- 【聽海日誌】之Oracle SQL*LOADEROracleSQL
- 【聽海日誌】之ORACLE恢復案例Oracle