2020-10-13

2020-10-12 Self-study

[Oracle 11g](https://www.bilibili.com/video/BV15b411s7sW?p=66&t=917)
事务
    https://blog.csdn.net/sun8112133/article/details/89839573
    https://blog.csdn.net/sun8112133/article/details/89839573
    https://www.cnblogs.com/jyroy/p/11106609.html
锁
索引
同义词
ROWNUM ROWID
    https://www.cnblogs.com/aspirant/p/9214645.html
    https://blog.csdn.net/yu102655/article/details/52370542
约束
闪回
动态性能视图 | 视图 | 数据字典

morning

Preview

curriculum context 课程背景
RAC 
Data Guard
complement 补足
encrypted 加密

day01
Unit I: Introduction and Configuration
1. Introduction
2. Getting Started
3. Configuring for Recoverability
4. Using the RMAN Recovery Catalog

day02
Unit II: Backup
5. Backup Strategies and Terminology
6. Performing Backups
7. Improving Your Backups
8. Creating RMAN-Encrypted Backups
Unit III: Recovery
9. Diagnosing Failures
10. Restore and Recovery Concepts

day03
11. Performing Recovery, Part 1
12. Performing Recovery, Part 2
Unit IV: Additional Technologies
13. RMAN and Oracle Secure Backup
14. Using Flashback Technologies

day04
15. Flashback Database
16. Transporting Data
17. Performing Point-in-Time Recovery
18. Duplicating a Database
19. RMAN Troubleshooting & Tuning

day05
Unit V: Real-Life Hands-on
20. Backup and Recovery Workshop

criticality 
granularity 
down time 
disasters
outages
failures
corruptions
pieces 件

Lesson 01. Using Database Resource Manager

assess 评估
Oracle Secure Backup
Oracle Data Guard
Oracle Maximum Availability Architecture
Curriculum Context
disk tape 磁盘 磁带
数据恢复 前滚 回退
Flashback Technologies
data duplication 
recoverability 可恢复性
Wallet 128
transpoting
point-in-time 时间点
troubleshooting 故障排除
extreme availability
[ADO](https://www.oracle.com/lad/technical-resources/articles/database-performance/automatic-data-optimization.html)
consolidation 巩固
prioritize
critical
RPO RTO
down time 宕机时间
tiered 分层
granularity 粒度
保留策略
on-site
off-site 站点外
故障分类
    开发人员
    POMN
    网管
    管理员
    管理员
    管理员
offline 脱机
checksum  
DBC
exceeded 过度的
成本 钱
disaster
dashboard
OSB Oracle Secure Backup 单独安装
RMAN Oracle Recovery Manager
Amazon 
intrinsic 内在的
leveraging 杠杆作用
heterogeneous 各种各样的
centralized
[Oracle 云服务](https://www.oracle.com/cn/index.html)
DG
容灾系统
重做流
Real Application Clusters(RAC)  Data Guard  GoldenGate
块介质恢复
零宕机应用
up-to-date
out-of-date
异地备库
revenue 收入
productivity

实验环境
    orcl
    emrep em12rep
    rcat 

    vi /etc/oratab
    rcat Y

Lesson 02. Getting Started

prerequisite 前提
dirty
incremental 增量检查点
10W数据 4W写入 故障 
PMON 当用户进程失败时执行进程恢复
ARCn 复制redo日志文件以指定存储设备
(非)归档模式
ASM
Oracle Automatic Storage Management
notification 通知
19c
facilitating 促进
dependency
crsctl
srvctl
    srvctl stop database -d orcl -o abort
asmcmd
wizards
obtool

explicitly 明确的
rman target "'/ as sysbackup'"
实例恢复和归档日志没有关系
还原 恢复

in the afternoon

Preview

Security Credentials 


Lesson 1: Introduction
1-1 Exploring the Course Environment
pgrep -lf pmon
lsnrctl status
select name,log_mode,db_unique_name from v$database;
select user from dual;


Lesson 2: Getting Started
2-1 Backing Up in NOARCHIVELOG Mode
rman target "'/ as sysbackup'"
select name,dbid,log_mode from v$database;
select user from dual;
show all;
backup database;
shutdown immidate;
startup mount;
backup database;
alter database open;
list backup;
delete obsolete;

2-2 Creating a Test Case for Recovery
select * from bar22.barcopy;
archive log list;
shutdown abort;
pgrep -lf pmon
rm /u01/backup/orcl/bar22tbs01.dbf

2-3 Recovering in NOARCHIVELOG Mode
rman target "'/ as sysbackup'"
list backup;
recover database;
alter database datafile '/u01/backup/orcl/bar22tbs01.dbf' offline for drop;
alter database open;
drop tablespace bar22tbs including contents and datafiles;
con file_name format a44
col tablespace_name format a10
select file_name, tablespace_name from dba-data_files;
drop user bar22 cascade;


Lesson 3: Configuring for Recoverability
3-1 Configuring the Default Backup Destination and ARCHIVELOG Mode
show paramter db_recoery_file_dest
shutdown immediate;
statup mount;
alter database archivelog;
alter database open;
rman target "'/ as sysbackup'"
backup database;

3-2 Setting the Date and Time Format for RMAN
export NLS_LANG=american_america.al32utf8
export NLS_DATE_FORMAT="yyyy-mm-dd:hh24:mi:ss"
rman target "'/ as sysbackup'"
list backup
spool log to /tmp/test.log
list backup
cat /tmp/test.log

3-3 Configuring RMAN Settings
show controlfile autobackup;
configure controlfile autobackup on;
show retention policy;
configure retention policy to redundancy 1;
show retention policy;
delete obsolete;
report schema;
backup tablespace users;

3-4 Configuring Control Files
hostname --long
show paramter control_files

3-5 Recovery Settings in Cloud Control

3-6 Configuring Redo Log Files

Lesson 03. Configuring for Recoverability

subcommands
braces
作业命令
ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT "/disk2/%U";
obsolete
效率
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
保留策略
归档

at night

experiment

Insert picture description here
Attention to detail

rman target "'/ as sysbackup'"
RMAN>SPOOL LOG TO /tmp/test.log
RMAN>list backup
RMAN>cat /tmp/test.log

Why not use sysbackup

Insert picture description here
sysbackup is a non-program user

表空间
    https://blog.csdn.net/hezuijiudexiaobai/article/details/108740527#2__8
    http://blog.itpub.net/30126024/viewspace-2094756/
    https://www.cnblogs.com/chenzhaoren/p/9969712.html
    https://www.lanqiao.cn/courses/1048/learning/?id=5256

Guess you like

Origin blog.csdn.net/hezuijiudexiaobai/article/details/109040332