知识大全 oracle9i中Rman的备份使用点滴

Posted 空间

篇首语:药农进山见草药,猎人进山见禽兽。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 oracle9i中Rman的备份使用点滴相关的知识,希望对你有一定的参考价值。

oracle9i中Rman的备份使用点滴  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  rman的简单使用: catalog的建立 全备份 保留备份策略 删除过期备份      查看当前数据库的数据文件    SQL> select name from V$datafile;    NAME     /oracle/oracle i/oradata/testmysiteok/system dbf  /oracle/oracle i/oradata/testmysiteok/undotbs dbf  /oracle/oracle i/oradata/testmysiteok/cwmlite dbf  /oracle/oracle i/oradata/testmysiteok/drsys dbf  /oracle/oracle i/oradata/testmysiteok/example dbf  /oracle/oracle i/oradata/testmysiteok/indx dbf  /oracle/oracle i/oradata/testmysiteok/odm dbf  /oracle/oracle i/oradata/testmysiteok/tools dbf  /oracle/oracle i/oradata/testmysiteok/users dbf  /oracle/oracle i/oradata/testmysiteok/xdb dbf  /oracle/oradata/webdb_file dbf    NAME     /oracle/oradata/webdb_file dbf  /oracle/oradata/webdb_file dbf  /oracle/oradata/webdb_file dbf     rows selected      建立catalog表空间为back_up    SQL> create tablespace back_up datafile /oracle/oradata/catalog dbf size m;    Tablespace created      建立rman用户密码为rman rman默认的表空间为back_up 使用临时表空间temp    SQL> create user rman identified by rman default tablespace back_up temmporary tablespace temp;  create user rman identified by rman default tablespace back_up temmporary tablespace temp                                  *  ERROR at line :  ORA : missing or invalid option    SQL> create user rman identified by rman default tablespace back_up temporary tablespace temp;    User created      给rman用户授权    SQL> grant connect resource recovery_catalog_owner to rman;    Grant succeeded     SQL> quit  Disconnected from Oracle i Enterprise Edition Release bit Production  With the Partitioning OLAP and Oracle Data Mining options  JServer Release Production     连接或者创建catalog到表空间 back_up    bash $ rman    Recovery Manager: Release bit Production    Copyright (c) Oracle Corporation  All rights reserved     RMAN> connect catalog rman/rman;    connected to recovery catalog database  recovery catalog is not installed    RMAN> create catalog tablespace backup;    RMAN : ===========================================================  RMAN : =============== ERROR MESSAGE STACK FOLLOWS ===============  RMAN : ===========================================================  RMAN : error encountered while parsing input mands  RMAN : syntax error: found backup : expecting one of: double quoted string identifier single quoted string   RMAN : at line column file: standard input    RMAN : ===========================================================  RMAN : =============== ERROR MESSAGE STACK FOLLOWS ===============  RMAN : ===========================================================  RMAN : error encountered while parsing input mands  RMAN : syntax error: found ; : expecting one of: allocate alter backup beginline blockrecover catalog change connect copy create crosscheck configure duplicate debug delete drop exit endinline host library list mount open print quit recover register release replace report renormalize reset restore resync rman run rpctest set setlimit sql spool startup shutdown send show test upgrade validate   RMAN : at line column file: standard input    RMAN> create catalog tablespace back_up;    recovery catalog created    RMAN> quit    Recovery Manager plete      连接到sid 为testmysiteok的 catalog上 并注册testmysiteok数据库    bash $ rman target testmysiteok catalog rman/rman    Recovery Manager: Release bit Production    Copyright (c) Oracle Corporation  All rights reserved     target database Password:  connected to target database: testmysiteOK (DBID= )  connected to recovery catalog database    RMAN> register database;    database registered in recovery catalog  starting full resync of recovery catalog  full resync plete     全备份testmysiteok数据库    RMAN> backup full tag testmysiteok format /data/ora_backup/testmysiteok_%u_%s_%p database;    Starting backup at AUG   allocated channel: ORA_DISK_   channel ORA_DISK_ : sid= devtype=DISK  channel ORA_DISK_ : starting full datafile backupset  channel ORA_DISK_ : specifying datafile(s) in backupset  including current SPFILE in backupset  including current controlfile in backupset  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/system dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/undotbs dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/example dbf  input datafile fno= name=/oracle/oradata/webdb_file dbf  input datafile fno= name=/oracle/oradata/webdb_file dbf  input datafile fno= name=/oracle/oradata/webdb_file dbf  input datafile fno= name=/oracle/oradata/webdb_file dbf  input datafile fno= name=/oracle/oradata/catalog dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/xdb dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/indx dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/users dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/cwmlite dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/drsys dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/odm dbf  input datafile fno= name=/oracle/oracle i/oradata/testmysiteok/tools dbf  channel ORA_DISK_ : starting piece at AUG   channel ORA_DISK_ : finished piece at AUG   piece handle=/data/ora_backup/testmysiteok_ grgroc_ _ ment=NONE  channel ORA_DISK_ : backup set plete elapsed time: : :   Finished backup at AUG      设置保留最近的 次备份    RMAN> configure retention policy to redundancy ;    old RMAN configuration parameters:  CONFIGURE RETENTION POLICY TO REDUNDANCY ;  new RMAN configuration parameters:  CONFIGURE RETENTION POLICY TO REDUNDANCY ;  new RMAN configuration parameters are successfully stored  starting full resync of recovery catalog  full resync plete     查看过期的备份    RMAN> report obsolete;    RMAN retention policy will be applied to the mand  RMAN retention policy is set to redundancy   Report of obsolete backups and copies  Type         Key  Completion Time  Filename/Handle     Backup Set         OCT    Backup Piece       OCT      /oracle/testmysiteok dbf  Archive Log         SEP      /oracle/OraHome/dbs/arch _ dbf     查看所有备份    RMAN> list backup;     删除过期备份    RMAN> delete obsolete;    RMAN retention policy will be applied to the mand  RMAN retention policy is set to redundancy   using channel ORA_DISK_   Deleting the following obsolete backups and copies:  Type         Key  Completion Time  Filename/Handle     Backup Set         OCT    Backup Piece       OCT      /oracle/testmysiteok dbf  Archive Log         SEP      /oracle/OraHome/dbs/arch _ dbf    Do you really want to delete the above objects (enter YES or NO)? y  deleted backup piece  backup piece handle=/oracle/testmysiteok dbf recid= stamp=   Deleted objects cha138/Article/program/Oracle/201311/18428

相关参考

知识大全 rman备份方式半功略

  一RMAN是Oracle提供的一个数据库备份和恢复工具  特点  )备份和恢复数据库表空间控制文件数据文件和归档文件  )校验备份数据集  )通过备份检查损坏块  )增量备份  )脚本能力  )备

知识大全 初步尝试RMAN备份

初步尝试RMAN备份  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  Rman备份命令  切换服务

知识大全 RMAN(备份与恢复管理器)

Oracle数据库备份与恢复之四:RMAN(备份与恢复管理器)  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来

知识大全 RMAN自动备份的脚本(windows环境)

RMAN自动备份的脚本(windows环境)  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!自从推出

知识大全 如何简单测试Rman的备份恢复功能?

如何简单测试Rman的备份恢复功能?  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  本文只是简单

知识大全 RMAN备份前的操作(Windows)

RMAN备份前的操作(Windows)  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  以下是wi

知识大全 OracleRMAN物理备份技术之RMAN配置

OracleRMAN物理备份技术之RMAN配置  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  R

知识大全 完整的oracle rman备份恢复的例子

  建rman库作为repository  $morecreaterman_dbsh  setechoon  spoolmakedblog  createdatabaserman  datafile/

知识大全 RMAN的备份及恢复-丢失所有控制文件

RMAN的备份及恢复-丢失所有控制文件  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  数据库基本

知识大全 中小型数据库RMAN CATALOG备份解决办法

中小型数据库RMANCATALOG备份解决办法  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  R