【DataGuarad】ORA-01671: cannot make a standby control file

简介: oracle@rac3:/home/oracle>rman target sys/yang402@yangdb auxiliary sys/yang402@yangdb2Recovery Manager: Release 11.
oracle@rac3:/home/oracle>rman target sys/yang402@yangdb auxiliary sys/yang402@yangdb2
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 15 18:37:27 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
connected to target database: RAC (DBID=2349912968)
connected to auxiliary database: RAC (not mounted)

RMAN> run {
2>    allocate channel c1 type disk connect 'sys/yang402@yangdb';
3>    allocate channel c2 type disk connect 'sys/yang402@yangdb';
4>    allocate auxiliary channel s1 type disk;
5>    allocate auxiliary channel s2 type disk;
6>    duplicate target database for standby from active database
7>          spfile
8>          set db_name='rac' 
9>          set db_unique_name='yangdb2'
10>          set cluster_database='FALSE'
11>          set audit_file_dest='/opt/oracle/admin/yangdb2/adump'
12>          set DIAGNOSTIC_DEST='/opt/oracle'
13>          set db_create_file_dest='/opt/oracle/oradata/yangdb2'
14>          set db_recovery_file_dest='/opt/oracle/flash_recovery_area'
15>          set control_files='/opt/oracle/oradata/yangdb2/control01.ctl','/opt/oracle/oradata/yangdb2/control02.ctl','/opt/oracle/oradata/yangdb2/control03.ctl'
16>          set undo_tablespace='UNDOTBS1'
17>          set service_names='yangdb2'
18>          set standby_file_management='AUTO'
19>          set log_archive_config='DG_CONFIG=(rac,yangdb2,yangdb)'
20>          set log_archive_dest_1='LOCATION=/opt/oracle/arch'
21>          set log_archive_dest_2='service=yangdb2 ARCH ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=yangdb2'
22>          set log_archive_dest_3=''
23>          set log_archive_dest_state_1='enable'
24>          set log_archive_dest_state_2='enable'
25>          set log_archive_dest_state_2='defer'
26>          set log_archive_format='yangdb2_%t_%s_%r.log'
27>          set remote_login_passwordfile='exclusive'
28>          set LOG_FILE_NAME_CONVERT='/opt/oracle/oradata/yangdb','/opt/oracle/oradata/yangdb2','/opt/oracle/oradata/yangdb/YANDGDG/onlinelog','/opt/oracle/oradata/yangdb2'
29>          set DB_FILE_NAME_CONVERT='/opt/oracle/oradata/yangdb','/opt/oracle/oradata/yangdb2','/opt/oracle/oradata/yangdb/YANDGDB/datafile','/opt/oracle/oradata/yangdb2'
30>          set remote_listener=''
31>          set fal_client='yangdb2'
32>          set fal_server='yangdb' 
33>          NOFILENAMECHECK;
34>  }

using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=1 device type=DISK

allocated channel: c2
channel c2: SID=32 device type=DISK

allocated channel: s1
channel s1: SID=19 device type=DISK

allocated channel: s2
channel s2: SID=20 device type=DISK

Starting Duplicate Db at 15-SEP-11

contents of Memory Script.:
{
   backup as copy reuse
   targetfile  '/opt/oracle/11.2.0/yangdb2/dbs/orapwyangdb' auxiliary format 
 '/opt/oracle/11.2.0/yangdb2/dbs/orapwyangdb2'   targetfile 
 '/opt/oracle/11.2.0/yangdb2/dbs/spfileyangdb.ora' auxiliary format 
 '/opt/oracle/11.2.0/yangdb2/dbs/spfileyangdb2.ora'   ;
   sql clone "alter system set spfile= ''/opt/oracle/11.2.0/yangdb2/dbs/spfileyangdb2.ora''";
}
executing Memory Script
Starting backup at 15-SEP-11
Finished backup at 15-SEP-11
sql statement: alter system set spfile= ''/opt/oracle/11.2.0/yangdb2/dbs/spfileyangdb2.ora''
contents of Memory Script.:
{
   sql clone "alter system set  db_name = 
 ''rac'' comment=
 '''' scope=spfile";
   sql clone "alter system set  db_unique_name = 
 ''yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  cluster_database = 
 FALSE comment=
 '''' scope=spfile";
   sql clone "alter system set  audit_file_dest = 
 ''/opt/oracle/admin/yangdb2/adump'' comment=
 '''' scope=spfile";
   sql clone "alter system set  DIAGNOSTIC_DEST = 
 ''/opt/oracle'' comment=
 '''' scope=spfile";
   sql clone "alter system set  db_create_file_dest = 
 ''/opt/oracle/oradata/yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  db_recovery_file_dest = 
 ''/opt/oracle/flash_recovery_area'' comment=
 '''' scope=spfile";
   sql clone "alter system set  control_files = 
 ''/opt/oracle/oradata/yangdb2/control01.ctl'', ''/opt/oracle/oradata/yangdb2/control02.ctl'', ''/opt/oracle/oradata/yangdb2/control03.ctl'' comment=
 '''' scope=spfile";
   sql clone "alter system set  undo_tablespace = 
 ''UNDOTBS1'' comment=
 '''' scope=spfile";
   sql clone "alter system set  service_names = 
 ''yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  standby_file_management = 
 ''AUTO'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_config = 
 ''DG_CONFIG=(rac,yangdb2,yangdb)'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_1 = 
 ''LOCATION=/opt/oracle/arch'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_2 = 
 ''service=yangdb2 ARCH ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_3 = 
 '''' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_state_1 = 
 ''enable'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_state_2 = 
 ''enable'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_state_2 = 
 ''defer'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_format = 
 ''yangdb2_%t_%s_%r.log'' comment=
 '''' scope=spfile";
   sql clone "alter system set  remote_login_passwordfile = 
 ''exclusive'' comment=
 '''' scope=spfile";
   sql clone "alter system set  LOG_FILE_NAME_CONVERT = 
 ''/opt/oracle/oradata/yangdb'', ''/opt/oracle/oradata/yangdb2'', ''/opt/oracle/oradata/yangdb/YANDGDG/onlinelog'', ''/opt/oracle/oradata/yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  db_file_name_convert = 
 ''/opt/oracle/oradata/yangdb'', ''/opt/oracle/oradata/yangdb2'', ''/opt/oracle/oradata/yangdb/YANDGDB/datafile'', ''/opt/oracle/oradata/yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  remote_listener = 
 '''' comment=
 '''' scope=spfile";
   sql clone "alter system set  fal_client = 
 ''yangdb2'' comment=
 '''' scope=spfile";
   sql clone "alter system set  fal_server = 
 ''yangdb'' comment=
 '''' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''rac'' comment= '''' scope=spfile
sql statement: alter system set  db_unique_name =  ''yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  cluster_database =  FALSE comment= '''' scope=spfile
sql statement: alter system set  audit_file_dest =  ''/opt/oracle/admin/yangdb2/adump'' comment= '''' scope=spfile
sql statement: alter system set  DIAGNOSTIC_DEST =  ''/opt/oracle'' comment= '''' scope=spfile
sql statement: alter system set  db_create_file_dest =  ''/opt/oracle/oradata/yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  db_recovery_file_dest =  ''/opt/oracle/flash_recovery_area'' comment= '''' scope=spfile
sql statement: alter system set  control_files =  ''/opt/oracle/oradata/yangdb2/control01.ctl'', ''/opt/oracle/oradata/yangdb2/control02.ctl'', ''/opt/oracle/oradata/yangdb2/control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set  undo_tablespace =  ''UNDOTBS1'' comment= '''' scope=spfile
sql statement: alter system set  service_names =  ''yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  standby_file_management =  ''AUTO'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_config =  ''DG_CONFIG=(rac,yangdb2,yangdb)'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_1 =  ''LOCATION=/opt/oracle/arch'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_2 =  ''service=yangdb2 ARCH ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_3 =  '''' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_state_1 =  ''enable'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_state_2 =  ''enable'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_dest_state_2 =  ''defer'' comment= '''' scope=spfile
sql statement: alter system set  log_archive_format =  ''yangdb2_%t_%s_%r.log'' comment= '''' scope=spfile
sql statement: alter system set  remote_login_passwordfile =  ''exclusive'' comment= '''' scope=spfile
sql statement: alter system set  LOG_FILE_NAME_CONVERT =  ''/opt/oracle/oradata/yangdb'', ''/opt/oracle/oradata/yangdb2'', ''/opt/oracle/oradata/yangdb/YANDGDG/onlinelog'', ''/opt/oracle/oradata/yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  db_file_name_convert =  ''/opt/oracle/oradata/yangdb'', ''/opt/oracle/oradata/yangdb2'', ''/opt/oracle/oradata/yangdb/YANDGDB/datafile'', ''/opt/oracle/oradata/yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  remote_listener =  '''' comment= '''' scope=spfile
sql statement: alter system set  fal_client =  ''yangdb2'' comment= '''' scope=spfile
sql statement: alter system set  fal_server =  ''yangdb'' comment= '''' scope=spfile
Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area    1469792256 bytes

Fixed Size                     2213456 bytes
Variable Size                872417712 bytes
Database Buffers             587202560 bytes
Redo Buffers                   7958528 bytes
allocated channel: s1
channel s1: SID=19 device type=DISK
allocated channel: s2
channel s2: SID=20 device type=DISK

contents of Memory Script.:
{
   backup as copy current controlfile for standby auxiliary format  '/opt/oracle/oradata/yangdb2/control01.ctl';
   restore clone controlfile to  '/opt/oracle/oradata/yangdb2/control02.ctl' from 
 '/opt/oracle/oradata/yangdb2/control01.ctl';
   restore clone controlfile to  '/opt/oracle/oradata/yangdb2/control03.ctl' from 
 '/opt/oracle/oradata/yangdb2/control01.ctl';
}
executing Memory Script

Starting backup at 15-SEP-11
channel c1: starting datafile copy
copying standby control file
released channel: c1
released channel: c2
released channel: s1
released channel: s2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/15/2011 18:37:44
RMAN-03015: error occurred in stored script. Memory Script
RMAN-03009: failure of backup command on c1 channel at 09/15/2011 18:37:44
ORA-01671: control file is a backup, cannot make a standby control file

RMAN> 
目录
相关文章
|
JSON 缓存 关系型数据库
5、DataX(DataX简介、DataX架构原理、DataX部署、使用、同步MySQL数据到HDFS、同步HDFS数据到MySQL)(二)
5、DataX(DataX简介、DataX架构原理、DataX部署、使用、同步MySQL数据到HDFS、同步HDFS数据到MySQL)(二)
|
1天前
|
数据采集 人工智能 安全
|
10天前
|
云安全 监控 安全
|
2天前
|
自然语言处理 API
万相 Wan2.6 全新升级发布!人人都能当导演的时代来了
通义万相2.6全新升级,支持文生图、图生视频、文生视频,打造电影级创作体验。智能分镜、角色扮演、音画同步,让创意一键成片,大众也能轻松制作高质量短视频。
869 150
|
15天前
|
机器学习/深度学习 人工智能 自然语言处理
Z-Image:冲击体验上限的下一代图像生成模型
通义实验室推出全新文生图模型Z-Image,以6B参数实现“快、稳、轻、准”突破。Turbo版本仅需8步亚秒级生成,支持16GB显存设备,中英双语理解与文字渲染尤为出色,真实感和美学表现媲美国际顶尖模型,被誉为“最值得关注的开源生图模型之一”。
1613 8
|
6天前
|
人工智能 前端开发 文件存储
星哥带你玩飞牛NAS-12:开源笔记的进化之路,效率玩家的新选择
星哥带你玩转飞牛NAS,部署开源笔记TriliumNext!支持树状知识库、多端同步、AI摘要与代码高亮,数据自主可控,打造个人“第二大脑”。高效玩家的新选择,轻松搭建专属知识管理体系。
361 152
|
7天前
|
人工智能 自然语言处理 API
一句话生成拓扑图!AI+Draw.io 封神开源组合,工具让你的效率爆炸
一句话生成拓扑图!next-ai-draw-io 结合 AI 与 Draw.io,通过自然语言秒出架构图,支持私有部署、免费大模型接口,彻底解放生产力,绘图效率直接爆炸。
575 152
|
9天前
|
人工智能 安全 前端开发
AgentScope Java v1.0 发布,让 Java 开发者轻松构建企业级 Agentic 应用
AgentScope 重磅发布 Java 版本,拥抱企业开发主流技术栈。
541 13
|
2天前
|
编解码 人工智能 机器人
通义万相2.6,模型使用指南
智能分镜 | 多镜头叙事 | 支持15秒视频生成 | 高品质声音生成 | 多人稳定对话