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

CATPROC gets invalidated

Alexander Gorbachev


Hi all,

This is very weird... Third time in the last few days catproc got
invalidated. This is on database on AIX that was upgraded to and than downgraded back to (almost a month ago).
it's a DW environment.

Last occurrence's description:
The issue appears in different forms one of which is trying to run DBMS_STATS:
ORA-04068: existing state of packages has been discarded
ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_STANDARD"
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "SYS.DBMS_STATS", line 12210
ORA-06512: at line 2

I checked invalid objects DBMS_STATS and DBMS_STANDARD packages are
VALID. There are some invalid objects though. For example,
DBMS_SQLTUNE and DBA_HIST_* views. CATPROC component in
DBA_SERVER_REGISTRY is shown as invalid. This time I was able to fix
it with simple utlrp.sql.

Two time before we couldn't run utlrp.sql because DBMS_STANDARD was
actually invalid and I could see it! So first time we went to startup
migrate and catrelod.sql. Second time I just complied DBMS_STANDARD
manually and than was able to run utlrp.sql happily.

After the second issue I enabled auditing for all DDL using AUDIT ANY
couldn't see any DDL on sys objects in audit trail.

So how to catch what causes packages' invalidation and in the last
case what the heck I couldn't run DBMS_STATS if it was valid as well
as DBMS_STANDARD (which was in the error text)?

I can only add that another similar database in the same environment
showed similar behavior just couple days ago. It's gotta be something
similar and I believe caused by some user action. (This environment
setup in very un-secure way and I wouldn't be surprised that some
users/developers have actually access to DBA privileges but this is
another story).

Thanks in advance for any hints.

Best regards,
Alex Gorbachev