• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

GoldenGate 学习系列6–抽取Physical Standby

mysql 搞代码 4年前 (2022-01-09) 17次浏览 已收录 0个评论

本站文章除注明转载外,均为本站原创: 转载自love wife love life —Roger 的Oracle技术博客 本文链接地址: GoldenGate 学习系列6–抽取Physical Standby 之前从未测试过ogg抽取Physical standby或ADG的情况,今天测试了一下,由于最近一个项目是9208的升级

本站文章除注明转载外,均为本站原创: 转载自love wife & love life —Roger 的Oracle技术博客

本文链接地址: GoldenGate 学习系列6–抽取Physical Standby

之前从未测试过ogg抽取Physical standby或ADG的情况,今天测试了一下,由于最近一个项目是9208的升级,需要利用OGG。因此下午利用一个vm搭建了DG顺便测试了OGG,如下是简单的步骤,供参考!

1. 主库

[ora9@killdb killdb]$ sqlplus "/as sysdba"SQL*Plus: Release 9.2.0.8.0 - Production on Mon Dec 8 22:44:32 2014<div>本文来源gaodai.ma#com搞#代!码网_</div>Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.Connected to an idle instance.SQL> startup mountORACLE instance started.Total System Global Area  252776884 bytesFixed Size                   450996 bytesVariable Size             201326592 bytesDatabase Buffers           50331648 bytesRedo Buffers                 667648 bytesDatabase mounted.SQL> alter database archivelog;Database altered.SQL> alter database force logging;Database altered.
SQL> alter database add supplemental log data;Database altered.SQL> alter system set log_archive_dest_1='location=/home/ora9/arch_p';System altered.SQL> alter database open;Database altered.SQL> alter system set log_archive_start=true scope=spfile;System altered.SQL> alter system set log_archive_dest_2='SERVICE=std9 MANDATORY REOPEN=60';System altered.SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startupORACLE instance started.Total System Global Area  252776884 bytesFixed Size                   450996 bytesVariable Size             201326592 bytesDatabase Buffers           50331648 bytesRedo Buffers                 667648 bytesDatabase mounted.Database opened.

2. 备份主库以及控制文件

[ora9@killdb killdb]$ rman target /Recovery Manager: Release 9.2.0.8.0 - ProductionCopyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.connected to target database: KILLDB (DBID=801221485)RMAN> backup database format='/home/ora9/killdb_full.bak';Starting backup at 08-DEC-14using target database controlfile instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: sid=17 devtype=DISKchannel ORA_DISK_1: starting full datafile backupsetchannel ORA_DISK_1: specifying datafile(s) in backupsetincluding current SPFILE in backupsetincluding current controlfile in backupsetinput datafile fno=00001 name=/home/ora9/oradata/killdb/system01.dbfinput datafile fno=00011 name=/home/ora9/oradata/killdb/jwdb01.dbfinput datafile fno=00002 name=/home/ora9/oradata/killdb/undotbs01.dbfinput datafile fno=00004 name=/home/ora9/oradata/killdb/example01.dbfinput datafile fno=00009 name=/home/ora9/oradata/killdb/xdb01.dbfinput datafile fno=00005 name=/home/ora9/oradata/killdb/indx01.dbfinput datafile fno=00006 name=/home/ora9/oradata/killdb/odm01.dbfinput datafile fno=00008 name=/home/ora9/oradata/killdb/users01.dbfinput datafile fno=00003 name=/home/ora9/oradata/killdb/drsys01.dbfinput datafile fno=00010 name=/home/ora9/oradata/killdb/cwmlite01.dbfinput datafile fno=00007 name=/home/ora9/oradata/killdb/tools01.dbfchannel ORA_DISK_1: starting piece 1 at 08-DEC-14channel ORA_DISK_1: finished piece 1 at 08-DEC-14piece handle=/home/ora9/killdb_full.bak comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:01:06Finished backup at 08-DEC-14RMAN> backup current controlfile ;Starting backup at 08-DEC-14using target database controlfile instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: sid=12 devtype=DISKchannel ORA_DISK_1: starting full datafile backupsetchannel ORA_DISK_1: specifying datafile(s) in backupsetincluding current controlfile in backupsetchannel ORA_DISK_1: starting piece 1 at 08-DEC-14channel ORA_DISK_1: finished piece 1 at 08-DEC-14piece handle=/home/ora9/product/9.2/dbs/03ppmf95_1_1 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:01Finished backup at 08-DEC-14

搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:GoldenGate 学习系列6–抽取Physical Standby
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址