RMAN准备目录数据库
来源:互联网 发布:施耐德plc编程电缆 编辑:程序博客网 时间:2024/05/16 03:35
1 .准备目录数据库
SQL> create tablespace cattbs datafile 'd:\oracle\product\10.2.0\oradata\rcat\ca
ttbs01.dbf' size 20m autoextend on extent management local autoallocate;
表空间已创建。
SQL> create user rman identified by s123456
2 temporary tablespace temp
3 default tablespace cattbs
4 quota unlimited on cattbs;
用户已创建。
SQL> grant connect,recovery_catalog_owner to rman;
授权成功。
2.创建恢复目录
C:\Documents and Settings\Administrator>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期三 4月 25 16:18:45 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect catalog rman/s123456@rcat
连接到恢复目录数据库
RMAN> create catalog tablespace cattbs;
恢复目录已创建
3.注册数据库
一定要先连接目标数据库,且目标数据库的用户必须是sysdba连接
C:\Documents and Settings\Administrator>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期三 4月 25 16:25:57 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target sys/s123456@wxxrdb;
连接到目标数据库: WXXRDB (DBID=611403713)
RMAN> connect catalog rman/s123456@rcat;
连接到恢复目录数据库
RMAN> register database;
注册在恢复目录中的数据库
正在启动全部恢复目录的 resync
完成全部 resync
4.验证
RMAN> list incarnation;
数据库原型列表
DB 关键字 Inc 关键字 DB 名 DB ID STATUS 重置 SCN 重置时间
------- ------- -------- ---------------- --- ---------- ----------
1 2 WXXRDB 611403713 CURRENT 1 30-3月 -12
使用report schema 查看目标数据库的注册信息
RMAN> report schema;
数据库方案报表
永久数据文件列表
===========================
文件大小 (MB) 表空间 回退段数据文件名称
---- -------- -------------------- ------- ------------------------
1 490 SYSTEM YES +DATA/wxxrdb/datafile/system.259.7792
96335
2 290 UNDOTBS1 YES +DATA/wxxrdb/datafile/undotbs1.260.77
9296341
3 520 SYSAUX NO +DATA/wxxrdb/datafile/sysaux.261.7792
96343
4 200 UNDOTBS2 YES +DATA/wxxrdb/datafile/undotbs2.263.77
9296347
5 5 USERS NO +DATA/wxxrdb/datafile/users.264.77929
6349
6 1800 TBS_1 NO +DATA/wxxrdb/datafile/tbs_1.268.77929
9313
临时文件列表
=======================
文件大小 (MB) 表空间 最大大小 (MB) 临时文件名称
---- -------- -------------------- ----------- --------------------
1 4397 TEMP 32767 +DATA/wxxrdb/tempfile/temp.262.77
9296345
SQL> create tablespace cattbs datafile 'd:\oracle\product\10.2.0\oradata\rcat\ca
ttbs01.dbf' size 20m autoextend on extent management local autoallocate;
表空间已创建。
SQL> create user rman identified by s123456
2 temporary tablespace temp
3 default tablespace cattbs
4 quota unlimited on cattbs;
用户已创建。
SQL> grant connect,recovery_catalog_owner to rman;
授权成功。
2.创建恢复目录
C:\Documents and Settings\Administrator>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期三 4月 25 16:18:45 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect catalog rman/s123456@rcat
连接到恢复目录数据库
RMAN> create catalog tablespace cattbs;
恢复目录已创建
3.注册数据库
一定要先连接目标数据库,且目标数据库的用户必须是sysdba连接
C:\Documents and Settings\Administrator>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期三 4月 25 16:25:57 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target sys/s123456@wxxrdb;
连接到目标数据库: WXXRDB (DBID=611403713)
RMAN> connect catalog rman/s123456@rcat;
连接到恢复目录数据库
RMAN> register database;
注册在恢复目录中的数据库
正在启动全部恢复目录的 resync
完成全部 resync
4.验证
RMAN> list incarnation;
数据库原型列表
DB 关键字 Inc 关键字 DB 名 DB ID STATUS 重置 SCN 重置时间
------- ------- -------- ---------------- --- ---------- ----------
1 2 WXXRDB 611403713 CURRENT 1 30-3月 -12
使用report schema 查看目标数据库的注册信息
RMAN> report schema;
数据库方案报表
永久数据文件列表
===========================
文件大小 (MB) 表空间 回退段数据文件名称
---- -------- -------------------- ------- ------------------------
1 490 SYSTEM YES +DATA/wxxrdb/datafile/system.259.7792
96335
2 290 UNDOTBS1 YES +DATA/wxxrdb/datafile/undotbs1.260.77
9296341
3 520 SYSAUX NO +DATA/wxxrdb/datafile/sysaux.261.7792
96343
4 200 UNDOTBS2 YES +DATA/wxxrdb/datafile/undotbs2.263.77
9296347
5 5 USERS NO +DATA/wxxrdb/datafile/users.264.77929
6349
6 1800 TBS_1 NO +DATA/wxxrdb/datafile/tbs_1.268.77929
9313
临时文件列表
=======================
文件大小 (MB) 表空间 最大大小 (MB) 临时文件名称
---- -------- -------------------- ----------- --------------------
1 4397 TEMP 32767 +DATA/wxxrdb/tempfile/temp.262.77
9296345
- RMAN准备目录数据库
- RMAN创建恢复目录数据库
- (RMAN)使用恢复目录数据库执行RMAN
- oracle rman catalog目录数据库创建过程
- Rman中如何注销目录中已注册的数据库
- rman catalog (rman 恢复目录)
- Rman使用前的准备工作,创建恢复目录所需要使用的表空间,在目录数据库创建rman用户,在目录数据库建立恢复目录
- RMAN 恢复目录管理
- RMAN 目录管理维护
- RMAN 创建恢复目录
- RMAN catalog恢复目录
- 使用RMAN恢复目录
- rman恢复目录
- 数据库准备
- 恢复目录数据库发生 bookLE 错误: RMAN-20001: target database not foun
- rman异常案例一: 归档日志被人移动到其他目录,导致数据库恢复异常
- 建立rman恢复目录步骤
- ORACLE RMAN异机异目录恢复
- 八皇后问题
- jsp获取某一目录下文件
- SAP SM12 解锁Lock Table
- Jdk1.6新特性
- Android不同层次开启硬件加速的方式
- RMAN准备目录数据库
- javascript中的数组
- Linux系统的启动过程
- 0XC00000FD,Stack overflow
- 我的常用Spring相关(不定时更新)
- jquery mobile小记(一): footer和header 点击屏幕不消失的方法
- Linux grep命令分析以及C语言版本的实现
- android4.0鼠标右键返回功能
- SDWebImage 笔记