Query is slow... Please help
I have view,we are calling this view in the VB application. It is taking 400 seconds to pull the data from this view. I have a proper indexes... Still it is slow. Any one can help me...
CREATE OR REPLACE FORCE VIEW RMSADMIN.V_EQUIPMENT_TYPE_BROWSE
(RECID, PARTNUM, REV_LEV, FC, FC_REV_DISPLAY,
EQP_TYPE_DESC, LOCAL_TOOL, TOOLTYPE, COMPONENTDESC, MOTORSIZE,
POWERTYPE, STAGES, LOBES, MATRIX, CONNECTION,
STABSIZE, SITEID)
AS
SELECT EI.ROWID AS RECID,
NVL(EI.PARTNUM,''),
NVL(EI.REV_LEV,''),
NVL(EI.FC_DISPLAY,''),
NVL(EI.FC_REV_DISPLAY,' ') FC_REV_DISPLAY,
NVL(EI.EQP_TYPE_DESC,''),
NVL(EI.LOCAL_TOOL,''),
NVL(EI.TT_NAME,''),
NVL(MC.DESCRIPTION, '') COMPONENTDESC,
NVL(MS.MOTORSIZE, '') MOTORSIZE,
NVL(MP.MOTORPOWERTYPE, '') POWERTYPE,
NVL(MST.MOTORSTAGES, '') STAGES,
NVL(ML.MOTORLOBES, '') LOBES,
NVL(MM.MATRIXTYPE, '') MATRIX,
NVL(MC.MOTORCONNECTION, '') CONNECTION,
NVL(SS.MOTORSTABSIZE, '') STABSIZE,
EI.SITEID
FROM T_EQP_TYPE_MOTORINFO MI,
T_EQP_TYPE EI,
T_LKP_MOTOR_COMPONENT_TYPE MC,
T_LKP_MOTORSIZE MS,
T_LKP_MOTORPOWERTYPE MP,
T_LKP_MOTORSTAGES MST,
T_LKP_MOTORLOBES ML,
T_LKP_MOTORMATRIXTYPE MM,
T_LKP_MOTORCONNECTION MC,
T_LKP_MOTORSTABSIZE SS
WHERE EI.ID = MI.EQP_type_ID(+) AND
EI.SITEID = MI.EQP_TYPE_SITEID(+) AND
MI.COMPONENTTYPE_ID = MC.MOTOR_COMP_TYPE_ID(+) AND
MI.COMPONENTTYPE_SITEID = MC.MOTOR_COMP_TYPE_SITEID(+) AND
MI.SIZE_ID = MS.ID(+) AND
MI.SIZE_SITEID = MS.SITEID(+) AND
MI.POWERTYPE_ID = MP.ID(+) AND
MI.POWERTYPE_SITEID = MP.SITEID(+) AND
MI.STAGES_ID = MST.ID(+) AND
MI.STAGES_SITEID = MST.SITEID(+) AND
MI.LOBES_ID = ML.ID(+) AND
MI.LOBES_SITEID = ML.SITEID(+) AND
MI.MOTORMATRIX_TYPE_ID = MM.MOTORMATRIX_TYPE_ID(+) AND
MI.MOTORMATRIX_TYPE_SITEID = MM.MOTORMATRIX_TYPE_SITEID(+) AND
MI.CONNECTION_ID = MC.ID(+) AND
MI.CONNECTION_SITEID = MC.SITEID(+) AND
MI.STABSIZE_ID = SS.ID(+) AND
MI.STABSIZE_SITEID = SS.SITEID(+);
Are the statistics on the table up to date? If /*+ FIRST_ROWS */ is improving performance, Oracle is probably not using all the indexes it can in the unhinted query. This is often the case when the CBO has bad statistics to work with and thinks that full table scans are excessively cheap.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
Hello Experts ,
Please help me
my macbook Suddenly Running Very slow not vey its super slow please help i am attaching Report
EtreCheck version: 2.1.8 (121)
Report generated February 5, 2015 at 6:04:18 AM PST
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 (13-inch, Mid 2012) (Technical Specifications)
MacBook Pro - model: MacBookPro9,2
1 2.9 GHz Intel Core i7 CPU: 2-core
8 GB RAM Upgradeable
BANK 0/DIMM0
4 GB DDR3 1600 MHz ok
BANK 1/DIMM0
4 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 410
Video Information: ℹ️
Intel HD Graphics 4000
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10.2 (14C109) - Time since boot: 10:25:19
Disk Information: ℹ️
TOSHIBA MK7559GSXF disk0 : (750.16 GB)
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / : 748.93 GB (242.19 GB free)
Core Storage: disk0s2 749.30 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Logitech USB Receiver
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Configuration files: ℹ️
/etc/hosts - Count: 1
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Library/Extensions
[not loaded] com.BlackBerry.driver.USBCDCNCM (1.0.10 - SDK 10.7) [Click for support]
[not loaded] com.rim.driver.BlackBerryVirtualPrivateNetwork (1.0.18 - SDK 10.8) [Click for support]
[not loaded] foo.tap (1.0) [Click for support]
[not loaded] foo.tun (1.0) [Click for support]
/System/Library/Extensions
[not loaded] com.cisco.nke.ipsec (1.0.0) [Click for support]
[loaded] com.rim.driver.BlackBerryUSBDriverInt (0.0.97) [Click for support]
[not loaded] com.rim.driver.BlackBerryUSBDriverVSP (0.0.97) [Click for support]
[not loaded] com.tomtom.driver.UsbEthernetGadget (1.0.0d1) [Click for support]
Startup Items: ℹ️
CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
Startup items are obsolete in OS X Yosemite
Problem System Launch Agents: ℹ️
[loaded] com.paragon.NTFS.trial.plist [Click for support]
[loaded] com.paragon.NTFS.upd.plist [Click for support]
Launch Agents: ℹ️
[loaded] com.oracle.java.Java-Updater.plist [Click for support]
[running] com.teamviewer.teamviewer.plist [Click for support]
[running] com.teamviewer.teamviewer_desktop.plist [Click for support]
[running] jp.co.canon.CUPSCMFP.BG.plist [Click for support]
[running] jp.co.canon.UFR2.BG.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[loaded] com.chungwasoft.Shimo.plist [Click for support]
[loaded] com.google.keystone.daemon.plist [Click for support]
[loaded] com.macpaw.CleanMyMac2.Agent.plist [Click for support]
[loaded] com.microsoft.office.licensing.helper.plist [Click for support]
[loaded] com.oracle.java.Helper-Tool.plist [Click for support]
[running] com.oracle.java.JavaUpdateHelper.plist [Click for support]
[running] com.rim.tunmgr.plist [Click for support]
[loaded] com.teamviewer.Helper.plist [Click for support]
[running] com.teamviewer.teamviewer_service.plist [Click for support]
User Launch Agents: ℹ️
[not loaded] com.adobe.ARM.[...].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: ℹ️
None
Internet Plug-ins: ℹ️
JavaAppletPlugin: Version: Java 8 Update 31 Check version
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
Default Browser: Version: 600 - SDK 10.10
AdobePDFViewerNPAPI: Version: 10.1.12 [Click for support]
AdobePDFViewer: Version: 10.1.12 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.2.4 - SDK 10.6 [Click for support]
googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
Silverlight: Version: 5.1.10411.0 - SDK 10.6 [Click for support]
iPhotoPhotocast: Version: 7.0 - SDK 10.8
Safari Extensions: ℹ️
AdBlock
iTube Studio
3rd Party Preference Panes: ℹ️
AirServer [Click for support]
Flash Player [Click for support]
Flip4Mac WMV [Click for support]
Java [Click for support]
Paragon NTFS for Mac ® OS X [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
31% TeamViewer_Desktop
20% WindowServer
1% launchd
1% TeamViewer_Service
0% UFR II BackGrounder
Top Processes by Memory: ℹ️
180 MB mds_stores
172 MB Finder
103 MB WindowServer
88 MB TeamViewer_Desktop
86 MB mds
Virtual Memory Information: ℹ️
2.87 GB Free RAM
4.13 GB Active RAM
523 MB Inactive RAM
1.07 GB Wired RAM
2.58 GB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Feb 4, 2015, 11:25:03 PM /Library/Logs/DiagnosticReports/Activity Monitor_2015-02-04-232503_[redacted].crash
Feb 4, 2015, 07:27:24 PM Self test - passed
Feb 2, 2015, 07:47:02 PM /Users/[redacted]/Library/Logs/DiagnosticReports/TeamViewer_2015-02-02-194702_[ redacted].crash
Feb 2, 2015, 06:37:06 PM /Library/Logs/DiagnosticReports/Microsoft Word_2015-02-02-183706_[redacted].hang
Feb 2, 2015, 06:33:40 PM /Users/[redacted]/Library/Logs/DiagnosticReports/AdobeAcrobat_2015-02-02-183340 _[redacted].crashRemove Clean My Mac: http://macpaw.com/support/cleanmymac/knowledgebase/how-to-uninstall-cleanmymac-2
If you are not using TeamViewer, remove it also. If you had it running while you ran Etrecheck, then it doesn't need to be removed.
~Lyssa -
MacBook Pro 13" Suddenly Started Running Super Slow, please help!
Yesterday I was on the computer on Facebook, then I spilled a juice over the keyboard. I turned it off and let it sit there, then I turned it on and it took about 3 minutes to show the Log in screen, then I logged in and it was taking long to load the stuff in my desktop and it was being really slow for everything.
Please Help!
I got it on December, and I don't have much time with it!! I really need to fix it.
Oh and the track pad stopped moving the pointer...This should explain it:
http://www.apple.com/retail/geniusbar/
They are FREE.
Ciao. -
How to know the most queried item? (please help me)
I'm doing a library's bookkeeping.
In a report I wanna know what's the book more queried or the most looked. But I dont know how to put the query in SQL.
can you please tell me?
the columns in the table are:
books varchar2(30)
author varchar2 (30)
(THERE's NOT any Book_id) or something.
please help me.That's not a Forms question. Please direct your question to the appropriate forum.
However, using those columns, there is no way to tell the book most queried, unless you store that information yourself, or use some sort of auditing in the database.
Regards,
Robin Zimmermann
Forms Product Management -
Query Using Joins.Please Help
Hi,
A Query please
I have a Customer table and an Order Table
The customer can place multiple orders
Create Table Customers
(Cust_id number(2),
cust_name varchar2(15),
constraint pk_custid PRIMARY KEY(Cust_id)
Create Table Orders
(Order_no number(2),
Cust_id number(2),
order_status varchar2(1),
constraint pk_orderno PRIMARY KEY(order_no),
constraint fk_custid FOREIGN KEY(cust_id)
REFERENCES Customers(cust_id)
)Now,the Customer table has a single record
whereas the Order Table has multiple records
for the same customer.
SQL> Select * from Orders
ORDER_NO CUST_ID ORDER_STATUS
1 1 P
2 1 PI'd like to view the different orders for that same customer
Using a simple Join DOES NOT give the right output:
SQL> Select C.cust_id,C.cust_name,
2 O.order_no,O.order_status
3 From Customers C,Orders O
4 where C.cust_id = O.order_no;
CUST_ID CUST_NAME ORDER_NO O
1 ABCD 1 PThere are 2 records in the Orders Table?
How to view both the records from Orders Table?
Do I need to use the EXISTS clause?
Can someone please help?Well, I would have thought that you would join C.cust_id with the O.cust_id (and not O.order_no)???
SQL> Select C.cust_id,C.cust_name,
2 O.order_no,O.order_status
3 From Customers C,Orders O
4 where C.cust_id = O.order_no; -
G5 now extremely slow - please help
I have a 3 year old IMAC G5 PowerPC that up until 2 weeks ago ran like a charm. It's now slow to a crawl during any sort of tasks. There was nothing installed or upgraded to this computer that could have caused this. So far this is what I have done to try to correct this problem ... not much but a few things. I ran SMART UTILITY .. and my HD failed the test so I thought for sure this was the culprit. Went out the next day and baught a new 500Gb drive, installed FRESH copy of TIGER on it and prayed. There was no change in speed whatsoever .. it actually seemed even slower than before. The only thing left that I can think of is possibly bad ram or worse a motherboard issue ... but woudnt the computer simly not boot up or give me errors if this was the case?
Please help .. I cant afford to take it to the APPLE store, hoping anyone have any suggestions or think they know what could be the problem here. I payed like $2000 for this 3 years ago and hate to have to throw it on the curb for garbage pickup.I do not know how to test my ram .. what I was going to do was ask around and test it with someone else's ram .. is there a way to check it beacuse I don't know?
The hardrive did show bad sectors but I installed a new one, tested it - all fine but that didnt help the crawl. Also do not know what your asking me or heard of that CD that tests hardware , where would I find this? -
Apple TV Extremely Slow - Please Help
I just received an Apple TV for Christmas and this is my first Apple product that I have ever been disappointed with. It's EXTREMELY SLOW! I am using it wirelessly through my Time Capsule and I have a pretty fast DSL connection. I also have a Roku box and a BluRay DVD player that has internet services as well like VuDu and NetFlix. Movies start almost instantly on all of my devices and play flawlessly except the Apple TV. Movies on Apple TV take about 5 to 8 minutes to start versus only just a few seconds on my Roku box and instantly using VuDu. Is this normal or do I have a defective unit?
Just wanted to let you all know that I have the same Problem
I own a iMac with 802.11 N WiFi With Airport Extreme I also use an iPhone 3GS WiFi G and have recently Purchased an Apple TV I can never get my Apple TV to hit rate speed of 72 or higher. I have tried everything My iMac hits rate speeds of 270 sometimes Using 802.11 N while my apple TV only hit 72 at the highest even My iPhone 3GS hit speeds of 58 to 60 with WiFi G. I have noticed that even if I set up a separate Network using the 5Ghz of the Airport Extreme I get even lower speeds like down to 38 to 40 on my Apple TV I realy dont have a lot of problems downloading movies per say but there have been times were I have had to wait like 20 min just to watch a 720p video from youtube or Movie Trailer. I can go from my TV to my computer using the same network and get the movie downloaded a lot faster using my computer???? What is going on Apple???? I really enjoy Apple products but I have to say I am somewhat unsatisfied with the Apple TV....What am I doing wrong??? I have tried to move my Airport extreme right next to Apple TV and with no speakers or anything around and I never get higher that 72 or so I Want to know is my iMac Airport Extreme Just reading it wrong or What... Please Help Apple????
Message was edited by: danimalh -
How to write this query.. Please Help
Hello Guys,
I have a table that contains all possible leave types, it is a look up table. Table name is Att_Leave_Types and data in the table is:
Leavetype_ID Leavetype_Desc
1 Annaul
2 Sick
3 Casual
4 Long
5 Maternity
Now, another table Att_Emp_Leaves Contains leaves of an employee
Columns and values are
Emp_ID leave_date levetype_id
14210 28-AUG-06 2
14210 30-AUG-06 3
14210 12-JUL-06 1
14210 13-JUL-06 1
14210 14-JUL-06 1
6902 27-AUG-06 2
6902 30-AUG-06 3
Now i want to get the following result from the query:
Group by month and year
list all leavetypes and leaves employee have availved, if no leavetype availved then the result must show 0 for the leavetype. calculate leaves for a month based on leavetype ID.
This result will help you clear what i result i want by my query.
MON_YYYY employee_id leavetype_id number_of_leaves
JUL-2006 14210 1 3
JUL-2006 14210 2 0
JUL-2006 14210 3 0
JUL-2006 14210 4 0
JU:-2006 14210 5 0
AUG-2006 14210 1 0
AUG-2006 14210 2 1
AUG-2006 14210 3 1
AUG-2006 14210 4 0
AUG-2006 14210 5 0
AUG-2006 6902 1 0
AUG-2006 6902 2 1
AUG-2006 6902 3 1
AUG-2006 6902 4 0
AUG-2006 6902 5 0
Please guide me and help me, its very urgent.
I will be thankful to you.
Regards,
Imran BaigHere we are:
DROP TABLE Att_Leave_Types;
CREATE TABLE Att_Leave_Types
Leavetype_ID NUMBER
,Leavetype_Desc VARCHAR2(30)
INSERT INTO Att_Leave_Types VALUES(1, 'Annual');
INSERT INTO Att_Leave_Types VALUES(2, 'Sick');
INSERT INTO Att_Leave_Types VALUES(3, 'Casual');
INSERT INTO Att_Leave_Types VALUES(4, 'Long');
INSERT INTO Att_Leave_Types VALUES(5, 'Maternity');
DROP TABLE Att_Emp_Leaves;
CREATE TABLE Att_Emp_Leaves
Emp_ID NUMBER
,leave_date DATE
,leavetype_id NUMBER
INSERT INTO Att_Emp_Leaves VALUES (14210, TO_DATE('01-JUL-2006', 'DD-MON-YYYY'), 1);
INSERT INTO Att_Emp_Leaves VALUES (14210, TO_DATE('10-JUL-2006', 'DD-MON-YYYY'), 1);
INSERT INTO Att_Emp_Leaves VALUES (14210, TO_DATE('15-JUL-2006', 'DD-MON-YYYY'), 1);
INSERT INTO Att_Emp_Leaves VALUES (14210, TO_DATE('15-AUG-2006', 'DD-MON-YYYY'), 2);
INSERT INTO Att_Emp_Leaves VALUES (14210, TO_DATE('25-AUG-2006', 'DD-MON-YYYY'), 3);
INSERT INTO Att_Emp_Leaves VALUES (6902, TO_DATE('15-AUG-2006', 'DD-MON-YYYY'), 2);
INSERT INTO Att_Emp_Leaves VALUES (6902, TO_DATE('25-AUG-2006', 'DD-MON-YYYY'), 3);
SELECT
LP.*
,EL.Leave_date
COLUMN Emp_ID FOR 999999
COLUMN Leave_Month FOR A8
COLUMN Leavetype_ID FOR 999
COLUMN Leavetype_desc FOR A10
COLUMN Leave_Count FOR 999
SELECT
LP.Emp_ID
,TO_CHAR(LP.Leave_Month, 'MON-YYYY') Leave_Month
,LP.Leavetype_ID
,LP.Leavetype_desc
,COUNT(EL.Emp_ID) Leave_Count
FROM
SELECT *
FROM
SELECT
Emp_ID
,ADD_MONTHS(Min_Leave_month, RN - 1) Leave_Month
,Max_Leave_month
FROM
SELECT ROWNUM RN FROM
USER_OBJECTS
WHERE ROWNUM <= 100
SELECT
Emp_ID
,TRUNC(MIN(Leave_date), 'MM') Min_Leave_month
,TRUNC(MAX(Leave_date), 'MM') Max_Leave_month
FROM Att_Emp_Leaves
GROUP BY Emp_ID
WHERE ADD_MONTHS(Min_Leave_month, RN - 1) <= Max_Leave_month
,Att_Leave_Types
-- ORDER BY Emp_ID, Leave_Month, Leavetype_ID
) LP -- Leave periods
,Att_Emp_Leaves EL -- Employee leaves
WHERE EL.Emp_ID(+) = LP.Emp_ID
AND EL.Leavetype_ID(+) = LP.Leavetype_ID
AND EL.Leave_date(+) >= LP.Leave_Month
AND EL.Leave_date(+) < ADD_MONTHS(LP.Leave_Month, 1)
GROUP BY
LP.Emp_ID
,LP.Leave_Month
,LP.Leavetype_ID
,LP.Leavetype_desc
ORDER BY
LP.Emp_ID
,LP.Leave_Month
,LP.Leavetype_ID
EMP_ID LEAVE_MO LEAVETYPE_ID LEAVETYPE_ LEAVE_COUNT
6902 AUG-2006 1 Annual 0
6902 AUG-2006 2 Sick 1
6902 AUG-2006 3 Casual 1
6902 AUG-2006 4 Long 0
6902 AUG-2006 5 Maternity 0
14210 JUL-2006 1 Annual 3
14210 JUL-2006 2 Sick 0
14210 JUL-2006 3 Casual 0
14210 JUL-2006 4 Long 0
14210 JUL-2006 5 Maternity 0
14210 AUG-2006 1 Annual 0
14210 AUG-2006 2 Sick 1
14210 AUG-2006 3 Casual 1
14210 AUG-2006 4 Long 0
14210 AUG-2006 5 Maternity 0
BW -
Need SQL query using View - Please help
Hi,
I have similar requirement like below.
I have two tables DEPT and EMP and some departments may not have employees. I have created below view, which displays all DEPT records, even though there are no emplyees.
CREATE OR REPLACE VIEW dept_emp_vw AS
SELECT deptno, empid, 0 AS selected
FROM dept d, emp e
WHERE d.deptno = e.deptnno (+);
Ex.
DEPTNO EMPID SELECTED
10 101 0
10 102 0
20 103 0
30 103 0
40 104 0
50 <null> 0
Application will pass "empid" to the view (for ex. empid = 103) and I want result like below.
Ex.
DEPTNO EMPID SELECTED
10 101 0
10 102 0
20 103 1
30 103 1
40 104 0
50 <null> 0
Can you please let me know the query using "dept_emp_vw" view. We have Oracle 11g Release 2.
Thanks a lot for the help.Not possible using normal SQL - as SQL is not a procedure language and does not support variable declaration and use (e.g. passing empid as a variable and using it both as a predicate and as a condition in the SQL projection).
That said - SQL can be "+parameterised+". An approach that is ugly and contrary to the basic design and use of SQL. But it can support the (very weird) view definition of yours.
E.g.
SQL> create or replace procedure SetVariable( name varchar2, value varchar2 ) is
2 begin
3 DBMS_SESSION.set_context( 'MyVariables', name, value );
4 end;
5 /
Procedure created.
SQL>
SQL>
SQL> create or replace context MyVariables using SetVariable;
Context created.
SQL>
SQL> create or replace view my_funky_weird_view as
2 select
3 e.empno,
4 e.ename,
5 e.job,
6 case e.empno
7 when to_number(sys_context( 'MyVariables', 'empid' )) then
8 0
9 else
10 1
11 end as "SELECTED"
12 from emp e
13 /
View created.
SQL>
SQL> exec SetVariable( 'empid', 7499 )
PL/SQL procedure successfully completed.
SQL>
SQL> select * from session_context where namespace = 'MYVARIABLES';
NAMESPACE ATTRIBUTE VALUE
MYVARIABLES EMPID 7499
SQL>
SQL> select * from my_funky_weird_view order by selected;
EMPNO ENAME JOB SELECTED
7499 ALLEN SALESMAN 0
7521 WARD SALESMAN 1
7566 JONES MANAGER 1
7654 MARTIN SALESMAN 1
7698 BLAKE MANAGER 1
7934 MILLER CLERK 1
7788 SCOTT ANALYST 1
7839 KING PRESIDENT 1
7844 TURNER SALESMAN 1
7876 ADAMS CLERK 1
7900 JAMES CLERK 1
7902 FORD ANALYST 1
7369 SMITH CLERK 1
7782 CLARK MANAGER 1
14 rows selected.
SQL>But I will N\OT recommend doing it this way. It is not natural SQL as PL/SQL is needed to "+inject+" name-value pairs into the context for the SQL view to use. It is ugly. It is not standard. It cannot scale. It is complex to use. Etc.
Yes, there are instances when this approach is exactly what one needs - when for example dealing with a trusted context and using the contents for implementing a security layer. But in the above case - I would rather want to see the actual business requirement first, as I think you're barking up the wrong tree with the view solution you have imagined. -
New broadband connection - very slow- please help
Hi,
On 3rd of May (last Thur) I got my new phone and broadband installed. My broadband speed is soo slow that I have to buy internet dongle to get back onto proper internet.
I know about 10 days stabilization period- phoned to India couple of times and being told after 10 days I will get a better normal connection. I just dont belive that. Today is 8th day of 10days waiting and there is no changes at all! I need internet for my uni.
Please can sameone help me? any advice?
thank u in advance
1) I am connected to the master socket. I've tried to connect to test socket but things weren/t going improve.
2) Tried wireless connection and used ethernet cable. For both connections the broadband is slow.
3) Done the quiet line test- no faults.
4)
ADSL Line Status
Connection Information
Line state: Connected
Connection time: 0 days, 01:19:22
Downstream: 5.555 Mbps
Upstream: 800 Kbps
ADSL Settings
VPI/VCI: 0/38
Type: PPPoA
Modulation: G.992.5 Annex A
Latency type: Fast
Noise margin (Down/Up): 6.5 dB / 5.7 dB
Line attenuation (Down/Up): 47.4 dB / 29.5 dB
Output power (Down/Up): 20.0 dBm / 12.8 dBm
FEC Events (Down/Up): 0 / 0
CRC Events (Down/Up): 78942 / 306
Software version 4.7.5.1.83.8.57.1.3 (Type A) | Time and date 20:34 11/05/12
5)Beta speedtest
download speed: 0,32
upload speed: 0,63
Ping Latency: 37,88Here are some help pages done by CL Keith http://www.btinternet.com/~cbeddoe/speed/Speed.html
also post your full hub stats details shown in this link http://www.btinternet.com/~cbeddoe/others/adslstats.html
Have you tried connecting to the test socket at the rear of the master socket
Have you tried the quiet line test? - dial 17070 option 2 - should hear nothing - best done with a corded phone. if cordless phone you may hear a 'dull hum' which is normal
This is a customer to customer self help forum the only BT presence here are the forum moderators
If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’ -
S400u unbearably slow - Please help!
Hi all,
I've purchased this ultrabook in Brazil, in September/13.
For the last few months it's been getting annoyingly slow, to the point that I'm getting really frustrated.
The main sympthoms are:
1) The computer gets really (really!) slow, particularly after returning from hibernation or sleep mode
2) Sometimes it freezes at the welcome screen; I use image based access security, where you have to click the same spot 3 times in order to login. After I do the 3 clicks it takes about 20 seconds to start processing the info.
3) The touchpad pointer freezes. The buttons usually still work, however the pointer itself stays frozen for up to a minute.
4) Programs get really slow and unresponsive. Initially I thought it was a problem with them, but after a while all of them started to show these problems!
5) The start menu gets really slow - If I want to look for a program or file by typing it's name at the start menu, it takes a long time for the characters to even show up at the search box and, when they do, it takes even longer for the program or file to show up below it.
I've tried a number of actions in order to solve this issue, but the problem seems to grow at a fast pace.
Here's what I've done so far:
1) Updated drivers (with the drivers available at this website!)
2) Installed all Windows updates available (I run Windows 8.1)
3) Made registry modifications - to increase speed at certain tasks
4) After action 1 didn't work, I downloaded a software called Driver Boost (from iobit), to update the drivers again.
5) Installed a ram booster software
6) Used CCleaner to clean up the registry files
7) Changed the priority and affinity settings of certain tasks (lowered the priority for non-important tasks and increased for the important ones) in order to be able to dedicate more of the i5 processor's energy to what I use most.
8) Made sure the computer is free of virus and spyware.
9) Changed the power settings to max performance.
Every time I make one of these changes the computer gets a little faster for a little while, but then it gets worse.
Please assist, I use this computer to work and this is really frustrating, specially since it's suposed to be an ULTRAbook.hi megllama
upgrading to ilife'06 might not be a bad idea but my question to you is what was the size of your hard drive before? you say that you have 11 gigs left. according to apple you require 20% of harddrive to be free to allow the system to work quickly and smoothly. do you clean all your caches and cookies? freeing up space is probably what you need. download 'onyx' a maintenance application. use it to clear out caches, cookies etc. lastly, provided that you can spare the expense a memory upgrade wouldn't hurt. more RAM is a big help. -
Urgent query on joins --Please Help!!
Hi Experts,
We have two table T1 and T2 with A three columns in T1 as A(uniquie constraint and not null )and in table T2 as X.
We need to find rows in T1 for which no value of A exists in X of T2.Please provide your suggestion on the query we can frame for this requirement.
Thanks and Regards
Debashis
Edited by: user13267825 on Aug 27, 2010 3:08 AMMaybe something like this then:
SELECT a FROM t1 WHERE b = :something
MINUS
SELECT x FROM t2
/ This is a case where it is always helpful to provide the following:
1. Oracle version (SELECT * FROM V$VERSION)
2. Sample data in the form of CREATE / INSERT statements.
3. Expected output
4. Explanation of expected output (A.K.A. "business logic")
5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details. -
Query Problems. Please help
Ok, here is the breakdown.
I have three tables.
CX_ACCESS which has UserID and CLIENT_ACCESS_GROUP.
CX_CLIENT_ACCESS which has CLIENT_ACCESS_GROUP, CLIENT_START, CLIENT_STOP, BRANCH_START, BRANCH_STOP.
CX_CLIENT_BRANCH which has CLIENT and BRANCH.
An explination of the CX_CLIENT_ACCESS table is that any client and branch within that range is excluded from a user's access with that CLIENT_ACCESS_GROUP. There can be overlaps within this table.
I'm trying to set up a query to show what CLIENT and BRANCH combinations each CLIENT_ACCESS_GROUP can see.
This is what I have but it is VERY slow. Can anyone help speed it up at all?
select distinct CLIENT, BRANCH, CLIENT_ACCESS_GROUP
from CX_CLIENT_BRANCH, CX_ACCESS
where not exists (select CLIENT_START
from CX_CLIENT_ACCESS
where CX_ACCESS.CLIENT_ACCESS_GROUP = CX_CLIENT_ACCESS.CLIENT_ACCESS_GROUP
and CX_CLIENT_BRANCH.CLIENT
between CX_CLIENT_ACCESS.CLIENT_START
and CX_CLIENT_ACCESS.CLIENT_STOP
and CX_CLIENT_BRANCH.BRANCH
between CX_CLIENT_ACCESS.BRANCH_START
and CX_CLIENT_ACCESS.BRANCH_STOP)
order by CLIENT_ACCESS_GROUP, CLIENT, BRANCH;
Thanks in advance,
Chris S.Chris:
Once more into the breach. This time I actually tested, based on your scenario. No guarantees that it is any faster than your exists version. My data and results:
SQL> SELECT * FROM cx_access;
USERID CLIENT_ACCESS_GROUP
1 1
2 1
3 2
SQL> SELECT * FROM cx_client_access;
CLIENT_ACCESS_GROUP CLIENT_START CLIENT_STOP BRANCH_START BRANCH_STOP
1 100 150 1 9999
1 200 250 1 9999
2 10 50 1 9999
2 200 250 1 500
SQL> SELECT * FROM cx_client_branch;
CLIENT BRANCH
5 50
10 75
110 200
149 201
175 500
225 501
SQL> SELECT a.userid,a.client_access_group,client,branch
2 FROM cx_access a,
3 (SELECT DISTINCT client_access_group,client,branch
4 FROM cx_client_branch ,cx_access
5 MINUS
6 SELECT b.client_access_group,client,branch
7 FROM cx_client_branch a, cx_client_access b
8 WHERE a.client BETWEEN b.client_start AND b.client_stop and
9 a.branch BETWEEN b.branch_start AND b.branch_stop) b
10 WHERE a.client_access_group = b.client_access_group;
USERID CLIENT_ACCESS_GROUP CLIENT BRANCH
1 1 5 50
2 1 5 50
1 1 10 75
2 1 10 75
1 1 175 500
2 1 175 500
3 2 5 50
3 2 110 200
3 2 149 201
3 2 175 500
3 2 225 501HTH
John -
Sql Query Tuning. Please help me to tune this query
Hi All ,
I have this problematic Sql . It is taking huge time to execute. It contains a view CIDV, which i think is the bottleneck.
I have pasted the query below. I will be pasting TKPROF and explain plan for the same. Please advice me to tune this query.
SELECT GCC.SEGMENT1 || '.' || GCC.SEGMENT2 || '.' || GCC.SEGMENT3 || '.' ||
GCC.SEGMENT4 || '.' || GCC.SEGMENT5 || '.' || GCC.SEGMENT6 || '.' ||
GCC.SEGMENT7 || '.' || GCC.SEGMENT8 || '.' || GCC.SEGMENT9 OFFSET_ACCOUNT,
OOD.ORGANIZATION_CODE,
CIDV.SUBINVENTORY_CODE OFFSET_SUBINV,
MIL.SEGMENT1 || '.' || MIL.SEGMENT2 || '.' || MIL.SEGMENT3 || '.' ||
MIL.SEGMENT4 || '.' || MIL.SEGMENT5 OFFSET_LOCATOR,
CIDV.LAST_UPDATE_LOGIN
FROM APPS.CST_INV_DISTRIBUTION_V CIDV,
APPS.GL_CODE_COMBINATIONS GCC,
APPS.MTL_ITEM_LOCATIONS MIL,
APPS.ORG_ORGANIZATION_DEFINITIONS OOD
WHERE CIDV.TRANSACTION_ID = :B2
AND CIDV.PRIMARY_QUANTITY = (-1) * :B1
AND CIDV.REFERENCE_ACCOUNT = GCC.CODE_COMBINATION_ID
AND OOD.ORGANIZATION_ID = CIDV.ORGANIZATION_ID
AND MIL.INVENTORY_LOCATION_ID = CIDV.LOCATOR_ID
AND GCC.ACCOUNT_TYPE = 'A'****************
TKPROF
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 68337 10.32 10.32 0 0 0 0
Fetch 68337 229.75 936.36 58819 6743323 1121 68232
total 136675 240.07 946.69 58819 6743323 1121 68232
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 203 (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 MERGE JOIN CARTESIAN (cr=102 pr=15 pw=0 time=193608 us cost=56 size=219 card=1)
1 1 1 NESTED LOOPS (cr=100 pr=15 pw=0 time=193483 us cost=53 size=219 card=1)
1 1 1 NESTED LOOPS (cr=99 pr=15 pw=0 time=193407 us cost=52 size=215 card=1)
1 1 1 NESTED LOOPS (cr=96 pr=15 pw=0 time=193378 us cost=51 size=190 card=1)
1 1 1 NESTED LOOPS (cr=93 pr=15 pw=0 time=193284 us cost=49 size=162 card=1)
1 1 1 NESTED LOOPS (cr=89 pr=14 pw=0 time=185515 us cost=46 size=138 card=1)
1 1 1 NESTED LOOPS (cr=85 pr=12 pw=0 time=157975 us cost=44 size=81 card=1)
1 1 1 NESTED LOOPS (cr=83 pr=12 pw=0 time=157925 us cost=43 size=73 card=1)
1 1 1 NESTED LOOPS (cr=81 pr=12 pw=0 time=157641 us cost=43 size=132 card=2)
1 1 1 VIEW CST_INV_DISTRIBUTION_V (cr=78 pr=12 pw=0 time=156386 us cost=41 size=118 card=2)
1 1 1 UNION-ALL (cr=78 pr=12 pw=0 time=156378 us)
0 0 0 NESTED LOOPS OUTER (cr=44 pr=9 pw=0 time=124997 us cost=20 size=291 card=1)
0 0 0 NESTED LOOPS (cr=44 pr=9 pw=0 time=124993 us cost=18 size=255 card=1)
0 0 0 NESTED LOOPS (cr=44 pr=9 pw=0 time=124990 us cost=18 size=251 card=1)
33 33 33 MERGE JOIN CARTESIAN (cr=25 pr=6 pw=0 time=98544 us cost=14 size=192 card=1)
1 1 1 NESTED LOOPS OUTER (cr=22 pr=5 pw=0 time=85754 us cost=12 size=156 card=1)
1 1 1 NESTED LOOPS (cr=19 pr=4 pw=0 time=79830 us cost=10 size=120 card=1)
1 1 1 NESTED LOOPS OUTER (cr=17 pr=4 pw=0 time=79813 us cost=9 size=113 card=1)
1 1 1 NESTED LOOPS (cr=15 pr=4 pw=0 time=79752 us cost=8 size=106 card=1)
1 1 1 NESTED LOOPS (cr=11 pr=2 pw=0 time=43120 us cost=6 size=93 card=1)
1 1 1 NESTED LOOPS (cr=7 pr=2 pw=0 time=43087 us cost=4 size=83 card=1)
1 1 1 NESTED LOOPS (cr=6 pr=2 pw=0 time=43072 us cost=4 size=80 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_MATERIAL_TRANSACTIONS (cr=5 pr=2 pw=0 time=43042 us cost=4 size=76 card=1)
1 1 1 INDEX UNIQUE SCAN MTL_MATERIAL_TRANSACTIONS_U1 (cr=4 pr=2 pw=0 time=43011 us cost=3 size=0 card=1)(object id 12484094)
1 1 1 INDEX UNIQUE SCAN MTL_TRANSACTION_TYPES_U1 (cr=1 pr=0 pw=0 time=20 us cost=0 size=764 card=191)(object id 9983)
1 1 1 INDEX UNIQUE SCAN MTL_TXN_SOURCE_TYPES_U1 (cr=1 pr=0 pw=0 time=7 us cost=0 size=54 card=18)(object id 9987)
1 1 1 INDEX UNIQUE SCAN MTL_SYSTEM_ITEMS_B_U1 (cr=4 pr=0 pw=0 time=27 us cost=2 size=736324450 card=73632445)(object id 12484155)
1 1 1 INDEX UNIQUE SCAN MTL_SYSTEM_ITEMS_TL_U1 (cr=4 pr=2 pw=0 time=36626 us cost=2 size=957481070 card=73652390)(object id 12484137)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=42 us cost=1 size=3290 card=470)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=28 us cost=0 size=0 card=1)(object id 9847)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=12 us cost=1 size=3290 card=470)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=7 us cost=0 size=0 card=1)(object id 9847)
0 0 0 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=1 pw=0 time=5915 us cost=2 size=36 card=1)(object id 705891)
33 33 33 BUFFER SORT (cr=3 pr=1 pw=0 time=12713 us cost=12 size=36 card=1)
33 33 33 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=1 pw=0 time=12582 us cost=2 size=36 card=1)(object id 705891)
0 0 0 TABLE ACCESS BY INDEX ROWID MTL_TRANSACTION_ACCOUNTS (cr=19 pr=3 pw=0 time=26591 us cost=4 size=59 card=1)
66 66 66 INDEX RANGE SCAN MTL_TRANSACTION_ACCOUNTS_N1 (cr=18 pr=2 pw=0 time=13607 us cost=3 size=0 card=3)(object id 12484127)
0 0 0 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=0 pr=0 pw=0 time=0 us cost=0 size=4 card=1)(object id 9847)
0 0 0 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=0 pr=0 pw=0 time=0 us cost=2 size=36 card=1)(object id 705891)
1 1 1 NESTED LOOPS (cr=34 pr=3 pw=0 time=31269 us cost=21 size=288 card=1)
1 1 1 NESTED LOOPS (cr=30 pr=3 pw=0 time=31161 us cost=19 size=275 card=1)
1 1 1 NESTED LOOPS (cr=26 pr=3 pw=0 time=31105 us cost=17 size=265 card=1)
1 1 1 NESTED LOOPS (cr=25 pr=3 pw=0 time=31082 us cost=17 size=261 card=1)
1 1 1 NESTED LOOPS OUTER (cr=23 pr=3 pw=0 time=31027 us cost=16 size=254 card=1)
1 1 1 NESTED LOOPS (cr=21 pr=3 pw=0 time=30980 us cost=15 size=247 card=1)
1 1 1 NESTED LOOPS (cr=20 pr=3 pw=0 time=30957 us cost=15 size=243 card=1)
1 1 1 NESTED LOOPS OUTER (cr=19 pr=3 pw=0 time=30926 us cost=15 size=240 card=1)
1 1 1 NESTED LOOPS (cr=16 pr=3 pw=0 time=30389 us cost=13 size=204 card=1)
1 1 1 NESTED LOOPS (cr=11 pr=0 pw=0 time=665 us cost=9 size=131 card=1)
1 1 1 NESTED LOOPS OUTER (cr=8 pr=0 pw=0 time=306 us cost=7 size=95 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_TRANSACTION_ACCOUNTS (cr=5 pr=0 pw=0 time=37 us cost=5 size=59 card=1)
2 2 2 INDEX RANGE SCAN MTL_TRANSACTION_ACCOUNTS_N1 (cr=4 pr=0 pw=0 time=17 us cost=4 size=0 card=3)(object id 12484127)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=216 us cost=2 size=36 card=1)(object id 705891)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=352 us cost=2 size=36 card=1)(object id 705891)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_MATERIAL_TRANSACTIONS (cr=5 pr=3 pw=0 time=29716 us cost=4 size=73 card=1)
1 1 1 INDEX RANGE SCAN MTL_MATERIAL_TRANSACTIONS_N23 (cr=4 pr=3 pw=0 time=29588 us cost=3 size=0 card=1)(object id 12484133)
0 0 0 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=520 us cost=2 size=36 card=1)(object id 705891)
1 1 1 INDEX UNIQUE SCAN MTL_TXN_SOURCE_TYPES_U1 (cr=1 pr=0 pw=0 time=22 us cost=0 size=3 card=1)(object id 9987)
1 1 1 INDEX UNIQUE SCAN MTL_TRANSACTION_TYPES_U1 (cr=1 pr=0 pw=0 time=16 us cost=0 size=4 card=1)(object id 9983)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=34 us cost=1 size=7 card=1)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=19 us cost=0 size=0 card=1)(object id 9847)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=44 us cost=1 size=7 card=1)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=14 us cost=0 size=0 card=1)(object id 9847)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=13 us cost=0 size=4 card=1)(object id 9847)
1 1 1 INDEX UNIQUE SCAN MTL_SYSTEM_ITEMS_B_U1 (cr=4 pr=0 pw=0 time=49 us cost=2 size=10 card=1)(object id 12484155)
1 1 1 INDEX UNIQUE SCAN MTL_SYSTEM_ITEMS_TL_U1 (cr=4 pr=0 pw=0 time=96 us cost=2 size=13 card=1)(object id 12484137)
1 1 1 TABLE ACCESS BY INDEX ROWID HR_ALL_ORGANIZATION_UNITS (cr=3 pr=0 pw=0 time=1246 us cost=1 size=7 card=1)
1 1 1 INDEX UNIQUE SCAN HR_ORGANIZATION_UNITS_PK (cr=2 pr=0 pw=0 time=24 us cost=0 size=0 card=1)(object id 250158)
1 1 1 INDEX UNIQUE SCAN HR_ALL_ORGANIZATION_UNTS_TL_PK (cr=2 pr=0 pw=0 time=275 us cost=0 size=7 card=1)(object id 689101)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=38 us cost=1 size=8 card=1)
1 1 1 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=15 us cost=0 size=0 card=1)(object id 9847)
1 1 1 TABLE ACCESS BY INDEX ROWID GL_CODE_COMBINATIONS (cr=4 pr=2 pw=0 time=27531 us cost=2 size=57 card=1)
1 1 1 INDEX UNIQUE SCAN GL_CODE_COMBINATIONS_U1 (cr=3 pr=1 pw=0 time=19925 us cost=1 size=0 card=1)(object id 51426)
1 1 1 TABLE ACCESS BY INDEX ROWID MTL_ITEM_LOCATIONS (cr=4 pr=1 pw=0 time=7758 us cost=3 size=24 card=1)
1 1 1 INDEX RANGE SCAN MTL_ITEM_LOCATIONS_U1 (cr=3 pr=0 pw=0 time=51 us cost=2 size=0 card=1)(object id 9761)
1 1 1 TABLE ACCESS BY INDEX ROWID HR_ORGANIZATION_INFORMATION (cr=3 pr=0 pw=0 time=85 us cost=2 size=28 card=1)
1 1 1 INDEX RANGE SCAN HR_ORGANIZATION_INFORMATIO_FK2 (cr=2 pr=0 pw=0 time=29 us cost=1 size=0 card=2)(object id 5379798)
1 1 1 TABLE ACCESS BY INDEX ROWID HR_ORGANIZATION_INFORMATION (cr=3 pr=0 pw=0 time=25 us cost=1 size=25 card=1)
1 1 1 INDEX RANGE SCAN HR_ORGANIZATION_INFORMATIO_FK2 (cr=2 pr=0 pw=0 time=11 us cost=1 size=0 card=1)(object id 5379798)
1 1 1 INDEX FULL SCAN GL_SETS_OF_BOOKS_U2 (cr=1 pr=0 pw=0 time=69 us cost=1 size=4 card=1)(object id 1380842)
1 1 1 BUFFER SORT (cr=2 pr=0 pw=0 time=110 us cost=55 size=0 card=1)
1 1 1 TABLE ACCESS FULL FND_PRODUCT_GROUPS (cr=2 pr=0 pw=0 time=59 us cost=3 size=0 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
library cache lock 2 0.00 0.00
library cache pin 2 0.00 0.00
Disk file operations I/O 249 0.00 0.00
db file sequential read 58819 2.61 714.28
gc cr grant 2-way 5198 0.16 4.52
gc current grant busy 1 0.00 0.00
KJC: Wait for msg sends to complete 517 0.00 0.05
library cache: mutex X 433 0.01 0.04
gc cr grant congested 28 0.08 0.18
latch: ges resource hash list 5 0.00 0.00
gc current block 2-way 513 0.11 0.61
gc current block congested 2 0.00 0.00
latch: gc element 16 0.00 0.01
latch: cache buffers chains 4 0.00 0.00
latch: object queue header operation 3 0.00 0.00
********************************************************************************Explain Plan for the query
SELECT STATEMENT, GOAL = ALL_ROWS Cost=56 Cardinality=1 Bytes=219
MERGE JOIN CARTESIAN Cost=56 Cardinality=1 Bytes=219
NESTED LOOPS Cost=53 Cardinality=1 Bytes=219
NESTED LOOPS Cost=52 Cardinality=1 Bytes=215
NESTED LOOPS Cost=51 Cardinality=1 Bytes=190
NESTED LOOPS Cost=49 Cardinality=1 Bytes=162
NESTED LOOPS Cost=46 Cardinality=1 Bytes=138
NESTED LOOPS Cost=44 Cardinality=1 Bytes=81
NESTED LOOPS Cost=43 Cardinality=1 Bytes=73
NESTED LOOPS Cost=43 Cardinality=2 Bytes=132
VIEW Object owner=APPS Object name=CST_INV_DISTRIBUTION_V Cost=41 Cardinality=2 Bytes=118
UNION-ALL
NESTED LOOPS OUTER Cost=20 Cardinality=1 Bytes=291
NESTED LOOPS Cost=18 Cardinality=1 Bytes=255
NESTED LOOPS Cost=18 Cardinality=1 Bytes=251
MERGE JOIN CARTESIAN Cost=14 Cardinality=1 Bytes=192
NESTED LOOPS OUTER Cost=12 Cardinality=1 Bytes=156
NESTED LOOPS Cost=10 Cardinality=1 Bytes=120
NESTED LOOPS OUTER Cost=9 Cardinality=1 Bytes=113
NESTED LOOPS Cost=8 Cardinality=1 Bytes=106
NESTED LOOPS Cost=6 Cardinality=1 Bytes=93
NESTED LOOPS Cost=4 Cardinality=1 Bytes=83
NESTED LOOPS Cost=4 Cardinality=1 Bytes=80
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_MATERIAL_TRANSACTIONS Cost=4 Cardinality=1 Bytes=76
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_MATERIAL_TRANSACTIONS_U1 Cost=3 Cardinality=1
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_TRANSACTION_TYPES_U1 Cost=0 Cardinality=191 Bytes=764
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_TXN_SOURCE_TYPES_U1 Cost=0 Cardinality=18 Bytes=54
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_SYSTEM_ITEMS_B_U1 Cost=2 Cardinality=73632445 Bytes=736324450
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_SYSTEM_ITEMS_TL_U1 Cost=2 Cardinality=73652390 Bytes=957481070
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_PARAMETERS Cost=1 Cardinality=470 Bytes=3290
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_PARAMETERS Cost=1 Cardinality=470 Bytes=3290
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
BUFFER SORT Cost=12 Cardinality=1 Bytes=36
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_TRANSACTION_ACCOUNTS Cost=4 Cardinality=1 Bytes=59
INDEX RANGE SCAN Object owner=INV Object name=MTL_TRANSACTION_ACCOUNTS_N1 Cost=3 Cardinality=3
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1 Bytes=4
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
NESTED LOOPS Cost=21 Cardinality=1 Bytes=288
NESTED LOOPS Cost=19 Cardinality=1 Bytes=275
NESTED LOOPS Cost=17 Cardinality=1 Bytes=265
NESTED LOOPS Cost=17 Cardinality=1 Bytes=261
NESTED LOOPS OUTER Cost=16 Cardinality=1 Bytes=254
NESTED LOOPS Cost=15 Cardinality=1 Bytes=247
NESTED LOOPS Cost=15 Cardinality=1 Bytes=243
NESTED LOOPS OUTER Cost=15 Cardinality=1 Bytes=240
NESTED LOOPS Cost=13 Cardinality=1 Bytes=204
NESTED LOOPS Cost=9 Cardinality=1 Bytes=131
NESTED LOOPS OUTER Cost=7 Cardinality=1 Bytes=95
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_TRANSACTION_ACCOUNTS Cost=5 Cardinality=1 Bytes=59
INDEX RANGE SCAN Object owner=INV Object name=MTL_TRANSACTION_ACCOUNTS_N1 Cost=4 Cardinality=3
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_MATERIAL_TRANSACTIONS Cost=4 Cardinality=1 Bytes=73
INDEX RANGE SCAN Object owner=INV Object name=MTL_MATERIAL_TRANSACTIONS_N23 Cost=3 Cardinality=1
INDEX RANGE SCAN Object owner=APPLSYS Object name=FND_LOOKUP_VALUES_U1 Cost=2 Cardinality=1 Bytes=36
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_TXN_SOURCE_TYPES_U1 Cost=0 Cardinality=1 Bytes=3
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_TRANSACTION_TYPES_U1 Cost=0 Cardinality=1 Bytes=4
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_PARAMETERS Cost=1 Cardinality=1 Bytes=7
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_PARAMETERS Cost=1 Cardinality=1 Bytes=7
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1 Bytes=4
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_SYSTEM_ITEMS_B_U1 Cost=2 Cardinality=1 Bytes=10
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_SYSTEM_ITEMS_TL_U1 Cost=2 Cardinality=1 Bytes=13
TABLE ACCESS BY INDEX ROWID Object owner=HR Object name=HR_ALL_ORGANIZATION_UNITS Cost=1 Cardinality=1 Bytes=7
INDEX UNIQUE SCAN Object owner=HR Object name=HR_ORGANIZATION_UNITS_PK Cost=0 Cardinality=1
INDEX UNIQUE SCAN Object owner=HR Object name=HR_ALL_ORGANIZATION_UNTS_TL_PK Cost=0 Cardinality=1 Bytes=7
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_PARAMETERS Cost=1 Cardinality=1 Bytes=8
INDEX UNIQUE SCAN Object owner=INV Object name=MTL_PARAMETERS_U1 Cost=0 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=GL Object name=GL_CODE_COMBINATIONS Cost=2 Cardinality=1 Bytes=57
INDEX UNIQUE SCAN Object owner=GL Object name=GL_CODE_COMBINATIONS_U1 Cost=1 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=INV Object name=MTL_ITEM_LOCATIONS Cost=3 Cardinality=1 Bytes=24
INDEX RANGE SCAN Object owner=INV Object name=MTL_ITEM_LOCATIONS_U1 Cost=2 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=HR Object name=HR_ORGANIZATION_INFORMATION Cost=2 Cardinality=1 Bytes=28
INDEX RANGE SCAN Object owner=HR Object name=HR_ORGANIZATION_INFORMATIO_FK2 Cost=1 Cardinality=2
TABLE ACCESS BY INDEX ROWID Object owner=HR Object name=HR_ORGANIZATION_INFORMATION Cost=1 Cardinality=1 Bytes=25
INDEX RANGE SCAN Object owner=HR Object name=HR_ORGANIZATION_INFORMATIO_FK2 Cost=1 Cardinality=1
INDEX FULL SCAN Object owner=GL Object name=GL_SETS_OF_BOOKS_U2 Cost=1 Cardinality=1 Bytes=4
BUFFER SORT Cost=55 Cardinality=1
TABLE ACCESS FULL Object owner=APPLSYS Object name=FND_PRODUCT_GROUPS Cost=3 Cardinality=1 -
Recently my imac has been running unusually slow when I open/close apps or when loading things, it sometimes would freeze or take about 20 secs to load etc.
So in an attempt to fix it it cleared all unnecessary files from my computer but nothing too technical.
Then yesterday i was told by my brother to go onto disk utilities and verify/repair the disk. Both times it failed and further repeats failed. After the repair disk failed a message along the lines of "back up data you want then restore the disk" something like that.
Now today when I started up my computer in the morning it was fine, then a couple of hours ago I restarted it, and now it won't turn on properly. It goes to the apple icon with a spinning loading wheel and a empty bar underneath and after about 20 secs it shuts down. So then I did the thing where you hold down cmd and r to open osx utilities and went to disk utilities again to try and repair/verify the disk and again the same failure and messages came up suggesting to restore my disk.
Being 16 I only understand so much and understand that I will probably have to put in the installation disk or something and "re do my computer from scratch." But I do have things I want to back up before I do so but due to the load up problem I have no way of backing up photos, music and files and i don't know if the time machine has backed up the data for me (I don't really understand the time machine). I'm currently using my phone to post this, any help would be greatly appreciated because I don't really know what else to do now. My imac is 21.5 inch that I bought around 2years ago late december time. Thank you for your timeSounds like a classic HD failure. Take the machine to your local Apple Store or AASP, if it is still covered by AppleCare they will handle it at no charge. If you have been backing up then once the machine comes back restore from backup. I get you are only 16, so I'd explain to your parents the computer needs to be taken in for service, if they bought it for you they would know if it is covered by AppleCare or not, assuming they originally bought the computer for you.
Good luck. -
Macbook Pro mid-2010 is slow-please help.
My MacBook Pro is too slow & the spinning pizza appears too often. I have deleted as much as I can to help it out. I have downloaded EtreCheck as other members have & included its results below. Can anyone help me? I have read many answers and understood little, especially the complicated answers.
My macbook is as follows:
15-inch, Mid 2010
Processor 2.4 GHz Intel Core i5
Memory 4 GB 1067 MHz DDR3
Graphics NVIDIA GeForce GT 330M 256 MB
Software OS X 10.9.4 (13E28)
EtreCheck version: 1.9.15 (52)
Report generated 11 September 2014 18:56:16 BST
Hardware Information: ?
MacBook Pro (15-inch, Mid 2010) (Verified)
MacBook Pro - model: MacBookPro6,2
1 2.4 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information: ?
Intel HD Graphics - VRAM: 288 MB
NVIDIA GeForce GT 330M - VRAM: 256 MB
Color LCD 1440 x 900
System Software: ?
OS X 10.9.4 (13E28) - Uptime: 0 days 23:24:25
Disk Information: ?
Hitachi HTS545032B9SA02 disk0 : (320.07 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted>: 209.7 MB
disk0s2 (disk0s2) <not mounted>: 319.21 GB
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-898
USB Information: ?
Logitech USB Receiver
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Internal Memory Card Reader
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Apple Inc. Built-in iSight
Gatekeeper: ?
Anywhere
Kernel Extensions: ?
[not loaded] com.ZTE.driver.ZTEUSBCDCACMData (1.3.41) Support
[not loaded] com.ZTE.driver.ZTEUSBMassStorageFilter (1.3.43) Support
[not loaded] com.cisco.nke.ipsec (2.0.1) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045 (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045ACMControl (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045ACMData (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045ECMControl (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045ECMData (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1045ModeChange (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060 (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060ACMControl (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060ACMData (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060ECMControl (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060ECMData (1000.01.01) Support
[not loaded] com.icera.zte.ICZTUSBCDC1060ModeChange (1000.01.01) Support
[not loaded] com.zte.driver.cdc_ecm_qmi (1.0.30) Support
[not loaded] com.zte.driver.cdc_usb_bus (1.0.30) Support
Startup Items: ?
CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
HP IO: Path: /Library/StartupItems/HP IO
HP Trap Monitor: Path: /Library/StartupItems/HP Trap Monitor
Launch Daemons: ?
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.google.keystone.daemon.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] net.sourceforge.MonolingualHelper.plist Support
Launch Agents: ?
[loaded] com.google.keystone.agent.plist Support
[loaded] com.hp.help.tocgenerator.plist Support
[running] com.lexmark.hbnlistener.plist Support
[loaded] com.lexmark.hostinfoupdater.plist Support
[loaded] com.lexmark.hostregister.plist Support
[loaded] org.glimmerblocker.updater.plist Support
User Launch Agents: ?
[loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
[loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
[loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
User Login Items: ?
None
Internet Plug-ins: ?
Flip4Mac WMV Plugin: Version: 3.2.0.16 - SDK 10.8 Support
FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.7
Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
CouponPrinter-FireFox_v2: Version: 1.1.1 Support
Default Browser: Version: 537 - SDK 10.9
PrintDialogExt: Version: 6.1 Support
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 Support
Silverlight: Version: 5.1.30514.0 - SDK 10.6 Support
NPDjVu: Version: (null) Support
Safari Extensions: ?
AdBlock
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
3rd Party Preference Panes: ?
Flash Player Support
Time Machine: ?
Skip System Files: NO
Mobile backups: ON
Auto backup: YES
Volumes being backed up:
Destinations:
Time Machine Backups [Local] (Last used)
Total size: 465.42 GB
Total number of backups: 46
Oldest backup: 2011-02-05 21:55:46 +0000
Last backup: 2014-09-05 09:15:54 +0000
Size of backup disk: Excellent
Backup size 465.42 GB > (Disk size 0 B X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU: ?
3% WindowServer
1% mds
0% ocspd
0% fontd
0% securityd
Top Processes by Memory: ?
147 MB com.apple.IconServicesAgent
135 MB Finder
115 MB mds_stores
111 MB WindowServer
106 MB Google Chrome
Virtual Memory Information: ?
498 MB Free RAM
1.69 GB Active RAM
769 MB Inactive RAM
872 MB Wired RAM
2.31 GB Page-ins
54 MB Page-outsHey barneyhairball,
Thanks for the question. I understand that you are experiencing performance issues with your Mac. The following resource may provide a solution:
OS X Mavericks: If your Mac runs slowly
http://support.apple.com/kb/PH13895
Thanks,
Matt M.
Maybe you are looking for
-
ECC 6.0 installation o WIndows 2003 Ent R2 on SQL 2005
Hello Folks, As mentioned in subject line, I am in middle of the installation. I have got error in phase "Run ABAP Reports". The error is mentioned in the file dev_slic file which I have pasted below. It is not able to drop an index to create a tempo
-
TNS-12560 protocol adapter error
Hi, Your help will be most apprecitated. Thanks in advance. I am tryin to connect from client (win XP) to Oracle 10g running on Linux red hat. I am able to successfully ping to the server bu when I do a tnsping I get the below error: C:\WINDOWS\syste
-
Itunes for Windows 7, cannot find the album which was imported to my library
Tried to import an album from a CD to my iTunes library. The iTunes dislogue box said the music was imported but it is nowhere to be found in My iTunes Library. I attempted to download the CD again and the dialogue box said it had already been impo
-
Trying to decide if I need to buy the 256gb unit versus the 128gb unit. Presently using a 4 year old MBP and I have used 190gb of a 500gb hard drive. Does that mean I need to buy the 256gb unit? Are the applications that are included on the MBA in
-
New to Verizon and 50 monthly prepay plan
Okay, I understand when the next payment for prepay is the 16th of Dec. BUT, I don't understand when on "My Verizon" it says next payment due 2/16/12? I have a balance in my account to cover next months prepay plan. Also, will they take it out auto