- 最后登录
- 2020-11-12
- 在线时间
- 31 小时
- 威望
- 0
- 金钱
- 112
- 注册时间
- 2013-5-29
- 阅读权限
- 10
- 帖子
- 19
- 精华
- 0
- 积分
- 0
- UID
- 1113
|
1#
发表于 2013-5-29 16:58:58
|
查看: 4808 |
回复: 19
首先非常感谢刘大制作的视频,让我这个PAPER OCP顺利在虚拟机上搭建出了RAC,现在又照着刘大的视频自己打DG ,与视频里环境唯一不同的是没有用ASM 就用了普通的文件系统,也没有创建GRID用户,lisnten和tns都是在oracle的/network/admin下改的最后在做到duplicate target database 时报错了。
RMAN> duplicate target database
2> for standby
3> from active database
4> DORECOVER
5> spfile
6> set db_unique_name='MACDBS'
7> set log_archive_dest_1='location=/s01/fast_recovery_area/MACDBS/archivelog VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=MACDBS'
8> set log_archive_dest_2='SERVICE=MACDBN ASYNC LGWR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=MACDBN'
9> set standby_file_management='AUTO'
10> set fal_server='MACDBN'
11> set fal_client='MACDBS'
12> set control_files='/s01/oradata/MACDBS/control01.ctl','/s01/fast_recovery_area/MACDBS/control02.ctl'
13> set memory_target='0'
14> set sga_target='600M';
15>
Starting Duplicate Db at 29-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK
contents of Memory Script:
{
backup as copy reuse
targetfile '/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/orapwMACDBN' auxiliary format
'/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/orapwMACDBS' targetfile
'/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/spfileMACDBN.ora' auxiliary format
'/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/spfileMACDBS.ora' ;
sql clone "alter system set spfile= ''/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/spfileMACDBS.ora''";
}
executing Memory Script
Starting backup at 29-MAY-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=31 device type=DISK
Finished backup at 29-MAY-13
sql statement: alter system set spfile= ''/s01/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/spfileMACDBS.ora''
contents of Memory Script:
{
sql clone "alter system set db_unique_name =
''MACDBS'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_1 =
''location=/s01/fast_recovery_area/MACDBS/archivelog VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=MACDBS'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_2 =
''SERVICE=MACDBN ASYNC LGWR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=MACDBN'' comment=
'''' scope=spfile";
sql clone "alter system set standby_file_management =
''AUTO'' comment=
'''' scope=spfile";
sql clone "alter system set fal_server =
''MACDBN'' comment=
'''' scope=spfile";
sql clone "alter system set fal_client =
''MACDBS'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''/s01/oradata/MACDBS/control01.ctl'', ''/s01/fast_recovery_area/MACDBS/control02.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set memory_target =
0 comment=
'''' scope=spfile";
sql clone "alter system set sga_target =
600M comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_unique_name = ''MACDBS'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_1 = ''location=/s01/fast_recovery_area/MACDBS/archivelog VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=MACDBS'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_2 = ''SERVICE=MACDBN ASYNC LGWR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=MACDBN'' comment= '''' scope=spfile
sql statement: alter system set standby_file_management = ''AUTO'' comment= '''' scope=spfile
sql statement: alter system set fal_server = ''MACDBN'' comment= '''' scope=spfile
sql statement: alter system set fal_client = ''MACDBS'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''/s01/oradata/MACDBS/control01.ctl'', ''/s01/fast_recovery_area/MACDBS/control02.ctl'' comment= '''' scope=spfile
sql statement: alter system set memory_target = 0 comment= '''' scope=spfile
sql statement: alter system set sga_target = 600M comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/29/2013 10:03:16
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
Recovery Manager complete.
以上文件路径都是存在的,请教大神们如何改正。 |
|