文档详情

RMAN备份知识手册.docx

发布:2017-08-26约5.48万字共48页下载文档
文本预览下载声明
网址:/zero_plus/article/details/6056029RMAN参考手册ORACLE备份分为物理备份和逻辑备份两种:物理备份就是转储ORACLE物理文件(如数据文件、控制文件、归档日志文件等),一旦数据库发生故障,我们可以利用这些文件进行还原;逻辑备份就是对数据库对象(如用户、表、存储过程等)利用EXPORT等工具进行导出工作,我们可以利用IMPORT等工具把逻辑备份文件导入到数据库。RMAN备份是一种物理备份,可以用RMAN来备份数据文件、控制文件、参数文件、归档日志文件。我们在数据库出现问题的时候可以通过RMAN物理备份恢复到数据库的失效点。开始和退出RMAN进入RMAN恢复管理器2种方式:1、直接在系统命令提示符敲入rman命令,进入rman控制台后执行connectD:/rman恢复管理器: Release .0 - Production on 星期四 1月 4 10:08:52 Copyright (c) 1982, 2005, Oracle. All rights reserved.RMAN connect target /连接到目标数据库: ROME (DBID=252956976)RMAN2、在系统命令提示符下敲入target和catalog(没有此项默认非catalog方式,控制文件记录rman操作的详细信息)的用户和密码# example of operating system authenticationD:/rman TARGET /# example of Oracle Net authenticationD:/rman TARGET SYS/oracle@orcl NOCATALOGD:/rman TARGET / CATALOG rman/rman@catdb D:/rman TARGET SYS/oracle@orcl CATALOG rman/rman@catdbRMAN exit恢复管理器完成。注:我们将在以后章节讲述带有恢复目录的RMAN操作。我们可以看一下rman可以连接的数据库的类型如下:Target databaseRMAN connects you to the target database, which is the database that you are backing up or recovering, with the SYSDBA privilege. If you do not have this privilege, then the connection fails.Recovery catalog databaseThis database is optional. By default, RMAN runs in NOCATALOG mode.Auxiliary databaseYou can connect to a standby database, duplicate database, or auxiliary instance (standby instance or tablespace point-in-time recovery instance).Note: You do not need to specify the SYSDBA option because RMAN uses this option implicitly and automatically.RMAN配置执行show all命令可以显示rman的当前配置。RMAN show all;使用目标数据库控制文件替代恢复目录RMAN 配置参数为:CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # defaultCONFIGURE BACKUP OPTIMIZATION OFF; # defaultCONFIGURE DEFAULT DEVICE TYPE TO DISK; # defaultCONFIGURE CONTROLFILE AUTOBACKUP OFF; # defaultCONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO %F; # defaultCONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # defaultCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE
显示全部
相似文档