Successfully reported this slideshow.
ORACLE DBA           	        2011/04/16   57   CLR/H
•  H/N :         (            )•  Twitter : @stknohg•  Blog : http://d.hatena.ne.jp/stknohg/•             SIer            ...
DBA       	•  Database Administrator• • 
DBA                    Oracle Database                         	•  Oracle Database             	•                         ...
1.  Oracle2. 3.  Oracle        ”   ”4.  Oracle            ”
1.  Oracle2. 3. 4. 5. 6. 
• •  OS     •  Windows 2008 Server R2 SP1(64bit)     •  Standard Edition•      •  Oracle Database 11g R2(11.2.0.1.0)     •...
1.ORACLE
Oracle                              	       	                	                           	1978   	   Oracle version 1	    ...
Oracle                        	        	                         	  System Global Area        (SGA)                       ...
• •      •  System Global Area(SGA)     • • •                             Windows     (Oracle.exe)
System Global Area (SGA)	• •               	           	                     	     Shared Pool	                     SQL   ...
•                                           	        	    	                                 	     PMON	                  	...
•               	                          	                          	                   	                               ...
Program Global Area (PGA)	• •               	           	               	     SQL Work Area	      SQL            	     Ses...
•      • • •           (TCP1521)•         Windows
2.
• Oracle• • 
Demo
•  Net Configuration Assistant (NetCA) •  • 
Demo
.
GUI)	•  Database Configuration Assistant(DBCA)     •      •      • 
Demo
)	•     DBCA•  DBCA             SQL•  DBCA
oradim.exe	•      •           •  oradim.exe -new –sid {SID    }…     •           •  Oradim.exe –edit –sid {SID   }…     • ...
4.
•  Oracle 1.  OS   •  NTFS 2.  Automatic Storage Management ASM   •  Oracle   •    •            (ASM        )
•      •             RAC              ASM     •  SE RAC                ASM     • •            ASM     •  Oracle           ...
•      •  PFILE       •        •      •  SPFILE       •  Oracle 9i       •        • •           SPFILE
SGA/PGA                                         	•              (Oracle Database   )        	SGA/PGA	          	          ...
SGA/PGA                                       	•                     MEMORY_TARGET	     SGA	                            PG...
/              	•      •  1            	             	•      •      •               M:N            	                      ...
/   	•      •      • •      •      • 
•  Oracle• •      •  OLTP     •  BI/DWH     •                (8192byte)
/         /     	           A	                       B	   A	           B	       C	        C	     A	           B	     D	   ...
5.
• •          STARTUP     •  STARTUP NOMOUNT     •  STARTUP MOUNT     •  STARTUP (OPEN)•          SHUTDOWN     •  SHUTDOWN ...
(NOMOUNT)	            	                         	       System Global Area             (SGA)•      SGA•                   ...
(MOUNT)	          	                     	     System Global Area           (SGA)                                      	• •...
(OPEN)	           	                                    	     System Global Area           (SGA)                           ...
NORMAL	 TRANSACTIONAL	 IMMEDIATE	    ABORT	             	                   (        )	    (        )	   (         )	     ...
Enterprise Manager	•  Oracle     (Oracle 10g    WEB          )• •           Enterprise Manager
Enterprise Manager                      	•      Enterprise Edition+•  Standard Edition•  Enterprise Manager               ...
•             (                     )1.        ”                ”      ”           ”2. 
/       	•         (             )1. 2. 3. 
•  Oracle•      •      •  KROWN•  KROWN
6.
•  Oracle• 
プログラマのためのOracle DBA入門
プログラマのためのOracle DBA入門
プログラマのためのOracle DBA入門
Upcoming SlideShare
Loading in …5
×

プログラマのためのOracle DBA入門

4,253 views

Published on

第57回 CRL/Hで発表したスライドです。

Published in: Technology
  • Be the first to comment

プログラマのためのOracle DBA入門

  1. 1. ORACLE DBA 2011/04/16 57 CLR/H
  2. 2. •  H/N : ( )•  Twitter : @stknohg•  Blog : http://d.hatena.ne.jp/stknohg/•  SIer CLR/H•  •  ORACLE MASTER Gold Oracle Database 10g •  •  …
  3. 3. DBA •  Database Administrator• • 
  4. 4. DBA Oracle Database •  Oracle Database •  •  •  •  •  •  Oracle •  •  •  •  •  •  Oracle
  5. 5. 1.  Oracle2. 3.  Oracle ” ”4.  Oracle ”
  6. 6. 1.  Oracle2. 3. 4. 5. 6. 
  7. 7. • •  OS •  Windows 2008 Server R2 SP1(64bit) •  Standard Edition•  •  Oracle Database 11g R2(11.2.0.1.0) •  Standard Edition
  8. 8. 1.ORACLE
  9. 9. Oracle 1978 Oracle version 1 RSI 1979 Oracle version 2 1983 Oracle version 3 Oracle C 1984 Oracle version 4 1985 Oracle version 5 C/S 1988 Oracle version 6 PL/SQL 1992 Oracle 7 1997 Oracle 8 Java 1998 Oracle 8i i internet2001 Oracle 9i RAC(Real Application Cluster) 2002 Oracle 9i Release 2 2003 Oracle 10g g grid RAC ASM 2005 Oracle 10g Release 2 2007 Oracle 11g Real Application Testing 2009 Oracle 11g Release 2 Oracle Grid Infrastructure
  10. 10. Oracle System Global Area (SGA) Redo Program Global Area (PGA)
  11. 11. • •  •  System Global Area(SGA) • • •  Windows (Oracle.exe)
  12. 12. System Global Area (SGA) • •  Shared Pool SQL Database Buffer Cache Java Pool Java Large Pool Redo Log Buffer Redo
  13. 13. •  PMON SMON DBWn LGWR REDO CKPT DBWn MMON AWR ARCn JCQ0
  14. 14. •  Redo (Undo ( ) SQL •  Redo
  15. 15. Program Global Area (PGA) • •  SQL Work Area SQL Session Memory Private SQL Area SQL
  16. 16. •  • • •  (TCP1521)•  Windows
  17. 17. 2.
  18. 18. • Oracle• • 
  19. 19. Demo
  20. 20. •  Net Configuration Assistant (NetCA) •  • 
  21. 21. Demo
  22. 22. .
  23. 23. GUI) •  Database Configuration Assistant(DBCA) •  •  • 
  24. 24. Demo
  25. 25. ) •  DBCA•  DBCA SQL•  DBCA
  26. 26. oradim.exe •  •  •  oradim.exe -new –sid {SID }… •  •  Oradim.exe –edit –sid {SID }… •  •  Oradim.exe –delete –sid {SID }…•  Windows (Oracle.exe)
  27. 27. 4.
  28. 28. •  Oracle 1.  OS •  NTFS 2.  Automatic Storage Management ASM •  Oracle •  •  (ASM )
  29. 29. •  •  RAC ASM •  SE RAC ASM • •  ASM •  Oracle … •  …
  30. 30. •  •  PFILE •  •  •  SPFILE •  Oracle 9i •  • •  SPFILE
  31. 31. SGA/PGA •  (Oracle Database ) SGA/PGA SGA SGA_MAX_SIZE SGA SGA_TARGET SGA DB_CACHE_SIZE SHARED_POOL_SIZE LARGE_POOL_SIZE JAVA_POOL_SIZE JAVA STREAM_POOL_SIZE Stream Pool LOG_BUFFER REDO PGA PGA_AGGREGATE_TARGET PGA PGA/SGA MEMORY_TARGET MEMORY_MAX_TARGET MEMORY_TARGET
  32. 32. SGA/PGA •  MEMORY_TARGET SGA PGA SGA_TARGET PGA_AGGREGATE_TARGET • 
  33. 33. / •  •  1 •  •  •  M:N
  34. 34. / •  •  • •  •  • 
  35. 35. •  Oracle• •  •  OLTP •  BI/DWH •  (8192byte)
  36. 36. / / A B A B C C A B D D DBF01 DBF02 DBF03 DBF04 DBF05
  37. 37. 5.
  38. 38. • •  STARTUP •  STARTUP NOMOUNT •  STARTUP MOUNT •  STARTUP (OPEN)•  SHUTDOWN •  SHUTDOWN NORMAL •  SHUTDOWN TRANSACTIONAL •  SHUTDOWN IMMEDIATE •  SHUTDOWN ABORT
  39. 39. (NOMOUNT) System Global Area (SGA)•  SGA• 
  40. 40. (MOUNT) System Global Area (SGA) • •  REDO
  41. 41. (OPEN) System Global Area (SGA) Redo Program Global Area (PGA) •  REDO
  42. 42. NORMAL TRANSACTIONAL IMMEDIATE ABORT ( ) ( ) ( ) (ROLLBACK) ( ) ( ) ( )
  43. 43. Enterprise Manager •  Oracle (Oracle 10g WEB )• •  Enterprise Manager
  44. 44. Enterprise Manager •  Enterprise Edition+•  Standard Edition•  Enterprise Manager … •  Enterprise Manager
  45. 45. •  ( )1.  ” ” ” ”2. 
  46. 46. / •  ( )1. 2. 3. 
  47. 47. •  Oracle•  •  •  KROWN•  KROWN
  48. 48. 6.
  49. 49. •  Oracle• 

×