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: Calling a package over a database link

Jacques Kilchoer


I have successfully used your approach 2. (see example below). One problem is that your dynamic sql statement has to be a PL/SQL block if you are calling a procedure, but I wouldn't expect the error that you are getting. All I can do is tell you that it should work. In my example, P is a procedure created in the remote database.

SQL> select db_link from user_db_links ;

SQL> execute p@(protected)
Proc?dure PL/SQL termin?e avec succ?s.

SQL> declare
2   link_name constant varchar2 (128) := 'sdu3x10a.quest.com' ;
3 begin
4   execute immediate 'begin p@(protected) ;' ;
5 end ;
Proc?dure PL/SQL termin?e avec succ?s.



De la part de Lawie, Duncan

I have a piece of code which works fine if I hard code my remote database name, but which fails badly if I try to make the remote database a variable. Is there a variation on this concept which works, or do I need to find another approach altogether.


remote_database varchar2(100);
v_sql varchar2(1000);

remote_database := 'FRED';
v_sql := 'manage_remote_partitions.grant_tablespace_access@(protected)'' )';

-- 1
manage_remote_partitions.grant_tablespace_access@(protected)' );
-- 2
execute immediate v_sql;
manage_remote_partitions.grant_tablespace_access@(protected)' );


Version 1 works.

Version 2 gives me
ERROR at line 14:
ORA-06550: line 14, column 1:
PLS-00352: Unable to access another database 'REMOTE_DATABASE'
ORA-06550: line 14, column 1:
PLS-00201: identifier 'OGB_MANAGE_REMOTE_PARTITIONS@(protected)
ORA-06550: line 14, column 1:
PL/SQL: Statement ignored

Version 3 gives me
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at line 11