oracle 笔记2(Fundamentals II)

六、Backup and Recovery Overview

1、Categories of Failures

(1)Statement failure

(2)User process failure

(3)User error

(4) Network failure

(5)Instance failure

(6)Media failure




七、Instance and Media Recovery Structures


1、Dynamic Views

--v$sga

--v$sgastat

--v$instance

--v$process

--v$bgprocess

--v$database

--v$datafile


2、

Mean-Time-Between-Failures:    MTBF

Mean-Time-To-Recover:    MTTR


3、   parameters

--fast_start_mttr_target 

--log_checkpoint_interval

--log_checkpoint_timeout

--v$instance_recovery

Tuning the RFP(roll forward phase)

--recovery_parallelism

Tuning the RBP(rollback phase)


Monitoring Parallel Rollback

--v$fast_start_servers

--v$fast_start_transactions



Configuring the Database Archiving Mode


1、自动归档

archive log list

alter database archivelog;

Enable After Instance Startup

show parameter log_archive_start

alter system set log_archive_start=true  scope=spfile;

alter system archive log start to '/home/oracle/admin/TS/archdest';

alter system archive log start


2、Manually Archiving

alter system archive log current;


3、

alter system set log_archive_dest_1="location=/home/oracle/admin/TS/archdest" scope=both;

alter system set log_archive_format="%$ORACLE_SID%t_%s_%r.arc" scope=spfile;


4、Dynamic views

--v$archived_log

--v$archive_dest

--v$log_history

--v$database

--v$archive_processes

archive log list


九、Oracle Recover Manager Overview and Configuration



1、RMAN Components




2、RMAN COMMAND

rman target sys/sunlin@st nocatalog;

configure controlfile autobackup on;

configure channel device type disk format '/tmp/backup/%U';

configure controlfile autobackup clear;   --恢复到默认值

list backup of database;

list backup of datafile '/home/oracle/oradata/TS/system01.dbf';

list backup of tablespace 'SYSTEM';

list copy of tablespace 'SYSTEM'

report schema;

report neet backup;


3、Auto  Channel  Allocation
































  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值