Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Database Clone error

Database Clone error

From: Chirag DBA <chiragdba_at_gmail.com>
Date: Sun, 18 Sep 2005 13:46:33 -0400
Message-ID: <1a3629600509181046264f1857@mail.gmail.com>


Hi,
 I am trying to clone a DB on windows.
 Created a controlfile with
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;  I have taken a cold backup of the DB. copy all files in another folder. I have created a service.
 LOG INTO SQL WITH NEW PFILE - AND HIT CREATE CONTROLFILE COMMAND.  It says controlfile Created.
 But after that getting following error.  My original db was not in Archivelog mode still this DB asks for the archive file. I have copied redo logs too.  Found on the net says CHECK THE ARCHIVE DESTINATION, but my primary db was not in archive log. Any Idea ???
 regards - chirag     

SQL> CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS NOARCHIVELOG 2 -- SET STANDBY TO MAXIMIZE PERFORMANCE 3 MAXLOGFILES 50
4 MAXLOGMEMBERS 5
5 MAXDATAFILES 100
6 MAXINSTANCES 1
7 MAXLOGHISTORY 226
8 LOGFILE
9 GROUP 1 'D:\ORACLE\ORADATA\CLONE\REDO01.LOG' SIZE 100M, 10 GROUP 2 'D:\ORACLE\ORADATA\CLONE\REDO02.LOG' SIZE 100M, 11 GROUP 3 'D:\ORACLE\ORADATA\CLONE\REDO03.LOG' SIZE 100M 12 -- STANDBY LOGFILE
13 DATAFILE

14 'D:\ORACLE\ORADATA\CLONE\SYSTEM01.DBF',
15 'D:\ORACLE\ORADATA\CLONE\UNDOTBS01.DBF',
16 'D:\ORACLE\ORADATA\CLONE\CWMLITE01.DBF',
17 'D:\ORACLE\ORADATA\CLONE\DRSYS01.DBF',
18 'D:\ORACLE\ORADATA\CLONE\EXAMPLE01.DBF',
19 'D:\ORACLE\ORADATA\CLONE\INDX01.DBF',
20 'D:\ORACLE\ORADATA\CLONE\ODM01.DBF',
21 'D:\ORACLE\ORADATA\CLONE\TOOLS01.DBF',
22 'D:\ORACLE\ORADATA\CLONE\USERS01.DBF',
23 'D:\ORACLE\ORADATA\CLONE\XDB01.DBF'

24 CHARACTER SET WE8MSWIN1252; Control file created.

SQL> RECOVER DATABASE USING BACKUP CONTROLFILE ORA-00279: change 2974949 generated at 09/18/2005 12:34:04 needed for thread 1
ORA-00289: suggestion : D:\ORACLE\ORA92\RDBMS\ARC00047.001 ORA-00280: change 2974949 for thread 1 is in sequence #47

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

ORA-00308: cannot open archived log 'D:\ORACLE\ORA92\RDBMS\ARC00047.001'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\CLONE\SYSTEM01.DBF'

SQL> select * from v$instance;

INSTANCE_NUMBER INSTANCE_NAME

--------------- ----------------

HOST_NAME

VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_
----------------- --------- ------------ --- ---------- ------- -----------
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST
---------- --- ----------------- ------------------ ---------
1 clone
FAMILY
9.2.0.1.0 18-SEP-05 MOUNTED NO 1 STOPPED ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL SQL>
--
http://www.freelists.org/webpage/oracle-l
Received on Sun Sep 18 2005 - 12:48:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US