知识大全 对Oracle10g ASM生产数据库备份和恢复

Posted 数据库

篇首语:满堂花醉三千客,一剑霜寒十四州。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 对Oracle10g ASM生产数据库备份和恢复相关的知识,希望对你有一定的参考价值。

对Oracle10g ASM生产数据库备份和恢复  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  新的 g ASM生产数据库即将上线 以下是上线前做的简单的备份恢复测试:     首先执行备份    $ rman target / @full_bak sql    Recovery Manager: Release bit Production    Copyright (c) Oracle  All rights reserved     connected to target database: MMSDB (DBID= )    RMAN> run    > backup database plus archivelog delete all input;   > delete obsolete;   >    >    Starting backup at APR   current log archived  using target database controlfile instead of recovery catalog  allocated channel: ORA_DISK_   channel ORA_DISK_ : sid= devtype=DISK  channel ORA_DISK_ : starting archive log backupset  channel ORA_DISK_ : specifying archive log(s) in backup set  input archive log thread= sequence= recid= stamp=   channel ORA_DISK_ : starting piece at APR   channel ORA_DISK_ : finished piece at APR   piece handle=/msflsh/MMSDB/backupset/ _ _ /o _mf_annnn_TAG T _ s ry _ bkp   ment=NONE  channel ORA_DISK_ : backup set plete elapsed time: : :   channel ORA_DISK_ : deleting archive log(s)  archive log filename=/msflsh/MMSDB/archivelog/ _ _ /o _mf_ _ _ s pg _ arc recid=    stamp=   Finished backup at APR     Starting backup at APR   using channel ORA_DISK_   channel ORA_DISK_ : starting full datafile backupset  channel ORA_DISK_ : specifying datafile(s) in backupset  input datafile fno= name=+DATADG/mmsdb/datafile/system   input datafile fno= name=+DATADG/mmsdb/datafile/sysaux   input datafile fno= name=+DATADG/mmsdb/datafile/undotbs   input datafile fno= name=+DATADG/mmsdb/datafile/users   channel ORA_DISK_ : starting piece at APR   channel ORA_DISK_ : finished piece at APR   piece handle=/msflsh/MMSDB/backupset/ _ _ /o _mf_nnndf_TAG T _ s thq_ bkp   ment=NONE  channel ORA_DISK_ : backup set plete elapsed time: : :   Finished backup at APR     Starting backup at APR   current log archived  using channel ORA_DISK_   channel ORA_DISK_ : starting archive log backupset  channel ORA_DISK_ : specifying archive log(s) in backup set  input archive log thread= sequence= recid= stamp=   channel ORA_DISK_ : starting piece at APR   channel ORA_DISK_ : finished piece at APR   piece handle=/msflsh/MMSDB/backupset/ _ _ /o _mf_annnn_TAG T _ s bwm_ bkp  ment=NONE  channel ORA_DISK_ : backup set plete elapsed time: : :   channel ORA_DISK_ : deleting archive log(s)  archive log filename=/msflsh/MMSDB/archivelog/ _ _ /o _mf_ _ _ s mj_ arc recid=   stamp=   Finished backup at APR     Starting Control File and SPFILE Autobackup at APR   piece handle=/msflsh/MMSDB/autobackup/ _ _ /o _mf_s_ _ s df _ bkp  ment=NONE  Finished Control File and SPFILE Autobackup at APR     RMAN retention policy will be applied to the mand  RMAN retention policy is set to redundancy   using channel ORA_DISK_   no obsolete backups found    Recovery Manager plete      冻结HA 停止数据库进行恢复    $ id  uid= (oracle) gid= (dba)  $ exit  # id  uid= (root) gid= (other)  # hagrp freeze MMSDB persistent  # su oracle  Sun Microsystems Inc   SunOS     Generic Patch  October   You have new mail   $ id  uid= (oracle) gid= (dba)  $ sqlplus / as sysdba     SQL*Plus: Release Production on Wed Apr : :     Copyright (c) Oracle  All rights reserved     Connected to:  Oracle Database g Enterprise Edition Release bit Production  With the Partitioning and Data Mining options    SQL> shutdown immediate;  Database closed   Database dismounted   ORACLE instance shut down   SQL> exit  Disconnected from Oracle Database g Enterprise Edition Release bit Production  With the Partitioning and Data Mining options     执行恢复    $ rman target /    Recovery Manager: Release bit Production    Copyright (c) Oracle  All rights reserved     connected to target database (not started)    RMAN> startup mount;    Oracle instance started  database mounted    Total System Global Area   bytes    Fixed Size           bytes  Variable Size         bytes  Database Buffers       bytes  Redo Buffers          bytes    RMAN> restore database;  Starting restore at APR   using target database controlfile instead of recovery catalog  allocated channel: ORA_DISK_   channel ORA_DISK_ : sid= devtype=DISK    channel ORA_DISK_ : starting datafile backupset restore  channel ORA_DISK_ : specifying datafile(s) to restore from backup set  restoring datafile to +DATADG/mmsdb/datafile/system   restoring datafile to +DATADG/mmsdb/datafile/undotbs   restoring datafile to +DATADG/mmsdb/datafile/sysaux   restoring datafile to +DATADG/mmsdb/datafile/users   channel ORA_DISK_ : restored backup piece   piece handle=/msflsh/MMSDB/backupset/ _ _ /o _mf_nnndf_TAG T _ s thq_ bkp  tag=TAG T   channel ORA_DISK_ : restore plete  Finished restore at APR     RMAN> recover database;  Starting recover at APR   using channel ORA_DISK_     starting media recovery  media recovery plete    Finished recover at APR     RMAN> alter database open;  database opened    RMAN>     最后不要忘记解冻HA    $ exit  # id  uid= (root) gid= (other)  # hagrp unfreeze MMSDB persistent    测试过程 仅供参考 cha138/Article/program/Oracle/201311/17449

相关参考

知识大全 oracle数据库备份与恢复apieceofcake(4)

  oracle数据库日志备份(windows平台)  本片是接上次的数据库在线备份进行数据库全备份后需要备份归档的日志文件  建立数据库备份的脚本  在上面建立的目录下建立如下的两个脚本  建立执行

知识大全 Oracle数据库备份与恢复

Oracle数据库备份与恢复  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  一导出/导入(Exp

知识大全 实战Oracle数据库备份与恢复

实战Oracle数据库备份与恢复  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  用户可以留意一下

知识大全 Oracle数据库的备份与恢复

Oracle数据库的备份与恢复  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  河南省新乡市电信局

知识大全 Oracle数据库的备份及恢复策略研究

Oracle数据库的备份及恢复策略研究  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  多工联机重

知识大全 Oracle数据库备份与恢复精华资料集锦

Oracle数据库备份与恢复精华资料集锦  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!主要介绍了O

知识大全 oracle 10g 新特性中文笔记一

  第一章安装    目标    完成本课您将能够:    *列出新的安装特性  *列出安装性能的增加    安装新特性支持    *数据库存储选项  文件系统  自动存储管理(asm)  裸设备  

知识大全 Oracle数据库的备份与恢复的三种方法

Oracle数据库的备份与恢复的三种方法  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  Orac

知识大全 Oracle备份与恢复案例二

Oracle备份与恢复案例二  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  检查数据库的数据(完

知识大全 Oracle备份与恢复案例一

Oracle备份与恢复案例一  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  一理解什么是数据库恢