Update Query is running very slow
Database version 11.2.0.2
UPDATE ps_jrnl_ln a SET a.jrnl_line_status = :"SYS_B_0" WHERE a.project_id = :"SYS_B_1" AND a.account IN ( SELECT DISTINCT c.account FROM PSTREENODE A , PSTREELEAF B , PS_OI_NODE_BAL_PC G , PS_GL_ACCOUNT_TBL C WHERE A.EFFDT = ( SELECT MAX(X.EFFDT) FROM PSTREEDEFN X WHERE A.SETID = X.SETID AND A.TREE_NAME = X.TREE_NAME) AND B.SETID = A.SETID AND A.TREE_NODE = G.TREE_NODE AND A.TREE_NAME = G.TREE_NAME AND g.activeflag = :"SYS_B_2" AND B.TREE_NAME = A.TREE_NAME AND B.EFFDT = A.EFFDT AND B.TREE_NODE_NUM BETWEEN A.TREE_NODE_NUM AND A.TREE_NODE_NUM_END AND C.ACCOUNT BETWEEN B.RANGE_FROM AND B.RANGE_TO) AND EXISTS ( SELECT :"SYS_B_3" FROM PS_JRNL_HEADER C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.JOURNAL_ID = C.JOURNAL_ID AND A.JOURNAL_DATE = C.JOURNAL_DATE AND C.JOURNAL_LOCKED = :"SYS_B_4" AND C.PROCESS_INSTANCE = :"SYS_B_5")
{Code}
Execution Plan--------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | UPDATE STATEMENT | | 5 | 395 | | 10586 (17)| 00:02:08 |
| 1 | UPDATE | PS_JRNL_LN | | | | | |
|* 2 | HASH JOIN SEMI | | 5 | 395 | | 10586 (17)| 00:02:08 |
| 3 | NESTED LOOPS | | 5 | 360 | | 19 (6)| 00:00:01 |
| 4 | SORT UNIQUE | | 5 | 165 | | 6 (0)| 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_HEADER | 5 | 165 | | 6 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | PSZJRNL_HEADER | 5 | | | 3 (0)| 00:00:01 |
|* 7 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_LN | 1 | 39 | | 4 (0)| 00:00:01 |
|* 8 | INDEX RANGE SCAN | PS_JRNL_LN | 1 | | | 3 (0)| 00:00:01 |
| 9 | VIEW | VW_NSO_1 | 378K| 2585K| | 10565 (17)| 00:02:07 |
|* 10 | FILTER | | | | | | |
|* 11 | HASH JOIN | | 68M| 9738M| | 10561 (17)| 00:02:07 |
| 12 | INDEX FAST FULL SCAN | PSAPSTREENODE | 23610 | 1175K| | 63 (0)| 00:00:01 |
| 13 | MERGE JOIN | | 90M| 8548M| | 9370 (7)| 00:01:53 |
| 14 | SORT JOIN | | 670 | 30150 | | 6 (17)| 00:00:01 |
| 15 | MERGE JOIN CARTESIAN | | 670 | 30150 | | 5 (0)| 00:00:01 |
|* 16 | TABLE ACCESS FULL | PS_OI_NODE_BAL_PC | 2 | 80 | | 3 (0)| 00:00:01 |
| 17 | BUFFER SORT | | 335 | 1675 | | 2 (0)| 00:00:01 |
| 18 | INDEX FAST FULL SCAN | PSAGL_ACCOUNT_TBL | 335 | 1675 | | 1 (0)| 00:00:01 |
|* 19 | FILTER | | | | | | |
|* 20 | SORT JOIN | | 562K| 28M| 77M| 8778 (1)| 00:01:46 |
| 21 | INDEX FAST FULL SCAN | PSCPSTREELEAF | 562K| 28M| | 1315 (1)| 00:00:16 |
| 22 | SORT AGGREGATE | | 1 | 25 | | | |
| 23 | FIRST ROW | | 1 | 25 | | 2 (0)| 00:00:01 |
|* 24 | INDEX RANGE SCAN (MIN/MAX)| PSBPSTREEDEFN | 1 | 25 | | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("A"."ACCOUNT"="ACCOUNT")
6 - access("C"."PROCESS_INSTANCE"=TO_NUMBER(:SYS_B_5) AND "C"."JOURNAL_LOCKED"=:SYS_B_4)
7 - filter("A"."PROJECT_ID"=:SYS_B_1)
8 - access("A"."BUSINESS_UNIT"="C"."BUSINESS_UNIT" AND "A"."JOURNAL_ID"="C"."JOURNAL_ID" AND
SYS_OP_DESCEND("JOURNAL_DATE")=SYS_OP_DESCEND("C"."JOURNAL_DATE"))
filter(SYS_OP_UNDESCEND(SYS_OP_DESCEND("JOURNAL_DATE"))="C"."JOURNAL_DATE")
10 - filter("A"."EFFDT"= (SELECT MAX("X"."EFFDT") FROM "PSTREEDEFN" "X" WHERE "X"."TREE_NAME"=:B1
AND "X"."SETID"=:B2))
11 - access("B"."SETID"="A"."SETID" AND "A"."TREE_NODE"="G"."TREE_NODE" AND
"A"."TREE_NAME"="G"."TREE_NAME" AND "B"."TREE_NAME"="A"."TREE_NAME" AND "B"."EFFDT"="A"."EFFDT")
filter("B"."TREE_NODE_NUM">="A"."TREE_NODE_NUM" AND
"B"."TREE_NODE_NUM"<="A"."TREE_NODE_NUM_END")
16 - filter("G"."ACTIVEFLAG"=TO_NUMBER(:SYS_B_2))
19 - filter("C"."ACCOUNT"<="B"."RANGE_TO")
20 - access(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
filter(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
24 - access("X"."SETID"=:B1 AND "X"."TREE_NAME"=:B2)
52 rows selected.
I don't see any benefit of the extenal conversion. Cost is still same.
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | UPDATE STATEMENT | | 5 | 395 | | 10586 (17)| 00:02:08 |
| 1 | UPDATE | PS_JRNL_LN | | | | | |
|* 2 | HASH JOIN SEMI | | 5 | 395 | | 10586 (17)| 00:02:08 |
| 3 | NESTED LOOPS | | 5 | 360 | | 19 (6)| 00:00:01 |
| 4 | SORT UNIQUE | | 5 | 165 | | 6 (0)| 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_HEADER | 5 | 165 | | 6 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | PSZJRNL_HEADER | 5 | | | 3 (0)| 00:00:01 |
|* 7 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_LN | 1 | 39 | | 4 (0)| 00:00:01 |
|* 8 | INDEX RANGE SCAN | PS_JRNL_LN | 1 | | | 3 (0)| 00:00:01 |
| 9 | VIEW | VW_NSO_1 | 378K| 2585K| | 10565 (17)| 00:02:07 |
|* 10 | FILTER | | | | | | |
|* 11 | HASH JOIN | | 68M| 9738M| | 10561 (17)| 00:02:07 |
| 12 | INDEX FAST FULL SCAN | PSAPSTREENODE | 23610 | 1175K| | 63 (0)| 00:00:01 |
| 13 | MERGE JOIN | | 90M| 8548M| | 9370 (7)| 00:01:53 |
| 14 | SORT JOIN | | 670 | 30150 | | 6 (17)| 00:00:01 |
| 15 | MERGE JOIN CARTESIAN | | 670 | 30150 | | 5 (0)| 00:00:01 |
|* 16 | TABLE ACCESS FULL | PS_OI_NODE_BAL_PC | 2 | 80 | | 3 (0)| 00:00:01 |
| 17 | BUFFER SORT | | 335 | 1675 | | 2 (0)| 00:00:01 |
| 18 | INDEX FAST FULL SCAN | PSAGL_ACCOUNT_TBL | 335 | 1675 | | 1 (0)| 00:00:01 |
|* 19 | FILTER | | | | | | |
|* 20 | SORT JOIN | | 562K| 28M| 77M| 8778 (1)| 00:01:46 |
| 21 | INDEX FAST FULL SCAN | PSCPSTREELEAF | 562K| 28M| | 1315 (1)| 00:00:16 |
| 22 | SORT AGGREGATE | | 1 | 25 | | | |
| 23 | FIRST ROW | | 1 | 25 | | 2 (0)| 00:00:01 |
|* 24 | INDEX RANGE SCAN (MIN/MAX)| PSBPSTREEDEFN | 1 | 25 | | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("A"."ACCOUNT"="ACCOUNT")
6 - access("C"."PROCESS_INSTANCE"=TO_NUMBER(:SYS_B_5) AND "C"."JOURNAL_LOCKED"=:SYS_B_4)
7 - filter("A"."PROJECT_ID"=:SYS_B_1)
8 - access("A"."BUSINESS_UNIT"="C"."BUSINESS_UNIT" AND "A"."JOURNAL_ID"="C"."JOURNAL_ID" AND
SYS_OP_DESCEND("JOURNAL_DATE")=SYS_OP_DESCEND("C"."JOURNAL_DATE"))
filter(SYS_OP_UNDESCEND(SYS_OP_DESCEND("JOURNAL_DATE"))="C"."JOURNAL_DATE")
10 - filter("A"."EFFDT"= (SELECT MAX("X"."EFFDT") FROM "PSTREEDEFN" "X" WHERE "X"."TREE_NAME"=:B1
AND "X"."SETID"=:B2))
11 - access("B"."SETID"="A"."SETID" AND "A"."TREE_NODE"="G"."TREE_NODE" AND
"A"."TREE_NAME"="G"."TREE_NAME" AND "B"."TREE_NAME"="A"."TREE_NAME" AND "B"."EFFDT"="A"."EFFDT")
filter("B"."TREE_NODE_NUM">="A"."TREE_NODE_NUM" AND
"B"."TREE_NODE_NUM"<="A"."TREE_NODE_NUM_END")
16 - filter("G"."ACTIVEFLAG"=TO_NUMBER(:SYS_B_2))
19 - filter("C"."ACCOUNT"<="B"."RANGE_TO")
20 - access(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
filter(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
24 - access("X"."SETID"=:B1 AND "X"."TREE_NAME"=:B2)
52 rows selected.
Similar Messages
-
Problem description:
(MacBook Pro 15” late 2008, OSX Yosemite 10.10.2 installed, no pending updates) computer is running very slow - takes 2-3 minutes to open apps such as Pages, even when no other apps are open. Randomly freezes and becomes unresponsive, requiring forced power down. Randomly logs off. Removed Kodak AIO software via Clean My Mac2, but BonjourAgent still there and requesting access. Cleaned weekly with Clean My Mac2 and running Sophos AntiVirus. 2GB memory installed. Currently 169.99 GB available of 249.2 GB capacity.
Help?
EtreCheck version: 2.1.8 (121)
Report generated March 21, 2015 at 11:35:35 AM EDT
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
MacBook Pro (15-inch, Late 2008) (Technical Specifications)
MacBook Pro - model: MacBookPro5,1
1 2.4 GHz Intel Core 2 Duo CPU: 2-core
2 GB RAM Upgradeable
BANK 0/DIMM0
1 GB DDR3 1067 MHz ok
BANK 0/DIMM1
1 GB DDR3 1067 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 59
Video Information: ℹ️
NVIDIA GeForce 9400M - VRAM: 256 MB
Color LCD 1440 x 900
NVIDIA GeForce 9600M GT - VRAM: 256 MB
System Software: ℹ️
OS X 10.10.2 (14C1514) - Time since boot: 0:13:37
Disk Information: ℹ️
Hitachi HTS543225L9SA02 disk0 : (250.06 GB)
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 249.20 GB (168.91 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
HL-DT-ST DVDRW GS21N
USB Information: ℹ️
Apple Inc. Built-in iSight
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Apple, Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Library/Extensions
[not loaded] com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
[loaded] com.sophos.kext.sav (9.2.50 - SDK 10.8) [Click for support]
[loaded] com.sophos.nke.swi (9.2.50 - SDK 10.8) [Click for support]
/System/Library/Extensions
[not loaded] com.leapfrog.codeless.kext (2) [Click for support]
Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist [Click for support]
[running] com.kodak.BonjourAgent.plist [Click for support]
[loaded] com.oracle.java.Java-Updater.plist [Click for support]
[running] com.sophos.uiserver.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[loaded] com.adobe.SwitchBoard.plist [Click for support]
[loaded] com.leapfrog.connect.authdaemon.plist [Click for support]
[loaded] com.macpaw.CleanMyMac2.Agent.plist [Click for support]
[loaded] com.oracle.java.Helper-Tool.plist [Click for support]
[loaded] com.oracle.java.JavaUpdateHelper.plist [Click for support]
[running] com.sophos.common.servicemanager.plist [Click for support]
User Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist [Click for support]
[loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Click for support]
[loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Click for support]
[loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Click for support]
User Login Items: ℹ️
Dropbox Application (/Applications/Dropbox.app)
Internet Plug-ins: ℹ️
AdobeExManDetect: Version: AdobeExManDetect 1.1.0.0 - SDK 10.7 [Click for support]
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
Default Browser: Version: 600 - SDK 10.10
Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Click for support]
AmazonMP3DownloaderPlugin1017265: Version: AmazonMP3DownloaderPlugin 1.0.17 [Click for support]
JavaAppletPlugin: Version: Java 8 Update 31 Check version
AmazonMP3DownloaderPlugin: Version: AmazonMP3DownloaderPlugin 1.0.17 [Click for support]
QuickTime Plugin: Version: 7.7.3
iPhotoPhotocast: Version: 7.0 - SDK 10.8
User internet Plug-ins: ℹ️
CitrixOnlineWebDeploymentPlugin: Version: 1.0.94 [Click for support]
Google Earth Web Plug-in: Version: 6.0 [Click for support]
Safari Extensions: ℹ️
AdBlock
Disconnect
Add To Amazon Wish List
3rd Party Preference Panes: ℹ️
Flash Player [Click for support]
Java [Click for support]
Tuxera NTFS [Click for support]
Time Machine: ℹ️
Skip System Files: NO
Mobile backups: OFF
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 249.20 GB Disk used: 80.29 GB
Destinations:
Backup [Local]
Total size: 63.67 GB
Total number of backups: 1
Oldest backup: 2015-02-23 16:16:08 +0000
Last backup: 2015-02-23 16:16:08 +0000
Size of backup disk: Too small
Backup size 63.67 GB < (Disk used 80.29 GB X 3)
Top Processes by CPU: ℹ️
5% WindowServer
1% loginwindow
0% AppleSpell
0% SophosUIServer
0% SophosAntiVirus
Top Processes by Memory: ℹ️
118 MB InterCheck
101 MB SophosScanD
60 MB Dropbox
54 MB mds_stores
41 MB SophosAntiVirus
Virtual Memory Information: ℹ️
49 MB Free RAM
682 MB Active RAM
652 MB Inactive RAM
315 MB Wired RAM
1.49 GB Page-ins
2 MB Page-outs
Diagnostics Information: ℹ️
Mar 21, 2015, 11:18:52 AM Self test - passed
Mar 21, 2015, 10:53:03 AM /Library/Logs/DiagnosticReports/SophosUIServer_2015-03-21-105303_[redacted].cra sh
Mar 19, 2015, 07:59:03 PM /Library/Logs/DiagnosticReports/CalNCService_2015-03-19-195903_[redacted].crashLinc Davis wrote:
Slow performance after installing Yosemite on an older Mac is often caused by inadequate memory. Although you can install the upgrade on a Mac with 2 GB of memory, experience has shown that at least 4 GB is needed for full performance.
Select About This Mac from the Apple menu. If you have less than 4 GB of memory, and your model has upgradable memory, install as much as it can take, or at least that much. Any reputable RAM vendor will have a web form in which you can select the Mac model and be directed to compatible parts.
Memory in the MacBook Air is not upgradable. If that's what you have, you should restore the previous system from a backup, or replace the machine. Ask if you need guidance.
The Etrecheck report clearly shows that SylvieRose has a Macbook Pro, not a Macbook Air and that there are only 2 GB RAM installed. The Etrecheck report can be very informative if one takes the time to examine it.
Ciao. -
Query is running very slow when consulting history data in EBS
SELECT *
FROM (select NVL(TO_CHAR(aps.vendor_id), 'SIN PROVEEDOR') CODIGO,
NVL(aps.vendor_name, 'SIN PROVEEDOR') PROVEEDOR,
null IMPORTE_TRANSACCIONAL,
SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
from ra_customer_trx_all cta,
ra_cust_trx_types_all ctt,
ra_customer_trx_lines_all ctl,
mtl_system_items_b inv,
hz_cust_accounts ca,
hz_parties p,
AR_CUSTOMERS ac,
hz_cust_acct_sites_all hcca,
hz_cust_site_uses_all hcsua,
RA_TERRITORIES rt,
Jtf_Rs_Salesreps vend,
gl_code_combinations glc,
ap_suppliers aps,
(select paa.item_id, paa.vendor_id
from PO_ASL_ATTRIBUTES paa, PO_APPROVED_SUPPLIER_LIST PASL
where Paa.Asl_Id = PASL.Asl_Id(+)
and pasl.disable_flag is null) paa2
where CTA.cust_trx_type_id = ctt.cust_trx_type_id
and ctl.customer_trx_id = cta.customer_trx_id
and ctl.Inventory_Item_Id = inv.inventory_item_id(+)
and ctt.gl_id_rec = glc.code_combination_id
and ca.cust_account_id = cta.bill_to_customer_id
and p.party_id = ca.party_id
and ac.CUSTOMER_ID = cta.bill_to_customer_id
and hcca.cust_account_id = ca.cust_account_id
and hcca.org_id = '82'
and hcsua.site_use_id = cta.bill_to_site_use_id
and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
and hcsua.org_id = '82'
and rt.territory_id(+) = hcca.territory_id
and cta.primary_salesrep_id = vend.salesrep_id(+)
and inv.organization_id = '84'
and paa2.vendor_id = aps.vendor_id(+)
and ctl.inventory_item_id = paa2.item_id(+)
AND CTT.TYPE IN ('INV', 'CM')
and ca.cust_account_id(+) = cta.bill_to_customer_id
and p.party_id(+) = ca.party_id
and ctl.Line_Type = 'LINE'
and cta.complete_flag = 'Y'
and cta.status_trx not in ('VD')
and cta.legal_entity_id = '23274'
and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
to_Date('13/10/2014', 'dd/MM/yyyy')
group by aps.vendor_id, aps.vendor_name
UNION
select 'SIN ITEM' CODIGO,
'SIN ITEM' PROVEEDOR,
null IMPORTE_TRANSACCIONAL,
SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
from ra_customer_trx_all cta,
ra_cust_trx_types_all ctt,
ra_customer_trx_lines_all ctl,
hz_cust_accounts ca,
hz_parties p,
AR_CUSTOMERS ac,
hz_cust_acct_sites_all hcca,
hz_cust_site_uses_all hcsua,
RA_TERRITORIES rt,
Jtf_Rs_Salesreps vend,
gl_code_combinations glc
where CTA.cust_trx_type_id = ctt.cust_trx_type_id
and ctl.customer_trx_id = cta.customer_trx_id
and ctl.Inventory_Item_Id is null
and ctt.gl_id_rec = glc.code_combination_id
and ca.cust_account_id = cta.bill_to_customer_id
and p.party_id = ca.party_id
and ac.CUSTOMER_ID = cta.bill_to_customer_id
and hcca.cust_account_id = ca.cust_account_id
and hcca.org_id = '82'
and hcsua.site_use_id = cta.bill_to_site_use_id
and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
and hcsua.org_id = '82'
and rt.territory_id(+) = hcca.territory_id
and cta.primary_salesrep_id = vend.salesrep_id(+)
AND CTT.TYPE IN ('INV', 'CM')
and ca.cust_account_id(+) = cta.bill_to_customer_id
and p.party_id(+) = ca.party_id
and ctl.Line_Type = 'LINE'
and cta.complete_flag = 'Y'
and cta.status_trx not in ('VD')
and cta.legal_entity_id = '23274'
and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
to_Date('13/10/2014', 'dd/MM/yyyy')
group by 'SIN ITEM', 'SIN ITEM') T_GRUPO
order by DECODE(T_GRUPO.PROVEEDOR,
'SIN ITEM',
'A',
'SIN PROVEEDOR',
'A',
T_GRUPO.PROVEEDOR)Hi Hussein,
APP 12.1.3
Database 11.2.0.3.0
SO linux x86-64
stadistics: 0ne month ago
this slowness is from three months ago
Execution Plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 2 | 318 | 12680 (1)|
| 1 | SORT ORDER BY | | 2 | 318 | 12680 (1)|
| 2 | VIEW | | 2 | 318 | 12679 (1)|
| 3 | SORT UNIQUE | | 2 | 697 | 12679 (51)|
| 4 | UNION-ALL | | | | |
| 5 | HASH GROUP BY | | 1 | 377 | 6338 (1)|
| 6 | NESTED LOOPS OUTER | | 1 | 377 | 6336 (1)|
| 7 | NESTED LOOPS OUTER | | 1 | 343 | 6336 (1)|
| 8 | NESTED LOOPS | | 1 | 328 | 6335 (1)|
| 9 | NESTED LOOPS | | 1 | 323 | 6335 (1)|
| 10 | NESTED LOOPS OUTER | | 1 | 311 | 6333 (1)|
| 11 | NESTED LOOPS | | 1 | 304 | 6332 (1)|
| 12 | NESTED LOOPS | | 1 | 296 | 6332 (1)|
| 13 | NESTED LOOPS | | 1 | 275 | 6329 (1)|
|* 14 | HASH JOIN | | 1 | 192 | 6328 (1)|
|* 15 | HASH JOIN | | 6493 | 450K| 5778 (1)|
|* 16 | HASH JOIN | | 6493 | 367K| 5432 (1)|
|* 17 | TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_ALL | 6556 | 288K| 4635 (1)|
|* 18 | INDEX RANGE SCAN | RA_CUSTOMER_TRX_N5 | 26223 | | 97 (2)|
|* 19 | TABLE ACCESS FULL | HZ_CUST_SITE_USES_ALL | 40227 | 510K| 797 (3)|
|* 20 | TABLE ACCESS FULL | HZ_CUST_ACCT_SITES_ALL | 20020 | 254K| 345 (3)|
| 21 | TABLE ACCESS FULL | HZ_CUST_ACCOUNTS | 40020 | 4728K| 549 (3)|
|* 22 | INDEX UNIQUE SCAN | HZ_PARTIES_U1 | 1| | 0 (0)|
|* 23 | TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_LINES_ALL | 1 | 21 | 3 (0)|
|* 24 | INDEX RANGE SCAN | RA_CUSTOMER_TRX_LINES_N2 | 4 | | 2 (0)|
|* 25 | INDEX UNIQUE SCAN | MTL_SYSTEM_ITEMS_B_U1 | 1 | 8 | 0 (0)|
|* 26 | INDEX RANGE SCAN | JTF_RS_SALESREPS_U1 | 1 | 7 | 1 (0)|
|* 27 | TABLE ACCESS BY INDEX ROWID | RA_CUST_TRX_TYPES_ALL | 1 | 12 | 2 (0)|
|* 28 | INDEX RANGE SCAN | RA_CUST_TRX_TYPES_U1 | 1 | | 1 (0)
|* 29 | INDEX UNIQUE SCAN | GL_CODE_COMBINATIONS_U1 | 1 | 5 | 0 (0)|
| 30 | VIEW PUSHED PREDICATE | | 1 | 15 | 1 (0)|
|* 31 | FILTER | | | | |
| 32 | NESTED LOOPS OUTER | | 1 | 54 | 1 (0)|
| 33 | TABLE ACCESS BY INDEX ROWID | PO_ASL_ATTRIBUTES | 1 | 39 | 1 (0)|
|* 34 | INDEX SKIP SCAN | PO_ASL_ATTRIBUTES_N1 | 1 | | 1 (0)|
| 35 | TABLE ACCESS BY INDEX ROWID | PO_APPROVED_SUPPLIER_LIST | 1 | 15 | 0 (0)|
|* 36 | INDEX UNIQUE SCAN | PO_APPROVED_SUPPLIER_LIST_U1 | 1 | | 0 (0)|
| 37 | TABLE ACCESS BY INDEX ROWID | AP_SUPPLIERS | 1 | 34 | 0 (0)|
|* 38 | INDEX UNIQUE SCAN | AP_SUPPLIERS_U1 | 1 | | 0 (0)|
| 39 | SORT GROUP BY NOSORT | | 1 | 320 | 6341 (1)|
| 40 | NESTED LOOPS | | | | |
| 41 | NESTED LOOPS | | 1 | 320 | 6340 (1)|
| 42 | NESTED LOOPS | | 1 | 299 | 6337 (1)|
| 43 | NESTED LOOPS OUTER | | 1 | 216 | 6336 (1)|
|* 44 | HASH JOIN | | 1 | 209 | 6335 (1)|
|* 45 | TABLE ACCESS FULL | HZ_CUST_ACCT_SITES_ALL | 20020 | 254K | 345 (3)|
|* 46 | HASH JOIN | | 5819 | 1113K | 5989 (1)|
|* 47 | HASH JOIN | | 5875 | 430K | 5439 (1)|
|* 48 | HASH JOIN | | 5931 | 359K | 4641 (1)|
| 49 | NESTED LOOPS | | 38 | 646 | 6 (0)|
|* 50 | TABLE ACCESS FULL | RA_CUST_TRX_TYPES_ALL | 38 | 456 | 6 (0)|
|* 51 | INDEX UNIQUE SCAN | GL_CODE_COMBINATIONS_U1 | 1 | 5 | 0 (0)|
|* 52 | TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_ALL | 6556 | 288K | 4635 (1)|
|* 53 | INDEX RANGE SCAN | RA_CUSTOMER_TRX_N5 | 26223 | | 97 (2)|
|* 54 | TABLE ACCESS FULL | HZ_CUST_SITE_USES_ALL | 40227 | 510K | 797 (3)|
| 55 | TABLE ACCESS FULL | HZ_CUST_ACCOUNTS | 40020 | 4728K | 549 (3)|
|* 56 | INDEX RANGE SCAN | JTF_RS_SALESREPS_U1 | 1 | 7 | 1 (0)|
|* 57 | INDEX UNIQUE SCAN | HZ_PARTIES_U1 | 1 | | 0 (0)|
|* 58 | INDEX RANGE SCAN | RA_CUSTOMER_TRX_LINES_N2 | 4 | | 2 (0)|
|* 59 | TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_LINES_ALL | 1 | 21 | 3 (0)|
Predicate Information (identified by operation id):
14 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID" AND
"HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID")
15 - access("HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
16 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
17 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"." LEGAL_ENTITY_ID"=23274)
18 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2
4:mi:ss') AND
"CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2
4:mi:ss'))
19 - filter("HCSUA"."ORG_ID"=82)
20 - filter("HCCA"."ORG_ID"=82)
22 - access("PARTY_ID"="PARTY_ID")
23 - filter("CTL"."INVENTORY_ITEM_ID" IS NOT NULL AND "CTL"."LINE_TYPE"='LINE'
24 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
25 - access("CTL"."INVENTORY_ITEM_ID"="INV"."INVENTORY_ITEM_ID" AND "INV"."ORG
ANIZATION_ID"=84)
26 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
27 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP
E"='INV'))
28 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
29 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
31 - filter("PASL"."DISABLE_FLAG" IS NULL)
34 - access("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
filter("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
36 - access("PAA"."ASL_ID"="PASL"."ASL_ID"(+))
38 - access("PAA2"."VENDOR_ID"="APS"."VENDOR_ID"(+))
44 - access("HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID" AND
"HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
45 - filter("HCCA"."ORG_ID"=82)
46 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID")
47 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
48 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
50 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP
E"='INV'))
51 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
52 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."
LEGAL_ENTITY_ID"=23274)
53 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2
4:mi:ss') AND
"CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2
4:mi:ss'))
54 - filter("HCSUA"."ORG_ID"=82)
56 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
57 - access("PARTY_ID"="PARTY_ID")
58 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
59 - filter("CTL"."INVENTORY_ITEM_ID" IS NULL AND "CTL"."LINE_TYPE"='LINE')
Note
- 'PLAN_TABLE' is old version
Statistics
15 recursive calls
0 db block gets
62543652 consistent gets
269141 physical reads
172 redo size
12832 bytes sent via SQL*Net to client
674 bytes received via SQL*Net from client
16 SQL*Net roundtrips to/from client
2 sorts (memory)
0 sorts (disk)
212 rows processed -
INSERT INTO IHUB.TMP_SUPPLIES_PO
NEW_SCHEDULE_DATE,
ORDER_TYPE,
NEW_ORDER_QUANTITY,
NEW_ORDER_PLACEMENT_DATE,
FIRM_PLANNED_TYPE,
LINE_ID,
ORDER_NUMBER,
SUBINVENTORY_CODE,
ITEM_NAME,
ORGANIZATION_CODE,
SUPPLIER_NAME,
SUPPLIER_SITE_CODE,
COMMENTS,
ORIGINAL_NEED_BY_DATE,
PROMISED_DATE,
NEED_BY_DATE,
ACCEPTANCE_REQUIRED_FLAG,
UOM_CODE,
SR_INSTANCE_CODE,
DELETED_FLAG,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY,
LAST_UPDATE_LOGIN,
REQUEST_ID,
PROGRAM_APPLICATION_ID,
PROGRAM_ID,
PROGRAM_UPDATE_DATE,
PROCESS_FLAG
SELECT DISTINCT F.DUE_DT AS NEW_SCHEDULE_DATE,
1 AS ORDER_TYPE,
( F.QTY_PO_STD
- NVL(xx_psft_to_ihub_pkg_rj.get_rcv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
+ NVL(xx_psft_to_ihub_pkg_rj.get_rtv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
) AS NEW_ORDER_QUANTITY,
F.PO_DT AS NEW_ORDER_PLACEMENT_DATE,
CASE WHEN F.FROZEN_FLG = 'N'
THEN 2
ELSE 1
END AS FIRM_PLANNED_TYPE,
1 AS LINE_ID,
F.BUSINESS_UNIT
|| ':'
|| F.PO_ID
|| ':'
|| F.LINE_NBR
|| ':'
|| F.SCHED_NBR
|| ':'
|| F.DISTRIB_LINE_NUM AS ORDER_NUMBER,
NULL AS SUBINVENTORY_CODE,
F.INV_ITEM_ID AS ITEM_NAME,
F.BUSINESS_UNIT_IN AS ORGANIZATION_CODE,
H.NAME1 || ':' || F.VENDOR_ID as SUPPLIER_NAME,
F.VNDR_LOC AS SUPPLIER_SITE_CODE,
NULL AS COMMENTS,
G.ORIG_PROM_DT AS ORIGINAL_NEED_BY_DATE,
F.DUE_DT AS PROMISED_DATE,
F.DUE_DT AS NEED_BY_DATE,
'N' AS ACCEPTANCE_REQUIRED_FLAG,
F.UNIT_OF_MEASURE AS UOM_CODE,
'P',
2,
SYSDATE,
SYSDATE,
1173,
58957,
410496,
724,
56364,
sysdate,
1
FROM SYSADM.PS_PL_ITEM_ATTRIB@FSUPGCLINK A,
SYSADM.PS_BU_ITEMS_INV@FSUPGCLINK B,
SYSADM.PS_MASTER_ITEM_TBL@FSUPGCLINK C,
SYSADM.PS_PL_GROUP_IN@FSUPGCLINK E,
SYSADM.PS_PL_PO_DIST_VW2@FSUPGCLINK F,
SYSADM.PS_PO_LINE_SHIP@FSUPGCLINK G,
SYSADM.PS_VENDOR@FSUPGCLINK H
WHERE 1=1
AND E.BU_GROUP = 'ASCP'
AND A.PLANNED_BY <> '4'
AND A.BUSINESS_UNIT = B.BUSINESS_UNIT
AND A.INV_ITEM_ID = B.INV_ITEM_ID
AND B.ITM_STATUS_CURRENT < '4'
AND B.INV_ITEM_ID = C.INV_ITEM_ID
AND C.ITM_STATUS_CURRENT < '4'
AND C.SETID =
(SELECT D.SETID
FROM SYSADM.PS_SET_CNTRL_REC@FSUPGCLINK D
WHERE D.RECNAME = 'MASTER_ITEM_TBL'
AND D.SETCNTRLVALUE = A.BUSINESS_UNIT
AND A.BUSINESS_UNIT = E.BUSINESS_UNIT
AND A.BUSINESS_UNIT = F.BUSINESS_UNIT_IN
AND A.INV_ITEM_ID = F.INV_ITEM_ID
AND F.PO_STATUS <> 'C'
AND F.BUSINESS_UNIT = G.BUSINESS_UNIT
AND F.PO_ID = G.PO_ID
AND F.LINE_NBR = G.LINE_NBR
AND F.SCHED_NBR = G.SCHED_NBR
AND F.VENDOR_SETID = H.SETID
AND F.VENDOR_ID = H.VENDOR_ID
AND ( F.QTY_PO_STD
- NVL(xx_psft_to_ihub_pkg_rj.get_rcv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
+ NVL(xx_psft_to_ihub_pkg_rj.get_rtv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
) > 0Yes here is the execution plan for select statement I have already removed distict from the select. Also I am using oracle databases 11.2.0.2
Execution Plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Inst |IN-OUT|
| 0 | SELECT STATEMENT | | 1 | 287 | 2041 (2)| | |
|* 1 | COUNT STOPKEY | | | | | | |
|* 2 | FILTER | | | | | | |
|* 3 | FILTER | | 3 | 27 | 1 (0)| | |
| 4 | REMOTE | | | | | FSUPG~ | R->S |
| 5 | REMOTE | PS_SET_CNTRL_REC | 1 | 25 | 3 (0)| FSUPG~ | R->S |
Predicate Information (identified by operation id):
1 - filter(ROWNUM<=3)
2 - filter("C"."SETID"= (SELECT "D"."SETID" FROM "D" WHERE
"D"."RECNAME"='MASTER_ITEM_TBL' AND "D"."SETCNTRLVALUE"=:B1))
3 - filter("F"."QTY_PO_STD"-NVL("XX_PSFT_TO_IHUB_PKG_RJ"."GET_RCV_QTY_SUPPLIES_
PO"("F"."BUSINESS_UNIT","F"."PO_ID","F"."LINE_NBR","F"."SCHED_NBR","F"."DISTRIB_LI
NE_NUM"),0)+NVL("XX_PSFT_TO_IHUB_PKG_RJ"."GET_RTV_QTY_SUPPLIES_PO"("F"."BUSINESS_U
NIT","F"."PO_ID","F"."LINE_NBR","F"."SCHED_NBR","F"."DISTRIB_LINE_NUM"),0)>0)
Remote SQL Information (identified by operation id):
4 - SELECT "A1"."BU_GROUP","A1"."BUSINESS_UNIT","A2"."BUSINESS_UNIT","A2"."INV_
ITEM_ID","A2"."PLANNED_BY","A3"."BUSINESS_UNIT","A3"."PO_ID","A3"."LINE_NBR","A3".
"SCHED_NBR","A3"."DISTRIB_LINE_NUM","A3"."INV_ITEM_ID","A3"."UNIT_OF_MEASURE","A3"
."DUE_DT","A3"."FROZEN_FLG","A3"."QTY_PO_STD","A3"."BUSINESS_UNIT_IN","A3"."PO_STA
TUS","A3"."PO_DT","A3"."VENDOR_SETID","A3"."VENDOR_ID","A3"."VNDR_LOC","A4"."SETID
","A4"."VENDOR_ID","A4"."NAME1","A5"."BUSINESS_UNIT","A5"."INV_ITEM_ID","A5"."ITM_
STATUS_CURRENT","A6"."BUSINESS_UNIT","A6"."PO_ID","A6"."LINE_NBR","A6"."SCHED_NBR"
,"A6"."ORIG_PROM_DT","A7"."SETID","A7"."INV_ITEM_ID","A7"."ITM_STATUS_CURRENT"
FROM "SYSADM"."PS_PL_GROUP_IN" "A1","SYSADM"."PS_PL_ITEM_ATTRIB"
"A2","SYSADM"."PS_PL_PO_DIST_VW2" "A3","SYSADM"."PS_VENDOR"
"A4","SYSADM"."PS_BU_ITEMS_INV" "A5","SYSADM"."PS_PO_LINE_SHIP"
"A6","SYSADM"."PS_MASTER_ITEM_TBL" "A7" WHERE "A7"."ITM_STATUS_CURRENT"<'4' AND
"A5"."INV_ITEM_ID"="A7"."INV_ITEM_ID" AND
"A3"."BUSINESS_UNIT"="A6"."BUSINESS_UNIT" AND "A3"."PO_ID"="A6"."PO_ID" AND
"A3"."LINE_NBR"="A6"."LINE_NBR" AND "A3"."SCHED_NBR"="A6"."SCHED_NBR" AND
"A5"."ITM_STATUS_CURRENT"<'4' AND "A2"."BUSINESS_UNIT"="A5"."BUSINESS_UNIT" AND
"A2"."INV_ITEM_ID"="A5"."INV_ITEM_ID" AND "A3"."VENDOR_SETID"="A4"."SETID" AND
"A3"."VENDOR_ID"="A4"."VENDOR_ID" AND "A3"."PO_STATUS"<>'C' AND
"A2"."INV_ITEM_ID"="A3"."INV_ITEM_ID" AND
"A2"."BUSINESS_UNIT"="A3"."BUSINESS_UNIT_IN" AND "A2"."PLANNED_BY"<>'4' AND
"A2"."BUSINESS_UNIT"="A1"."BUSINESS_UNIT" AND "A1"."BU_GROUP"='ASCP' (accessing
'FSUPGCLINK.OII.OCEANEERING.COM' )
5 - SELECT "SETCNTRLVALUE","RECNAME","SETID" FROM "SYSADM"."PS_SET_CNTRL_REC"
"D" WHERE "RECNAME"='MASTER_ITEM_TBL' AND "SETCNTRLVALUE"=:1 (accessing
'FSUPGCLINK.OII.OCEANEERING.COM' )
Note
- 'PLAN_TABLE' is old version
Statistics
89 recursive calls
24 db block gets
8 consistent gets
0 physical reads
0 redo size
3164 bytes sent via SQL*Net to client
524 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
3 rows processed
SQL> SQL>
SQL> -
MS-Access query running very slow
Hi,
We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow.
These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Oracle.
some more obeservation :
(1) Some of the queries using "HAVING" clause without any aggregate function. When I moved this condition to "WHERE" clause, performance improved a lot.
But problem is that I can't suggest this solution to "USERS". They are creating query using "query wizard" in MS-Access and they started creating noise on this.
(2) I tested same MDB in two different PCs and same query is returning records in 4 seconds in one system, is taking more than 10 minutes in other system.
Since I'm new to MS-Access, I don't know what other information I need to provide here.
Please help me out.I have seen the problem like this,too
can i have you -
Oracle query running very slow
Hi,
We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow.
These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Oracle.
some more obeservation :
(1) Some of the queries using "HAVING" clause without any aggregate function. When I moved this condition to "WHERE" clause, performance improved a lot.
But problem is that I can't suggest this solution to "USERS". They are creating query using "query wizard" in MS-Access and they started creating noise on this.
(2) I tested same MDB in two different PCs and same query is returning records in 4 seconds in one system, is taking more than 10 minutes in other system.
Since I'm new to MS-Access, I don't know what other information I need to provide here.
Please help me out.ms wrote:
Hi All
I am using Oracle 11g . My table contains 10-12 lac rows.Do not use the word lac: it is common in the Indian sub-continent but not known much outside of
there because it is not standard English.
>
1) what is the difference between a index on one column and an index of number of columns ( i.e composite index). The obvious answer of one contains only one column and the other contains more than one.
2) For what columns in a where clause should index be created ( single columns index or composite index ).Depends
3) Also can u suggest how to improve the perfomane of thsi query?Please read: SQL and PL/SQL FAQ
which tells you how to ask a performance related question -
Report region runs very slow, but its sql runs fast
We have a page with a report region Type :SQL Query (plsq function body returning sql query) which runs very slow, pegging the tach on our db box for almost a minute before returning report rows. However, if we run the generated sql from sql plus, it returns all the rows in under 10 seconds with nary a blip on the box. Any idas how what could be causing this or how to debug?
Thanks,
SteveOK, here is the bad boy, shortly after our code that returns the data.
declare
rc__ number;
simple_list__ owa_util.vc_arr;
complex_list__ owa_util.vc_arr;
begin
owa.init_cgi_env(:n__,:nm__,:v__);
htp.HTBUF_LEN := 63;
null;
null;
simple_list__(1) := 'sys.%';
simple_list__(2) := 'dbms\_%';
simple_list__(3) := 'utl\_%';
simple_list__(4) := 'owa\_%';
simple_list__(5) := 'owa.%';
simple_list__(6) := 'htp.%';
simple_list__(7) := 'htf.%';
simple_list__(8) := 'wpg_docload.%';
if ((owa_match.match_pattern(p_string =>
'f'
/* */,p_simple_pattern =>
simple_list__
,p_complex_pattern =>
complex_list__
,p_use_special_chars =>
false)))
then
rc__ := 2;
else
null;
null;
f(p=>:p);
if (wpg_docload.is_file_download) then
rc__ := 1;
wpg_docload.get_download_file(:doc_info);
null;
null;
null;
commit;
else
rc__ := 0;
null;
null;
null;
commit;
owa.get_page(:data__,:ndata__);
end if;
end if;
:rc__ := rc__;
end;
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 25.53 26.59 4492 20992 60 1
Fetch 0 0.00 0.00 0 0 0 0
total 1 25.53 26.59 4492 20992 60 1 -
why are most of the apps (anything that has to search) on my iphone4 and ipad (1) running very slow (or not at all) since iOS5 update...esp google. Search seems to go quickly, but then when I try to open a link..nothing. I have turned off icloud.
I am having the same problem. Did turning off iCloud work? Did you just turn everything off or did you actually delete the account off your iPod?
-
Desktop is an imac is 10.6.8 running firefox v 3.6.16 and runs well. My mac laptop also 10.6.8 automatically upgraded to 6.0 and runs very slow, and I do not like the layout of the toolbar. How do I get my laptop back to 3.16.6
Now it is clear which it wasn't before! We can't see what you have done or not so a good descriptions does help when communicating.
If you have done all you say and some restarts too I would advise you to do the install of 10.6 from the installation disc. Restart the computer and then install the 10.6.6 Combo update. You just install "on top" of what you have. No archiving or formatting. -
Query runs very slow and sometime freezes
Hi Experts,
I have just installed SAP GUI 710 but when i open a query in analyzer it runs very slow and if the variables are set for more than 6 months it just sits there and finally times out. It takes at least 5 minutes to open the query if it opens at all. Can you please advise me on how to resolve this issue??
Thanks, point will be awarded.Worth running RSRT .
Ravi Thothadri -
Please help our macbook pro is running very slow after recent update.
After updating a few months ago our macbook that was faultless before is running very slow,
when typing the beachball spins for ages before it appears ect
didn't do any backups or use time machine so i have no idea what to do.
ThanksEtreCheck version: 2.1.5 (108)
Report generated 1 January 2015 21:26:59 GMT
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Pro (13-inch, Late 2011) (Verified)
MacBook Pro - model: MacBookPro8,1
1 2.4 GHz Intel Core i5 CPU: 2-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10.1 (14B25) - Uptime: 5 days 1:26:25
Disk Information: ℹ️
ST9500325ASG disk0 : (500.11 GB)
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / : 498.88 GB (411.49 GB free)
Encrypted AES-XTS Unlocked Failed
Core Storage: disk0s2 499.25 GB Online
HL-DT-ST DVDRW GS31N
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/System/Library/Extensions
[loaded] com.Cycling74.driver.Soundflower (1.5.1) [Support]
[not loaded] com.leapfrog.codeless.kext (2) [Support]
[not loaded] com.leapfrog.driver.LfConnectDriver (1.9.8 - SDK 10.7) [Support]
Problem System Launch Agents: ℹ️
[invalid?] com.VTech.AgentMonitor.plist [Support]
Launch Agents: ℹ️
[running] com.Affinegy.InstaLANa.plist [Support]
[loaded] com.hp.messagecenter.launcher.plist [Support]
[loaded] com.oracle.java.Java-Updater.plist [Support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
[running] com.iobit.AMCDaemon.plist [Support]
[loaded] com.leapfrog.connect.authdaemon.plist [Support]
[loaded] com.oracle.java.Helper-Tool.plist [Support]
[loaded] com.oracle.java.JavaUpdateHelper.plist [Support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Support]
[failed] com.facebook.videochat.[redacted].plist [Support]
[invalid?] com.iobit.AMCUpdate.plist [Support]
[running] com.leapfrog.connect.monitor.plist [Support]
[loaded] com.spotify.webhelper.plist [Support]
[not loaded] com.user.UninstallAD.plist [Support]
User Login Items: ℹ️
Steam UNKNOWN (missing value)
iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
MenuTab for Facebook UNKNOWN (missing value)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Spotify UNKNOWN (missing value)
Spotify UNKNOWN (missing value)
Safari Application (/Applications/Safari.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
AmazonMP3DownloaderPlugin101737: Version: Unknown
AdobePDFViewerNPAPI: Version: 10.1.12 [Support]
AdobePDFViewer: Version: 10.1.12 [Support]
CouponPrinter-FireFox_v2: Version: 1.1.10 - SDK 10.6 [Support]
Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
Default Browser: Version: 600 - SDK 10.10
QuickTime Plugin: Version: 7.7.3
Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Support]
JavaAppletPlugin: Version: Java 8 Update 25 Check version
3rd Party Preference Panes: ℹ️
Flash Player [Support]
Growl [Support]
Java [Support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
28% softwareupdated
4% WindowServer
2% Safari
0% fontd
0% AppleSpell
Top Processes by Memory: ℹ️
259 MB com.apple.WebKit.WebContent
236 MB loginwindow
107 MB Finder
90 MB ocspd
82 MB softwareupdated
Virtual Memory Information: ℹ️
25 MB Free RAM
1.61 GB Active RAM
1.60 GB Inactive RAM
1.06 GB Wired RAM
1.71 GB Page-ins
1 MB Page-outs -
Mac os x lion 10.7 on mac book pro not updating and running very slow
i am using mac os x lion 10.7
problem it is not updating and running very slow. How to improve?If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help to identify which such modifications you've installed, as well as some other aspects of the state of the system that may be pertinent.
Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: You copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, paste again. That's all there is to it. Details follow.
You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, proceed anyway.
Below are instructions to run a UNIX shell script. It does nothing but produce human-readable output. However, you need to be cautious about running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
The script will line-wrap or scroll in your browser, but it's really a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
If you have more than one user, and the affected user is not an administrator, then please run the script twice: once while logged in as the affected user, and once as an administrator. The results may be different. The administrator is the user that is created automatically on a new computer when you start it for the first time. If you can't log in as an administrator, just run the script as the affected user. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign ($) or a percent sign (%). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
Triple-click anywhere in the line of text below on this page to select it:
clear; PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && o=$(sed 's/^/ /' <<< "$o") && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(egrep -v '^[[:blank:]]*($|#)' "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; a=$(id | grep -w '80(admin)'); [[ "$a" ]] && sudo true && r=1 || r=; { [[ "$a" ]] || echo $'No admin access\n'; [[ "$a" && ! "$r" ]] && echo $'No root access\n'; system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(($(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); PN "Pageouts (MiB)"; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage" && o=$(ps acrx -o comm,ruid,%cpu | sed '2!d'); PR "Max %CPU by process (name, UID, %)"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {/,}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; [ "$r" ] && { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; }; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2> /dev/null | pbcopy; exit
Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter your password, the script will run anyway, but it will produce less information. In most cases, the difference is not important, so don't worry about it.
The script may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "[Process completed]" to appear in the Terminal window.
You can then quit Terminal. The output of the script will have been copied to the Clipboard automatically. All you have to do is paste into a reply to this message by pressing command-V again.
Please note:
☞ This procedure is all copy-and-paste — type nothing in the Terminal window except your login password if and when prompted.
☞ Remember to post the output. It's already in the Clipboard when you see "[Process completed]" in the Terminal window. You don't have to copy the output; just paste into your web browser.
☞ If any personal information, such as your name or email address, appears in the output, anonymize it before posting. Usually that won't be necessary. -
New mountain lion update causing macbook to run very slow?
New mountain lion update causing macbook to run very slow?
Select Apple menu > About This Mac from the menu bar. How much memory is installed?
-
Having just bought an iMac and set every thing up I have found that my IPad seems to run very slow. I have also just updated the IPad to OS 5.1 .Are these two things connected or is there a problem with the IPad
Using the Mac with your iPad has nothing to do with the fact that the iPad is running slow. There could be any number of reasons why the iPad is now running slow.
Have you tried a reset on the iPad?
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
My iMac is running very slow since updating to Maverick
My iMac is running very slow since updating to Maverick. Also scrolling up & down on my mouse is backwards since updating. Any ideas?
EtreCheck version: 1.9.12 (48)
Report generated June 30, 2014 at 11:01:11 PM EDT
Hardware Information:
iMac (21.5-inch, Late 2009) (Verified)
iMac - model: iMac10,1
1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
4 GB RAM
Video Information:
ATI Radeon HD 4670 - VRAM: 256 MB
iMac 1920 x 1080
System Software:
OS X 10.9.3 (13D65) - Uptime: 0 days 5:6:45
Disk Information:
ST31000528AS disk0 : (1 TB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 999.35 GB (278.87 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
OPTIARC DVD RW AD-5680H
USB Information:
Seagate Backup+ Mac SL 1 TB
EFI (disk1s1) <not mounted>: 209.7 MB
Seagate Backup Plus Drive (disk1s2) /Volumes/Seagate Backup Plus Drive: 999.86 GB (203.38 GB free)
Apple Inc. Built-in iSight
Apple Internal Memory Card Reader
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Gatekeeper:
Mac App Store and identified developers
Kernel Extensions:
[not loaded] com.leapfrog.codeless.kext (2) Support
[not loaded] com.leapfrog.driver.LfConnectDriver (1.0.6 - SDK 10.0) Support
[loaded] com.logmein.hamachi (1.0) Support
[loaded] com.seagate.driver.PowSecDriverCore (5.2.3 - SDK 10.4) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.2.3 - SDK 10.4) Support
[loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.2.3 - SDK 10.5) Support
[not loaded] com.seagate.driver.SeagateDriveIcons (5.2.3 - SDK 10.4) Support
Startup Items:
HP IO: Path: /Library/StartupItems/HP IO
Problem System Launch Daemons:
[running] com.seagate.TBDecorator.plist Support
Launch Daemons:
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.leapfrog.connect.shell.plist Support
[running] com.logmein.hamachi.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
Launch Agents:
[not loaded] com.adobe.AAM.Updater-1.0.plist Support
[loaded] com.adobe.CS5ServiceManager.plist Support
[running] com.logmein.hamachimb.plist Support
User Launch Agents:
[loaded] com.adobe.AAM.Updater-1.0.plist Support
[running] com.akamai.single-user-client.plist Support
[failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
[loaded] com.google.keystone.agent.plist Support
User Login Items:
Monitor
iTunesHelper
Internet Plug-ins:
Flip4Mac WMV Plugin: Version: 2.4.4.2 Support
FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0
Flash Player: Version: 13.0.0.214 - SDK 10.6 Outdated! Update
Default Browser: Version: 537 - SDK 10.9
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.0.0 Support
Google Earth Web Plug-in: Version: 7.1 Support
Silverlight: Version: 4.0.51204.0 Support
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
Safari Extensions:
Add To Amazon Wish List: Version: 1.8
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
User Internet Plug-ins:
RealPlayer Plugin: Version: Unknown
3rd Party Preference Panes:
Akamai NetSession Preferences Support
Flash Player Support
Flip4Mac WMV Support
Growl Support
Time Machine:
Skip System Files: NO
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 930.71 GB Disk used: 670.99 GB
Destinations:
Seagate Backup Plus Drive [Local] (Last used)
Total size: 931.19 GB
Total number of backups: 88
Oldest backup: 2012-12-28 20:31:23 +0000
Last backup: 2014-07-01 03:00:07 +0000
Size of backup disk: Too small
Backup size 931.19 GB < (Disk used 670.99 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU:
2% WindowServer
0% com.apple.WebKit.WebContent
0% fontd
0% loginwindow
0% iTunes
Top Processes by Memory:
225 MB iTunes
221 MB com.apple.WebKit.WebContent
156 MB softwareupdated
135 MB Safari
119 MB com.apple.MediaLibraryService
Virtual Memory Information:
1.19 GB Free RAM
2.02 GB Active RAM
279 MB Inactive RAM
529 MB Wired RAM
751 MB Page-ins
0 B Page-outs
Maybe you are looking for
-
Data Import from SAP R/3 to SAP MDM 7.1 without SAP PI
Hi All, I have a requirement to import Vendor Master data from SAP R/3 to SAP MDM 7.1 on a regular basis. What are the Options available for data transfer between these two systems without any middleware(like SAP PI,etc). I checked the SAP Documentat
-
Hi Experts, when i am doing PO with xyz material. i am trying to search vendor. through radio button Vendors : By material . so i go list of vendors but vendor number and info record and plant. how can i get vendor number and NAME in that Hit list.
-
Recently some of my contacts are no longer displaying in my contact list, but I know they're in memory because when one of them calls me my phone recognizes the caller. This happened a few days ago, so i must have changed some setting,but I have no
-
I made this cheat sheet and wanted to share it as I see many questions about starting and stoping Oracle: Oracle URL Links Oracle Enterprise Manager: http://host.domain:5500/em/ Oracle IsqlPlus Manager: http://host.domain:5560/isqlplus Oracle IsqlPlu
-
Is it possible to use .amr files in Logic Pro 9?
I have a .amr file. Is it possible to use in Logic Pro and if so how? If not is there a way to convert it?