URL Masking at DBASupport.com forums
http://www.dbasupport.com/forums/showthread.php?p=226665
Rather sinister, I think. I wonder what's behind it?
(Busy day for posts today, huh?)
.comment-link {margin-left:.6em;}
Please use http://oraclesponge.wordpress.com
http://www.dbasupport.com/forums/showthread.php?p=226665
It seems to me that all other arguments aside, when a lamp falling onto the outside of a space ship and causing "... five small indentations, with the largest about the size of a stick of gum, and one 6-inch (15-centimeter) to 7-inch (17-centimeter) long scratch" makes it onto the news, then it's time to be rethinking whether this is a goal worth pursuing. Doubtless at this very moment a ten-man committee is being formed to write a review of the "Procedures for Luminescent Output Device Restraint In Shuttle Proximity".
My plans to attend UKOUG in November, and maybe even submit a paper, have been thoroughly sunk. Following the collapse of our plans to get posted to Eastern Europe, the wife is scheduled for a deployment to Sicily from October to December and I'll be playing the part of Mr. Mom to our herd of offspring for three months.
Now that my Poweredge is up and running, I'm casting about for a New Shiny Thing that I absolutely must have.
A list of things we did this weekend
First, some boring details.
First, some boring details.
My new (used) Poweredge 6400 arrived today -- a new dawn of technical complexity, electrical power consumption and noise pollution has arrived in the Sponge household.
I'm sure that there must be a fair number of Oracle professionals who carry around in their heads a little score card of some of their best tuning results ever ... hopefully, at least, 'cos otherwise I'm a weirdo. Anyway, today I improved the performance of a set of decision support queries and achieved my best result ever - improving query speed by a factor of 180,000, from an original run time of one hour down to a new time of 0.02 seconds.
Decode(Row_Number() Over (Partition By Transaction_ID Order By 1),1,Qty,0)
Decode(Row_Number() Over (Partition By Transaction_ID, Item_Id, Fiscal_Month Order By 1),1,Qty,0)
drop table t1;
create table t1
(
txid ,
month ,
item_cd,
qty
)
as
select
floor(rownum/5),
floor(rownum/20),
floor(rownum/10),
floor(rownum/5)
from
dual
connect by
level < 100
/
explain plan for
select txid,
qty
from (
select txid,
item_cd,
month,
qty,
decode(row_number()
Over (Partition By txid Order By 1),1,qty,0)
qty_fix
from t1
) v
where item_cd = 0
/
select * from table(dbms_xplan.display)
/
explain plan for
select txid,
qty_fix
from (
select txid,
item_cd,
month,
qty,
decode(row_number()
Over (Partition By txid Order By 1),1,qty,0)
qty_fix
from t1
) v
where item_cd = 0
/
select * from table(dbms_xplan.display)
/
explain plan for
select txid,
qty_fix
from (
select txid,
item_cd,
month,
qty,
decode(row_number()
Over (Partition By txid,item_cd Order By 1),1,qty,0)
qty_fix
from t1
) v
where item_cd = 0
/
select * from table(dbms_xplan.display)
/
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 2273146475
----------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 9 | 252 | 3 (34)| 00:00:01 |
| 1 | VIEW | | 9 | 252 | 3 (34)| 00:00:01 |
| 2 | WINDOW SORT | | 9 | 351 | 3 (34)| 00:00:01 |
|* 3 | TABLE ACCESS FULL| T1 | 9 | 351 | 2 (0)| 00:00:01 |
----------------------------------------------------------------------------
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - filter("ITEM_CD"=0)