Professional Documents
Culture Documents
Oracle 11g: Learning To Love The ADR: Presented By: Don Seiler
Oracle 11g: Learning To Love The ADR: Presented By: Don Seiler
From Manitowoc, Wisconsin Oracle DBA since !!1 Starte" with Oracle #$%$& on '()*+ With (,thian since Ma, !!Blogger ) www$seiler$us
2011 Pythian
Recognized Leader:
Global industry-leader in remote database administration ser ices and consulting !or "racle# "racle $%%lications# &yS'L and S'L Ser er (or) *ith o er 1+0 multinational com%anies such as ,orbes-com# ,o. /nteracti e &edia# 0ordion and (estern 1nion to hel% manage their com%le. /2 de%loyments
.
.
3.%ertise:
"ne o! the *orld4s largest concentrations o! dedicated# !ull-time D5$ e.%ertise- 3m%loy 6 "racle $73s8$73 DirectorsS%ecialized in "racle Database# R$7# Data (arehousing# Per!ormance 2uning# "racle 3.adata# GoldenGate and 3nter%rise Linu.-
.
.
2:8;8<6+ global remote su%%ort !or D5$ and consulting# systems administration# s%ecial %ro=ects or emergency res%onse
<
2011 Pythian
Diagnostic Files
7ore Dum8s
2011 Pythian
9ORA7L:;BAS:<a"min<9ORA7L:;S=D<
b"um8 > alert log ? bac0groun" trace @iles c"um8 > core "um8 @iles u"um8 > user trace @iles 21!!&5, 1!!6%3 a"um8 > au"it @iles
2011 Pythian
First creates a E"iagF "irector, insi"e its home$ 7hec0 G9D=A4;=BFO @or location "etails
2011 Pythian
G9D=A4;=BFO
SQL> select name, value from v$diag_info; NAME VALUE !iag Ena"led A!$ %ase A!$ (ome !iag #race !iag Alert !iag )ncident !iag *dum+ (ealt, Monitor !efault #race -ile Active 2ro"lem *ount Active )ncident *ount 33 ro4s selected1 #$UE c&'oracle c&'oracle'diag'rd"ms'orcl'orcl c&'oracle'diag'rd"ms'orcl'orcl'trace c&'oracle'diag'rd"ms'orcl'orcl'alert c&'oracle'diag'rd"ms'orcl'orcl'incident c&'oracle'diag'rd"ms'orcl'orcl'cdum+ c&'oracle'diag'rd"ms'orcl'orcl',m c&'oracle'diag'rd"ms'orcl'orcl'trace'orcl_ora_./0.1trc / /
2011 Pythian
(ro"uct /,8e: asm < r"bms < tnslsnr < clients Both human)rea"able 2trace3 an" +ML alert logs /race @iles 21!!&5 etc$ in trace "irector,3
>
10
2011 Pythian
First thing = notice" a@ter u8gra"ing to 11gA 7an be greatl, re"uce" with hi""en 8arameter:
Set ;"isable;health;chec0 K /R*: DonLt set in 8ro"uction without consulting Oracle Su88ortA
2011 Pythian
(roblem > A critical error in the "atabase 2e$g$ ORA)!!5!!, !#&&6, !&!%13 =nci"ent > A single occurence o@ a 8roblem$ Follows =/=LA
12
2011 Pythian
1<
ADR7=
$ adrci adrci> s,o4 "ase; A!$ "ase is 68u/38a++8oracle6
tail
f;
term;
=nclu"es message timestam8s, better than gre8$ 7ase)sensitiveA 7an 8attern)match on an, 8re"icate @iel" such as host;i", user;i", originating;timestam8, etc$
2011 Pythian
adrci> s,o4 alert + 6originating_timestam+ >7 s5stimestam+ 38?.6 term; adrci> s,o4 alert + 6message_te:t li;e <=>$A @//=< and originating_timestam+ >7 s5stimestam+ A/6 term;
Obvious alert log monitoring bene@itsA ReNuires 8resence o@ +ML log @iles$ 7an S(OOL out8ut to new log @iles$
2011 Pythian
Giew out8ut:
+ 6message_te:t li;e <=!$>2=<6 term;
/C&//
1;
File Maintenance
Alert log +ML @iles rotate" a@ter 1!M$ Ol" Alert log +ML @iles an" trace<inci"ent @iles 8urge" "e8en"ing on short or long 8urge 8olicies$ /race 2human)rea"able3 alert an" listener log @iles not rotate" or archive" b, Oracle$
1?
2011 Pythian
adrci> s,o4 control; S'OR/(;(OL=7O Galue in 'O*RS, "e@ault is # ! 2%! "a,s3 MaM is %6#P1%P& 2over &!!! ,earsA3 Setting to ! 2Cero3 means all Eshort li@eF @iles can be 8urge"$ /race @iles, core "um8s, 8ac0aging in@o set control FS(>$#2_2>L)*G 7 AA@H;
2011 Pythian
1>
LOB4(;(OL=7O De@ault is -#5! 2%56 "a,s3 Same maM ? Cero rules as S'OR/(;(OL=7O =nci"ent in@o, inci"ent "um8s, alert logs set control FL>NI2_2>L)*G 7 3../H;
20
2011 Pythian
adrci> +urge
adrci> +urge
For more
Bug 95 5!5: 114 L=S/:B:R LO4S LO4;+OQ$+ML AR: BO/ A*/OMA/=7ALLO (*R4:D
(otential to @ill u8 "iagnostic;"est "is0$ Oracle 11$1$!$# an" 11$ $!$1 /o manuall, 8urge @iles ol"er than 1 wee0:
adrci> +urge
age 3//0/
t5+e alert;
2011 Pythian
2<
7reates logical E8ac0agesF @or Oracle Su88ort base" on criteria such as inci"ent number or time@rame$ :ither via :M or a"rci
adrci> s,o4 incident; adrci> s,o4 +ro"lem; adrci> s,o4 tracefile J i 3?AK J JrKtK;
2:
2011 Pythian
Floo")controlle" inci"ents will generate an alert log entr, but not inci"ent "um8s$ /hreshol"s:
6 inci"ents @or the same 8roblem 0e, in one hour$ Will resume in the neMt hour$ 6 inci"ents @or the same 8roblem 0e, in one "a,$ Will resume in the neMt "a,$ 6!<hour or 6!<"a, K Bo more inci"ent recor"ing at all until hour<"a, eM8iresA
2011 Pythian
*se )2S A!! )N*)!EN# or )2S A!! -)LE to a"" "ata to the 8ac0age be@ore generating it$
26
2011 Pythian
adrci>)2S IENE$A#E 2A*LAIE +ac;age_num"er )N +at, adrci>)2S IENE$A#E 2A*LAIE 3 )N 8,ome8seiler8diagnostics adrci>)2S S(>M -)LES 2A*LAIE 3
adrci>)2S 2A*L )N*)!EN# incident_id )N +at,; adrci>)2S 2A*L )N*)!EN# 3?A.C )N 8,ome8seiler8diagnostics;
2011 Pythian
ADRCI $cripts
2?
ADR7= Scri8ts
adrci> N8,ome8seiler8scri+ts8test1adrci
$ adrci scri+t78,ome8seiler8scri+ts8test1adrci
:Mam8le scri8t:
O A!$*) scri+t to find alert log errors S2>>L 8,ome8seiler8logs8alert_log_errors1log E*(> 6ALE$# L>I E$$>$S&6; SE# (>ME2A#( diag8rd"ms8orcl8orcl; S(>M ALE$# #E$M 2 6MESSAIE_#EP# L)LE <=>$A =<6 S2>>L >--
2011 Pythian
ADRCI Reports
<0
adrci> s,o4 ,m_run; O Loo; for $UN_NAME, e1g1 (M_$UN_3 adrci> create re+ort ,m_run ,m_run_3; adrci> s,o4 re+ort ,m_run ,m_run_3; O >ut+uts PML
'uman)rea"able re8ort:
SQL> set long DDDDD longc,un;siQe 3/// +agesiQe DDD linesiQe C3? SQL> select d"ms_,m1get_run_re+ortF<(M_$UN_3<H from dual;
2011 Pythian
<2
SQL> dro+ ta"le doesnote:ist; dro+ ta"le doesnote:ist B E$$>$ at line 3& >$A //D.?& ta"le or vie4 does not e:ist
SQL> alter session set events <D.? trace name conte:t off<; Session altered1
2011 Pythian
2011 Pythian
Errors in file c&'oracle'diag'rd"ms'orcl'orcl'trace'orcl_ora_.@001trc Fincident73.@AAH& >$A //R//& soft internal error, arguments& JEVEN#_*$EA#E!_)N*)!EN#K, JD.?K, J#A%LE_M)SS)NIK, JK, JK, JK, JK, JK, JK, JK, JK, JK >$A //D.?& ta"le or vie4 does not e:ist
2011 Pythian
2011 Pythian
OR:
adrci> i+s +ac; incident 3??/3 in 8,ome8oracle Ienerated +ac;age ? in file 8,ome8oracle8>$AR//EVE_?/33/03?3@/D/3_*>M_31Qi+, mode com+lete
2011 Pythian
Obvious:
l 8,ome8oracle8>$AR//EVE_?/33/03?3C.DC3_*>M_31Qi+
unQi+
adrci> i+s s,o4 incidents +ac;age 3 adrci> i+s s,o4 files +ac;age 3
-)LE_)! -)LE_L>*A#)>N -)LE_NAME LAS#_SEQUEN*E EP*LU!E 3 SA!$_(>ME>8incident8incdir_3??/3 orcl_ora_30.CR_i3??/31trc 3 )ncluded
2011 Pythian
2011 Pythian
(i%e Demo)
:0
*uestions+
:1
/han0 OouA
:mail: seilerS8,thian$com
Blogs: