首页 >

Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库

数据库|mysql教程Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库
Oracle 11g R2,RMAN,Linux 6.4平台
数据库-mysql教程
淘客分佣开源源码,ubuntu连不到网,tomcat线程池在哪配置,爬虫的对账,php循环遍历json数据,晋中 seolzw
Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库
视频教学网站php源码,vscode文本排序,ubuntu底层是linux吗,tomcat工作线程,c 怎么调用sqlite,网站播放插件,前端框架笔试题目,反爬虫click无效,哪些是php网站,alexa seo,小游戏网站源码 php版,e语言 网页模块,帝国自媒体模板,我的网站是php的我想做一个html子页面,基于PHP的保险信息管理系统,人人商城小程序前端放在哪个文件lzw
仿淘宝购物车源码,vscode怎么上网,ubuntu挂载硬盘无法重启,tomcat 指定jre,sqlite使用范围,组织架构插件,ssm是前端框架吗,腾讯视频免费爬虫,php支持iis,邯郸seo服务,上线了 网站源码,网页 new,齐博分类系统模板,商家活动申请页面顶部提示语,asp源代码管理系统免费下载,企业网站程序哪个好用lzw

测试环境分别在虚拟机安装A,B主机
系统:linux 6.4,
数据库:Oracle 11g r2
A主机:安装oracle 11g r2数据库
B主机:只安装oracle 11g r2软件

第一步,运行下面rman命令备份数据库
run{
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/u01/app/dbback/config_%F’;
allocate channel c1 type disk format ‘/u01/app/dbback/full_%U’;
backup database tag ‘full_gpodb_data’ FILESPERSET 10 PLUS ARCHIVELOG FILESPERSET 20 DELETE ALL INPUT;
release channel c1;
}

[root@bogon ~]# su – oracle
[oracle@bogon ~]$ rman target /

Recovery Manager: Release 11.2.0.1.0 – Production on Sat Oct 26 05:16:55 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

connected to target database: DB (DBID=1587060738) ————记住这个DBID恢复数据库会用到
RMAN> run{
2> CONFIGURE CONTROLFILE AUTOBACKUP ON;
3> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/u01/app/dbback/config_%F’;
4> allocate channel c1 type disk format ‘/u01/app/dbback/full_%U’;
5> backup database tag ‘full_gpodb_data’ FILESPERSET 10 PLUS ARCHIVELOG FILESPERSET 20 DELETE ALL INPUT;
6> release channel c1;
7> }

old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored

old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/u01/app/dbback/gpofullbak/%F’;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/u01/app/dbback/config_%F’;
new RMAN configuration parameters are successfully stored

allocated channel: c1
channel c1: SID=47 device type=DISK

Starting backup at 26-OCT-13
current log archived
channel c1: starting archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=21 RECID=12 STAMP=829805117
channel c1: starting piece 1 at 26-OCT-13
channel c1: finished piece 1 at 26-OCT-13
piece handle=/u01/app/dbback/full_08onbkhu_1_1 tag=TAG20131026T052518 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
channel c1: deleting archived log(s)
archived log file name=/u01/app/archiv/1_21_823244933.dbf RECID=12 STAMP=829805117
Finished backup at 26-OCT-13

Starting backup at 26-OCT-13
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/db/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/db/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/db/anfei01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/db/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/db/DB/datafile/o1_mf_dbs_91x4vt9f_.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/db/dbt.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/db/users01.dbf
channel c1: starting piece 1 at 26-OCT-13
channel c1: finished piece 1 at 26-OCT-13
piece handle=/u01/app/dbback/full_09onbkhv_1_1 tag=FULL_GPODB_DATA comment=NONE
channel c1: backup set complete, elapsed time: 00:01:36
Finished backup at 26-OCT-13

Starting backup at 26-OCT-13
current log archived
channel c1: starting archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=22 RECID=13 STAMP=829805216
channel c1: starting piece 1 at 26-OCT-13
channel c1: finished piece 1 at 26-OCT-13
piece handle=/u01/app/dbback/full_0aonbkl1_1_1 tag=TAG20131026T052657 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
channel c1: deleting archived log(s)
archived log file name=/u01/app/archiv/1_22_823244933.dbf RECID=13 STAMP=829805216
Finished backup at 26-OCT-13

Starting Control File and SPFILE Autobackup at 26-OCT-13
piece handle=/u01/app/dbback/config_c-1587060738-20131026-01 comment=NONE
Finished Control File and SPFILE Autobackup at 26-OCT-13

released channel: c1

RMAN>

更多详情见请继续阅读下一页的精彩内容:

Oracle基础教学之通过RMAN复制数据库

RMAN备份策略制定参考内容

RMAN备份学习笔记

Oracle数据库备份加密 RMAN加密


Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库
  • CentOS下安装Oracle 11g R2遇到的问题
  • CentOS下安装Oracle 11g R2遇到的问题 | CentOS下安装Oracle 11g R2遇到的问题 ...

    Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库
  • Rad Hat Enterprise Linux 5.5上安装Oracle 11g R2
  • Rad Hat Enterprise Linux 5.5上安装Oracle 11g R2 | Rad Hat Enterprise Linux 5.5上安装Oracle 11g R2 ...

    Linux 6.4平台利用RMAN迁移Oracle 11g R2数据库
  • CentOS 6.4上安装 Oracle 11g R2图文教程
  • CentOS 6.4上安装 Oracle 11g R2图文教程 | CentOS 6.4上安装 Oracle 11g R2图文教程 ...