Home
All Oracle Error Codes
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

DBA Chirag

2005-09-18

Replies:
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>