[20140627]rman下catalog的使用.txt

[20140627]rman下catalog的使用.txt

前几天有人问rman的catalog的使用问题,主要是后面的/.自己做一些记录:

--我建立一个目录testtes

# ls -l | grep testtes
drwxr-x---  2 root      root      4096 2014-06-26 02:14:28 testtes
drwxr-xr-x  3 oracle11g oinstall 20480 2014-06-26 02:04:51 testtest

RMAN> catalog start with '/data/testtes/';

searching for all files that match the pattern /data/testtes/
no files found to be unknown to the database

--因为没有权限,没有文件发现.

# chmod 755 testtes
# cp /etc/passwd testtes
# chmod 640 testtes/passwd
# ls -l testtes
total 4
-rw-r-----  1 root root 2874 2014-06-26 02:19:55 passwd

RMAN> catalog start with '/data/testtes/';

searching for all files that match the pattern /data/testtes/
no files found to be unknown to the database

--这个时候是文件passwd没有读权限.

# chmod 644 testtes/passwd
RMAN> catalog start with '/data/testtes/';

searching for all files that match the pattern /data/testtes/

List of Files Unknown to the Database
=====================================
File Name: /data/testtes/passwd

Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
no files cataloged

List of Files Which Where Not Cataloged
=======================================
File Name: /data/testtes/passwd
  RMAN-07517: Reason: The file header is corrupted

--我感觉奇怪的是passwd文件根本不是rman能管理的文件,难道在catalog前不检查吗?仅仅在开始catalog时才检查.

--尝试不使用后面的斜线/

RMAN> catalog start with '/data/testtes';

searching for all files that match the pattern /data/testtes

List of Files Unknown to the Database
=====================================
File Name: /data/testtes/passwd
File Name: /data/testtest/test/sysaux01.dbf
File Name: /data/testtest/test/system01.dbf
File Name: /data/testtest/test/redo03.log
File Name: /data/testtest/test/users01.dbf
File Name: /data/testtest/test/redostb01.log
File Name: /data/testtest/test/redostb04.log
File Name: /data/testtest/test/tools01.dbf
File Name: /data/testtest/test/redo02.log
File Name: /data/testtest/test/testmssm01.dbf
File Name: /data/testtest/test/redostb03.log
File Name: /data/testtest/test/redo01.log
File Name: /data/testtest/test/test01.dbf
File Name: /data/testtest/test/rman01.dbf
File Name: /data/testtest/test/temp01.dbf
File Name: /data/testtest/test/redostb02.log
File Name: /data/testtest/test/example01.dbf
File Name: /data/testtest/test/undotbs02.dbf
File Name: /data/testtest/test/control01.ctl
File Name: /data/testtest/test/control02.ctl
File Name: /data/testtest/test/undotbs01.dbf
File Name: /data/testtest/test.tgz
File Name: /data/testtest/test01.dbf
File Name: /data/testtest/test01.dbf_2
File Name: /data/testtest/users01.dbf

Do you really want to catalog the above files (enter YES or NO)? no

--可以发现执行catalog start with '/data/testtes';实际上找匹配"/data/testtes*"的文件.
--自己做一个记录,加强理解这个问题.

时间: 2024-08-23 21:50:27

[20140627]rman下catalog的使用.txt的相关文章

[20171121]rman使用copy image恢复.txt

[20171121]rman使用copy image恢复.txt --//上个星期做数据文件块头恢复时,提到使用rman备份数据文件时,文件头数据库信息是最后写入备份集文件的,在filesperset=1的情况 --//下写入备份集文件中的倒数第2块就是文件头的备份.参考链接: http://blog.itpub.net/267265/viewspace-2147297/=>[20171115]恢复数据文件块头4补充.txt --//而且我最后还做了测试证明如果resotre数据文件,实际上文件

[20171121]rman backup as copy 2.txt

[20171121]rman backup as copy 2.txt --//昨天测试backup as copy ,备份时备份文件的文件头什么时候更新.是最后完成后还是顺序写入备份文件. --//我测试的数据文件使用数据文件2(表空间sysaux),也许是文件不够大,应该减慢备份速度来测试看看. 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER ----------------

[20160524]rman备份与检查点4.txt

[20160524]rman备份与检查点4.txt --链接: http://blog.itpub.net/267265/viewspace-2105221/ http://blog.itpub.net/267265/viewspace-2105223/ --昨晚仔细思考,重复测试看看,使用新的控制文件是否可以恢复.感觉我的问题在于我做了catalog注册了备份文件时丢失某些信息.重新 --测试看看. 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING      

[20141027]12c rman copy的分段备份.txt

[20141027]12c rman copy的分段备份.txt --12G rman下可以实现copy的分段备份,而11G下可以仅仅支持备份集的分段备份.做一个测试看看. --11G: SCOTT@test> @ver1 PORT_STRING                    VERSION        BANNER ------------------------------ -------------- ---------------------------------------

[20161118]rman备份的疑问2.txt

[20161118]rman备份的疑问2.txt --这个是我前几天做测试时遇到的疑问,不知道为什么rman 备份要修改数据块的dba地址. --我在itpub上也问了这个问题,链接http://www.itpub.net/thread-2071504-1-1.html,可惜没有人解答. --具体细节不清楚,读取数据文件然后重新编码组织数据,将kcbh.rdba_kcbh的后2位放入tailchk中,设置spare3_kcbh=0x0001, --也许为了区分备份与数据文件,当然还有别的目的,再

【Oracle】rman upgrade catalog

因为数据库从11.2.0.2 升级到 11.2.0.3,在使用catalog 执行rman备份的时候,报如下错误: oracle@rac1>rman target / catalog rman/xxxxx@rman Recovery Manager: Release 11.2.0.3.0 - Production on Wed Jun 13 22:31:07 2012 Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rig

RMAN中catalog和nocatalog区别介绍

  nocatalog方式就是用control file作为catalog,每一次备份都要往控制文件里面写好多备份信息,控制文件里面会有越来越多的备份信息.若为catalog则必须要首先要创建目录备份数据库,建立恢复目录. catlog建立恢复目录的例子: 1.创建Catalog所需要的表空间 SQL>create tablespace rman_ts  datafile '/u01/oracle/oradata/ora10g/rmants.dbf'  size 20M; 2.创建RMAN用户并

[20160523]rman备份与检查点3.txt

[20160523]rman备份与检查点3.txt --从前面的测试可以发现: --1.通过以上信息可以确定备份文件会写检查点. --2.而且备份文件是先写检查点,再做备份. --我这里就产生1个疑问,假设某个数据文件备份时间很长,这样数据文件的某个数据块的scn可能大于文件头的CHECKPOINT_CHANGE#.当我 --们恢复使用不完全恢复到某个时间点或者SCN,应该使用那个备份文件呢?做一个测试来说明问题. 1.环境: SCOTT@book> @ &r/ver1 PORT_STRIN

[20160921]linux下建立samba服务器.txt

[20160921]linux下建立samba服务器.txt --工作需要,需要在linux下配置samba服务.好久不做这些事情,做一个安装笔记: 1.安装samba软件包 # rpm -qa | grep samba samba-client-3.0.33-3.39.el5_8 samba-common-3.0.33-3.39.el5_8 samba-3.0.33-3.39.el5_8 --注意安装samba-3.0.33-3.39.el5_8需要 perl-Convert-ASN1-0.2