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

Change init.ora parameter value for another session

Anand Rao



I am trying to set skip_unusable_indexes = true for about 25 sessions before i perform a data load. all those 25 session are connected to Oracle. The version is 9206 and OS is AIX 5.3

here is the simple PL/SQL block,

 vs_sid v$session.sid%type;
 vs_serial v$session.serial#%type;
 cursor c1 is select s.sid,s.serial# from
 v$session s, v$process p where p.addr = s.paddr and s.username = 'SCOTT';
 for vsrec in c1 loop
 DBMS_SYSTEM.SET_BOOL_PARAM_IN_SESSION (vsrec.sid, vsrec.serial#, 'skip_unusable_indexes', TRUE)
 dbms_output.put_line('Successfully set the parameter TRUE for : '||vsrec.sid);
 end loop;

the block executes successfully but when i try to insert data, i get errors.

insert into emp_range values (5010,'ZZZ',1)
ERROR at line 1:
ORA-01502: index 'SCOTT.EMP_RANGE_PART_IDX ' or partition of such index is in unusable state

of course, if i do a 'alter session set skip_unusable_indexes = true' as user SCOTT, the insert works fine. i want to do it from SYS using the PL/SQL block.

It seems the parameter change hasn't taken effect. i checked V$PARAMETER and V$PARAMETER2 for SCOTT but this parameter is not listed there.

I tried changing timed_statistics for SCOTT and it works fine and reflected in V$PARAMETER.

Is it that we cannot change undocumented parameters? (like skip_unusable_indexes)


All I need to make a comedy is a park, a policeman and a pretty girl - Charlie Chaplin