• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/33

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

33 Cards in this Set

  • Front
  • Back
Failures can generally be divided into the following categories:
Statement failure
User process failure
Network failure
User error
Instance failure
Media failure
Statement Failure
Typical Problem
Attempts to enter invalid data into a table
Possible Solution
Work with users to validate and correct data.
Statement Failure
Typical Problem
Attempts to perform operations with insufficient privileges
Possible Solution
Provide appropriate object or system privileges.
Statement Failure
Typical Problem
Attempts to allocate space that fail
Possible Solution
Provide appropriate object or system privileges.
Statement Failure
Typical Problem
Attempts to allocate space that fail
Possible Solution
Enable resumable space
allocation.
Increase owner quota.
Add space to tablespace.
Statement Failure
Typical Problem
Logic errors in applications
Possible Solution
Work with developers to correct program errors.
User Process Failure
Typical Problems
A user performs an abnormal disconnect.
A user’s session is abnormally terminated.
A user experiences a program error that terminates the session.
A DBA’s action is not usually needed to resolve user process failures. Instance background processes roll back uncommitted changes and release locks.


Watch for trends.
Network Failure
Typical Problems
Listener fails.
Possible Solutions
Configure a backup listener and connect-time failover.
Network Failure
Typical Problems
Network Interface Card (NIC) fails
Possible Solutions
Configure multiple network cards.
Network Failure
Typical Problems
Network connection fails.
Possible Solutions
Configure a backup network connection.
User Error
Typical Causes
User inadvertently deletes or modifies data.
Possible Solutions
Roll back transaction and dependent transactions or rewind table.
User Error
Typical Causes
User drops a table.
Possible Solutions
Recover table from recycle bin.
What do you use??
Viewing past states of data
Winding data back and forth in time
Assisting users in error analysis and recover
Flashback technology:
used For error analysis:
Oracle Flashback Query
Oracle Flashback Versions Query
Oracle Flashback Transaction Query
For error recovery:
Oracle Flashback Transaction Backout
Oracle Flashback Table
Oracle Flashback Drop
Oracle Flashback Database
Instance Failure
Typical Cause
Power outage
Hardware failure
Failure of one of the critical background processes
Emergency shutdown procedures
Possible solutions
Restart the instance by using the STARTUP command. Recovering from instance failure is automatic, including rolling forward changes in the redo logs and then rolling back any uncommitted transactions.

Investigate the causes of failure by using the alert log, trace files, and Enterprise Manager.
What is Responsible for
Updating data file headers with
checkpoint information
Updating control files with
checkpoint information
Signaling DBWn at
full checkpoints
CKPT is responsible for that
Checkpoint process
CKPT is responsible for that
Checkpoint process
Redo Log Files and Log Writer
Understanding Instance Recovery
Involves two distinct operations:
Rolling forward: Redo log changes (both committed and uncommited) are applied to data files.

Rolling back: Changes that are made but not committed are returned to their original state.
Statement failure is never by design and always requires the DBA to address the issue.
True
False
False
Phases of Instance Recovery
1. Startup instance (data files are out of sync)
2. Roll forward (redo)
3. Committed and uncommitted data in files
4. Database opened
5. Roll back (undo)
6. Committed data in files
Tuning Instance Recovery
During instance recovery, the transactions between the checkpoint position and the end of redo log must be applied to data files.
You tune instance recovery by controlling the difference between the checkpoint position and the end of redo log.
The FAST_START_MTTR_TARGET
initialization parameter simplifies the configuration
Using the MTTR Advisor
Specify the desired time in seconds or minutes.
The default value is 0 (disabled).
The maximum value is 3,600 seconds (one hour).
Oracle Corporation defines media failure as any failure that results in the loss or corruption of one or more database files whats there name?
(data, control, or redo log file).
Configuring for Recoverability
To provide the best protection for your data, you must:
Schedule regular backups Most media failures require that you restore the lost or damaged file from backup.

Multiplex control files All control files associated with a database are identical. Recovering from the loss of a single control file is not difficult; recovering from the loss of all control files is much more challenging. Guard against losing all control files by having at least two copies.

Multiplex redo log groups
Configuring the Fast Recovery Area
The fast recovery area is a space that is set aside on the disk to contain archived logs, backups, flashback logs, multiplexed control files, and multiplexed redo logs. A fast recovery area simplifies backup storage management and is strongly recommended.
Just read the other side
Which parameters configure the fast recovery area
Location specified by the DB_RECOVERY_FILE_DEST parameter
Size specified by the DB_RECOVERY_FILE_DEST_SIZE
Extra Bit
startup command is used for instance recovery

Redo log files record changes to the database, should be multiplexed
to protect against loss

writes
when one third full
at commit
every 3 seconds
before dbwn
before clean shutdowns


Rolling forward-- both commited and uncommited
are applied to data files


Rolling Back--changes made but not commited
are returned to the origibal state
startup command is used for what?
instance recovery
Redo log files record changes to the database, should be multiplexed , for what reason?
To protect against loss
Log writer writes at
writes
when one third full
at commit
every 3 seconds
before dbwn
before clean shutdowns
Rolling forward-- both commited and uncommited
are applied to data files


Rolling Back--changes made but not commited
are returned to the origibal state
Rolling forward-- both commited and uncommited
are applied to data files


Rolling Back--changes made but not commited
are returned to the origibal state