解决方法和各种造成的原因就不一一啰嗦了,一般就是人为或者机器的原因。
实例和恢复手段结构(Instance and Media Recovery Structures)large pool
查看参数large_pool_size
Checkpointingcheckpoints是用于决定该从哪里恢复checkpoint position恢复点checkpoint queue对脏数据的链接表
checkpoint的类型,完整的:脏数据都被写SHUTDOWN NORMAL, IMMEDIATE, or TRANSACTIONAL ALTER SYSTEM CHECKPOINT Incremental(增加) checkpoint (Fast-Start checkpoint)Periodic writesOnly write the oldest blocksPartial(部分,局部) checkpoint Dirty buffers belonging to the tablespace ALTER TABLESPACE BEGIN BACKUP ALTER TABLESPACE tablespace OFFLINE NORMAL
数据库同步(database synchronization)所有的数据文件(除了offline和read-only)其他的在数据库open的时候同步同步是基于正确的恢复点应用redo log的记录同步数据库文件redo log文件是自动的从oracle server请求的
tuning crash(协调死机)和实例回复表现协调实例和死机回复持续时间协调实例回复的阶段
FAST_START_MTTR_TARGET 预期mttr的秒数LOG_CHECKPOINT_TIMEOUT 一段从恢复点所在位置到最后一次写redolog的时间LOG_CHECKPOINT_INTERVAL Number of redo log file blocks that can exist between an incremental checkpoint and the last block written to the redo log
V$INSTANCE_RECOVERY 监视限制Recovery I/O和统计这个视图计算对checkpointing的最大影响
协调前滚事务the Rolling Forward phase参数recovery_parallelism协调回滚事务
控制快速开始并发的ROLLBACK Controlling Fast-Start Parallel RollbackFAST_START_PARALLEL_ROLLBACK parameter
监控PRARLLEL ROLLBACK的视图V$FAST_START_SERVERSV$FAST_START_TRANSACTIONS
设置database为归档模式归档模式和非归档模式的区别在于对于REDO LOG
1Changing the Archiving Mode1 SHUTDOWN NORMAL/IMMEDIATE/TRANSACTIONAL
2 STARTUP MOUNT
3 ALTER DATABASE ARCHIVELOG
4 ALTER DATABASE OPEN
5 Full database backup
自动和手动归档自动归档 LOG_ARCHIVE_START=TURE手动归档 LOG_ARCHIVE_START=FALSE
详细并列的ARCn进程Specifying Multiple ARCn Processes动力参数log_archive_max_processes修改使用ALTER SYSTEM set log_archive_max_processes=..
开启自动归档当实例启动以后
ALTER SYSTEM ARCHIVE LOG START;
ALTER SYSTEM ARCHIVE LOG STOP;关闭
Manually Archiving Online Redo Log Files手动的归档在线redo logALTER SYSTEM ARCHIVE LOG CURRENT
具体的归档日志位置用SHOW PARAMETER log_archive_dest_n查看10个归档位置用SHOW PARAMETER log_archive_format查看序列号和线的归档日志名
用log_archive_dest_n去制定的10个归档位置刚好local disk,remote stand by database log_archive_dest_1 = "LOCATION=/archive1"log_archive_dest_2 = "SERVICE=standby_db1"
log_archive_dest_n的选项Set archive location as MANDATORY or OPTIONAL. 在归档位置加上 .. or ..Define time before retry in case of failures.
最小的并发参数LOG_ARCHIVE_MIN_SUCCEED_DEST
LOG_ARCHIVE_DEST_STATE_2 = DEFERALTER SYSTEM SET log_archive_dest_state_3 = DEFER;LOG_ARCHIVE_DEST_STATE_2 = enableALTER SYSTEM SET log_archive_dest_state_3 = enable;
特定的filename format命名.arc
dynamic视图
V$ARCHIVED_LOG
V$ARCHIVE_DEST
v$LOG_HISTORYV
$DATABASE
V$ARCHIVE_PROCESSES
Command Line
SQL>ARCHIVE LOG LIST
Oracle 回复管理设置和预览(Oracle Recovery Manager)RMANRMAN容器,使用Control Filecontrol_file_record_keep_time决定被覆盖的最短记录时间
通道管理Channel Allocation修改默认的驱动类型
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt;
修改并行数RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
Configure automatic channel options:
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK
2> FORMAT = '/BACKUP/RMAN/%U';
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK
2> MAXPIECESIZE 2G;
备份,复制,重灌,覆盖至少需要1个通道
实例和恢复手段结构(Instance and Media Recovery Structures)large pool
查看参数large_pool_size
Checkpointingcheckpoints是用于决定该从哪里恢复checkpoint position恢复点checkpoint queue对脏数据的链接表
checkpoint的类型,完整的:脏数据都被写SHUTDOWN NORMAL, IMMEDIATE, or TRANSACTIONAL ALTER SYSTEM CHECKPOINT Incremental(增加) checkpoint (Fast-Start checkpoint)Periodic writesOnly write the oldest blocksPartial(部分,局部) checkpoint Dirty buffers belonging to the tablespace ALTER TABLESPACE BEGIN BACKUP ALTER TABLESPACE tablespace OFFLINE NORMAL
数据库同步(database synchronization)所有的数据文件(除了offline和read-only)其他的在数据库open的时候同步同步是基于正确的恢复点应用redo log的记录同步数据库文件redo log文件是自动的从oracle server请求的
tuning crash(协调死机)和实例回复表现协调实例和死机回复持续时间协调实例回复的阶段
FAST_START_MTTR_TARGET 预期mttr的秒数LOG_CHECKPOINT_TIMEOUT 一段从恢复点所在位置到最后一次写redolog的时间LOG_CHECKPOINT_INTERVAL Number of redo log file blocks that can exist between an incremental checkpoint and the last block written to the redo log
V$INSTANCE_RECOVERY 监视限制Recovery I/O和统计这个视图计算对checkpointing的最大影响
协调前滚事务the Rolling Forward phase参数recovery_parallelism协调回滚事务
控制快速开始并发的ROLLBACK Controlling Fast-Start Parallel RollbackFAST_START_PARALLEL_ROLLBACK parameter
监控PRARLLEL ROLLBACK的视图V$FAST_START_SERVERSV$FAST_START_TRANSACTIONS
设置database为归档模式归档模式和非归档模式的区别在于对于REDO LOG
1Changing the Archiving Mode1 SHUTDOWN NORMAL/IMMEDIATE/TRANSACTIONAL
2 STARTUP MOUNT
3 ALTER DATABASE ARCHIVELOG
4 ALTER DATABASE OPEN
5 Full database backup
自动和手动归档自动归档 LOG_ARCHIVE_START=TURE手动归档 LOG_ARCHIVE_START=FALSE
详细并列的ARCn进程Specifying Multiple ARCn Processes动力参数log_archive_max_processes修改使用ALTER SYSTEM set log_archive_max_processes=..
开启自动归档当实例启动以后
ALTER SYSTEM ARCHIVE LOG START;
ALTER SYSTEM ARCHIVE LOG STOP;关闭
Manually Archiving Online Redo Log Files手动的归档在线redo logALTER SYSTEM ARCHIVE LOG CURRENT
具体的归档日志位置用SHOW PARAMETER log_archive_dest_n查看10个归档位置用SHOW PARAMETER log_archive_format查看序列号和线的归档日志名
用log_archive_dest_n去制定的10个归档位置刚好local disk,remote stand by database log_archive_dest_1 = "LOCATION=/archive1"log_archive_dest_2 = "SERVICE=standby_db1"
log_archive_dest_n的选项Set archive location as MANDATORY or OPTIONAL. 在归档位置加上 .. or ..Define time before retry in case of failures.
最小的并发参数LOG_ARCHIVE_MIN_SUCCEED_DEST
LOG_ARCHIVE_DEST_STATE_2 = DEFERALTER SYSTEM SET log_archive_dest_state_3 = DEFER;LOG_ARCHIVE_DEST_STATE_2 = enableALTER SYSTEM SET log_archive_dest_state_3 = enable;
特定的filename format命名.arc
dynamic视图
V$ARCHIVED_LOG
V$ARCHIVE_DEST
v$LOG_HISTORYV
$DATABASE
V$ARCHIVE_PROCESSES
Command Line
SQL>ARCHIVE LOG LIST
Oracle 回复管理设置和预览(Oracle Recovery Manager)RMANRMAN容器,使用Control Filecontrol_file_record_keep_time决定被覆盖的最短记录时间
通道管理Channel Allocation修改默认的驱动类型
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt;
修改并行数RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
Configure automatic channel options:
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK
2> FORMAT = '/BACKUP/RMAN/%U';
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK
2> MAXPIECESIZE 2G;
备份,复制,重灌,覆盖至少需要1个通道
RMAN> RUN { ALLOCATE CHANNEL c1 TYPE disk FORMAT = '/db01/BACKUP/usr0520.bak'; BACKUP DATAFILE '/db01/ORADATA/users01.dbf';}
------------
原来以为那啥,结果别人只是拿你当一个调剂的小菜,调剂下自己的心情,给了点阳光你就灿烂,原来只是自己一厢情愿而已。见多了,就习惯了。
评论