¢…ˆ²´ …¯œ±œ ¨§†©...

Download ¢…ˆ²´ …¯Œ±Œ ¨§†© §·„§¹§Œ §ˆ±§©„ - ¨®´ †‡§±¯‡…

If you can't read please download the document

Post on 16-Apr-2017

63 views

Category:

Education

4 download

Embed Size (px)

TRANSCRIPT

  • 1

    faradars.org/fvorc9408

    FaraDars.org

  • :

    .

    Instance Recovery Tune

    archive logs,Checkpoints,redo log files

    Flash Recvery Area

    Archivelog Mode

    2

    faradars.org/fvorc9408

    FaraDars.org

  • :

    Statement failure User process failure Network failure User error Instance failure Media failure

    3

    faradars.org/fvorc9408

    FaraDars.org

  • Statement Failure

    system object privileges

    Tablespace

    Logic errors in applications Work with developers to correct

    program errors.

    4

    faradars.org/fvorc9408

    FaraDars.org

  • User Process Failure

    .

    Session .

    Session

    dba .

    5

    faradars.org/fvorc9408

    FaraDars.org

  • Network Failure

    Listener Listener

    6

    faradars.org/fvorc9408

    FaraDars.org

  • User Error

    . Rollback

    recycle bin

    Oracle LogMiner

    7

    faradars.org/fvorc9408

    FaraDars.org

  • Flashback

    : Oracle Flashback Query

    (SELECT AS OF) Oracle Flashback Versions

    Query (SELECT VERSIONS BETWEEN)

    Oracle Flashback Transaction Query

    : Oracle Flashback

    Transaction Backout Oracle Flashback Table Oracle Flashback Drop

    : Flash back

    8

    faradars.org/fvorc9408

    FaraDars.org

  • Instance Failure

    Instance

    Stratup

    roll Instance forward redologfiles rollback

    Uncommited

    EM Trace files

    bg rpcess

    9

    faradars.org/fvorc9408

    FaraDars.org

  • :Instance Checkpoint (CKPT) Process

    CKPT :ckpt data file Control file

    ckptckpt DBWn

    SGA

    Database

    buffer cache

    Checkpoint process

    CKPT

    Data files

    Control files

    Database Writer

    process

    DBWn

    10

    faradars.org/fvorc9408

    FaraDars.org

  • :Instance Redo Log Files and LogWriter

    Redo log files:

    LogWriter:commit 3 DBWn

    Redo loggroup 1

    Redo loggroup 3

    Redo loggroup 2

    SGA

    Redo log buffer

    LogWriter

    LGWR

    11

    faradars.org/fvorc9408

    FaraDars.org

  • Instance Data files out of syncRoll forward (redo)Committed and noncommitted data in files Database openedRoll back (undo)Committed data in files

    Undo

    Instance

    Backgroundprocesses

    SGA

    Database

    Data filesRedo log

    groupControl

    files

    SCN: 99

    SCN:129

    SCN:140

    SCN:143

    SCN:

    102-143

    SCN:143

    SCN:

    74-101

    12

    faradars.org/fvorc9408

    FaraDars.org

  • Media Failure

    (. )

    Redo

    13

    faradars.org/fvorc9408

    FaraDars.org

  • :

    Redo log groups Redo logs

    14

    faradars.org/fvorc9408

    FaraDars.org

  • Flash Recovery Area Flash recovery area:

    .

    ( )

    DB_RECOVERY_FILE_DEST

    DB_RECOVERY_FILE_DEST

    Redo log archive logs,flashback .

    15

    faradars.org/fvorc9408

    FaraDars.org

  • :

    .

    : 1. Alter the SPFILE with the ALTER SYSTEM SETcontrol_files command.

    2. Shut down the database.

    3. Move OS copy of file to a new location.

    4. Open the database.

    Control files

    16

    faradars.org/fvorc9408

    FaraDars.org

  • Redo Log Files

    Media redo log groups failure I/O .

    ( )

    Group 1 Group 2 Group 3

    Disk 1

    Disk 2

    Member 1

    Member 2

    Member 1

    Member 2

    Member 1

    Member 2

    . redo logs : 17

    faradars.org/fvorc9408

    FaraDars.org

  • Redo Log

    18

    faradars.org/fvorc9408

    FaraDars.org

  • Archive Log Files

    Redo 1 2ARCHIVELOG 3

    Online redo log files Archive log files

    19

    faradars.org/fvorc9408

    FaraDars.org

  • Archiver (ARCn) Process

    Archiver (ARCn): Is an optional background

    process Automatically archives

    online redo log files when ARCHIVELOG mode is set for the database

    Preserves the record of all changes made to the database

    Redo logfiles

    SGA

    Redo log buffer

    LogWriter

    LGWR

    Archiver process

    ARCn

    Copies of Redo log

    files

    20

    faradars.org/fvorc9408

    FaraDars.org

  • : Archive Log File

    If USE_DB_RECOVERY_FILE_DEST is deleted,

    the flash recovery area is not used.

    21

    faradars.org/fvorc9408

    FaraDars.org

  • ARCHIVELOG

    sqlplus / as sysdba

    shutdown immediate

    startup mount

    alter database archivelog;

    alter database open;

    archive log list

    22

    faradars.org/fvorc9408

    FaraDars.org

  • .

    . faradars.org/fvorc9408

    faradars.org/fvorc9408

    FaraDars.org

View more >