Vous êtes sur la page 1sur 15

Oracle DBA Checklist

Posted by Oracle ACE - 2007/05/17 01:11


_____________________________________
Daily Procedres
A! "eri#y all i$sta$ces are %
&ake sre the database is a'ailable! (o) i$to each i$sta$ce a$d r$ daily re%orts or test
scri%ts! *o+e sites +ay ,ish
to ato+ate this!
O%tio$al i+%le+e$tatio$: se Oracle E$ter%rise &a$a)er-s -%robe- e'e$t!
B! (ook #or a$y $e, alert lo) e$tries
. Co$$ect to each +a$a)ed syste+!
. /se -tel$et- or co+%arable %ro)ra+!
. 0or each +a$a)ed i$sta$ce1 )o to the back)ro$d d+% desti$atio$1 sally
2O3AC(E_BA*E/4*5D6/bd+%! &ake
sre to look $der each +a$a)ed database-s *5D!
. At the %ro+%t1 se the /$i7 8tail9 co++a$d to see the alert_4*5D6!lo)1 or
other,ise e7a+i$e the +ost rece$t e$tries i$
the #ile!
. 5# a$y O3A-errors ha'e a%%eared si$ce the %re'ios ti+e yo looked1 $ote the+
i$ the Database 3eco'ery (o) a$d
i$'esti)ate each o$e! :he reco'ery lo) is i$ 4#ile6!
C! "eri#y DB*;&P is r$$i$)
1! (o) o$ to each +a$a)ed +achi$e to check #or the -dbs$+%- %rocess!
0or /$i7: at the co++a$d li$e1 ty%e %s <e# = )re% dbs$+%! :here shold be t,o dbs$+%
%rocesses r$$i$)! 5# $ot1
restart DB*;&P! >*o+e sites ha'e this disabled o$ %r%ose? i# this is the case1 re+o'e
this ite+ #ro+ yor list1 or
cha$)e it to @'eri#y that DB*;&P is ;O: r$$i$)@!A
D! "eri#y sccess o# database back%
E! "eri#y sccess o# database archi'i$) to ta%e
0! "eri#y e$o)h resorces #or acce%table %er#or+a$ce
1! "eri#y #ree s%ace i$ tables%aces!
0or each i$sta$ce1 'eri#y that e$o)h #ree s%ace e7ists i$ each tables%ace to ha$dle the
day9s e7%ected )ro,th! As o#
4date61 the +i$i++ #ree s%ace #or 4re%eat #or each tables%ace6: ! Bhe$ i$co+i$) data
is stable1 a$d a'era)e daily
)ro,th ca$ be calclated1 the$ the +i$i++ #ree s%ace shold be at least 4ti+e to order1
)et1 a$d i$stall +ore disks6
days9 data )ro,th!
aA Co to each i$sta$ce1 r$ #ree!sDl to check #ree +b i$ tables%aces!
Co+%are to the +i$i++ #ree &B #or that tables%ace! ;ote a$y lo,-s%ace co$ditio$s
a$d correct!
bA Co to each i$sta$ce1 r$ s%ace!sDl to check %erce$ta)e #ree i$ tables%aces!
Co+%are to the +i$i++ %erce$t #ree #or that tables%ace! ;ote a$y lo,-s%ace co$ditio$s
a$d correct!
2! "eri#y rollback se)+e$t!
*tats shold be O;(5;E1 $ot O00(5;E or 0/((1 e7ce%t i$ so+e cases yo +ay ha'e a
s%ecial rollback se)+e$t #or
lar)e batch Eobs ,hose $or+al stats is O00(5;E!
aA O%tio$al: each database +ay ha'e a list o# rollback se)+e$t $a+es a$d their
e7%ected statses!
bA 0or crre$t stats o# each O;(5;E or 0/(( rollback se)+e$t >by 5D $ot by
$a+eA1 Dery o$ "23O((*:A:!
cA 0or stora)e %ara+eters a$d $a+es o# A(( rollback se)+e$t1 Dery o$
DBA_3O((BACF_*EC*! :hat 'ie,9s *:A:/*
#ield is less accrate tha$ "23O((*:A:1 ho,e'er1 as it lacks the PE;D5;C O00(5;E
a$d 0/(( statses1 sho,i$)
these as O00(5;E a$d O;(5;E res%ecti'ely!
G! 5de$ti#y bad )ro,th %roEectio$s!
(ook #or se)+e$ts i$ the database that are r$$i$) ot o# resorces >e!)! e7te$tsA or
)ro,i$) at a$ e7cessi'e rate! :he
stora)e %ara+eters o# these se)+e$ts +ay $eed to be adEsted! 0or e7a+%le1 i# a$y
obEect reached 200 as the $+ber
o# crre$t e7te$ts1 A;D it-s a$ obEect that is s%%osed to )et lar)e1 %)rade the
+a7_e7te$ts to $li+ited!
aA :o )ather daily siHi$) i$#or+atio$1 r$ a$alyHe5%ct!sDl! 5# yo are collecti$)
$i)htly 'ol+etrics1 ski% this ste%!
bA :o check crre$t e7te$ts1 r$ $r_e7te$ts!sDl
cA Iery crre$t table siHi$) i$#or+atio$
dA Iery crre$t i$de7 siHi$) i$#or+atio$
eA Iery )ro,th tre$ds
J! 5de$ti#y s%ace-bo$d obEects!
*%ace-bo$d obEects9 $e7t_e7te$ts are bi))er tha$ the lar)est e7te$t that the tables%ace
ca$ o##er! *%ace-bo$d obEects
ca$ har+ database o%eratio$! 5# ,e )et sch obEect1 #irst $eed to i$'esti)ate the sitatio$!
:he$ ,e ca$ se A(:E3
:AB(E*PACE 4tables%ace6 COA(E*CE! Or add a$other data#ile!
aA 3$ s%acebo$d!sDl! 5# all is ,ell1 Hero ro,s ,ill be retr$ed!
5! Processes to re'ie, co$te$tio$ #or CP/1 +e+ory1 $et,ork or disk resorces!
aA :o check CP/ tiliHatio$1 )o to 7:K,ebK%hase2Kde#alt!ht+ L6syste+
+etricsL6CP/ tiliHatio$ %a)e! J00 is the
+a7i++ CP/ tiliHatio$ becase there are J CP/s o$ %h7de' a$d %h7%rd +achi$e!
Be $eed to i$'esti)ate i# CP/
tiliHatio$ kee%s abo'e G50 #or a ,hile!
C! Co%y Archi'ed (o)s to *ta$dby Database a$d 3oll 0or,ard
5# yo ha'e a *ta$dby Database1 co%y the a%%ro%riate Archi'ed (o)s to the e7%ected
locatio$ o$ the sta$dby +achi$e
a$d a%%ly those lo)s >roll #or,ard the cha$)esA to the sta$dby database! :his kee%s the
sta$dby database %-to-date!
0ireBoard-0or+ - BB0o) - Co$$ecti$) a$d *hari$) o$ :he Co #ireboard 0or+
Co+%o$e$t 'ersio$: 1!0!0 Ce$erated: 12 ;o'e+ber1 20111 02:GJ:he co%yi$) o# lo)s1 the
a%%lyi$) o# the+1 or both1 ca$ i$ so+e cases be ato+ated! 5# yo ha'e ato+ated the+1
the$
yor daily task shold be to co$#ir+ that this ha%%e$ed correctly each day!
M! 3ead DBA +a$als #or o$e hor
;othi$) is +ore 'alable i$ the lo$) r$ tha$ that the DBA be as ,idely e7%erie$ced1
a$d as ,idely read1 as %ossible!
3eadi$)s shold i$clde DBA +a$als1 trade Eor$als1 a$d %ossibly $e,s)ro%s or
+aili$) lists!
;i)htly Procedres
&ost %rodctio$ databases >a$d +a$y de'elo%+e$t a$d test databasesA ,ill be$e#it #ro+
ha'i$) certai$ $i)htly batch
%rocesses r$!
A! Collect 'ol+etric data
:his e7a+%le collects table ro, co$ts! :his ca$ easily be e7te$ded to other obEects sch
as i$de7es1 a$d other data
sch as a'era)e ro, siHes!
1! A$alyHe *che+as a$d Collect Data!
:he idea here is to se the +ore ti+e co$s+i$) a$d +ore accrate A;A(NOE
CO&P/:E co++a$d a$d sa'e the
reslts1 ,hich sho, % i$ the data dictio$ary1 to a +ore %er+a$e$t store!
aA 5# yo ha'e$t- yet1 create the 'ol+etrics table ,ith +k_'ol#act!sDl
bA :o )ather $i)htly siHi$) i$#or+atio$1 r$ a$alyHe_co+%!sDl!
cA :o collect the reslti$) statistics1 r$ %o%_'ol!sDl
dA E7a+i$e the data at yor leisre1 %robably ,eekly or +o$thly!
5 se &* E7cel a$d a$ ODBC co$$ectio$ to e7a+i$e a$d )ra%h data )ro,th!
Beekly Procedres
A! (ook #or obEects that break rles
0or each obEect-creatio$ %olicy >$a+i$) co$'e$tio$1 stora)e %ara+eters1 etc!A ha'e a$
ato+ated check to 'eri#y that the
%olicy is bei$) #ollo,ed!
1! E'ery obEect i$ a )i'e$ tables%ace shold ha'e the e7act sa+e siHe #or
;EP:_EP:E;:1 ,hich shold +atch the
tables%ace de#alt #or ;EP:_EP:E;:! As o# 12/1J/QR1 de#alt ;EP:_EP:E;: #or
DA:AM5 is 1 )i) >10JR57S kbytesA1
DA:A(O is 500 +b >52J2RR kbytesA1 a$d 5;DEPE* is 25S +b >2S21JJ kbytesA!
aA :o check setti$)s #or ;EP:_EP:E;:1 r$ $e7te7t!sDl!
bA :o check e7isti$) e7te$ts1 r$ e7iste7t!sDl
2! All tables shold ha'e $iDe %ri+ary keys!
aA :o check +issi$) PF1 r$ $o_%k!sDl!
bA :o check disabled PF1 r$ disPF!sDl!
cA All %ri+ary key i$de7es shold be $iDe! 3$ $o$PF!sDl to check!
G! All i$de7es shold se 5;DEPE* tables%ace! 3$ +krebild_id7!sDl!
J! *che+as shold look ide$tical bet,ee$ e$'iro$+e$ts1 es%ecially test a$d
%rodctio$!
aA :o check data ty%e co$siste$cy1 r$ dataty%e!sDl!
bA :o check other obEect co$siste$cy1 r$ obE_coord!sDl!
cA Better yet1 se a tool like Iest *o#t,are-s *che+a &a$a)er!
B! (ook #or secrity %olicy 'iolatio$s
C! (ook i$ *I(T;et lo)s #or errors1 isses
1! Clie$t side lo)s
2! *er'er side lo)s
D! Archi'e all Alert (o)s to history
E! "isit ho+e %a)es o# key 'e$dors
1! Oracle Cor%oratio$
htt%://,,,!oracle!co+
htt%://tech$et!oracle!co+
htt%://,,,!oracle!co+/s%%ort
htt%://,,,!ora+a)!co+
2! Iest *o#t,are
htt%://,,,!Dests!co+
G! *$ &icrosyste+s
htt%://,,,!s$!co+
&o$thly Procedres
A! (ook #or Mar+#l Cro,th 3ates
1! 3e'ie, cha$)es i$ se)+e$t )ro,th ,he$ co+%ared to %re'ios re%orts to ide$ti#y
se)+e$ts ,ith a har+#l )ro,th rate!
0ireBoard-0or+ - BB0o) - Co$$ecti$) a$d *hari$) o$ :he Co #ireboard 0or+
Co+%o$e$t 'ersio$: 1!0!0 Ce$erated: 12 ;o'e+ber1 20111 02:GJB!3e'ie, :$i$)
O%%ort$ities
1! 3e'ie, co++o$ Oracle t$i$) %oi$ts sch as cache hit ratio1 latch co$te$tio$1
a$d other %oi$ts deali$) ,ith +e+ory
+a$a)e+e$t! Co+%are ,ith %ast re%orts to ide$ti#y har+#l tre$ds or deter+i$e i+%act
o# rece$t t$i$) adEst+e$ts!
C! (ook #or 5/O Co$te$tio$
1! 3e'ie, database #ile acti'ity! Co+%are to %ast ot%t to ide$ti#y tre$ds that cold
lead to %ossible co$te$tio$!
D! 3e'ie, 0ra)+e$tatio$
1! 5$'esti)ate #ra)+e$tatio$ >e!)! ro, chai$i$)1 etc!A!
E! ProEect Per#or+a$ce i$to the 0tre
1! Co+%are re%orts o$ CP/1 +e+ory1 $et,ork1 a$d disk tiliHatio$ #ro+ both
Oracle a$d the o%erati$) syste+ to ide$ti#y
tre$ds that cold lead to co$te$tio$ #or a$y o$e o# these resorces i$ the $ear #tre!
2! Co+%are %er#or+a$ce tre$ds to *er'ice (e'el A)ree+e$t to see ,he$ the syste+
,ill )o ot o# bo$ds
0! Per#or+ :$i$) a$d &ai$te$a$ce
1! &ake the adEst+e$ts $ecessary to a'oid co$te$tio$ #or syste+ resorces! :his
+ay i$clde schedled do,$ ti+e or
reDest #or additio$al resorces!
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLL
0ireBoard-0or+ - BB0o) - Co$$ecti$) a$d *hari$) o$ :he Co #ireboard 0or+
Co+%o$e$t 'ersio$: 1!0!0 Ce$erated: 12 ;o'e+ber1 20111 02:GJ
Daily Checks
Check the availability of the database and instance , every 15 mts
Check the availability of the listener, every 15 mts
Check the sync between the primary database and standby database ,
every 15 mts or based on the SLA(Service level Agreement)
Check the space sage and make sre that all the tablespace sage is
below critical level, once in a day
Check the space sage of the archive log file system for both primary and
standby
!erify the sccess of daily backps, once in a day
!erify the sccess of archive log backps , based on the backp interval
to the backp media
Check the system performance , periodic basis
Check the database performance , periodic basis
Clear the tickets assigned in the ticketing mechanism
Check for the invalid ob"ects
#o throgh the adit files for any sspicios activities
#o throgh the alert logs for any critical ora errors , once in an hor
!erify all the monitoring agent, inclding $%& agent and third party
monitoring agents , once in an hor
Archive the alert logs , if re'ired
Clear the trace files in the dmp and bdmp directory as per the policy
!erify the stats of daily schedled "obs
Weekly Checks

Check the database statistics collection. On some databases this needs
to be done every day depending upon the requirement
Approve or plan any scheduled changes for the week
Check for critical and patch updates from oracle
Verify the cron jobs scheduled and clear the output directory if required
Perform logical level backups of important tables
Perform level or cold backup ! this can be changed as per the backup
policy
Quarterly Checks
Checks for the critical patch updates from Oracle!make sure that your
systems are in compliance with CP" patches
Verify the accuracy for the backs by creating test databases from the
backup
Verify the accuracy of the #$ mechanism by peforming a database
switch over test. %his can be done once in si& months based on the business
requirements
Daily DBA Checklist
Ensure that previous night's backup is complete and there are no RMAN
errors in the backup logs.
Ensure that any exports which are part o the backup are complete and the
dump iles
compressed.
!heck the alert log or any "RA# errors # also or messages like
'!heckpoint not complete etc'.
Ensure that the cron $ob or truncating% saving and renaming alert logs
is working # veriy the
same.
Ensure that the archive redo log iles are compressed and have been
deleted. "nly iles or
current and previous day should be present.
All tablespaces should be less than &'( ull # run the coalesce command
on all tablespaces to
reduce ragmentation. Ensure that space in the )EM* tablespace is
released and is +,,( ree
at the beginning o the day.
Enough contiguous ree space is available in all tablespaces or ob$ects
to extend i re-uired.
.ackup the control ile to trace so that every day we have a outline o
the iles and their
locations or each database.
No ob$ects are within ' extents o the MA/E/)EN)0 storage parameter.
All core dumps are deleted rom the 1!23M* area.
All 4.trc iles are deleted rom the 1323M* area.
!heck the machine or any disks +,,( ull or nearing that value. 5 a
disk has illed up use
the 'ind' command to determine iles which have been recently
created6modiied . Ensure that all
4.dmp iles are in their proper locations and large 4.dmp iles have been
compressed.
)runcate the listener.log ile in the 1"RA!7E89"ME6network6log location
i the listener log has
increased to a si:e ; than ',, M.. Ensure the space is released%
otherwise 'reload' listener.
Run the 'recently created6modiied ob$ects' report to ensure that no
unauthorised ob$ect
creation6modiication is taking place.
Ensure that there are no 2.M08<".0 with the status o ailed or broken.
Also last reresh times
o all running $obs should be current.
!heck to ensure that no ob$ects exist in the database with the status
'5N=A752'
Oracle DBA Checklist - Verify all instances are up - Daily
Procedures
Oracle DBA Checklist
Oracle DBA Checklist - Verify all instances are up - Daily Procedures
&ake sre the database is available( Log into each instance and rn daily reports or test
scripts( Some sites may wish to atomate this(
$ptional implementation) se $racle %nterprise &anager*s *probe* event(
Oracle DBA Checklist - Look for any new alert log entries - Daily Procedures
( Connect to each managed system(
( +se *telnet* or comparable program(
( ,or each managed instance, go to the backgrond dmp destination, sally
-$.ACL%/0AS%1 2S3451bdmp( &ake sre to look nder each managed database*s
S34(
( At the prompt, se the +ni6 *tail* command to see the alert/ 2S345(log, or otherwise
e6amine the most recent entries in the file(
( 3f any $.A7errors have appeared since the previos time yo looked, note them in the
4atabase .ecovery Log and investigate each one( 8he recovery log is in 2file5(
Oracle DBA Checklist - -Verify free space in tablespaces - Daily Procedures
!erify sccess of database backp
!erify sccess of database archiving to tape
!erify enogh resorces for acceptable performance
!erify free space in tablespaces(
,or each instance, verify that enogh free space e6ists in each tablespace to handle the
day*s e6pected growth( As of 2date5, the minimm free space for 2repeat for each
tablespace5) 9 2 tablespace 5 is 2 amont 5 :( ;hen incoming data is stable, and
average daily growth can be calclated, then the minimm free space shold be at least
2time to order, get, and install more disks5 days* data growth(
a) #o to each instance, rn free(s'l to check free mb in tablespaces( Compare to the
minimm free &0 for that tablespace( <ote any low7space conditions and correct(
b) #o to each instance, rn space(s'l to check percentage free in tablespaces( Compare
to the minimm percent free for that tablespace( <ote any low7space conditions and
correct(
Oracle DBA Checklist - -Verify rollback segent - Daily Procedures
Stats shold be $<L3<%, not $,,L3<% or ,+LL, e6cept in some cases yo may have
a special rollback segment for large batch "obs whose normal stats is $,,L3<%(
a) $ptional) each database may have a list of rollback segment names and their
e6pected statses(
b) ,or crrent stats of each $<L3<% or ,+LL rollback segment (by 34 not by name),
'ery on !-.$LLS8A8(
c) ,or storage parameters and names of ALL rollback segment, 'ery on
40A/.$LL0AC=/S%#S( 8hat view*s S8A8+S field is less accrate than
!-.$LLS8A8, however, as it lacks the >%<43<# $,,L3<% and ,+LL statses,
showing these as $,,L3<% and $<L3<% respectively(
Oracle DBA Checklist - Copy Archi!ed Logs to "tandby Database and #oll
$orward - Daily Procedures
3f yo have a Standby 4atabase, copy the appropriate Archived Logs to the e6pected
location on the standby machine and apply those logs (roll forward the changes) to the
standby database( 8his keeps the standby database p7to7date(
8he copying of logs, the applying of them, or both, can in some cases be atomated( 3f
yo have atomated them, then yor daily task shold be to confirm that this happened
correctly each day(
Oracle DBA Checklist - Look for %&O Contention - 'onthly Procedures
.eview database file activity( Compare to past otpt to identify trends that cold lead to
possible contention(
Oracle DBA Checklist - Perfor (uning and 'aintenance - 'onthly Procedures
&ake the ad"stments necessary to avoid contention for system resorces( 8his may
inclde schedled down time or re'est for additional resorces(
Oracle DBA Checklist - Daily Procedures - $ree)s*l
77 free(s'l
77
77 8o verify free space in tablespaces
77 &inimm amont of free space
77 docment yor thresholds)
77 2 tablespace/name5 ? 2amont5 m
77
S%L%C8 tablespace/name, sm ( blocks ) as free/blk , trnc ( sm ( bytes ) 1
(1@ABC1@AB) ) as free/m , ma6 ( bytes ) 1 (1@AB) as big/chnk/k, cont (C) as
nm/chnks
,.$& dba/free/space
#.$+> 0D tablespace/name
Oracle DBA Checklist - Daily Procedures - "pace)s*
77 space(s'l
77
77 8o check free, pct/free, and allocated space within a tablespace
77
S%L%C8 tablespace/name, largest/free/chnk
, nr/free/chnks, sm/alloc/blocks, sm/free/blocks
, to/char(1@@Csm/free/blocks1sm/alloc/blocks, *@E(EE*) FF *G*
AS pct/free
,.$& ( S%L%C8 tablespace/name
, sm(blocks) AS sm/alloc/blocks
,.$& dba/data/files
#.$+> 0D tablespace/name
)
, ( S%L%C8 tablespace/name AS fs/ts/name
, ma6(blocks) AS largest/free/chnk
, cont(blocks) AS nr/free/chnks
, sm(blocks) AS sm/free/blocks
,.$& dba/free/space
#.$+> 0D tablespace/name )
;H%.% tablespace/name ? fs/ts/name
Oracle DBA Checklist - Daily Procedures - analy+e,pct)s*l
77 analyIe5pct(s'l
77
77 8o analyIe tables and inde6es 'ickly, sing a 5G sample siIe
77 (do not se this script if yo are performing the overnight
77 collection of volmetric data)
77
0%#3<
dbms/tility(analyIe/schema ( *J$;<%.*, *%S83&A8%*, <+LL, 5 ) K
%<4 K
1
Oracle DBA Checklist - Daily Procedures - nr-e.tents)s*l
77 nr/e6tents(s'l
77
77 8o find ot any ob"ect reaching 2threshold5
77 e6tents, and manally pgrade it to allow nlimited
77 ma6/e6tents (ths only ob"ects we Ce6pectC to be big
77 are allowed to become big)
77
L S%L%C8 e(owner, e(segment/type , e(segment/name , cont(C) as nr/e6tents ,
s(ma6/e6tents , to/char ( sm ( e(bytes ) 1 ( 1@AB C 1@AB ) , *EEE,EEE(E@*) as &0
,.$& dba/e6tents e , dba/segments s
;H%.% e(segment/name ? s(segment/name
#.$+> 0D e(owner, e(segment/type , e(segment/name , s(ma6/e6tents
HA!3<# cont(C) 5 J8H.%SH$L4
$. ( ( s(ma6/e6tents 7 cont(C) ) 2 JJ8H.%SH$L4 )
$.4%. 0D cont(C) desc
Oracle DBA Checklist - Daily Procedures - spacebound)s*l
77 spacebond(s'l
77
77 8o identify space7bond ob"ects( 3f all is well, no rows are retrned(
77 3f any space7bond ob"ects are fond, look at vale of <%M8 e6tent
77 siIe to figre ot what happened(
77 8hen se coalesce (alter tablespace coalesceK)(
77 Lastly, add another datafile to the tablespace if needed(
77
S%L%C8 a(table/name, a(ne6t/e6tent, a(tablespace/name
,.$& all/tables a,
( S%L%C8 tablespace/name, ma6(bytes) as big/chnk
,.$& dba/free/space
#.$+> 0D tablespace/name ) f
;H%.% f(tablespace/name ? a(tablespace/name
A<4 a(ne6t/e6tent 5 f(big/chnk
Auditing the #atabase
Auditing the #atabase ' Overview
Auditing is a method of recording database activity as part of database security. It enables the
DBA to track user activity within the database. The audit records provide information on who
performed what database operation and when it was performed. Records are written to a SS!
owned table named A"D#. The SS.A"D# table is commonly referred to as the audit trail.
Auditing information is not collected without some impact on performance and database
resources. $ow much of an impact auditing will have on your system depends largely on the
type of auditing you enable. %or e&ample' setting high!level auditing such as connection
activity will not have as much of a performance impact as tracking all S() statements issued
by all users. It is best to start out with high!level auditing and then refine additional auditing as
needed.
Auditing can only be performed for users connected directly to the database and not for
actions on a remote database.
Auditing should be enabled if the following types of *uestionable activities are noted+
"ne&plained changes in passwords' tablespace settings' or *uotas

,&cessive deadlocks are encountered

Records are being read' deleted' or changed without authori-ation
There are three types of auditing+
(tatement Auditing
Statement auditing is the tracking of S() statements issued by database users. To enable or
disable auditing on S() statements' you must have the A"DIT system privilege. The list below
shows the statements that can be audited.
Option Commands Included
A(:E3 *N*:E& A(:E3 *N*:E&
C(/*:E3 C3EA:E C(/*:E31 A(:E3 C(/*:E31 :3/;CA:E C(/*:E31 D3OP C(/*:E3
DA:ABA*E (5;F C3EA:E DA:ABA*E (5;F1 D3OP DA:ABA*E (5;F
5;DEP C3EA:E 5;DEP1 A(:E3 5;DEP1 D3OP 5;DEP
;O: EP5*:* All *I( state+e$ts that retr$ a$ Oracle error becase the s%eci#ied strctre or obEect does $ot
e7ist
P3OCED/3E C3EA:E >or 3EP(ACEA 0/;C:5O;1 C3EA:E >or 3EP(ACEA PACFACE1 C3EA:E >or
3EP(ACEA PACFACE BODN1 C3EA:E >or 3EP(ACEA P3OCED/3E1 D3OP PACFACE1
D3OP P3OCED/3E
P/B(5C
DA:ABA*E (5;F
C3EA:E P/B(5C DA:ABA*E (5;F1 D3OP P/B(5C DA:ABA*E (5;F
P/B(5C
*N;O;N&
C3EA:E P/B(5C *N;O;N&1 D3OP P/B(5C *N;O;N&
3O(E C3EA:E 3O(E1 A(:E3 3O(E1 *E: 3O(E1 D3OP 3O(E
3O((BACF
*EC&E;:
C3EA:E 3O((BACF *EC&E;:1 A(:E3 3O((BACF *EC&E;:1 D3OP 3O((BACF
*EC&E;:
*EI/E;CE C3EA:E *EI/E;CE1 D3OP *EI/E;CE
*E**5O; All co$$ectio$s a$d disco$$ectio$s
*N;O;N& C3EA:E *N;O;N&1 D3OP *N;O;N&
*N*:E& A/D5: A/D5:1 ;OA/D5:
*N*:E& C3A;: C3A;: *N*:E& P35"5(ECE*/3O(E* :O /*E3/3O(E1 3E"OFE *N*:E&
P35"5(ECE*/3O(E* 03O& /*E3/3O(E
:AB(E C3EA:E :AB(E1 A(:E3 :AB(E1 D3OP :AB(E
:AB(E*PACE C3EA:E :AB(E*PACE1 A(:E3 :AB(E*PACE1 D3OP :AB(E*PACE
:35CCE3 C3EA:E :35CCE31 A(:E3 :35CCE31 E;AB(E O3 D5*AB(E1 A(:E3 :AB(E B5:M
E;AB(E1 D5*AB(E1 A;D D3OP C(A/*E*
/*E3 C3EA:E /*E31 A(:E3 /*E31 D3OP /*E3
"5EB C3EA:E >or 3EP(ACEA "5EB1 D3OP "5EB
In addition to the statement auditing options shown above' there are several options that will
create audit records for a combination of statements. These options' sometimes referred to as
audit shortcuts' are+
./00,.T

R,S/"R.,

DBA

A))
The list below shows the statements audited by each of these shortcuts.
Shortcut
Option Statement Equivalent
CO;;EC: EDi'ale$t to setti$) aditi$) #or *E**5O;
3E*O/3CE EDi'ale$t to setti$) aditi$) #or A(:E3 *N*:E&1 C(/*:E31 DA:ABA*E (5;F1
P3OCED/3E1 3O((BACF *EC&E;:1 *EI/E;CE1 *N;O;N&1 :AB(E1 :AB(E*PACE1
"5EB
DBA EDi'ale$t to setti$) aditi$) #or A(:E3 *N*:E&1 P/B(5C DA:ABA*E (5;F1 P/B(5C
*N;O;N&1 3O(E1 *N*:E& C3A;:1 a$d /*E3
A(( EDi'ale$t to aditi$) all state+e$t o%tio$s
The audit shortcuts are useful for setting up auditing for multiple options with one command.
%or e&ample
A"DIT R,S/"R.,
1$,0,2,R 0/T S"..,SS%")3
will audit all the commands listed for A)T,R SST,4' .)"ST,R' DATABAS, )I05' 6R/.,D"R,'
R/))BA.5 S,74,0T' S,(",0.,' S0/04' TAB),' TAB),S6A.,' and 2I,1 for all users when
the command does not successfully complete.
Be careful that you do not confuse these with the roles named ./00,.T' R,S/"R.,' and
DBA. These shortcuts are provided for compatibility with earlier versions of /racle and may not
be supported in future versions.
Privilege Auditing
6rivilege auditing is the tracking of S() statements issued by users who have been granted
the right to e&ecute that statement through a system privilege. To enable or disable auditing
on S() statements' you must have the A"DIT system privilege. 6rivilege audit options match
the corresponding system privileges.
%or e&ample' to audit the D,),T, A0 TAB), system privilege' you would issue the following
command+
A"DIT D,),T, A0 TAB),
B A..,SS
1$,0,2,R S"..,SS%")3

Vous aimerez peut-être aussi