- 1、本文档共13页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
11.5.9使用API进行PICK RELEASE
Order SQL调优实例
Author: Octavius.He
Creation Date: July 13, 2009
Last Updated: September 7, 2009
Document Ref: Document Reference Number
Version: DRAFT 1A
Approvals:
Approver 1 Approver 2 Copy Number _____
Document Control
Change Record
3
Date Author Version Change Reference 21-May-08 Octavius.He Draft 1a No Previous Document
Reviewers
Name Position
Distribution
Copy No. Name Location Library Master Project Library Project Manager
Note To Holders:
If you receive an electronic copy of this document and print it out, please write your name on the equivalent of the cover page, for document control purposes.
If you receive a hard copy of this document, please write your name on the front cover, for document control purposes.
Contents
Document Control ii
1. Oracle SQL优化 2
1.1. 业务背景 2
1.2. 调优过程 4
1.3. 进一步探索 7
1.4. 结论 9
2. 其他相关知识 10
2.1. 清除BUFFER 10
3. Open and Closed Issues for this Deliverable 11
Open Issues 11
Closed Issues 11
Oracle SQL优化
业务背景
业务环境简介
ORACLE OM模块的挑库发放,是一个比较基础的功能,最常用的,就是往。
在实际开发过程中,曾经遇到过一个很简单但是很值得回味的SQL优化,特此记录下来,用以总结,并希望对其他开发人员有所帮助。
需求
SQL的内容很简单,取出未结订单,与一张客户化物料编码Mapping表关联,订单的OU和发运组织有所限制,具体SQL如下:
SELECT ooh.order_number,
ool.line_number||.||ool.shipment_number,
ooh.header_id,
ool.line_id,
ool.inventory_item_id
FROM oe_order_lines_all ool,
oe_order_headers_all ooh,
cux_hb_item_mapping him,
mtl_parameters mp
WHERE ool.flow_status_code NOT IN(CLOSED,CANCELLED)
AND ooh.flow_status_code NOT IN(CLOSED,CANCELLED)
AND him.item_code LIKE 1%
AND ool.header_id = ooh.header_id
AND ool.inventory_item_id = him.item_id
AND ool.ship_from_org_id = mp.organization_id
AND mp.organization_code IN(32A, 32B, 32C, 32D,
33A, 33B, 34A, 34B, 35A, 38A,40A, 41A,
G1A, G1B, G1C, G2A, G2B, G2C, G6A, 41B,
40B, G6B, G6C, A00, L1A, L1B, 38B)
AND ooh.org_id
您可能关注的文档
- 11-11-0421-01-00af-d1-0-phy-comments-discussion.ppt
- 12-05-07高一英语《M4-U1-Project》(课件).ppt
- 13-14牛津八下期中试题Ⅰ.doc
- 101105华数互动电视新平台技术建议书.doc
- 13_第十七课_IMS Database overview.ppt
- 14.2.2yicihangshu.ppt
- 16 The Theory of Distance Education.ppt
- 18-人工气道管理-孙红.ppt
- 2000专升本常用单词.doc
- 2004-11-26 Designing Affordance in UbiComp Latter Part.ppt
文档评论(0)