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

RE: ORA-01159 during controlfile recreate ?

Mark W. Farnham

2004-07-21

Replies:
1) I think you mean to write "test database" where you write "test
instance." I'm not really sure what a test instance would be, but it would
not involve copying database files, just constructing an environment to
start up an Oracle instance on the database files.

2) When and how did you perform the rename database command? Did you just
set a different database name? Then all the old files are your old database
name, but the one file create controlfile added has the new database name
(which it then immediately does not like because it is different from the
others.)

3) I've always found database rename simpler to execute using backup control
file to trace and editting the text file. You're trying to get create
controlfile to create an emergency replacement control file AND rename the
database in one step.

4) I'd investigate what the deal is with the missing file in the original
database. Is it just an offline tablespace you don't really need?

Good luck. I hope I didn't misinterpret your evidence given this partial top
of my head guess at what is going on.

mwf

-----Original Message-----
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)
Sent: Wednesday, July 21, 2004 5:00 AM
To: oracle-l@(protected)
Subject: ORA-01159 during controlfile recreate ?


hi all,
the env is oracle 9.2.0.4/oracle APPS 11.5.9/ AIX 5.2

while creating new control file, i get:

ORA-01503: CREATE CONTROLFILE FAILED
ORA-01159: file is not from same database as previous files - wrong database
id
ORA-01110: data file 400 '/home01/db03/dev03data/sss02x01.dbf'

sequence of steps i did :
1.copy all(and only) DBF files (about 400 files) of instance 01
2.move all these DBF files to a test instance 02
i.e.,overwrite the exiting DBF files of 02
3.backup controlfile of 01 using "alter database backup controlfile"
4.edit it to REUSE the copied DBF files from 01 and SET new
database name
5.now create control file with the above edited file and i get the
above mentioned error.

in the alert log of instance 02 i find,
--------------------------------------------------------
Tablespace 'SSS02X' #392 found in data dictionary,
but not in the controlfile. Adding to controlfile.
File #400 found in data dictionary but not in controlfile.
Creating OFFLINE file 'MISSING00400' in the controlfile.
This file can no longer be recovered so it must be dropped.
---------------------------------------------------------

i face problem only with one file and all others get thro.
when is this error likely to happen and how to get
rid of this error ? am i missing anything ?

Thanks and Regards,
Prem.
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------