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: function based indexes

Niall Litchfield

2004-08-13

Replies:
On Thu, 12 Aug 2004 19:21:06 -0600, Tim Gorman <tim@(protected):

> The hoops to be jumped through to enable FBI are:
>
>  1. COMPATIBLE >= 8.1.0
>  2. OPTIMIZER_MODE <> rule
>  3. QUERY_REWRITE_ENABLED = true
>  4. QUERY REWRITE or GLOBAL QUERY REWRITE permission granted
>  5. CBO statistics gathered on the index

This is version specific and no longer true.

SYS 13-AUG-2004 09:59@(protected)
2 where privilege = 'QUERY REWRITE';

GRANTEE
------------------------------
DBA
SYS
XDB
MDSYS
WKSYS
CTXSYS

6 rows selected.

SYS 13-AUG-2004 10:00@(protected)
2 from v$parameter
3 where name in ('compatible','optimizer_mode','query_rewrite_enabled');

NAME                  VALUE
------------------------------ ------------------------------
compatible              9.2.0.0.0
optimizer_mode           CHOOSE
query_rewrite_enabled       FALSE

3 rows selected.

SYS 13-AUG-2004 10:00@(protected)
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied


Warning: You are no longer connected to ORACLE.
13-AUG-2004 10:01@(protected)
Enter password:
Connected.
TACACS 13-AUG-2004 10:01@(protected))
2 AS SELECT OBJECT_ID,OBJECT_NAME FROM ALL_OBJECTS;

Table created.

TACACS 13-AUG-2004 10:03@(protected)
2 ON EMP(UPPER(ENAME));

Index created.

TACACS 13-AUG-2004 10:03@(protected)
DBMS_STATS.GATHER_TABLE_STATS(USER,'EMP',CASCADE => TRUE);

PL/SQL procedure successfully completed.

TACACS 13-AUG-2004 10:04@(protected)
2 FOR SELECT ENO FROM EMP
3 WHERE UPPER(ENAME) = 'SEG$';

Explained.

TACACS 13-AUG-2004 10:04@INET>@(protected)

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-----

| Id | Operation             | Name        | Rows | Bytes | Cost (%
CPU)|

--------------------------------------------------------------------------------
-----

|  0 | SELECT STATEMENT        |            |   2 |   62 |   4

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
(25)|

|  1 | TABLE ACCESS BY INDEX ROWID| EMP         |   2 |   62 |   4
(25)|

|* 2 |  INDEX RANGE SCAN       | IDX_UPPER_ENAME |   2 |     |   2
(50)|

--------------------------------------------------------------------------------
-----


PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

 2 - access(UPPER("EMP"."ENAME")='SEG$')

13 rows selected.

TACACS 13-AUG-2004 10:05@(protected)>

And to show that TACACS is not a DBA -- I'm not showing you the dba accounts

TACACS 13-AUG-2004 10:08@(protected);
SELECT TABLE_NAME FROM DBA_TABLES
              *
ERROR at line 1:
ORA-00942: table or view does not exist

This is 9204 std edition. I suspect, but haven't tested that
compatible has to be set to 9.2 for this to work.


--
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com
----------------------------------------------------------------
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
-----------------------------------------------------------------