Sunteți pe pagina 1din 4

11g alert log

The alert log location is obviously changed in 11g. The parameter that defines the top
location ( Can be called ADR Base ) is diagnostic!dest
"#$% sho& parameter diag
'A() T*+) ,A$-)
.................................... ........... ..............................
diagnostic!dest string /01A++1TAR-'
The alert log location &ill be
2diagnostic!dest%1diag1rdbms12"3D%12"3D%1alert1log.4ml
And here you &ill see the alert log as an 4ml file.
Again understanding the file &ill be a real big trouble &ith those 4ml tags.
The file is easily readable either through 5)( or by utility adrci. "ee belo&
adrci% help sho& alert
-sage0 "657 A$)RT 8.p 2predicate!string%9 8.term9
8 8.tail 8num9 8.f99 : 8.file 2alert!file!name%9 9
+urpose0 "ho& alert messages.
5ptions0
8.p 2predicate!string%90 The predicate string must be double ;uoted.
The fields in the predicate are the fields0
5R3<3'AT3'<!T3()"TA(+ timestamp
'5R(A$3=)D!T3()"TA(+ timestamp
5R<A'3=AT35'!3D te4t(>?)
C5(+5')'T!3D te4t(>?)
65"T!3D te4t(>?)
65"T!ADDR)"" te4t(1@)
()""A<)!T*+) number
()""A<)!$),)$ number
()""A<)!3D te4t(>?)
()""A<)!<R5-+ te4t(>?)
C$3)'T!3D te4t(>?)
(5D-$)!3D te4t(>?)
+R5C)""!3D te4t(AA)
T6R)AD!3D te4t(>?)
-")R!3D te4t(>?)
3'"TA'C)!3D te4t(>?)
D)TA3$)D!$5CAT35' te4t(1>1)
-+"TR)A(!C5(+!3D te4t(1B1)
D57'"TR)A(!C5(+!3D te4t(1B1)
)C)C-T35'!C5'T)CT!3D te4t(1B1)
)C)C-T35'!C5'T)CT!")#-)'C) number
)RR5R!3'"TA'C)!3D number
)RR5R!3'"TA'C)!")#-)'C) number
()""A<)!T)CT te4t(DBEF)
()""A<)!AR<-()'T" te4t(1DF)
"-++$)()'TA$!ATTR3B-T)" te4t(1DF)
"-++$)()'TA$!D)TA3$" te4t(1DF)
+R5B$)(!G)* te4t(>?)
8.tail 8num9 8.f990 5utput last part of the alert messages and
output latest messages as the alert log gro&s. 3f num is not specifiedH
the last 1B messages are displayed. 3f .f is specifiedH ne& data
&ill append at the end as ne& alert messages are generated.
8.term90 Direct results to terminal. 3f this option is not specifiedH
the results &ill be open in an editor.
By defaultH it &ill open in emacsH but set editor can be used
to set other editors.
8.file 2alert!file!name%90 Allo& users to specify an alert file &hich
may not be in ADR. 2alert!file!name% must be specified &ith full path.
'ote that this option cannot be used &ith the .tail option
)4amples0
sho& alert
sho& alert .p message!te4t liIe JKincidentKJ
sho& alert .tail DB
adrci%
adrci% sho& alert
Choose the alert log from the follo&ing homes to vie&0
10 diag1clients1user!system1
D0 diag1clients1user!tarun1
A0 diag1rdbms1orcl1orcl
E0 diag1tnslsnr1tarun.pc1listener
#0 to ;uit
+lease select option0 A
5utput the results to file0
c01users1tarun1appdata1local1temp1alert!>DF>!1?F>!orcl!1.ado
+lease select option0 #
adrci%
Thus the alert can be opened in an editor (&ith a <-3 environment)H and as &ritten
in help0
This can be directed to terminal &ith .term option
Can also be tailed liIe uni4 tail command (/ollo& help as above)
"o in that case other option is 0.
/01%adrci
ADRC30 Release 11.D.B.1.B . +roduction on /ri Lan @ 110B>0BF DB11
Copyright (c) 1FMDH DBBFH 5racle andNor its affiliates. All rights reserved.
ADR base O f01app1tarun
adrci% sho& alert
Choose the alert log from the follo&ing homes to vie&0
10 diag1clients1user!system1host!@A@DD>E>>!@>
D0 diag1clients1user!tarun1host!@A@DD>E>>!@>
A0 diag1rdbms1orcl1orcl
E0 diag1tnslsnr1tarun.pc1listener
#0 to ;uit
+lease select option0 ;
adrci% set homepath diag1rdbms1orcl1orcl
adrci% sho& alert .tail 1B
DB11.B1.B@ 1B0DE0AE.?FABBB PB?0AB
,erifying 11g file header compatibility for tablespace encryption completed
"(5'0 enabling t4 recovery
Database Characterset is 7)M("73'1D?D
'o Resource (anager plan active
DB11.B1.B@ 1B0DE0A>.111BBB PB?0AB
replication!dependency!tracIing turned off (no async multimaster replication
found)
DB11.B1.B@ 1B0DE0A@.?FDBBB PB?0AB
"tarting bacIground process #('C
#('C started &ith pidOD@H 5" idOAF?D
DB11.B1.B@ 1B0DE0EB.DFEBBB PB?0AB
adrci% e4it
Beside this the trace location in 11g &ill be
2diagnostic!dest%1diag1rdbms12"3D%12"3D%1trace
And even other directories at the same location i.e. at
2diagnostic!dest%1diag1rdbms12"3D%12"3D% are cdumpH incidentH metadataH
s&eep etc for different purposes as their name itself specifies.

S-ar putea să vă placă și