vikips
Дата: 25.11.2009 14:47:55
Решил создать копию базы на другом сервере папки все совпадают.
создал бэкап базы RMANом, перенес бакап на другой сервер, проделал всю подготовительную работу и пытался выполнить DUPLCATE, но так и неполучилось
результат ниже, то RMAN пишет что экземпляр должен подмонтирован, если монитрую то на оборот
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>set oracle_sid=ORATEST
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 25 14:15:31 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> connect sys/123 as sysdba
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1295848 bytes
Variable Size 67111448 bytes
Database Buffers 134217728 bytes
Redo Buffers 7090176 bytes
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Documents and Settings\Administrator>rman target sys/123 nocatalog auxil
iary /
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Nov 25 14:16:19 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: oratest (not mounted)
using target database control file instead of recovery catalog
connected to auxiliary database: ORATEST (not mounted)
RMAN> duplicate target database to ORATEST;
Starting Duplicate Db at 25-NOV-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=155 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/25/2009 14:16:32
RMAN-05502: the target database must be mounted when issuing a DUPLICATE command
RMAN> exit
Recovery Manager complete.
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 25 14:17:08 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> connect sys/123 as sysdba
Connected.
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1295848 bytes
Variable Size 67111448 bytes
Database Buffers 134217728 bytes
Redo Buffers 7090176 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Documents and Settings\Administrator>rman target sys/123 nocatalog auxil
iary /
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Nov 25 14:18:28 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: ORATEST (DBID=3239228575, not open)
using target database control file instead of recovery catalog
connected to auxiliary database: ORATEST (DBID=3239228575, not open)
RMAN> duplicate target database to ORATEST;
Starting Duplicate Db at 25-NOV-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=154 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/25/2009 14:18:51
RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE
command
RMAN> exit
Recovery Manager complete.
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 25 14:21:55 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> shutdown immediate;
ORA-01012: not logged on
SQL> connect sys/123 as sysdba
Connected.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1295848 bytes
Variable Size 67111448 bytes
Database Buffers 134217728 bytes
Redo Buffers 7090176 bytes
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Documents and Settings\Administrator>rman target sys/123 nocatalog auxil
iary /
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Nov 25 14:22:59 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: oratest (not mounted)
using target database control file instead of recovery catalog
connected to auxiliary database: ORATEST (not mounted)
RMAN> duplicate target database to ORATEST;
Starting Duplicate Db at 25-NOV-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=155 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/25/2009 14:23:14
RMAN-05502: the target database must be mounted when issuing a DUPLICATE command
RMAN>
pravednik
Дата: 25.11.2009 14:53:19
vikips,
rman target sys/123 nocatalog auxiliary /
как по вашему рман поймет, где искать auxiliary инстанс ?
connected to target database: oratest (not mounted)
using target database control file instead of recovery catalog
connected to >>auxiliary database: ORATEST<<< (not mounted)
connected to target database: ORATEST (DBID=3239228575, not open)
using target database control file instead of recovery catalog
connected to auxiliary database: ORATEST (DBID=3239228575, not open)
вас это не смущает ???
Алексей Черепанов
Дата: 25.11.2009 14:57:57
Я в таком случае делаю просто восстановление на новом месте.
rman>startup nomount
rman>restore controlfile from...
rman>alter database mount
rman>restore database
rman>recover database
можно архлогов подложить сколько надо, получится копия на любой момент.
Алексей
_Alex_SMIRNOV_
Дата: 25.11.2009 15:28:25
vikips |
_Alex_SMIRNOV_ | vikips | andrey_anonymous |  Ясно же пишут: - БД-источник (target) должна быть смонтирована. - БД-приемник (auxillary) НЕ должна быть смонтирована.
Ваша ошибка в том, что Вы пытаетесь сделать копию БД "саму в себя" |
Т.е. не могу выполнить duplicate если у меня нет промежуточной базы, а есть бэкап который лежит точно в том же месте на новом сервере, не могу сообразить как выйти из этой ситуации. |
Вам не нужна команда DUPLCATE почитайте вот в соседней ветке |
Ветку я эту конечно прочел, но это другой способ клонирования, и прочитал документацию как клонировать базу с помощью DUPLICATE и решил проверить это на практике, пока не удалось |
указать на ссылку мен янатолкнуло вот это
Решил создать копию базы на другом сервере папки все совпадают.
[b]создал бэкап базы RMANом, перенес бакап на другой сервер[/b], проделал всю подготовительную работу и пытался выполнить DUPLCATE, но так и неполучилось
результат ниже, то RMAN пишет что экземпляр должен подмонтирован, если монитрую то на оборот
для DUPLICATE этого делать ненадо
а вообще посмотрите вот что, там все по-шагам расписано: Database Backup and Recovery Advanced User's Guide -> 13 Creating and Updating Duplicate Databases with RMAN