怎么進行清除alertlog

這篇文章給大家介紹怎么進行清除alert log,內(nèi)容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

站在用戶的角度思考問題,與客戶深入溝通,找到謝通門網(wǎng)站設(shè)計與謝通門網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設(shè)計與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、申請域名虛擬主機、企業(yè)郵箱。業(yè)務(wù)覆蓋謝通門地區(qū)。

1.手動刪除log_××.xml,刪除文件后oracle會自動創(chuàng)建一個新的log.xml文件。
2.使用ADRCI 工具也可以刪除alert log。

1.在OS中手動刪除log_××.xml
[oracle@dbserver alert]$ ll
total 4
-rw-r----- 1 oracle oinstall 307 Aug  9 08:59 log.xml
[oracle@dbserver alert]$ rm log.xml
[oracle@dbserver alert]$ ll
total 0

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

[oracle@dbserver alert]$ ll
total 12
-rw-r----- 1 oracle oinstall 10150 Aug  9 09:01 log.xml

2.使用ADRCI 工具也可以刪除alert log。
[oracle@dbserver alert]$ ll
total 36
-rw-r----- 1 oracle oinstall 33420 Aug  8 16:23 log.xml

[oracle@dbserver ~]$ adrci

ADRCI: Release 11.2.0.2.0 - Production on Wed Aug 8 16:37:19 2012

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/testcase/adr_test"
adrci> show homes
ADR Homes:
diag/rdbms/orcl/orcl
adrci> set homepath diag/rdbms/orcl/orcl
adrci> show alert -tail
2012-08-08 16:18:18.935000 +08:00
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=24, OS id=20503
2012-08-08 16:18:20.445000 +08:00
ARC2: Archival started
ARC3: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
ARC0: Becoming the heartbeat ARCH
2012-08-08 16:18:23.428000 +08:00
db_recovery_file_dest_size of 4002 MB is 2.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Starting background process CJQ0
2012-08-08 16:18:24.451000 +08:00
CJQ0 started with pid=25, OS id=20519
Completed: ALTER DATABASE OPEN
2012-08-08 16:23:21.740000 +08:00
Starting background process SMCO
SMCO started with pid=26, OS id=20637

adrci> purge -age 1 -type alert
adrci> show alert -tail
adrci> exit
[oracle@dbserver alert]$ ll
total 0


 新的Oracle數(shù)據(jù)庫的日志文件在$ORACLE_BASE/diag/rdbms下面,例如:/opt/oracle/oradb/diag/rdbms/ORACLE_SID/ORACLE_SID/trace.

Alert log XML文件位置:
SQL> select value from v$diag_info where name ='Diag Alert';
VALUE
--------------------------------------------------------------------------------
/opt/oracle/diag/rdbms/orcl/orcl/alert
SQL>

Alert log文本文件位置:
SQL> select value from v$diag_info where name ='Diag Trace';
VALUE
--------------------------------------------------------------------------------
/opt/oracle/diag/rdbms/orcl/orcl/trace

關(guān)于怎么進行清除alert log就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

分享文章:怎么進行清除alertlog
瀏覽地址:http://muchs.cn/article4/ijcsie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、靜態(tài)網(wǎng)站、網(wǎng)站制作、自適應(yīng)網(wǎng)站、網(wǎng)站設(shè)計公司、全網(wǎng)營銷推廣

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計公司