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: Restore problem

Jared Still



On 5/4/07, Bill Ferguson <wbfergus@gmail.com> wrote:
Hi all,

channel ORA_DISK_1: restored backup piece 14
piece handle=E:\BACKUP\BACKED UP DATA\AJIGLMEM_14_1.BAK tag=TAG20070501T220157
channel ORA_DISK_1: reading from backup piece E:\BACKUP\BACKED UP DATA\AJIGLMEM_15_1.BAK
ORA-19870: error reading backup piece E:\BACKUP\BACKED UP DATA\AJIGLMEM_15_1.BAK

ORA-19504: failed to create file "E:\ORACLE\DATAFILES\NGDB_DATA_06.DBF"
ORA-27086: unable to lock file - already in use
OSD-00002: additional error information
O/S-Error: (OS 32) The process cannot access the file because it is being used b
y another process.
failover to previous backup

Hi Bill,

Taking a tablespace offline on windows does not seem to remove the lock that Oracle has on it.
When a file is open, the process has a lock (don't know the windows technical term for the
type of lock)

Just tested this on my laptop:  took 10g tablespace EXAMPLE offline, and the handle utility
(from Sys Internals toolkit) shows that the EXAMPLE files are still open by Oracle:

oracle.exe pid: 2848 NT AUTHORITY\SYSTEM
    c: File          C:\WINDOWS\SYSTEM32
   d8: Section       \BaseNamedObjects\*oraspawn_buffer_ts50*
   f4: Section       \BaseNamedObjects\ShimSharedMemory
  624: File          C:\oracle\product\10.1.0\oradata\ts50\USERS01.DBF
  628: File          C:\oracle\product\10.1.0\oradata\ts50\EXAMPLE01.DBF
  62c: File          C:\oracle\product\10.1.0\oradata\ts50\EXAMPLE01.DBF
  664: File          C:\oracle\product\10.1.0\oradata\ts50\SYSTEM01.DBF
  668: File          C:\oracle\product\10.1.0\oradata\ts50\SYSTEM01.DBF
  66c: File          C:\oracle\product\10.1.0\oradata\ts50\UNDOTBS01.DBF

I've never restored a tablespace on Windows, but it appears that your
procedure may need to be modified a bit.

Have you tried restoring the tablespace with Oracle in mount mode?

Our resident RMAN expert (Robert Freeman) may know the answer to this.

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist