11gADR PDF
11gADR PDF
3rd, 2007
Inderpal S. Johal,
President
Agenda
ADR Overview
ADR location
ADR Layout
Q&A
Prevention
Resolution
Critical Error
Stored in
Automatic
Diagnostic
Repository
Sent to
ADRCI
OEM
No
DBA
Is it
Known
Bug
Package Incident
Diagnostic Files
Yes
Apply
Patches
DBA
Oracle 11g ADR
Alert Log
Alert Log
Core Dumps and Traces and more
CRS
ASM
Database Instances
Other Components like Listener
[BACKGROUND|USER|CORE]_DUMP_DEST
10
YES
DIAGNOSTIC_DEST=As Defined
NO
If
ORACLE_BASE
is set
YES
DIAGNOSTIC_DEST=ORACLE_BASE
NO
DIAGNOSTIC_DEST=ORACLE_HOME/log
11
SQL> !mkdir
!mkdir /oracle/III
SQL> alter system set diagnostic_dest='/oracle/III';
diagnostic_dest='/oracle/III';
12
= DIAGNOSTIC_DEST
$ORACLE_BASE
$ORACLE_HOME/log
diag
crs
stage
asm
clients
rdbms
ofm
tnslsnr
+asm
racdb
hostname
+ASM1
racdb1
listener
hm
cdump
alert
trace
incident
lsnrctl
diagtool
= ADR Home
incpkg
metadata
13
adrci>
ADR Base
diag
crs
asm
clients
rdbms
ofm
tnslsnr
diagtool
lsnrctl
racdb
racdb1 = ADR Home
stage
hm
cdump
alert
trace
incident
incpkg
metadata
SELECT *
FROM
V$DIAG_INFO
14
15
Alert Log
16
17
ECHO
HELP
IPS
RUN
SET BROWSER
SET ECHO
SET HOMES | HOME | HOMEPATH
SHOW ALERT
SHOW CONTROL
SHOW HOMES | HOME | HOMEPATH
SHOW INCIDENT
SHOW REPORT
SPOOL
18
19
Alert Log
20
ADR Base
diag
crs
asm
clients
rdbms
ofm
tnslsnr
lsnrctl
diagtool
racdb
racdb1
stage
hm
cdump
alert
log.xml
= ADR Home
trace
incident
incpkg
metadata
alert_racdb2.log
21
alert
log.xml
$ adrci
ADRCI: Release 11.1.0.6.0 - Beta on Wed Oct 31 13:16:53 2007
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ADR base = "/oracle"
diag/rdbms/wdp/wdp
diag/rdbms/wdp/WDP
diag/rdbms/sunny/sunny2
diag/asm/+asm/+ASM2
diag/tnslsnr/prnhs-db01pn/sunny_prnhs-db01pn
diag/tnslsnr/prnhs-db01pn/listener_prnhs-db01pn
to quit
22
23
show alert
set editor
show alert
show alert
show alert
show alert
alert
log.xml
vi
tail
tail 50
tail f
adrci>
adrci> show alert -p "message_text
"message_text like '%ORA'%ORA-1507%'"
ADR Home = /home/oracle/app/diag/rdbms/orcl/orcl:
**********************************************************************
Output the results to file: /tmp/alert_627_308637_orcl_1.ado
2007-08-14 11:01:00.885000 -04:00
ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
Will open Vi editor with all ORA error listed in temp file as shown below
24
25
alert
log.xml
26
Alert Log
27
ADR Base
diag
crs
asm
clients
rdbms
ofm
tnslsnr
lsnrctl
diagtool
racdb
racdb1
stage
hm
cdump
alert
Core Dump
Files
= ADR Home
trace
incident
incpkg
metadata
*.trc
28
29
USER_DUMP_DEST
ADR_HOME/trace
BACKGROUND_DUMP_DEST
ADR_HOME/trace
CORE_DUMP_DEST
ADR_HOME/cdump
BACKGROUND_DUMP_DEST
Incident Dumps
USER|BACKGROUND_DUMP_DEST
ADR_HOME/incident/incdir_n
30
Alert Log
31
EM Support Workbench
32
incident
incpkg
hm
alert
trace
cdump
metadata
Problem
Incident
33
Problem
ADR Home
Internal Errors
incident
Operating System Exception
Deadlock on Library object
Data block Corruption
Log Corruption
Out of Process Memory
Object no Longer exists
Text String called Problem Key like ORA 600 [xxxxx] along
with some argument [if any]
You can look for Problem ID and Problem Key using ADRCI
utility
34
Problem
adrci>
adrci> show problem
ADR Home = /home/oracle/app/diag/rdbms/test11g/test11g:
*************************************************************************
*************************************************************************
0 rows fetched
ADR Home = /home/oracle/app/diag/rdbms/orcl/orcl
/home/oracle/app/diag/rdbms/orcl/orcl:
diag/rdbms/orcl/orcl:
*************************************************************************
*************************************************************************
PROBLEM_ID
PROBLEM_KEY
LAST_INCIDENT
LASTINC_TIME
LASTINC_TIME
ORA 1578
14775
2007082007
-08
-15 09:08:54.202548 -04:00
1 rows fetched
35
Incident
Incidents are time stamped and tracked in the ADR along with
Problem Key
incident
36
Incident
adrci>
adrci> show incident
ADR Home = /home/oracle/app/diag/rdbms/test11g/test11g:
*************************************************************************
*********
****************************************************************
0 rows fetched
ADR Home = /home/oracle/app/diag/rdbms/orcl/orcl
/home/oracle/app/diag/rdbms/orcl/orcl:
diag/rdbms/orcl/orcl:
*************************************************************************
*********
****************************************************************
INCIDENT_ID
PROBLEM_KEY
CREATE_TIME
-------------- ----------------------------- ---------------------------------14773
ORA 1578
20072007-0808-15 09:08:51.749759 -04:00
14772
ORA 1578
20072007-0808-15 09:08:41.329081 -04:00
14771
ORA 1578
20072007-0808-15 09:08:39.554096 -04:00
3 rows fetched
adrci>
adrci> show incdir
ADR Home = /home/oracle/app/diag/rdbms/orcl/orcl
/home/oracle/app/diag/rdbms/orcl/orcl:
diag/rdbms/orcl/orcl:
*************************************************************************
*********
****************************************************************
diag/rdbms/orcl/orcl/incident/incdir_14771/orcl_ora_13914_i14771.trc
.trc
diag/rdbms/orcl/orcl/incident/incdir_14771/orcl_ora_13914_i14771
diag/rdbms/orcl/orcl/incident/incdir_14770/orcl_ora_13914_i14770.trc
.trc
diag/rdbms/orcl/orcl/incident/incdir_14770/orcl_ora_13914_i14770
37
Recorded in alert.log
Recorded in ADR
Does not generate incident dump in ADR
38
39
40
41
42
43
44
Incident
adrci> show control
ADR Home = /home/oracle/app/diag/rdbms/orcl/orcl:
************************************************************************
SHORTP_POLICY LONGP_POLICY LAST_MOD_TIME
ADRID
LAST_AUTOPRG_TIME LAST_MANUPRG_TIME ADRDIR_VERSION ADRSCHM_VERSION
ADRSCHMV_SUMMARY
ADRALERT_VERSION CREATE_TIME
1335663986 720->30days 8760->1yr 2007-08-13 10:39:52.325010 -04:00
1
10:39:52.325010 -04:00
2007-08-13
1 rows fetched
45
46
47
HM RUN RECORD 1
********************************************************************************************
********************************************************************************************
RUN RECORD 30
********************************************************************************
********************************************************************************
RUN_ID
RUN_NAME
CHECK_NAME
NAME_ID
MODE
START_TIME
RESUME_TIME
END_TIME
MODIFIED_TIME
TIMEOUT
FLAGS
STATUS
SRC_INCIDENT_ID
NUM_INCIDENTS
ERR_NUMBER
REPORT_FILE
621
HM_RUN_621
DB Structure Integrity Check
2
2
20072007-0808-15 13:40:26.219314 -04:00
<NULL>
20072007-0808-15 13:40:26.246310 -04:00
20072007-0808-15 13:40:26.246310 -04:00
0
0
5
0
0
0
<NULL>
30 rows fetched
Oracle 11g ADR
48
49
QUESTIONS
ANSWERS
THANKS
[email protected]
51