Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> SQL Trace
Qs What is the Cause in particular (or in General) of Time Difference between "cpu" & "elapsed" Columns in the following Query ?
Qs Is there Any Scope for improvement in the following Query ?
Qs Is there any Best practise of working with Such Tables ?
NOTE -
1) (tran_date , tran_id , part_tran_srl_num) fields form the unique
index on the Table
2) Some Other Columns of the Table are also indexed
3) The Table is a Very Huge History Table to which only INSERT & SELECT
Operations happen
4) The Table is the Largest of ALL Tables in the Database With a Size of
about 100 GB
select del_flg, tran_type, tran_sub_type, part_tran_type,
gl_sub_head_code,
acid, TO_CHAR(value_date,'DD-MM-YYYY HH24:MI:SS'),
tran_amt||'!'||tran_crncy_code, tran_particular, entry_user_id,
pstd_user_id, vfd_user_id, TO_CHAR(entry_date,'DD-MM-YYYY
HH24:MI:SS'),
TO_CHAR(pstd_date,'DD-MM-YYYY HH24:MI:SS'),
TO_CHAR(vfd_date,'DD-MM-YYYY
HH24:MI:SS'), rpt_code, ref_num, instrmnt_type, TO_CHAR(instrmnt_date,
'DD-MM-YYYY HH24:MI:SS'), instrmnt_num, instrmnt_alpha, tran_rmks,
pstd_flg,
prnt_advc_ind, amt_reservation_ind,
reservation_amt||'!'||tran_crncy_code, restrict_modify_ind, lchg_user_id, TO_CHAR(lchg_time,'DD-MM-YYYY HH24:MI:SS'), rcre_user_id, TO_CHAR(rcre_time,'DD-MM-YYYYHH24:MI:SS'),
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 1
Optimizer goal: RULE
Parsing user id: 20 (TBAGEN)
Rows Row Source Operation
------- ---------------------------------------------------20000 TABLE ACCESS BY INDEX ROWID CUM_TRAN_DETAIL_TABLE 40000 INDEX UNIQUE SCAN (object id 10353)
Rows Execution Plan
------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: RULE
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Nov 20 2002 - 00:03:26 CST