oracle 笔记2(Fundamentals II)

本文介绍了Oracle数据库备份与恢复的概念,包括故障类别如语句失败、实例失败等;讨论了实例与媒体恢复结构,涉及动态视图和参数调整;详细说明了归档模式配置过程,包括自动与手动归档操作;最后概述了Oracle恢复管理器(RMAN)的使用方法及配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

六、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
































评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值