Oracle之catalog恢复目录的创建于维护(51CTO风哥rman课程)
catalog恢复目录配置过程
1,创建一个表空间
2,创建rman用户并授权
3,创建恢复目录
4,配置TNS
5,注册数据库
6,检查
创建ramn表空间
首先查看一下其他表空间位置

create tablespace rman_tbs datafile '/home/oracle/app/oracle/oradata/orcl/rman_tbs.dbf' size 50m autoextend off;
大写50M自动扩展关闭
创建用户rman密码也是rman表空间为刚刚创建的表空间
create user rman identified by rman default tablespace rman_tbs;
授权
grant connect,resource,recovery_catalog_owner to rman;
退出sql使用rman连接
rman catalog rman/rman

默认是nocatalog是使用控制文件管理 catalog是使用恢复目录管理
把表空间创建进来
create catalog tablespace rman_tbs;

配置rman监听
/home/oracle/app/oracle/product/11.2.0/db_1/network/admin
vim tnsnames.ora

把上面复制下来修改一下rman即可
注册目标数据库
rman target / catalog rman/rman@rman
register database;
使用report schema查看数据库信息
往catalog添加数据库
catalog start with '/home/oracle/rman_backup/';

升级的问题
upgrade catalog

关于数据库对应物
list incarnation;
reset database to incarnation 2;
使用rman用户登录sqlplus
select * from dbinc;
select * from rc_database_incarnation;
删除对应物
delete from dbinc where dbinc_key=36;
提交
commit
rman里面list incarnation;对应的就没有了
同步恢复目录
resync catalog
恢复目录的备份
rman
exp/export
取消数据库的注册
unregister database;
删除恢复目录
drop catalog;
Oracle之catalog恢复目录的创建于维护(51CTO风哥rman课程)的更多相关文章
- Oracle之rman命令的使用(51CTO风哥rman课程)
看rman的连接串的帮助 连接数据库 rman target/ rman的版本要和目标数据库一致(一般大版本可以往下兼容小版本) 运行操作系统命令 run {host "pwd"; ...
- Oracle之rman命令的使用全备输出信息的详解(51CTO风哥rman课程)
rman连接数据库 rman target/ catalog rman/rman123456 运行全备命令 backup database; 查看备份集 list backupset;
- Oracle之rman常用命令及维护(51CTO风哥rman课程)
list 查看数据库备份的信息 查询数据库对应物 list incarnation; list backup summary; 列出当前备份信息及汇总 B是备份 F是全备 A是归档 第三个A是是否有效 ...
- RMAN-使用catalog恢复目录进行备份与恢复
RMAN ArchitectureThe RMAN architecture, shown in Figure 7-3, includes a target database, repository, ...
- RMAN_学习笔记3_RMAN Catalog恢复目录
2014-12-23 Created By BaoXinjian
- rman catalog (rman 恢复目录)
受控制文件大小的限制,一般rman需要用rman catalog来管理及存放备份信息: 这里介绍一下创建rman catalog的步骤: C:\Documents andSettings\Admini ...
- Oracle DB 使用RMAN恢复目录
• 对恢复目录和RMAN 资料档案库控制文件的使用进行比较• 创建和配置恢复目录• 在恢复目录中注册数据库• 同步恢复目录• 使用RMAN 存储脚本• 备份恢复目录• 创建虚拟专用目录 RMAN 资料 ...
- oracle备份之恢复管理目录
一.管理恢复目录 #现实应用中一般都是专门新建一个rman 数据库,给所有的数据库做catalog1.建立恢复目录 #建立恢复目录表空间SQL> create tablespace rman_t ...
- RMAN恢复目录
是否使用RMAN恢复目录(Recovery Catalog 你可能从其他人或书上听过RMAN恢复目录(也有可能是其他名字,RMAN Recovery Catalog的翻译较多较杂,以下简称恢复目录), ...
随机推荐
- 【转】Spring 的下载、安装和使用
一.下载 Spring 下载地址:http://repo.spring.io/libs-release-local/org/springframework/spring/4.0.6.RELEASE/ ...
- 64位程序,long*转long 出错
原因: long*在64位程序中占8个字节,long占4个字节.强转会出错. 解决方法: 把long用long long替换,long long 占8个字节
- vector 排序
#include <vector> #include <algorithm> 一.vector保存的是基础数据类型(int.char.float等) vector<int ...
- \avformat.h(40) : fatal error C1083: 无法打开包括文件:“libavcodec/avcodec.h”: No such file or directory
在ffmpeg库下面的头文件包含时用"../"表示当前项目下的头文件就ok了
- (转)基于live555的流媒体代理转发服务器
对于并发量并不大而且对性能要求不是很高的流媒体传输模块,live555还是很好的选择,下面说一下我所实现的流媒体代理服务器(目前只能实现对H264单视频的转发)代理转发主要 对于并发量并不大而且对性能 ...
- jquery -- checkbox选中无选中状态
最近在工作中使用jquery操作checkbox,使用下面方法进行全选.反选: var ischecked=allCheckObj.is(':checked'); ischecked?checksOb ...
- C#接口之IEnumerable,IEnumerator
IEnumerable 截图来源于https://msdn.microsoft.com/zh-cn/library/system.collections.ienumerable.getenumerat ...
- 【Raspberry Pi】openwrt 路由
http://blog.sina.com.cn/s/blog_40983e5e0102v6qt.html
- Python 流程控制:while
while 语法如下,当条件为假时循环才退出,否则会一直循环下去: while 条件: 执行语句 当条件为假时,才会执行else语句: while 条件: 执行语句 else: 执行语句
- LeetCode——Peeking Iterator
Description: Given an Iterator class interface with methods: next() and hasNext(), design and implem ...