Backup and Recovery Flashcards

1
Q

Complete VS Incomplete Recovery

A

Complete: All backup files including archive and redo logs are recovered

Incomplete: not all archived log data or redo log data can be restored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Offline or Cold backups

A

The database is shutdown during the backup process.

Physical structure is backed up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Online or Hot backups

A

The database is available to users during the backup process.
Physical structure is backed up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Exports

A

The database is available to users, but only the data is backed up. Not the physical structures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Restore vs. Recovery

A

Restore: physical files are copied from a backup and replace damaged files

Recovery: more extensive repairs are needed than just the copying of a file.
ex: archived logs or redo log files are applied.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

offline backup proccess

A

cleanly shutdown(no abort)

copy datafiles, control files, redo log files to another location

recommended to backup pfile and archive logs too

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

restoring from cold backup

A

If database has not been started since backup recover just replace the damaged files.

if it has been started then restore all datafiles, control files, and redo log files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Hot backup process.

A

One by one or all at once place table spaces into backup mode. this redirects all incoming changes to the redo log.

copy files in OS
Also backup any archived log files.

end backup mode to recover datafiles (write all stalled transaction and return normal functionality).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Recover hot backup

A

Mount the database

Restore the specific datafile from the online backups

Recover the datafile if needed:
RECOVER DATAFILE ‘/’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Exports are?

A

Exports deal only with the logical structures of a database.

Used to backup and recover data related failures.

The physical file structures must already exist.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

exports

A

generates dump file via data pump tool command expdp

there are command options to dump individual tables, whole schemas, or the entire database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Imports

A

writes to database from dump file via data pump command impdp

there are options for tables with structure and data or just data

Import appends import data to the end of the existing rows of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Data Dictionary Views

A

Table spaces in backup mode v$backup

datafile info v$datafile

SCN values V$LOG_HISTORY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Point in time recovery

A

Archived logs are applied up to a specific point-in-time.

time can be selected via until change (scn#), time, or cancel(end of log)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Start up levels

A

NOMOUNT

Instance started (instance = background processes and memory structure allocation)

Spfile read.

MOUNT

control files opened

OPEN
Datafiles and redo log files are opened.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Control files should be backed up for?

A

Cold backups not hot backups