Is it possible in PLD to add sql query ?
Hi
In Order report in PLD , i need to add the total amount of down payment . it doesn't exists in Order , so i need to do a sql query to display this amount .
is it possible to add sql query in pld formula ?
thanks ,
regards
laurent
Hi,
You cannot add sql query in PLD.If you need SQL query use Crystal report or on the document add UDF and try by adding FMS and then selecting UDF in pld
Thanks,
Neetu
Similar Messages
-
Not to able add sql query in the item source
Hi,
I am getting this error when i am trying to add the sql query in the item source
ORA-20505: Error in DML: p_rowid=3206911131098131, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-01461: can bind a LONG value only for insert into a LONG column
SELECT
"UCL"
FROM
SELECT
TRUNC((
(SUM("EV FINAL" / 100) / COUNT("Object_Name") )
+
3 *
SQRT
(SUM("EV FINAL" / 100) * SUM("EV FINAL" / 100) ) / COUNT("Object_Name") -
(SUM("EV FINAL" / 100) / COUNT("Object_Name")) * (SUM("EV FINAL" / 100) / COUNT("Object_Name"))
),3) "UCL"
FROM
SELECT
Pro.Project_Name "Project Name",
POBJ.NAME "Object_Name",
TRUNC((
( ( NVL(AEV."Total Actual",0) - (NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ) )
DECODE(
(NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ),0,NULL,
(NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ) ) ) * 100),2)
|| '%' "EV_INITIAL",
TRUNC((
( (NVL(AEV."Total Actual",0) - ( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) )
DECODE(
( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) ,0,NULL,
( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) ) ) * 100),2) "EV FINAL",
TRUNC(BRV."RSV",2) "Revised SV"
FROM
PROJECTS PRO,
PROJECT_OBJECTS POBJ,
INITIAL_EFFORT IE,
SCHEDULE_VARIANCES SV,
INITIAL_EFFORT_VIEW IEV,
INCOMMING_DOC ID,
DESIGN D,
BUILD B,
TESTING T,
RELEASE R,
INCOMMING_DOC_REPLAN IDR,
DESIGN_REPLAN DR,
BUILD_REPLAN BR,
TESTING_REPLAN TR,
RELEASE_REPLAN RR,
ACTUAL_EFFORT_VIEW AEV,
REPLAN_INITIAL_EFFORT_VIEW RIEV,
BSV_RSV_VIEW BRV,
SELECT
distinct
pro.project_name "Project Name",
pobj.name "Object Name",
PRO.ID "PRO_ID",
POBJ.ID "POBJ_ID",
CASE
WHEN
ts.status in ('CLOSE','CLOSED','Closed') AND
tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review') THEN
TO_CHAR('100')
WHEN
upper(ts.status) like upper('ACCEPTED') AND
tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review') THEN
TO_CHAR('75')
WHEN
ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review') THEN
TO_CHAR('50')
WHEN
POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
emp,employee_project_pairs epp
WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review')
AND PRO.ID = :p2_projects ) THEN
TO_CHAR('100')
END "Incoming-Doc",
CASE
WHEN
ts.status in ('CLOSE','CLOSED','Closed') AND
tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
TO_CHAR('100')
WHEN
UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
TO_CHAR('75')
WHEN
ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
tsk.name in ('Design Review','Design - Review','TDD - Review')
THEN
TO_CHAR('50')
WHEN
POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
emp,employee_project_pairs epp
WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
and tsk.name in ('Design Review','Design - Review','TDD - Review')
AND PRO.ID = :p2_projects ) THEN
TO_CHAR('100')
END "Design",
CASE
WHEN
ts.status in ('CLOSE','CLOSED','Closed') AND
tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
TO_CHAR('100')
WHEN
UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
TO_CHAR('75')
WHEN
ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
TO_CHAR('50')
WHEN
POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
emp,employee_project_pairs epp
WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
and tsk.name in ('Build Review','Build - Review','Code - Review','Code')
AND PRO.ID = :p2_projects ) THEN
TO_CHAR('100')
END "Build",
CASE
WHEN
ts.status in ('CLOSE','CLOSED','Closed') AND
tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
TO_CHAR('100')
WHEN
UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
TO_CHAR('75')
WHEN
ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
TO_CHAR('50')
WHEN
POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
emp,employee_project_pairs epp
WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
and tsk.name in ('Test Result Review','Test Result - Review','UTR - Review')
AND PRO.ID = :p2_projects ) THEN
TO_CHAR('100')
END "Testing",
CASE
WHEN
ts.status in ('CLOSE','CLOSED','Closed') AND
tsk.name in ('Release-Review','Release - Verification',
'Migration & Release - Review') THEN
TO_CHAR('100')
WHEN
UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
tsk.name in ('Release-Review','Release - Verification',
'Migration & Release - Review') THEN
TO_CHAR('75')
WHEN
ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
tsk.name in ('Release-Review','Release - Verification','Migration & Release - Review') THEN
TO_CHAR('50')
WHEN
POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
emp,employee_project_pairs epp
WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
and tsk.name in ('Release-Review','Release - Verification','Migration & Release - Review' )
AND PRO.ID = :p2_projects ) THEN
TO_CHAR('100')
END "Release"
FROM
task_status ts,projects pro,project_objects pobj,task tsk
,employees emp,employee_project_pairs epp,REVIEW_ITEMS RI
WHERE
pobj.pro_id = pro.id
and pro.id = ts.pro_id
and pobj.id = ts.pro_obj_id
and tsk.id = ts.task_id
and emp.id = epp.emp_id
and epp.pro_id = pro.id
and ts.id = ri.ts_id
AND PRO.ID = :p2_projects
and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review','Design Review','Design - Review','TDD - Review',
'Build Review','Build - Review','Code - Review','Code',
'Test Result Review','Test Result - Review','UTR - Review',
'Release-Review','Release - Verification','Migration & Release - Review')
and ri.open_timestamp in
SELECT
distinct
max(ri.open_timestamp)
FROM
task_status ts,projects pro,project_objects pobj,task tsk
,employees emp,employee_project_pairs epp,REVIEW_ITEMS RI
WHERE
pobj.pro_id = pro.id
and pro.id = ts.pro_id
and pobj.id = ts.pro_obj_id
and tsk.id = ts.task_id
and emp.id = epp.emp_id
and epp.pro_id = pro.id
and ts.id = ri.ts_id
and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review','Design Review','Design - Review','TDD - Review',
'Build Review','Build - Review','Code - Review','Code',
'Test Result Review','Test Result - Review','UTR - Review',
'Release-Review','Release - Verification','Migration & Release - Review')
AND PRO.ID = :p2_projects
GROUP BY POBJ.NAME,TSK.NAME )
UNION
select
distinct
pro.project_name "Project Name",
pobj.name "Object Name",
PRO.ID "PRO_ID",
POBJ.ID "POBJ_ID",
case
when
tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review') THEN
TO_CHAR('100')
end "Incoming-Doc",
case
when
tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
TO_CHAR('100')
end "Design",
case
when
tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
TO_CHAR('100')
end "Build",
case
when
tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
TO_CHAR('100')
end "Testing",
case
when
tsk.name in ('Release-Review','Release - Verification',
'Migration & Release - Review') THEN
TO_CHAR('100')
end "Release"
FROM
projects pro
,project_objects pobj
,task tsk
,skip_phase sp
,employees emp
,employee_project_pairs epp
WHERE
pobj.pro_id = pro.id
and epp.pro_id = pro.id
AND sp.tas_id = tsk.id
and pobj.id = sp.OBJ_ID
and pro.id = sp.pro_id
and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
'Incoming Doc- Review','FDD - Review','Design Review','Design - Review',
'TDD - Review','Build Review','Build - Review','Code - Review','Code',
'Test Result Review','Test Result - Review','UTR - Review',
'Release-Review','Release - Verification','Migration & Release - Review')
and pro.id = :p2_projects ) X
WHERE
PRO.ID = POBJ.PRO_ID AND
PRO.ID = IE.PROJECT_NAME AND
UPPER(POBJ.NAME) = UPPER(IE.OBJECT_NAME) AND
PRO.ID = SV.PROJECT_NAME AND
UPPER(POBJ.NAME) = UPPER(SV.OBJECT_NAME) AND
PRO.ID = :p2_projects
AND PRO.ID = X."PRO_ID"
AND POBJ.ID = X."POBJ_ID"(+)
AND PRO.ID = IEV."PRO_ID"
AND POBJ.ID = IEV."POBJ_ID"
AND PRO.ID = ID."PRO_ID"
AND POBJ.ID = ID."POBJ_ID"
AND PRO.ID = D."PRO_ID"
AND POBJ.ID = D."POBJ_ID"
AND PRO.ID = B."PRO_ID"
AND POBJ.ID = B."POBJ_ID"
AND PRO.ID = T."PRO_ID"
AND POBJ.ID = T."POBJ_ID"
AND PRO.ID = R."PRO_ID"
AND POBJ.ID = R."POBJ_ID"
AND PRO.ID = IDR."PRO_ID"
AND POBJ.ID = IDR."POBJ_ID"
AND PRO.ID = DR."PRO_ID"
AND POBJ.ID = DR."POBJ_ID"
AND PRO.ID = BR."PRO_ID"
AND POBJ.ID = BR."POBJ_ID"
AND PRO.ID = TR."PRO_ID"
AND POBJ.ID = TR."POBJ_ID"
AND PRO.ID = RR."PRO_ID"
AND POBJ.ID = RR."POBJ_ID"
AND PRO.ID = AEV."PRO_ID"
AND POBJ.ID = AEV."POBJ_ID"
AND PRO.ID = RIEV."PRO_ID"
AND POBJ.ID = RIEV."POBJ_ID"
AND PRO.ID = BRV."PRO_ID"
AND POBJ.ID = BRV."POBJ_ID"
group by
PRO.PROJECT_NAME,
POBJ.NAME,
SV.status,
sv.comments,
ID."INCOMMING_DOC",D."DESIGN",B."BUILD",T."TESTING",R."RELEASE",
IDR."INCOMMING_DOC_REPLAN",DR."DESIGN_REPLAN",BR."BUILD_REPLAN",TR."TESTING_REPLAN",RR."RELEASE_REPLAN",
AEV."Total Actual",IEV."Total Plan",RIEV."Total Plan",
BRV."BSV",BRV."RSV",POBJ.Complexity,POBJ.PROGRAM_TYPE,pro.id,pobj.id,BRV."Status"
wht is the mistake i am doing here please suggets
thanks
SudhirCan you just setup an Excel/Essbase retrieval to get the data you need? You can't use SQL to query Essbase; here is a blog post that talks about it:
http://timtows-hyperion-blog.blogspot.com/2008/01/why-you-cant-use-sql-to-query-essbase.html
Since I made that post, I have found out that Essbase has now been integrated into the latest version of the Oracle BI Server and, technically, you could use SQL to query the data in Essbase via the Oracle BI Server if you have the right version.
Tim Tow
Applied OLAP, Inc -
Possible to further enhance this SQL query?
Hi Experts,
I have this query running with 23min in development server, but report took 1hr to execute in production server. Hoping to get idea of to improve on the performance.
I have attached necessary information as below. When i try to ftp my trace file, noticed that hit to 10MB of file size, and having error when running tkprof.
I opened the trace file, i saw these lines and printed until filesize up to 10mb.
my oracle db is
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
END OF STMT
PARSE #3:c=10000,e=3256,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=2,tim=1071649075322
EXEC #3:c=0,e=593,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=2,tim=1071649078646
WAIT #3: nam='SQL*Net message to client' ela= 3 driver id=1952673792 #bytes=1 p3=0 obj#=270 tim=1071649078817
WAIT #3: nam='db file sequential read' ela= 1240 file#=766 block#=547660 blocks=1 obj#=37006875 tim=1071649080664
WAIT #3: nam='gc cr grant 2-way' ela= 364 p1=747 p2=753505 p3=1 obj#=37006875 tim=1071649081460
WAIT #3: nam='db file sequential read' ela= 1168 file#=747 block#=753505 blocks=1 obj#=37006875 tim=1071649082750
WAIT #3: nam='gc cr grant 2-way' ela= 592 p1=767 p2=127180 p3=1 obj#=37006875 tim=1071649083720My query:
SELECT
msi.description "ST Model",
oel.ordered_item "Product Part Number",
hp.party_name "Bill To Cust Name",
shc.location"Ship To Cust Num",
oeh.order_number "Order Num",
oel.line_number || '.' || oel.shipment_number "Order Line Num",
ft.nls_territory "Ship To Country",
ccm.designapplication "Design Application",
ccm.formattedcapacity||'GB' "Capacity",
oel.attribute1 "Order Category",
oel.Subinventory "Subinventory",
to_char(wnd.confirm_date,'MM/DD/YYYY DY') "Shipment Date",
NVL(oel.shipped_quantity,0) "Net Units"
FROM
apps.oe_order_headers_all oeh,
apps.oe_order_lines_all oel,
apps.seaeng_ccfamilymodelinfo ccm,
HZ_CUST_SITE_USES_ALL SHC,
HZ_CUST_ACCT_SITES_ALL SHAC,
HZ_PARTY_SITES SHPS,
HZ_LOCATIONS SHLC,
apps.fnd_territories ft,
apps.hz_cust_accounts hca,
apps.hz_parties hp,
apps.mtl_system_items_b msi
,wsh_delivery_assignments wda
,wsh_new_deliveries wnd
,wsh_delivery_details wdd
WHERE
oeh.header_id = oel.header_id
AND oeh.SHIP_TO_ORG_ID = SHC.SITE_USE_ID
AND SHC.SITE_USE_CODE = 'SHIP_TO'
and hp.party_id = shps.party_id
AND SHC.CUST_ACCT_SITE_ID = SHAC.CUST_ACCT_SITE_ID
AND SHAC.PARTY_SITE_ID = SHPS.PARTY_SITE_ID
AND SHPS.LOCATION_ID = SHLC.LOCATION_ID
AND SHLC.COUNTRY = ft.territory_code
AND hca.cust_account_id = SHAC.cust_account_id
AND msi.description = ccm.stmodelnumber
AND oel.inventory_item_id = msi.inventory_item_id
and msi.organization_id = 65
and wda.delivery_id = wnd.delivery_id
AND wdd.delivery_detail_id = wda.delivery_detail_id
AND oel.line_id = wdd.source_line_id
AND wnd.status_code = 'CL'
AND ccm.designapplication IN ('PSG','ESG','NSG')
AND hca.sales_channel_code NOT IN ('RTL','AD-RTL','EU')
AND oel.attribute1 IN ('NB','NBEOL','NBSEA')
AND oel.subinventory IN ('KFGI','AFGI','SFGIF','FGIF')
AND trunc(WND.CONFIRM_DATE) >= TO_DATE('01-Jan-2009','DD-MON-YYYY')
AND trunc(WND.CONFIRM_DATE) < TO_DATE('31-JAN-2009','DD-MON-YYYY') + 1
AND oel.org_id = 189
--AND oel.header_id = 7233926
GROUP BY msi.description,
oel.ordered_item,
hp.party_name,
shc.LOCATION,
oeh.order_number,
oel.line_number || '.' || oel.shipment_number,
ft.nls_territory,
ccm.designapplication,
ccm.formattedcapacity || 'GB',
oel.attribute1,
oel.subinventory,
to_char(wnd.confirm_date,'MM/DD/YYYY DY'),
NVL (oel.shipped_quantity, 0)
HAVING COUNT (*) >= 1
SQL> show parameter user_dump_dest
NAME TYPE VALUE
user_dump_dest string /u33/oracle/product/10gRAC/adm
in/dap12_okdev14/udump
SQL>
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.2.0.4
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean FALSE
SQL>
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL>
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 4058013364
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 286 | 13161 (1)| 00:02:38 |
|* 1 | FILTER | | | | | |
| 2 | HASH GROUP BY | | 1 | 286 | 13161 (1)| 00:02:38 |
| 3 | NESTED LOOPS | | 1 | 286 | 13160 (1)| 00:02:38 |
| 4 | NESTED LOOPS | | 1 | 276 | 13159 (1)| 00:02:38 |
| 5 | NESTED LOOPS | | 1 | 250 | 13158 (1)| 00:02:38 |
| 6 | NESTED LOOPS | | 1 | 243 | 13157 (1)| 00:02:38 |
| 7 | NESTED LOOPS | | 1 | 235 | 13156 (1)| 00:02:38 |
| 8 | NESTED LOOPS | | 1 | 220 | 13155 (1)| 00:02:38 |
| 9 | NESTED LOOPS | | 1 | 204 | 13153 (1)| 00:02:38 |
| 10 | NESTED LOOPS | | 1 | 173 | 13151 (1)| 00:02:38 |
| 11 | NESTED LOOPS | | 1 | 155 | 13149 (1)| 00:02:38 |
| 12 | NESTED LOOPS | | 53 | 7420 | 13042 (1)| 00:02:37 |
| 13 | NESTED LOOPS | | 53 | 6784 | 12883 (1)| 00:02:35 |
| 14 | NESTED LOOPS | | 27 | 3132 | 12814 (1)| 00:02:34 |
| 15 | NESTED LOOPS | | 375 | 36000 | 12805 (1)| 00:02:34 |
| 16 | INLIST ITERATOR | | | | | |
|* 17 | TABLE ACCESS BY INDEX ROWID| OE_ORDER_LINES_ALL | 359 | 20822 | 12086 (1)| 00:02:26 |
|* 18 | INDEX RANGE SCAN | OE_ORDER_LINES_N21 | 45242 | | 115 (1)| 00:00:02 |
| 19 | TABLE ACCESS BY INDEX ROWID | MTL_SYSTEM_ITEMS_B | 1 | 38 | 2 (0)| 00:00:01 |
|* 20 | INDEX UNIQUE SCAN | MTL_SYSTEM_ITEMS_B_U1 | 1 | | 1 (0)| 00:00:01 |
|* 21 | TABLE ACCESS BY INDEX ROWID | SEAENG_CCFAMILYMODELINFO | 1 | 20 | 1 (0)| 00:00:01 |
|* 22 | INDEX UNIQUE SCAN | SEAENG_CCFAMILYMODELINFO_U1 | 1 | | 0 (0)| 00:00:01 |
| 23 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_DETAILS | 2 | 24 | 3 (0)| 00:00:01 |
|* 24 | INDEX RANGE SCAN | WSH_DELIVERY_DETAILS_N3 | 2 | | 2 (0)| 00:00:01 |
| 25 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_ASSIGNMENTS | 1 | 12 | 3 (0)| 00:00:01 |
|* 26 | INDEX RANGE SCAN | WSH_DELIVERY_ASSIGNMENTS_N3 | 1 | | 2 (0)| 00:00:01 |
|* 27 | TABLE ACCESS BY INDEX ROWID | WSH_NEW_DELIVERIES | 1 | 15 | 2 (0)| 00:00:01 |
|* 28 | INDEX UNIQUE SCAN | WSH_NEW_DELIVERIES_U1 | 1 | | 1 (0)| 00:00:01 |
| 29 | TABLE ACCESS BY INDEX ROWID | OE_ORDER_HEADERS_ALL | 1 | 18 | 2 (0)| 00:00:01 |
|* 30 | INDEX UNIQUE SCAN | OE_ORDER_HEADERS_U1 | 1 | | 1 (0)| 00:00:01 |
|* 31 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_SITE_USES_ALL | 1 | 31 | 2 (0)| 00:00:01 |
|* 32 | INDEX UNIQUE SCAN | HZ_CUST_SITE_USES_U1 | 1 | | 1 (0)| 00:00:01 |
| 33 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCT_SITES_ALL | 1 | 16 | 2 (0)| 00:00:01 |
|* 34 | INDEX UNIQUE SCAN | HZ_CUST_ACCT_SITES_U1 | 1 | | 1 (0)| 00:00:01 |
| 35 | TABLE ACCESS BY INDEX ROWID | HZ_PARTY_SITES | 1 | 15 | 1 (0)| 00:00:01 |
|* 36 | INDEX UNIQUE SCAN | HZ_PARTY_SITES_U1 | 1 | | 0 (0)| 00:00:01 |
| 37 | TABLE ACCESS BY INDEX ROWID | HZ_LOCATIONS | 1 | 8 | 1 (0)| 00:00:01 |
|* 38 | INDEX UNIQUE SCAN | HZ_LOCATIONS_U1 | 1 | | 0 (0)| 00:00:01 |
| 39 | TABLE ACCESS BY INDEX ROWID | FND_TERRITORIES | 1 | 7 | 1 (0)| 00:00:01 |
|* 40 | INDEX UNIQUE SCAN | FND_TERRITORIES_U1 | 1 | | 0 (0)| 00:00:01 |
| 41 | TABLE ACCESS BY INDEX ROWID | HZ_PARTIES | 1 | 26 | 1 (0)| 00:00:01 |
|* 42 | INDEX UNIQUE SCAN | HZ_PARTIES_U1 | 1 | | 0 (0)| 00:00:01 |
|* 43 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS | 1 | 10 | 1 (0)| 00:00:01 |
|* 44 | INDEX UNIQUE SCAN | HZ_CUST_ACCOUNTS_U1 | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(COUNT(*)>=1)
17 - filter("OEL"."ORG_ID"=189 AND ("OEL"."ATTRIBUTE1"='NB' OR "OEL"."ATTRIBUTE1"='NBEOL' OR
"OEL"."ATTRIBUTE1"='NBSEA'))
18 - access("OEL"."SUBINVENTORY"='AFGI' OR "OEL"."SUBINVENTORY"='FGIF' OR "OEL"."SUBINVENTORY"='KFGI' OR
"OEL"."SUBINVENTORY"='SFGIF')
20 - access("OEL"."INVENTORY_ITEM_ID"="MSI"."INVENTORY_ITEM_ID" AND "MSI"."ORGANIZATION_ID"=65)
21 - filter("CCM"."DESIGNAPPLICATION"='ESG' OR "CCM"."DESIGNAPPLICATION"='NSG' OR
"CCM"."DESIGNAPPLICATION"='PSG')
22 - access("MSI"."DESCRIPTION"="CCM"."STMODELNUMBER")
24 - access("OEL"."LINE_ID"="WDD"."SOURCE_LINE_ID")
26 - access("WDD"."DELIVERY_DETAIL_ID"="WDA"."DELIVERY_DETAIL_ID")
27 - filter("WND"."STATUS_CODE"='CL' AND TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))>=TO_DATE(' 2009-01-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))<TO_DATE(' 2009-02-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
28 - access("WDA"."DELIVERY_ID"="WND"."DELIVERY_ID")
30 - access("OEH"."HEADER_ID"="OEL"."HEADER_ID")
31 - filter("SHC"."SITE_USE_CODE"='SHIP_TO')
32 - access("OEH"."SHIP_TO_ORG_ID"="SHC"."SITE_USE_ID")
34 - access("SHC"."CUST_ACCT_SITE_ID"="SHAC"."CUST_ACCT_SITE_ID")
36 - access("SHAC"."PARTY_SITE_ID"="SHPS"."PARTY_SITE_ID")
38 - access("SHPS"."LOCATION_ID"="SHLC"."LOCATION_ID")
40 - access("SHLC"."COUNTRY"="FT"."TERRITORY_CODE")
42 - access("HP"."PARTY_ID"="SHPS"."PARTY_ID")
43 - filter("HCA"."SALES_CHANNEL_CODE"<>'RTL' AND "HCA"."SALES_CHANNEL_CODE"<>'AD-RTL' AND
"HCA"."SALES_CHANNEL_CODE"<>'EU')
44 - access("HCA"."CUST_ACCOUNT_ID"="SHAC"."CUST_ACCOUNT_ID")
81 rows selected.
Elapsed: 00:00:04.71
SQL>
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
Elapsed: 00:00:00.54
SQL>
SQL> -- put your statement here
SQL> SELECT
2 msi.description "ST Model",
3 oel.ordered_item "Product Part Number",
4 hp.party_name "Bill To Cust Name",
5 shc.location"Ship To Cust Num",
6 oeh.order_number "Order Num",
7 oel.line_number || '.' || oel.shipment_number "Order Line Num",
8 ft.nls_territory "Ship To Country",
9 ccm.designapplication "Design Application",
10 ccm.formattedcapacity||'GB' "Capacity",
11 oel.attribute1 "Order Category",
12 oel.Subinventory "Subinventory",
13 to_char(wnd.confirm_date,'MM/DD/YYYY DY') "Shipment Date",
14 NVL(oel.shipped_quantity,0) "Net Units"
15 FROM
16 apps.oe_order_headers_all oeh,
17 apps.oe_order_lines_all oel,
18 apps.seaeng_ccfamilymodelinfo ccm,
19 HZ_CUST_SITE_USES_ALL SHC,
20 HZ_CUST_ACCT_SITES_ALL SHAC,
21 HZ_PARTY_SITES SHPS,
22 HZ_LOCATIONS SHLC,
23 apps.fnd_territories ft,
24 apps.hz_cust_accounts hca,
25 apps.hz_parties hp,
26 --
27 apps.mtl_system_items_b msi
28 --
29 ,wsh_delivery_assignments wda
30 ,wsh_new_deliveries wnd
31 ,wsh_delivery_details wdd
32 WHERE
33 oeh.header_id = oel.header_id
34 --
35 AND oeh.SHIP_TO_ORG_ID = SHC.SITE_USE_ID
36 AND SHC.SITE_USE_CODE = 'SHIP_TO'
37 and hp.party_id = shps.party_id
38 AND SHC.CUST_ACCT_SITE_ID = SHAC.CUST_ACCT_SITE_ID
39 AND SHAC.PARTY_SITE_ID = SHPS.PARTY_SITE_ID
40 AND SHPS.LOCATION_ID = SHLC.LOCATION_ID
41 AND SHLC.COUNTRY = ft.territory_code
42 AND hca.cust_account_id = SHAC.cust_account_id
43 --
44 AND msi.description = ccm.stmodelnumber
45 --
46 AND oel.inventory_item_id = msi.inventory_item_id
47 and msi.organization_id = 65
48 --
49 and wda.delivery_id = wnd.delivery_id
50 AND wdd.delivery_detail_id = wda.delivery_detail_id
51 AND oel.line_id = wdd.source_line_id
52 AND wnd.status_code = 'CL'
53 AND ccm.designapplication IN ('PSG','ESG','NSG')
54 AND hca.sales_channel_code NOT IN ('RTL','AD-RTL','EU')
55 AND oel.attribute1 IN ('NB','NBEOL','NBSEA')
56 AND oel.subinventory IN ('KFGI','AFGI','SFGIF','FGIF')
57 AND trunc(WND.CONFIRM_DATE) >= TO_DATE('01-Jan-2009','DD-MON-YYYY')
58 AND trunc(WND.CONFIRM_DATE) < TO_DATE('31-JAN-2009','DD-MON-YYYY') + 1
59 AND oel.org_id = 189
60 --AND oel.header_id = 7233926
61 GROUP BY msi.description,
62 oel.ordered_item,
63 hp.party_name,
64 shc.LOCATION,
65 oeh.order_number,
66 oel.line_number || '.' || oel.shipment_number,
67 ft.nls_territory,
68 ccm.designapplication,
69 ccm.formattedcapacity || 'GB',
70 oel.attribute1,
71 oel.subinventory,
72 to_char(wnd.confirm_date,'MM/DD/YYYY DY'),
73 NVL (oel.shipped_quantity, 0)
74 HAVING COUNT (*) >= 1
75 /
592 rows selected.
Elapsed: 00:39:37.34
Execution Plan
Plan hash value: 4058013364
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 286 | 13161 (1)| 00:02:38 |
|* 1 | FILTER | | | | | |
| 2 | HASH GROUP BY | | 1 | 286 | 13161 (1)| 00:02:38 |
| 3 | NESTED LOOPS | | 1 | 286 | 13160 (1)| 00:02:38 |
| 4 | NESTED LOOPS | | 1 | 276 | 13159 (1)| 00:02:38 |
| 5 | NESTED LOOPS | | 1 | 250 | 13158 (1)| 00:02:38 |
| 6 | NESTED LOOPS | | 1 | 243 | 13157 (1)| 00:02:38 |
| 7 | NESTED LOOPS | | 1 | 235 | 13156 (1)| 00:02:38 |
| 8 | NESTED LOOPS | | 1 | 220 | 13155 (1)| 00:02:38 |
| 9 | NESTED LOOPS | | 1 | 204 | 13153 (1)| 00:02:38 |
| 10 | NESTED LOOPS | | 1 | 173 | 13151 (1)| 00:02:38 |
| 11 | NESTED LOOPS | | 1 | 155 | 13149 (1)| 00:02:38 |
| 12 | NESTED LOOPS | | 53 | 7420 | 13042 (1)| 00:02:37 |
| 13 | NESTED LOOPS | | 53 | 6784 | 12883 (1)| 00:02:35 |
| 14 | NESTED LOOPS | | 27 | 3132 | 12814 (1)| 00:02:34 |
| 15 | NESTED LOOPS | | 375 | 36000 | 12805 (1)| 00:02:34 |
| 16 | INLIST ITERATOR | | | | | |
|* 17 | TABLE ACCESS BY INDEX ROWID| OE_ORDER_LINES_ALL | 359 | 20822 | 12086 (1)| 00:02:26 |
|* 18 | INDEX RANGE SCAN | OE_ORDER_LINES_N21 | 45242 | | 115 (1)| 00:00:02 |
| 19 | TABLE ACCESS BY INDEX ROWID | MTL_SYSTEM_ITEMS_B | 1 | 38 | 2 (0)| 00:00:01 |
|* 20 | INDEX UNIQUE SCAN | MTL_SYSTEM_ITEMS_B_U1 | 1 | | 1 (0)| 00:00:01 |
|* 21 | TABLE ACCESS BY INDEX ROWID | SEAENG_CCFAMILYMODELINFO | 1 | 20 | 1 (0)| 00:00:01 |
|* 22 | INDEX UNIQUE SCAN | SEAENG_CCFAMILYMODELINFO_U1 | 1 | | 0 (0)| 00:00:01 |
| 23 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_DETAILS | 2 | 24 | 3 (0)| 00:00:01 |
|* 24 | INDEX RANGE SCAN | WSH_DELIVERY_DETAILS_N3 | 2 | | 2 (0)| 00:00:01 |
| 25 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_ASSIGNMENTS | 1 | 12 | 3 (0)| 00:00:01 |
|* 26 | INDEX RANGE SCAN | WSH_DELIVERY_ASSIGNMENTS_N3 | 1 | | 2 (0)| 00:00:01 |
|* 27 | TABLE ACCESS BY INDEX ROWID | WSH_NEW_DELIVERIES | 1 | 15 | 2 (0)| 00:00:01 |
|* 28 | INDEX UNIQUE SCAN | WSH_NEW_DELIVERIES_U1 | 1 | | 1 (0)| 00:00:01 |
| 29 | TABLE ACCESS BY INDEX ROWID | OE_ORDER_HEADERS_ALL | 1 | 18 | 2 (0)| 00:00:01 |
|* 30 | INDEX UNIQUE SCAN | OE_ORDER_HEADERS_U1 | 1 | | 1 (0)| 00:00:01 |
|* 31 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_SITE_USES_ALL | 1 | 31 | 2 (0)| 00:00:01 |
|* 32 | INDEX UNIQUE SCAN | HZ_CUST_SITE_USES_U1 | 1 | | 1 (0)| 00:00:01 |
| 33 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCT_SITES_ALL | 1 | 16 | 2 (0)| 00:00:01 |
|* 34 | INDEX UNIQUE SCAN | HZ_CUST_ACCT_SITES_U1 | 1 | | 1 (0)| 00:00:01 |
| 35 | TABLE ACCESS BY INDEX ROWID | HZ_PARTY_SITES | 1 | 15 | 1 (0)| 00:00:01 |
|* 36 | INDEX UNIQUE SCAN | HZ_PARTY_SITES_U1 | 1 | | 0 (0)| 00:00:01 |
| 37 | TABLE ACCESS BY INDEX ROWID | HZ_LOCATIONS | 1 | 8 | 1 (0)| 00:00:01 |
|* 38 | INDEX UNIQUE SCAN | HZ_LOCATIONS_U1 | 1 | | 0 (0)| 00:00:01 |
| 39 | TABLE ACCESS BY INDEX ROWID | FND_TERRITORIES | 1 | 7 | 1 (0)| 00:00:01 |
|* 40 | INDEX UNIQUE SCAN | FND_TERRITORIES_U1 | 1 | | 0 (0)| 00:00:01 |
| 41 | TABLE ACCESS BY INDEX ROWID | HZ_PARTIES | 1 | 26 | 1 (0)| 00:00:01 |
|* 42 | INDEX UNIQUE SCAN | HZ_PARTIES_U1 | 1 | | 0 (0)| 00:00:01 |
|* 43 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS | 1 | 10 | 1 (0)| 00:00:01 |
|* 44 | INDEX UNIQUE SCAN | HZ_CUST_ACCOUNTS_U1 | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(COUNT(*)>=1)
17 - filter("OEL"."ORG_ID"=189 AND ("OEL"."ATTRIBUTE1"='NB' OR "OEL"."ATTRIBUTE1"='NBEOL' OR
"OEL"."ATTRIBUTE1"='NBSEA'))
18 - access("OEL"."SUBINVENTORY"='AFGI' OR "OEL"."SUBINVENTORY"='FGIF' OR "OEL"."SUBINVENTORY"='KFGI' OR
"OEL"."SUBINVENTORY"='SFGIF')
20 - access("OEL"."INVENTORY_ITEM_ID"="MSI"."INVENTORY_ITEM_ID" AND "MSI"."ORGANIZATION_ID"=65)
21 - filter("CCM"."DESIGNAPPLICATION"='ESG' OR "CCM"."DESIGNAPPLICATION"='NSG' OR
"CCM"."DESIGNAPPLICATION"='PSG')
22 - access("MSI"."DESCRIPTION"="CCM"."STMODELNUMBER")
24 - access("OEL"."LINE_ID"="WDD"."SOURCE_LINE_ID")
26 - access("WDD"."DELIVERY_DETAIL_ID"="WDA"."DELIVERY_DETAIL_ID")
27 - filter("WND"."STATUS_CODE"='CL' AND TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))>=TO_DATE(' 2009-01-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))<TO_DATE(' 2009-02-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
28 - access("WDA"."DELIVERY_ID"="WND"."DELIVERY_ID")
30 - access("OEH"."HEADER_ID"="OEL"."HEADER_ID")
31 - filter("SHC"."SITE_USE_CODE"='SHIP_TO')
32 - access("OEH"."SHIP_TO_ORG_ID"="SHC"."SITE_USE_ID")
34 - access("SHC"."CUST_ACCT_SITE_ID"="SHAC"."CUST_ACCT_SITE_ID")
36 - access("SHAC"."PARTY_SITE_ID"="SHPS"."PARTY_SITE_ID")
38 - access("SHPS"."LOCATION_ID"="SHLC"."LOCATION_ID")
40 - access("SHLC"."COUNTRY"="FT"."TERRITORY_CODE")
42 - access("HP"."PARTY_ID"="SHPS"."PARTY_ID")
43 - filter("HCA"."SALES_CHANNEL_CODE"<>'RTL' AND "HCA"."SALES_CHANNEL_CODE"<>'AD-RTL' AND
"HCA"."SALES_CHANNEL_CODE"<>'EU')
44 - access("HCA"."CUST_ACCOUNT_ID"="SHAC"."CUST_ACCOUNT_ID")
Statistics
8 recursive calls
0 db block gets
1915554 consistent gets
467079 physical reads
232 redo size
51846 bytes sent via SQL*Net to client
971 bytes received via SQL*Net from client
7 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
592 rows processedEdited by: Lygine on Jun 11, 2010 12:38 AMSQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID 0q3dmq9s9f5qh, child number 0
SELECT /*+ gather_plan_statistics */ msi.description "ST Model", oel.ordered_item "Product Part Number", hp.party_name "Bill To Cust Name",
shc.location"Ship To Cust Num", oeh.order_number "Order Num", oel.line_number || '.' || oel.shipment_number "Order Line Num", ft.nls_territory "Ship To
Country", ccm.designapplication "Design Application", ccm.formattedcapacity||'GB' "Capacity", oel.attribute1 "Order Category", oel.Subinventory
"Subinventory", to_char(wnd.confirm_date,'MM/DD/YYYY DY') "Shipment Date", NVL(oel.shipped_quantity,0) "Net Units" FROM apps.oe_order_headers_all oeh,
apps.oe_order_lines_all oel, apps.seaeng_ccfamilymodelinfo ccm, HZ_CUST_SITE_USES_ALL SHC, HZ_CUST_ACCT_SITES_ALL SHAC, HZ_PARTY_SITES
SHPS, HZ_LOCATIONS SHLC, apps.fnd_territories ft, apps.hz_cust_accounts hca, apps.hz_parties hp,
-- apps.mtl_system_items_b msi -- ,wsh_delivery_assignments wda ,
Plan hash value: 4058013364
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | OMem | 1Mem | Used-Mem |
|* 1 | FILTER | | 1 | | 592 |00:13:52.78 | 1892K| 470K| | | |
| 2 | HASH GROUP BY | | 1 | 1 | 592 |00:13:52.78 | 1892K| 470K| 723K| 723K| 1233K (0)|
| 3 | NESTED LOOPS | | 1 | 1 | 749 |00:25:10.44 | 1892K| 470K| | | |
| 4 | NESTED LOOPS | | 1 | 1 | 751 |00:25:10.13 | 1890K| 470K| | | |
| 5 | NESTED LOOPS | | 1 | 1 | 751 |00:25:09.49 | 1889K| 470K| | | |
| 6 | NESTED LOOPS | | 1 | 1 | 751 |00:25:09.48 | 1888K| 470K| | | |
| 7 | NESTED LOOPS | | 1 | 1 | 751 |00:25:08.74 | 1886K| 469K| | | |
| 8 | NESTED LOOPS | | 1 | 1 | 751 |00:25:08.01 | 1885K| 469K| | | |
| 9 | NESTED LOOPS | | 1 | 1 | 751 |00:25:07.13 | 1882K| 469K| | | |
| 10 | NESTED LOOPS | | 1 | 1 | 751 |00:25:05.93 | 1880K| 469K| | | |
| 11 | NESTED LOOPS | | 1 | 1 | 751 |00:25:02.93 | 1878K| 469K| | | |
| 12 | NESTED LOOPS | | 1 | 53 | 101K|00:21:18.75 | 1612K| 424K| | | |
| 13 | NESTED LOOPS | | 1 | 53 | 101K|00:17:15.59 | 1305K| 355K| | | |
| 14 | NESTED LOOPS | | 1 | 27 | 86268 |00:10:21.90 | 1043K| 279K| | | |
| 15 | NESTED LOOPS | | 1 | 375 | 86762 |00:10:18.86 | 860K| 279K| | | |
| 16 | INLIST ITERATOR | | 1 | | 86762 |00:10:10.00 | 600K| 277K| | | |
|* 17 | TABLE ACCESS BY INDEX ROWID| OE_ORDER_LINES_ALL | 4 | 359 | 86762 |00:10:09.94 | 600K| 277K| | | |
|* 18 | INDEX RANGE SCAN | OE_ORDER_LINES_N21 | 4 | 45242 | 587K|00:00:03.04 | 1387 | 1231 | | | |
| 19 | TABLE ACCESS BY INDEX ROWID | MTL_SYSTEM_ITEMS_B | 86762 | 1 | 86762 |00:00:08.64 | 260K| 1418 | | | |
|* 20 | INDEX UNIQUE SCAN | MTL_SYSTEM_ITEMS_B_U1 | 86762 | 1 | 86762 |00:00:05.02 | 173K| 609 | | | |
|* 21 | TABLE ACCESS BY INDEX ROWID | SEAENG_CCFAMILYMODELINFO | 86762 | 1 | 86268 |00:00:02.84 | 182K| 95 | | | |
|* 22 | INDEX UNIQUE SCAN | SEAENG_CCFAMILYMODELINFO_U1 | 86762 | 1 | 86604 |00:00:01.04 | 86790 | 9 | | | |
| 23 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_DETAILS | 86268 | 2 | 101K|00:06:53.45 | 262K| 76591 | | | |
|* 24 | INDEX RANGE SCAN | WSH_DELIVERY_DETAILS_N3 | 86268 | 2 | 101K|00:01:17.90 | 172K| 21055 | | | |
| 25 | TABLE ACCESS BY INDEX ROWID | WSH_DELIVERY_ASSIGNMENTS | 101K| 1 | 101K|00:04:02.87 | 306K| 68499 | | | |
|* 26 | INDEX RANGE SCAN | WSH_DELIVERY_ASSIGNMENTS_N3 | 101K| 1 | 101K|00:01:42.88 | 204K| 27799 | | | |
|* 27 | TABLE ACCESS BY INDEX ROWID | WSH_NEW_DELIVERIES | 101K| 1 | 751 |00:03:44.19 | 266K| 44828 | | | |
|* 28 | INDEX UNIQUE SCAN | WSH_NEW_DELIVERIES_U1 | 101K| 1 | 87104 |00:00:43.17 | 174K| 13273 | | | |
| 29 | TABLE ACCESS BY INDEX ROWID | OE_ORDER_HEADERS_ALL | 751 | 1 | 751 |00:00:03.00 | 2255 | 452 | | | |
|* 30 | INDEX UNIQUE SCAN | OE_ORDER_HEADERS_U1 | 751 | 1 | 751 |00:00:01.22 | 1504 | 207 | | | |
|* 31 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_SITE_USES_ALL | 751 | 1 | 751 |00:00:01.20 | 2255 | 178 | | | |
|* 32 | INDEX UNIQUE SCAN | HZ_CUST_SITE_USES_U1 | 751 | 1 | 751 |00:00:00.59 | 1504 | 81 | | | |
| 33 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCT_SITES_ALL | 751 | 1 | 751 |00:00:00.88 | 2255 | 156 | | | |
|* 34 | INDEX UNIQUE SCAN | HZ_CUST_ACCT_SITES_U1 | 751 | 1 | 751 |00:00:00.41 | 1504 | 76 | | | |
| 35 | TABLE ACCESS BY INDEX ROWID | HZ_PARTY_SITES | 751 | 1 | 751 |00:00:00.73 | 1504 | 149 | | | |
|* 36 | INDEX UNIQUE SCAN | HZ_PARTY_SITES_U1 | 751 | 1 | 751 |00:00:00.33 | 753 | 74 | | | |
| 37 | TABLE ACCESS BY INDEX ROWID | HZ_LOCATIONS | 751 | 1 | 751 |00:00:00.73 | 1504 | 137 | | | |
|* 38 | INDEX UNIQUE SCAN | HZ_LOCATIONS_U1 | 751 | 1 | 751 |00:00:00.17 | 753 | 47 | | | |
| 39 | TABLE ACCESS BY INDEX ROWID | FND_TERRITORIES | 751 | 1 | 751 |00:00:00.01 | 753 | 1 | | | |
|* 40 | INDEX UNIQUE SCAN | FND_TERRITORIES_U1 | 751 | 1 | 751 |00:00:00.01 | 2 | 1 | | | |
| 41 | TABLE ACCESS BY INDEX ROWID | HZ_PARTIES | 751 | 1 | 751 |00:00:00.64 | 1504 | 98 | | | |
|* 42 | INDEX UNIQUE SCAN | HZ_PARTIES_U1 | 751 | 1 | 751 |00:00:00.26 | 753 | 44 | | | |
|* 43 | TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS | 751 | 1 | 749 |00:00:00.31 | 1504 | 69 | | | |
|* 44 | INDEX UNIQUE SCAN | HZ_CUST_ACCOUNTS_U1 | 751 | 1 | 751 |00:00:00.05 | 753 | 16 | | | |
Predicate Information (identified by operation id):
1 - filter(COUNT(*)>=1)
17 - filter(("OEL"."ORG_ID"=189 AND INTERNAL_FUNCTION("OEL"."ATTRIBUTE1")))
18 - access(("OEL"."SUBINVENTORY"='AFGI' OR "OEL"."SUBINVENTORY"='FGIF' OR "OEL"."SUBINVENTORY"='KFGI' OR "OEL"."SUBINVENTORY"='SFGIF'))
20 - access("OEL"."INVENTORY_ITEM_ID"="MSI"."INVENTORY_ITEM_ID" AND "MSI"."ORGANIZATION_ID"=65)
21 - filter(("CCM"."DESIGNAPPLICATION"='ESG' OR "CCM"."DESIGNAPPLICATION"='NSG' OR "CCM"."DESIGNAPPLICATION"='PSG'))
22 - access("MSI"."DESCRIPTION"="CCM"."STMODELNUMBER")
24 - access("OEL"."LINE_ID"="WDD"."SOURCE_LINE_ID")
26 - access("WDD"."DELIVERY_DETAIL_ID"="WDA"."DELIVERY_DETAIL_ID")
27 - filter(("WND"."STATUS_CODE"='CL' AND TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))>=TO_DATE(' 2009-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
TRUNC(INTERNAL_FUNCTION("WND"."CONFIRM_DATE"))<TO_DATE(' 2009-02-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
28 - access("WDA"."DELIVERY_ID"="WND"."DELIVERY_ID")
30 - access("OEH"."HEADER_ID"="OEL"."HEADER_ID")
31 - filter("SHC"."SITE_USE_CODE"='SHIP_TO')
32 - access("OEH"."SHIP_TO_ORG_ID"="SHC"."SITE_USE_ID")
34 - access("SHC"."CUST_ACCT_SITE_ID"="SHAC"."CUST_ACCT_SITE_ID")
36 - access("SHAC"."PARTY_SITE_ID"="SHPS"."PARTY_SITE_ID")
38 - access("SHPS"."LOCATION_ID"="SHLC"."LOCATION_ID")
40 - access("SHLC"."COUNTRY"="FT"."TERRITORY_CODE")
42 - access("HP"."PARTY_ID"="SHPS"."PARTY_ID")
43 - filter(("HCA"."SALES_CHANNEL_CODE"<>'RTL' AND "HCA"."SALES_CHANNEL_CODE"<>'AD-RTL' AND "HCA"."SALES_CHANNEL_CODE"<>'EU'))
44 - access("HCA"."CUST_ACCOUNT_ID"="SHAC"."CUST_ACCOUNT_ID")
86 rows selected. -
Possible to execute custom SQL query?
Is it possible to execute a custom SQL query and get back a collection of
objects with Kodo JDO? Query expression languages like JDOQL are all very
well (I actually think JDOQL is pretty messy), but sometimes when you've
got a complex query (and you know you're using a RDBMS) it is best
accomplished in a SQL statement. I see Kodo has extended JDOQL, which is
good, but developing custom extensions seems to be limited to implementing
kodo.jdbc.query.JDBCFilterListener where you can customise the where
clause. What I want to be able to do is to specify the entire SQL string.
I am looking into using Kodo JDO for my organisation, and being able to
use custom SQL is something i would expect (and something we can do with
our current O/R mapping product (TopLink)).
Regards,
AlexPatrick Linskey wrote:
On Tue, 30 Sep 2003 10:57:13 +0000, Alex wrote:
being able to use custom SQL is something i would expect
We absolutely agree. Take a look at the samples/customSQL example in the
Kodo distribution.
-Patrick
Patrick Linskey
SolarMetric Inc.Hi Patrick,
I have downloaded kodo-jdo-3.0.0RC1 for windows for evaluation, but there
is no samples/customSQL directory.
Alex. -
Adding update and delete buttons to a Report from SQL Query
There is an option when creating a QBE to add update and delete
links which i find quite useful, but this option doesn't seem to
be possible on a Report from SQL Query. Do i need to do
something special to add them? is the option located in a
different place?Hi,
You can only add Update ,Delete in QBE Reports,
there is no option in Portal which can be used to
have these buttons in the Reports from Query Wizard or
Report from SQL Query.
Thanks
Vineet -
Changing the JCA SQL query in runtime
Hi,
Is it possible to change the predefined sql query in JCA during runtime in OSB.
Regards,
AbdulAbdul,
It won't be possible as structure of request and response is tightly coupled with the SQL and any update in SQL may also require corresponding update in XSD.
Regards,
Anuj -
SQL- Query that return only one record
Hello,
is it possible to execute a pure SQL-Query which returns only one row although multiple rows are found.
It is no problem in PL/SQL, but I have no idea if the same is also possible in SQL.
thanks in advance
MichaelWhy not? There are 4 records in this table, but only selected one.
SQL> with t
2 as
3 (
4 select '#%$@#$@$@##$' Addr from dual
5 union all
6 select '18 Jalan Scott' from dual
7 union all
8 select '18 Lemana St' from dual
9 union all
10 select '32-penstation' from dual
11 union all
12 select '99999999999' from dual
13 )
14 select addr
15 from t
16 where rownum =1
17 /
ADDR
#%$@#$@$@##$
SQL>Cheers
Sarma. -
HI Guys,
Can some give (or atleast guide me) how can i get the bpel execution time activity wise. such as
that Transformation took 5 sec and assign took 2 sec and invocation to partner links took 30 sec and complete bpel tool 40 sec etc in a single instance.
Is it possible to have a generic sql query to provide such response.
Thanks in AdvanceThanks vladodias.
Your reply did help me in checking the details.
However, i see that service and references section on dashboard provides the combined information for all instances.
What if i need to check the similar details for a single instance...
e.g. in my bpel i am invoking partnerlink1 50 times and partnerlink2 25 times in a single call...
How can i calculate or view the average time for partnerlink1 and partnerlink2 to respond for that single instance
Regards -
I want to add image in column is it possible then how to add image in data base what data type we need to give we required any casting please show me one example
jitendraHi again,
Several points that can help more:
1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE,
Check those links:
To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
http://research.microsoft.com/apps/pubs/default.aspx?id=64525
FILESTREAM feature of SQL Server 2008
http://msdn.microsoft.com/library/hh461480
FileTables feature of SQL Server 2012
http://technet.microsoft.com/en-us/library/ff929144.aspx
Compare Options for Storing Blobs (SQL Server)
http://technet.microsoft.com/en-us/library/hh403405.aspx
Binary Large Object (Blob) Data (SQL Server)
http://technet.microsoft.com/en-us/library/bb895234.aspx
Managing BLOBs using SQL Server FileStream via EF and WCF streaming
* Very nice tutorial!
http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
[Personal Site] [Blog] [Facebook] -
Is it possible to edit the QaaWS SQL?
We are trying to sort the results returned from QaaWS. Is it possible to edit the SQL query and add an "order by"?
No it's not possible to change the values in the lift and stamp tool.
However I don;t think you have to. Are you sure when you export thr image for sending to Costco you are exporting with the correct size? Remember the crop tool only gives you the aspect ratio of the image. The size is set when you export it. -
Possibility to show opening balance of a GL account through SQL query?
Hi experts,
Is it possible to run an SQL query in SBO that shows the opening balance
of a GL account based on a date entered by the user?
This is similar to how the general ledger shows the opening balance of a GL account based on the posting dates entered.
Thanks for your ideas.Hi Gordon,
Thanks for that idea.
I am thinking of the following:
1. Create a virtual table (#TEST) from a SELECT statement that gets all journal entries for the specified GL account BEFORE the specified posting date.
2. Perform a SELECT statement that sums the debit and credit from (#TEST).
This should show the opening balance of the GL account right?
Regards,
Eric
Edited by: eceguerra on May 18, 2011 7:02 AM
Edited by: eceguerra on May 18, 2011 7:02 AM -
Is it possible for Apple to add "key" to the view options selection?
Is it possible for Apple to add "key" to the view options selection?
DJ1970, Unfortunately no. iTunes does not have the key in the database.
People who want to know the key of a song can use (unless they already have perfect pitch!) key detection software such as Mixmeister.
Once you know the key, iTunes does not even have a field to store it, although you could stick it into Comments or some other unused text field such as Grouping. These fields are indeed viewable in iTunes. -
Is it possible to move the "Add.." button at contacts on top of the custom label list? I add a lot of custom lables and tired of scrolling down every time.
No way to move any buttons in iOS devices.
-
I would like to upgrade my OS to the latest version. I now have 10.6.8 and my machine has 1Gb of memory. Need 2Gb for the new OS. Is is possible (and practical) to add memory to a machine that's five years old?
You can put two 2gb RAM sticks in your model 2,1 but it can only use 3,3gb. This is a hardware limitation and cannot be changed.
http://en.wikipedia.org/wiki/3_GB_barrier
http://www.everymac.com/systems/apple/macbook_pro/faq/macbook-pro-core-2-duo-3-g b-memory-limitation-details.html
OWC tests have found that there is a slight speed increase with having two 2gb sticks in rather than one 1gb and one 2gb. Your model is in the gray lines at the bottom of the graph. http://eshop.macsales.com/shop/Memory_Benchmark/Apple_MacBook/
You can buy Lion for $29 from the App Store witht a model 2,1 MacBook. Lion will require at least 2gb of RAM but really needs 4gb to run smoothly. As for programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
Before Mac switched to Intel processors they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.
These are good online stores for Mac compatible RAM
OWC http://eshop.macsales.com/shop/memory/MacBook/DDR2/ - They offer Mac tested RAM at very good prices.
Crucial Memory http://www.crucial.com/ - good place to buy RAM from all over the world. They also have an excellent memory selector that allows you to choose memory based on your computer's model
Data Memory Systems http://www.datamemorysystems.com/apple-memory.asp - another good, cheap place to buying RAM if you live in the U.S.
Here are instructions on replacing RAM in a MacBook with a removable battery. http://homeoffice.consumerelectronicsnet.com/articles/viewarticle.jsp?id=44404
If you don’t have the tools to open up the MacBook OWC has a set for $5
http://eshop.macsales.com/item/OWC/TOOLKITMHD/ -
How to add a parameter to sql query in report
Hi
How to add a parameter to sql query in report.
Parameter is from Visual studio
example:
select * from tab1 where dl=parameter???
I have VS 2008 prof CR XI R2, mysqlHello,
If you have this API available then you can modify the record selection formulae in code to add filtering:
string recordSelectionFormula = "{T_INV_RPT_ADDR.IND_PROMUS} = {?P_PROMUS?} AND {T_INV_RPT_POINT.INVOICE_DATE} = DATE(2008, 05, 31) AND {T_INV_RPT_POINT.CHECKOUT_DATE} = date(2008, 04,29)";
CrystalDecisions.CrystalReports.Engine.ReportDocument.RecordSelectionFormula = recordSelectionFormula;
You have to format and follow the rules as in the Designer so not too much work to get this to work.
CR for .NET may not have the ability so you will need to upgrade to a Developer version of Crystal Reports.
Thank you
Don
Maybe you are looking for
-
Change screen resolution message when trying to start media manager
I use a UMPC (Samsung Q1UP) that only has a screen resoluion opion of 1024 x 600 as it is a 7" landscape mobile computer. When I start up the blackberry software, and then try to launch Media Manager etc., it gives me an error message to change the s
-
Hi, I want to send email to all my subscribers whose emai ids are stored in database. I am SUCCESSFUL in sending the emails from JAVA program to some 10 reciepients at a time. But I have to send the message to around 1000 or more people at a time. I
-
Fios out in Colleyvill​e???
Fios has been down all day here. No phone. No internet. No TV. Lights are green on box in garage. Red light on box on outside of home saying no service. Anyone else out?
-
Free SQL server 2005 Database administration book
Hi, From where we can download SQL server 2005 Database administration book Thanks & Regards, Raj
-
Autopay has never been activated
Hi - I have a Verizon FIOS landline phone and cable plan as well as a Verizon wireless mobile plan. Probably about a year ago I tried to enroll in a one-bill autopay but I think since then, Verizon has severed that connection. In any case, my Veriz