Вы находитесь на странице: 1из 8

Practice 8: {Units 14, 15 y 16}

Unit 14

1. Enable ARCHIVELOG mode


connected as SYSDBA.
- EM > Availability >
Backup/Recovery > Setup >
Recovery Settings
- SQL> ALTER DATABASE
ARCHIVELOG; [while the
database is in the MOUNT state]
2. To understand logic errors in
applications, you can use LogMiner.
Examine the redo of transactions:
- EM > Availability > View and
Manage Transactions
3.

Setting the MTTR target.


- EM > Related Links section >
Advisor Central > MTTR Advisor

- EM > Availability > Recovery


Settings
- Review
FAST_START_MTTR_TARGET
parameter
4.

Multiplexing Control Files


- Review where control files are
located [show parameter
control_files]
- Adding a control file manually

Alter SPFILE

ALTER SYSTEM SET control_files =


'/u01/app/oracle/oradata/orcl/contr
ol01.ctl' ,
'/u01/app/oracle/oradat
a/orcl/control02.ctl' ,
'/u01/app/oracle/oradata/orcl/c
ontrol03.ctl' SCOPE=SPFILE;


Shut down the database.

Use the operating system


to copy an existing control file
to the location you select for
your new file.

Open the database.


5.

Multiplexing Redo Logs


EM > Server > Storage section
> Redo Log Groups
Create a new Redo Log [10MB]
Create a member to the new
Redo Log
Try to remove an active Redo
Log
Remove an inactive Redo Log
Force to switch a Redo Log
Write down differences Redo Log
states
Review the V$LOGFILE
SELECT * FROM v$logfile;

Unit 15

6.

Configuring Backup settings.


- EM > Availability > Backup
Settings

7.

Scheduling Backups.
- EM > Availability > Schedule
Backup

8. Backing Up the Control File to a


Trace File.
- EM > Server > Control Files
- SQL command:
ALTER DATABASE BACKUP
CONTROLFILE TO TRACE;
[USER_DUMP_DEST]
9.

Managing Backups.
- EM > Availability > Manage
Current Backup

10. Viewing Backup Reports.

- EM > Availability > Backup


Reports
11. Monitoring the Flash Recovery Area.
- EM > Availability > Recovery
Settings
12. Using the RMAN Command Line.
- Start RMAN and connect to the
target database
c:\> rman
- Execute configuration
commands
RMAN> CONFIGURE DEFAULT
DEVICE TYPE TO disk;
RMAN> CONFIGURE DEVICE TYPE
DISK BACKUP TYPE TO COPY;
RMAN> CONFIGURE CONTROLFILE
AUTOBACKUP ON;
- Using RMAN to make an image
copy of all the database files

RMAN> BACKUP DATABASE PLUS


ARCHIVELOG;
- RMAN to remove the archive log
files after backing them up.
RMAN> BACKUP DATABASE PLUS
ARCHIVELOG DELETE INPUT;
- Create a backup of previous
image copies of all data files
and control files in the DB.
RMAN> BACKUP COPY OF
DATABASE;

Unit 16

13. Check the v$recover_file dynamic


performance view to get a complete list
of the files that need attention.
- Rename data files while DB is
shutdown.
- Try to start the DB
SELECT name, error
FROM v$datafile
JOIN v$recover_file
USING (file#);
14. Reviewing the Data Recovery
Advisor.
- Availability > Manage > Perform
Recovery > Advise and Recover
- Home Page > Database Instance
Health > Related Links >
Support Workbench > Checker
Findings > Launch Recovery Advisor
- RMAN command line

c:\ rman target / nocatalog


rman> list failure all;
15. Remove a Redo log member and
see Alert failure Advisor.

Вам также может понравиться