1 show all; 显示当前配置信息 2 select * from v$rman_configuration; 查询RMAN中的非默认值 3 configure常用选项 3.1 保持策略
1 show all; 显示当前配置信息
2 select * from v$rman_configuration; 查询RMAN中的非默认值
3 configure常用选项
3.1 保持策略
configure retention policy to recovery window of 7 days; 超过最近7天以外的备份都被标记为obsolete
configure retention policy to redundancy 5; 保持可恢复的最新5个备份,超过这个最新5个的备份被标记为redundancy
configure retention policy clear; 恢复默认的保持策略
configure retention policy to none; 使备份保持策略失效
3.2 备份优化,默认关闭,若打开,将对备份文件及归档文件进行优化
backup optimization
configure backup optimization on;
configure backup optimization off;
configure backup optimization clear;
3.3 默认设备,,默认是磁盘
configure default device type to disk;
configure default device type to stb;
configure default device type clear;
3.4 控制文件
configure controlfile autobackup on(off);
configure controlfile autobackup format for device type disk to '/backupset/conf_%F';
configure controlfile autobackup clear;
configure controlfile autobackup format for device type disk clear;
configure snapshot controlfile name to '/backup/scontrollfile.snp'; 控制文件的快照存放路径及名称,备份期间产生,用于控制文件的读一致性
configure snapshot controlfile name clear;
3.5 并行度(通道数)device type diskstb pallelism n
configure device type diskstb parallelism 2;
configure device type diskstb clear;
configure channel device type disk format '路径/rmanback_%U';
configure channel device type disk maxpiecesize 100m;
configure channel device type disk rate 1200K;
configure channel 1 device type disk format '路径/:rmanback_%U';
configure channel 2 device type disk format '路径/:rmanback_%U';
configure channel 1 device type disk maxpiecesize 100m;
3.6 生成备份副本
configure datafile backup copies for device type diskstb to 3;
configure archivelog backup copies for device type diskstb to 3;
configure datafile | archivelog backup copies for device type diskstb clear; 设置DB的文件的备份的存放设备类型
backup device type disk database format '路径1/%U','路径2/%U','路径3/%U'; 配置DB的每次备份的copy数量,即每一次备份完有个多份相同的copy
3.7 排除选项 exclude
configure exclude for tablespace 'users'; 指定users表空间不备份到备份集中,对只读表空间很有用
configure clear;
3.8 设置备份集大小maxsetsize
configure maxsetsize to 1G | 1000M | 1000000K | unlimited;
configure maxsetsize clear;
3.9 其他选项auxiliary
configure auxname for datafile 1 to ‘路径/aux_1.f’;
configure auxname for datafile 2 to ‘路径/aux_2.f’;
configure auxname for datafile 3 to ‘路径/aux_3.f’;
configure auxname for datafile 4 to ‘路径/aux_4.f’;
configure auxname for datafile 1 clear;
configure auxname for datafile 2 clear;
configure auxname for datafile 3 clear;
configure auxname for datafile 4 clear;
format格式中的%
%c 备份片的copy数
%d 数据库名称
%D 位于该月中的第几天
%M 位于该年中的第几月
%F 基于DBID唯一的名称
例: c-IIIIIIIIII-YYYYMMDD-QQ
IIIIIIIIII 为库的DBID
QQ 1-256的序列
%n 数据库名称
%u 8个字符的名称代表备份集与创建时间
%p 备份集的备份片号
%U 一个唯一的文件名,即%u_%p_%c
%s 备份集的号
%t 备份集的时间戳
%T 年月日格式YYYYMMDD
推荐阅读:
RMAN 配置归档日志删除策略
Oracle基础教程之通过RMAN复制数据库
RMAN备份策略制定参考内容
RMAN备份学习笔记
Oracle数据库备份加密 RMAN加密

本篇文章给大家带来了关于mysql的相关知识,其中主要介绍了关于索引优化器工作原理的相关内容,其中包括了MySQL Server的组成,MySQL优化器选择索引额原理以及SQL成本分析,最后通过 select 查询总结整个查询过程,下面一起来看一下,希望对大家有帮助。

sybase是基于客户/服务器体系结构的数据库,是一个开放的、高性能的、可编程的数据库,可使用事件驱动的触发器、多线索化等来提高性能。

visual foxpro数据库文件是管理数据库对象的系统文件。在VFP中,用户数据是存放在“.DBF”表文件中;VFP的数据库文件(“.DBC”)中不存放用户数据,它只起将属于某一数据库的 数据库表与视图、连接、存储过程等关联起来的作用。

数据库系统由4个部分构成:1、数据库,是指长期存储在计算机内的,有组织,可共享的数据的集合;2、硬件,是指构成计算机系统的各种物理设备,包括存储所需的外部设备;3、软件,包括操作系统、数据库管理系统及应用程序;4、人员,包括系统分析员和数据库设计人员、应用程序员(负责编写使用数据库的应用程序)、最终用户(利用接口或查询语言访问数据库)、数据库管理员(负责数据库的总体信息控制)。

microsoft sql server是Microsoft公司推出的关系型数据库管理系统,是一个全面的数据库平台,使用集成的商业智能(BI)工具提供了企业级的数据管理,具有使用方便可伸缩性好与相关软件集成程度高等优点。SQL Server数据库引擎为关系型数据和结构化数据提供了更安全可靠的存储功能,使用户可以构建和管理用于业务的高可用和高性能的数据应用程序。

数据库的“完整性”是指数据的正确性和相容性。完整性是指数据库中数据在逻辑上的一致性、正确性、有效性和相容性。完整性对于数据库系统的重要性:1、数据库完整性约束能够防止合法用户使用数据库时向数据库中添加不合语义的数据;2、合理的数据库完整性设计,能够同时兼顾数据库的完整性和系统的效能;3、完善的数据库完整性有助于尽早发现应用软件的错误。

结构层次是“数据库→数据表→记录→字段”;字段构成记录,记录构成数据表,数据表构成了数据库。数据库是一个完整的数据的记录的整体,一个数据库包含0到N个表,一个表包含0到N个字段,记录是表中的行。

mysql查询为什么会慢,关于这个问题,在实际开发经常会遇到,而面试中,也是个高频题。遇到这种问题,我们一般也会想到是因为索引。那除开索引之外,还有哪些因素会导致数据库查询变慢呢?


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
