ITPub博客

首页 > Linux操作系统 > Linux操作系统 > RMAN 不备份只读表空间

RMAN 不备份只读表空间

原创 Linux操作系统 作者:gaopengtttt 时间:2009-06-18 10:23:37 0 删除 编辑

http://space.itpub.net/7199859/viewspace-293439

因为只读表空间在第一次备份后 后面的应用都不会修改到它 ,所以在后面的备份当中为了减少备份时间和空间

都可以不备份只读表空间

C:\Documents and Settings\Paul Yi>sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Wed May 21 16:28:20 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

 

SQL> select tablespace_name,status from dba_tablespaces;

TABLESPACE_NAME                STATUS
------------------------------ ---------
SYSTEM                         ONLINE
UNDOTBS1                       ONLINE
TEMP                           ONLINEITP
EXAMPLE                        ONLINE
INDX                           ONLINE
TOOLS                          READ ONLY
USERS                          ONLINE

7 rows selected.

SQL>

RMAN> backup full database format 'D:\backup\%U';

Starting backup at 21-MAY-08
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
datafile fno=00001 name=D:\ORACLE\ORADATA\PUBTEST\SYSTEM01.input datafile fno=00002 name=D:\ORACLE\ORADATA\PUBTEST\UNDOTBS01.DBF
datafile fno=00004 name=D:\ORACLE\ORADATA\PUBTEST\INDX01.DBFITPUB
input datafile fno=00006 name=D:\ORACLE\ORADATA\PUBTEST\USERS01.input datafile fno=00003 name=D:\ORACLE\ORADATA\PUBTEST\EXAMPLE01.DBF
input datafile fno=00005 name=D:\ORACLE\ORADATA\PUBTEST\TOOLS01.DBF
ORA_DISK_1: starting piece 1 at 21-MAY-08
ORA_DISK_1: finished piece 1 at 21-MAY-piece handle=D:\BACKUP\03JGUKKC_1_1 comment=channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25

Finished backup at 21-MAY-08

Starting Control File and SPFILE Autobackup at 21-MAY-

piece handle=D:\ORACLE\ORA92\DATABASE\C-799229701-20080521-01 Finished Control File and SPFILE Autobackup at 21-MAY-08

RMAN>backup full database format 'D:\backup\%U' skip readonly;

Starting backup at 21-MAY-08
3G q A{D-zx0using channel ORA_DISK_

skipping datafile 5; already backed up 2 time(s)d0channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\ORADATA\PUBTEST\SYSTEM01.DBF
input datafile fno=00002 name=D:\ORACLE\ORADATA\PUBTEST\UNDOTBS01.DBF
input datafile fno=00004 name=D:\ORACLE\ORADATA\PUBTEST\INDX01.DBF
datafile fno=00006 name=D:\ORACLE\ORADATA\PUBTEST\USERS01.

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7728585/viewspace-606660/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
wxh gp_22389860

注册时间:2008-10-13

  • 博文量
    649
  • 访问量
    2857509