You are on page 1of 22

|   

  

`   
      

`   

`    

`    

`  
  
   

PMON SMON RECO D000 S000 P000 G # SG S 


$ "
G  S 
 L  
SGA 
Sh SQL    h
G   S 
! "

TL-812
Ñ,000,000 KByte 1,200,000 KByte 2,100 KByte

DBW0 CKPT LGWR


Server
Data File
Raw Device ARCH
USER
Archive Log Mode(50M)
  

Shared Pool
  Shared Pool Contents
Ô #  h SQL  %L/SQL ' 
Library Cache uictionary
Cache Ô % '  h SQL  %L/SQL ' 
Ô   (   h SQL  %L/SQL
Sh
' 
SQL 
Ô      h     ,  
    '
Control Structures
 '(    Library Cache
%L/SQL %  Ô h SQL 
h  S
  % &   Ô ( SQL 
"'
+,& S  Ô %L/SQL (    ( &

  S  Ô       &     h h  
 '( )     **
  uictionary Cache
L &
L Ô '       ,  h 
 h h   Reusable
    *** Runtime Ô '   (   '     
Memory Ô (   
  
  SHAREu POOL SIZE
      

     
  
 
  

  
            
   !
  !"#!
  Size = DB_BLOCK_SIZE GDB_BLOCK_BUFFERS

SGA uatabase Buffer Cache


Sh %

Sh SQL 


  "!

   
                
     
  "$     "  
  %"    "! 
 "!
  !&'#$"

Ô e veÔ #1
ed eÔd
Ô e veÔ #1

Ô e veÔ #1

 

SNPn SMON PMON RECO LCK0

Pnnn
SG
   h  L

Offline
Storage
uevice
 
Snnn S
% 
uBWR LGWR ARCH

unnn
|
%  CKPT

Control
Files
| Redo Log
uata Files
Files
   

  DBWR    % (


)  

    



) #!"#
    

  
)  *+ , 
` di lis eÔ es   es ld le
`  pÔess sÔs  speÔifed 
e f ffe i  e LRU wi   fidi fee ffe
`  i
e-  ÔÔ s
` DBWR Ô eÔ pi ÔÔ s

  LGWR !% (


)  
  
` C

i ÔÔ s
` T e ed l ffes pl eÔ
es e- id f ll
` DBWR Ô
plees Ôlei  e ffe lÔ s   Ô eÔ pi
` LGWR i
e- 
)          
  -     



 .

   ON    (


) 
  

      
) "

        


) "

 
     
) & 

    
 
)      

  S ON    (


)         
) "
     
  
)       

 .

  CKT   (


)  
     /$0*1'"$21"#$
) * 
3  !&%".   
   
) #  
   

     
) 4           

) 01         

  RCH   (
) 

  

)  
 
  
) *  
 
   "/*5$!&
)      
  LCK ! (3 D   (3 S  (3
RECO "  (3


(3SN  6(3
N6  (3
 +# 

  Use Ôesses
)     
   
) "   
+
       

) 6!        


  Seve Ôesses
)    
          
)   -  6!   
) " 
       &
) "   
6!      
`  Œ Ô eÔ s seÔ i ÔÔess  eÔ esl i pi
izi
` $-   Πpplies  e pse ee   e d pef
 p siÔl ed d
Ô e
`   Πsses d   e se (l SELECT)




   

  "!

   


   

    

  !

 G
34
 
3
  
(
  1 

    

  %h    


` uata files
` Segments
` Extents
` Blocks
  L    
` Tablespaces
` Tables / Clusters / Indexes
` Rows
` Columns
 
    

    h( '  S' -  -     &

Se
e
780

Ee Ee
ë 0 £ë0 ë
ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë
ë ë ë ë

D se BlÔ s


! 
    

    h( ,  (     

D se

Sse
T lespÔe USER T lespÔe

DT1OR DTOR
DTOR
 .
 
.     ( 

T lespÔe   


(

T le T le INDEX

INDEX INDEX INDEX INDEX


INDEX INDEX
INDEX T le
INDEX INDEX

D se Files O eÔs


 
        
 
 
  
 (   
 
(

 

Header General Block Information


Table uictionary (Block add, Segment type)
Row uictionary 85 ~ 100 bytes

Free Space Table info in Cluster

Row info in Block


(2 byte per row)

Row uata
using when New Row
Insert or Update
(pctfree, pctused)

Table or Index uata


1"$$+1#$
PCTFREE PCTUSEu

20% Free space

61% Free space

PCTFREE = 20 PCTUSEu = Ñ0

Ë Insert new row until 80% Ë Can insert new row when below 60%
Ë When Usage is below Ñ0% (61% Free
Ë 20% use when Update space), block is listed in FREELIST
$- 

       


    

  $-  

   
) 1   **1*!$91$1(
) 1 $91$91$1(
) 1 

 

  -  

  $-  )

    
) 1     
) 1 
   
    -  


  
(

  $      


  -  à àà  (
"

  ë(
  !1$"1!$ 
'  $!!1$##$


    -       

     


 
 
     
 
  D Se
e
)  

  -    


   



 
  Ide Se
e
)  

  -    


  -   ,   


 

 
 
  Rll Ô Se
e
)  

  -    


  

 3)    3  


  Te
p se
e
)  

  -    
  
     
    
 
  Bsp se
e
)  -               
  
  
   


 +    

NETWORK

Clie Seve
ppliÔi

ClieSeve SeveSeve

Seve 
  Beefi f ClieSeve C
pe
)   +%   ) 
   ,
)  ,    )  ,
 /+%
)   3    3    )   3    3   
6!G

  W  is S L*Ne
) 
.
 + 

)       
  
       (
)  

    
    
  W  is TNS
) 1      
) 
. 
       
     
  

) 1) 
   3
  
 3  
1+*
  Cfi i File
) 1$"
 (
) 15"
 (
) 6!$1"
 3 (
) !*1$$"" (
6!G   

  TNSN EOR   LISTENEROR


 2 !*1$$"2
 $"*1*2  "$'!*12
 "$'!*12
 "$2
 "$2
"1!2 (
"1!2 (
/12  :;( /12  :;(
"12;<ë;( "12;<ë;(
( (
( (
$1' 12 * '!*1'!*1$$"2
* 2"*;( * '!*12
( * ' $2
( * '$2"*;(
"!$'/$2+
£+
£(
$52=$' *!$ 21"#$=(
(
(
  S LNETOR 1"1#'%*1'1*$'!*1$$"2:
ÿ6!$1$9*"$'1*$2: $1'1*$#1'!*1$$"2:
!&' *"$1">'!*1$$"2+
£+
£+  +

6!$1#1/$1*1*'
!&'*!$'!*1$$"2
  
$"5*$2  3 4(
1"$'!$5$!'!*1$$"2