Links
Home
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
SQL Tunning

SQL Tunning

2004-08-02       - By J.Velikanovs@(protected)

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I would try:
1. to rewrite
WHERE last_update_date TRUNC(SYSDATE - 2) and TRUNC(SYSDATE - 1)
2. to get execution plan
3. to learn a litle bit more, how Oracle RDBMS work ;)
.
I definitely wouldn�t create function-based index for this purpose.
>Create inondex xxx on xxxx ( trunc(last_update_date)) tablespace yyyyyy;
.
Form first look I would suggest to Wes RTFM.
And URL below is good point to start:
http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10755/toc.htm
Best regards,



On 02.08.2004 13:19:13 oracle-l-bounce wrote:

>Build a functional index on the last_update_date column, it is probably
>ignoring it, doing a tablescan
>
>Create index xxx on xxxx ( trunc(last_update_date)) tablespace yyyyyy;
>
>
>George
>__ ____ ____ ____ ____ ____ ____ ____ ____ _____
>George Leonard
>Oracle Database Administrator
>New Dawn Technologies @ Wesbank
>E-mail:gleonard@(protected)
>
>You Have The Obligation to Inform One Honestly of the risk, And As a
Person
>You Are Committed to Educate Yourself to the Total Risk In Any Activity!
>Once Informed & Totally Aware of the Risk,
>Every Fool Has the Right to Kill or Injure Themselves as They See Fit!
>
>
>-- --Original Message-- --
>From: Wes Brooks [mailto:wes_brooks@(protected)]
>Sent: 02 August 2004 12:13 PM
>To: Oracle-L@(protected)
>Subject: SQL Tunning
>
>Hello expert,
>
>I have a table with 40 millions records and the last update date is
indexed.
>But when we use the
>following where clause, it takes forever to run the report.
>
>WHERE TRUNC(last_update_date) = TRUNC(SYSDATE - 1)
>
>How to improve the performance? Do I need to create a new index field on
>the table with TRUNC(last_update_date)?

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --