.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Database Clone error

Database Clone error

2005-09-18       - By Chirag DBA
Reply:     1     2  

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 (See ORA-00279.ora-code.com): change 2974949 generated at 09/18/2005 12:34:04 needed for thread
1
ORA-00289 (See ORA-00289.ora-code.com): suggestion : D:\ORACLE\ORA92\RDBMS\ARC00047.001
ORA-00280 (See ORA-00280.ora-code.com): change 2974949 for thread 1 is in sequence #47


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

ORA-00308 (See ORA-00308.ora-code.com): cannot open archived log 'D:\ORACLE\ORA92\RDBMS\ARC00047.001'
ORA-27041 (See ORA-27041.ora-code.com): 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 (See ORA-01113.ora-code.com): file 1 needs media recovery
ORA-01110 (See ORA-01110.ora-code.com): 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>

<div>Hi,</div>
<div>&nbsp;</div>
<div>I am trying to clone a DB on windows.</div>
<div>&nbsp;</div>
<div>Created a controlfile with </div>
<div>ALTER DATABASE BACKUP CONTROLFILE TO TRACE;</div>
<div>&nbsp;</div>
<div>I have taken a cold backup of the DB. copy all files in another folder.<
/div>
<div>I have created a service. </div>
<div>&nbsp;</div>
<div>LOG INTO SQL WITH NEW PFILE - AND HIT CREATE CONTROLFILE COMMAND.</div>
<div>&nbsp;</div>
<div>It says controlfile Created. </div>
<div>&nbsp;</div>
<div>But after that getting following error.</div>
<div>&nbsp;</div>
<div>My original db was not in Archivelog mode still this DB asks for the
archive file. I have copied redo logs too.</div>
<div>&nbsp;</div>
<div>Found on the net says CHECK THE ARCHIVE DESTINATION, but my primary db was
not in archive log. Any Idea ???&nbsp; </div>
<div>&nbsp;</div>
<div>regards - chirag </div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<p>SQL&gt; CREATE CONTROLFILE SET DATABASE&nbsp; &quot;CLONE&quot; RESETLOGS
&nbsp; NOARCHIVELOG<br>&nbsp; 2&nbsp; --&nbsp; SET STANDBY TO MAXIMIZE
PERFORMANCE<br>&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXLOGFILES 50<br>&nbsp;
4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXLOGMEMBERS 5<br>&nbsp; 5&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; MAXDATAFILES 100<br>
&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXINSTANCES 1<br>&nbsp; 7&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; MAXLOGHISTORY 226<br>&nbsp; 8&nbsp; LOGFILE<br>&nbsp; 9&nbsp;
&nbsp;&nbsp; GROUP 1 'D:\ORACLE\ORADATA\CLONE\REDO01.LOG'&nbsp; SIZE 100M,<br>
&nbsp;10&nbsp;&nbsp;&nbsp; GROUP 2 'D:\ORACLE\ORADATA\CLONE\REDO02.LOG'&nbsp;
SIZE 100M,<br>&nbsp;11&nbsp;&nbsp;&nbsp; GROUP 3 'D:\ORACLE\ORADATA\CLONE
\REDO03.LOG'&nbsp; SIZE 100M
<br>&nbsp;12&nbsp; -- STANDBY LOGFILE<br>&nbsp;13&nbsp; DATAFILE<br>&nbsp;14
&nbsp;&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\SYSTEM01.DBF',<br>&nbsp;15&nbsp;
&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\UNDOTBS01.DBF',<br>&nbsp;16&nbsp;&nbsp;
&nbsp; 'D:\ORACLE\ORADATA\CLONE\CWMLITE01.DBF',<br>&nbsp;17&nbsp;&nbsp;&nbsp; 'D
:\ORACLE\ORADATA\CLONE\DRSYS01.DBF',
<br>&nbsp;18&nbsp;&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\EXAMPLE01.DBF',<br>
&nbsp;19&nbsp;&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\INDX01.DBF',<br>&nbsp;20
&nbsp;&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\ODM01.DBF',<br>&nbsp;21&nbsp;&nbsp;
&nbsp; 'D:\ORACLE\ORADATA\CLONE\TOOLS01.DBF',<br>&nbsp;22&nbsp;&nbsp;&nbsp; 'D:
\ORACLE\ORADATA\CLONE\USERS01.DBF',
<br>&nbsp;23&nbsp;&nbsp;&nbsp; 'D:\ORACLE\ORADATA\CLONE\XDB01.DBF'<br>&nbsp;24
&nbsp; CHARACTER SET WE8MSWIN1252;</p>
<p>Control file created.</p>
<p>SQL&gt; RECOVER DATABASE USING BACKUP CONTROLFILE<br>ORA-00279 (See ORA-00279.ora-code.com): change
2974949 generated at 09/18/2005 12:34:04 needed for thread 1<br>ORA-00289 (See ORA-00289.ora-code.com):
suggestion : D:\ORACLE\ORA92\RDBMS\ARC00047.001<br>ORA-00280 (See ORA-00280.ora-code.com): change 2974949
for thread 1 is in sequence #47
</p>
<p><br>Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}</p>
<p>ORA-00308 (See ORA-00308.ora-code.com): cannot open archived log 'D:\ORACLE\ORA92\RDBMS\ARC00047.001'<br
>ORA-27041 (See ORA-27041.ora-code.com): unable to open file<br>OSD-04002: unable to open file<br>O/S-Error:
(OS 2) The system cannot find the file specified.</p>
<p><br>SQL&gt; alter database open resetlogs;<br>alter database open resetlogs
<br>*<br>ERROR at line 1:<br>ORA-01113 (See ORA-01113.ora-code.com): file 1 needs media recovery<br>ORA-01110 (See ORA-01110.ora-code.com)
: data file 1: 'D:\ORACLE\ORADATA\CLONE\SYSTEM01.DBF'</p>
<p><br>SQL&gt; select * from v$instance;</p>
<p>INSTANCE_NUMBER INSTANCE_NAME<br>-- ---- ---- -- -- ---- ---- ---<br>HOST
_NAME<br>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------<br
>VERSION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STARTUP_T
STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PAR&nbsp;&nbsp;&nbsp; THREAD#
ARCHIVE LOG_SWITCH_
<br>-- ---- ---- ---- -- ------ -- ---- ---- --- -- ---- -- -- ---- -- ---- ---
<br>LOGINS&nbsp;&nbsp;&nbsp;&nbsp; SHU DATABASE_STATUS&nbsp;&nbsp; INSTANCE_ROLE
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACTIVE_ST<br>-- ---- -- --- -- ---- ---- ---- ---
-- ---- ---- -- -- ------<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 clone
<br>FAMILY<br>9.2.0.1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18-SEP
-05 MOUNTED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; 1 STOPPED<br>ALLOWED&nbsp;&nbsp;&nbsp; NO&nbsp; ACTIVE
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMARY
_INSTANCE&nbsp;&nbsp; NORMAL</p>
<p><br>SQL&gt;</p></div>