A very slow select with sub selects sql statement on Oracle

Hi,
I'm moving an application from MySql to Oracle. The following select were very efficiently executed in MySql. In oracle its slow like a snail.
Do anyone have a hint on how to speed it up?
The slow part is the four sub selects in the select part. Removing them makes the select about 50 times faster on Oracle.
Best Regards,
Stephane
select
(select count(*) from relation rr where rr.document_id = d.id and rr.product_id = ? and (rr.relation_type_id = 'link' OR rr.relation_type_id = 'product')) as relationList,
(select count(*) from relation rr where rr.document_id = d.id and rr.product_id = ? and rr.relation_type_id = 'number') as relationNumber,
(select count(*) from relation rr where rr.document_id = d.id and rr.product_id = ? and rr.relation_type_id = 'title') as relationTitle,
(select count(*) from relation rr where rr.document_id = d.id and rr.product_id = ? and rr.relation_type_id = 'content') as relationText,
d.*
from document d,(
select distinct r.document_id id
from relation r
where
r.product_id = ?
) dd
where d.id=dd.id

You are accessing the relation-table too many times, so a rewrite to a query like this
SQL> select dept.deptno
  2       , dept.dname
  3       , count(decode(job,'CLERK',1)) clerk
  4       , count(decode(job,'MANAGER',1)) manager
  5       , count(decode(job,'SALESMAN',1)) salesman
  6    from dept, emp
  7   where dept.deptno = emp.deptno (+)
  8   group by dept.deptno
  9       , dept.dname
10  /
    DEPTNO DNAME               CLERK    MANAGER   SALESMAN
        10 ACCOUNTING              1          1          0
        20 RESEARCH                2          1          0
        30 SALES                   1          1          4
        40 OPERATIONS              0          0          0
4 rijen zijn geselecteerd.will be worth the effort.
If still not satisfied, you have to do some investigation, as described [url http://forums.oracle.com/forums/thread.jspa?threadID=501834&tstart=0]here
Regards,
Rob.

Similar Messages

  • Very slow connection with Mifi 4510L??

    I'm hoping someone here can give some guidance. I am having very slow connection with the 4510L we just got. Via test on speedtest.net I'm seeing download speed of .17 MBPS at times it was so slow the test was not completing. I normally have 1 or 2 bars on the mifi unit and have seen up to 3 at times. I drove into town and see the same range (1 to 3 bars). I have yet to see the 4G light come on except for prior to activation (would light solid green at times) since activating I have only seen the violet light for 3G.
    Verizon advertises full service both around our city (Richmond, VA) and at my more remote location in Hanover. I have been through the recommended resets and nothing seems to improve the connection speed. Could the unit itself be defective? Also, I've noticed when I go to a location website it thinks I am in Pennsylvania when I am in Virginia. Could the Mifi be trying to connect to a signal in that location for some reason (was refurbished device)
    Thanks for any help you can offer,
    Brian

    I was having problems but upgrading to 2.28 seems to have helped me in addition to a few other changes I made based on this review of the 4510L
    http://www.anandtech.com/show/4500/novatel-wireless-mifi-4510l-review-the-best-4g-lte-wifi-hotspot/4
    1) "selecting WPA2 Personal/PSK (AES)"
    2) "manually selecting a channel (instead of Auto) fixes almost all the instability problems"
    (I'm not sure if it actually worked as the diagnostics always shows channel 0 no matter what I picked.  I did try a couple before one - or the myriad of other things I tried - seemed to make a difference - at least for now - fingers crossed)
    3) "allowing for one to select between each network mode manually, so you can force 4G LTE, EVDO, 1xRTT, or all of the above. This is incredibly useful if you’re right at the cutoff for 4G LTE SINR"  (that's WWAN Preferred Mode LTE only for me)
    4) I also changed my 802.11 Mode to just one mode that works on both computers at my house
    5) I am also careful to turn it off when I am done with it and take it off the charger for the night as well.
    It is my only internet service due to my semiremote location (no cable etc) and when I first got it as a replacement for my dependable 2200 I was about to pull all my hair out.  I was "forced" into it because due to antenna issues on a local tower that supplies my 3G signal my 2200 wasn't even able to load my gmail account.  Verizon very helpful on that - call us if its still an issue in a "few weeks"!  However, when I inquired about the antenna's effect on a 4G signal, an intelligent tech was able to tell me that it was not the tower I would be getting a 4G signal off of - odd but I didn't question that possibility.
    It runs very very warm but I suspect having it on the charger and using it almost all day is part of that.  At first I was wondering if heat was part of the problem - going so far as to have it sitting on an ice pack to test that theory.  Of course then I had to wonder if maybe I was freezing it -lol.  I am careful to turn it off when I am done with it and take it off the charger for the night as well.
    I've been on it most of the day and it seems to be behaving well - so fingers crossed

  • Where to run SQL statements in Oracle Database 11gR1 ?

    Folks,
    Hello. I have just installed Oracle Database 11gR1 and login to Database Control page. There are 4 tabs on the top: Database, Setup, Preference, Help and Logout.
    I just create a table "table1" in "Database" tap. But I don't see anywhere to run SQL statement such as Select, Insert, Update.
    Can any folk tell me where to run SQL statements in Oracle Database 11gR1 ?
    Or
    Can any folk provide a User Manual for Oracle DB 11gR1 ?

    You can run from a terminal or install an SQL client and connect from there.
    http://www.articlesbase.com/databases-articles/how-to-install-oracle-11g-client-1793770.html
    Best Regards
    mseberg
    Assuming you have an oracle OS user on Linux you can try typing sqlplus at you OS command prompt. Generally you will have a .bash_profile with setting like this:
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT 
    export ORACLE_SID=ORCL
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    PATH=/usr/sbin:$PATH; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    # CLASSPATH:
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export EDITOR=vi
    set -o vi
    PS1='$PWD:$ORACLE_SID >'Edited by: mseberg on Jul 11, 2011 3:18 PM

  • Adding a field to an sql statement in Oracle Reports error ORA-00933

    We have been requested to add a field that already exists in the table referred to by the sql statement in Oracle Reports Builder. The report was set up by a consultant about 3 yrs ago and we don't really have much skill in this area. What is happening when I try to modify the SQL statement, either adding a field or deleting a field to the SELECT statement, causes an error message preventing the statement from being saved. The only way out of the error message is to click Cancel. The error message is
    ORA-00933:SQL command not properly ended
    ORDER BY Program ==> NAME
    Even adding or deleting a space anywhere in the SQL statement causes the error (not adding any new fields). A coworker found that if we comment out the ORDER BY, the statement will accept the new field in the SELECT section, however then we lose the order by functionality. I would like to add one additional field before the FROM. Not sure if any additional data are needed. Thank you.
    SELECT p.person_uid PIDM_KEY, p.id_number ID,
                   p.full_name_lfmi name,            
                    p.BIRTH_DATE, p.GENDER Sex,
                    Decode(a.residency,'D',p.Primary_ethnicity,'F')  Ethn,
                    a.academic_period TERM,        
                    CASE WHEN :p_group_by = 'PROGRAM' THEN a.program
                                 ELSE ' '
                    END AS Program,
                    a.COLLEGE, a.degree, a.major, ' ' rule,
                    a.STUDENT_POPULATION,a.STUDENT_LEVEL,    a.application_status Status,  a.application_status_date app_sts_dte,
                    ad.decision_date1 Last_Dec_Date,
                    ad.decision1||' '||ad.decision2||' '|| ad.decision3||' '|| ad.decision4||' '|| ad.decision5 Decisions,
                    /*  Deposit Date uses the last term entered in :p_term parameter string */
                    (SELECT MAX(deposit_effective_date) FROM usf_as_deposit WHERE account_uid = a.person_uid &term_clause group by account_uid)   AS "DEPOSIT DATE",     
                    ph.phone as PHONE,
                    CASE WHEN PS.FIRST_CONTACT IN ('NET','PAP','COM','COP') THEN PS.First_Contact
                     ELSE CASE WHEN ps.latest_contact IN ('NET','PAP','COM','COP') THEN PS.Latest_Contact
                                ELSE '  '
                                END
                    END AS FIRST_CONTACT,
                    DECODE(:p_address,'Y',REPLACE(adr.street1||' '||adr.street2||' '||adr.street3||' '||adr.city||','||adr.state||' '||adr.nation||' '||adr.zip,'  ',' '),' ') as  address, adr.nation, adr.state,
                    goremal_email_address email, a.residency, a.application_date, p.primary_ethnicity, c.cohort
    FROM MST_ADMISSIONS_APPLICATION A,
               MST_PERSON p,mst_pre_student PS,  Admissions_Cohort c, usf_v_phone_pr_ma ph,
               MST_admissions_decision_slot AD, usf_v_email, usf_v_address_dr_lr_ma_pr adr
    WHERE a.PERSON_UID = p.person_uid
            AND a.curriculum_priority  = 1
            AND a.person_uid = ps.person_uid
           AND a.person_uid = ad.person_Uid(+)
           AND a.person_uid = goremal_pidm(+)
           AND a.person_uid = adr.pidm(+)
           AND a.person_uid = ph.pidm(+)
           AND ph.rnum(+) = 1
           AND a.person_uid = c.person_uid(+)
           AND a.academic_period = c.academic_period(+)
      &Where_Clause
           /*    TAKE OUT FOLLOWING LINE AFTER DATA IS CLEANED UP  */
            AND NOT(p.id_number = '00000000'   OR SUBSTR(p.id_number,1,1) = 'B'  OR UPPER(p.full_name_lfmi)  LIKE '%TESTING%')
           AND  a.application_status_date >= NVL(:p_as_of_date,sysdate-8000)
           AND a.academic_period = ad.academic_period(+)
            AND a.application_number = ad.application_number(+)
            AND a.degree <> 'ND'    /*   AND a.college <> 'LW'                         --  Does not need non-degree and law students    */
           &Cohort_Clause 
    ORDER BY Program  &ORDER_CLAUSE

    Hi Denis,
    I tried your suggestion. The good thing is that adding the comma allowed me to be able to add a.campus to the select statement, unfortunately, another error message happened.
    ORA-00936: missing expression SELECT p . person_uid PIDM_KEY ,
    p . id_number , p . full_name_lfmi name , p . BIRTH_DATE , p . GENDER Sex ,
    Decode ( a . residency , 'D' , p . Primary_Ethnicity , 'F' ) Ethn , a . academic_period TERM ,
    CASE WHEN : P_group_by = 'PROGRAM THEN a I started over and tried only putting in the comma and get the same message even though I didn't add campus. After that, removed the comma which led to the ORA-00933 error message. So once again, I had to close the file without saving, in order for the report to run at all.

  • Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170:

    Hi all,
    I have an Windows XP OS with SP3.
    I have installed the Oracle 11g server.
    On trying to connect to the ODBC connection, i get the following error message:
    Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170: TNS: Connect timeout occured
    On trying the tnsping,
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 09-OCT-2
    011 13:11:05
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    E:\app\Gautam\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
    5.207)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))
    TNS-12535: TNS:operation timed out
    On trying to connect with SQL Developer, i get the following error:
    Status: Failure - Test failed: Io Exception: The Network Adapter could not establish the connection
    However i am able to connect to the same using SQL Plus
    Another issue that occurs is that the Oracle Enterprise Manager shows the following error after a while:
    Agent Connection to Instance
    Status Failed
    Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    The following services are all up during this point of time:
    OracleDBConsoleorcl
    OracleOraDb11g_home1TNSListener
    OracleServiceORCL
    Any help in this regard will be very useful as this is hindering the progress of my work.
    Thanks in advance for the help.
    - Gautam

    841683 wrote:
    Hi,
    I did try and delete my listener.ora and then create a new one..
    That did not solve my issue..
    What are the steps for configuring the listener again.
    Thanks for the response..
    - Gautamno listener.ora file is required.
    just do as below
    lsnrctl start

  • Delete with sub select sometimes slow

    Hi all,
    we have following problem in version 11.2:
    we run some deletes similar delete-statements:
    delete from msvs where fk_msv_nr in (select pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    delete from zbe where fk_msv_nr in (select pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    delete from zag where fk_msv_nr in ( select  pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    table msv has 500000 rows, the select has 390000 rows and is running a few seconds, seems good.
    table msvs has 1000000 rows, zbe 3250000 rows and zag 513000 rows
    pk_msv_nr is primary key on msv
    fk_msv_nr is foreign key and referencing table msv
    delete from msvs: 780000 rows, 55sec
    delete from zbe: 2885000 rows 5min 55sec
    delete from zag: process killed after 30min
    execution plan shows FTS on msv and index range scan on idx_zag_fk_msv_nr (foreign key)
    also i see more than 100'000'000 logical reads
    we have similar problem with one other table
    Anybody an idea, why the deletes on two tables are slow, a few other tables (all with same sub-select) are in time
    Thanks for any help!!!
    Regards
    Jürgen

    SQL> explain plan for
      2  delete from msvs where fk_msv_nr in (select pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    Explained.
    Elapsed: 00:00:00.21
    SQL> @?/rdbms/admin/utlxpls
    PLAN_TABLE_OUTPUT
    | Id  | Operation          | Name              | Rows  | Bytes | Cost  |
    |  0 | DELETE STATEMENT    |                    |    1 |    21 |  2202 |
    |  1 |  DELETE            | MSVS              |      |      |      |
    |  2 |  NESTED LOOPS      |                    |    1 |    21 |  2202 |
    |  3 |    TABLE ACCESS FULL| MSV                |    1 |    7 |  2200 |
    |  4 |    INDEX RANGE SCAN | IDX_UNIQUE_MSVS_PK |    2 |    28 |    2 |
    SQL>  explain plan for
      2  delete from zbe where fk_msv_nr in (select pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    Explained.
    Elapsed: 00:00:00.09
    SQL>  @?/rdbms/admin/utlxpls
    PLAN_TABLE_OUTPUT
    | Id  | Operation           | Name              | Rows  | Bytes | Cost  |
    |   0 | DELETE STATEMENT    |                   |     3 |    78 |  2202 |
    |   1 |  DELETE             | ZBE               |       |       |       |
    |   2 |   NESTED LOOPS      |                   |     3 |    78 |  2202 |
    |   3 |    TABLE ACCESS FULL| MSV               |     1 |     7 |  2200 |
    |   4 |    INDEX RANGE SCAN | IDX_UNIQUE_ZBE_PK |     7 |   133 |     2 |
    SQL>  explain plan for
      2  delete from zag where fk_msv_nr in ( select  pk_msv_nr from msv where rueckweisungsgrund = '<Falsch aus ePUB angelegt>');
    Explained.
    SQL> @?/rdbms/admin/utlxpls
    PLAN_TABLE_OUTPUT
    | Id  | Operation           | Name              | Rows  | Bytes | Cost  |
    |   0 | DELETE STATEMENT    |                   |     1 |    27 |  2202 |
    |   1 |  DELETE             | ZAG               |       |       |       |
    |   2 |   NESTED LOOPS      |                   |     1 |    27 |  2202 |
    |   3 |    TABLE ACCESS FULL| MSV               |     1 |     7 |  2200 |
    |   4 |    INDEX RANGE SCAN | IDX_ZAG_FK_MSV_NR |     3 |    60 |     2 |

  • Single select query or any sql statement with o/p

    Hi,
    I have one table test_tab with column names empno,empname.The test_tab values is as follows,
    empno empname
    01 siva
    02 ram
    03 kamal
    04 sathish
    i will give the empname values like 'siva,kamal,roshan,sathish' and empno >03,but in the table roshan name is not there.I need the below mentioned o/p
    example qry: select empno,empname from test_tab where empname in('siva','kamal','roshan','sathish') and empno>03;
    my o/p should be like this,
    empname empno
    sathish 04
    roshan ''
    But the empname 'roshan' is not there in table.I need the empname as 'roshan' and empno is null value in a single select query or subquery or any sql statements.
    Please help me the resolve this issue.
    Thanks
    Sivaraman

    Hi,
    Do you want this?
    with data as
    (select 1 EMPNO, 'siva' as empname from  DUAL union all
    select 2 EMPNO, 'ram' from  DUAL union all
    select 3 EMPNO, 'kamal' from  DUAL union all
    select 4 EMPNO, 'sathish' from  DUAL union all
    select null EMPNO, 'roshan' from  DUAL )
    select *  from data
    where EMPNAME in ('siva','kamal','roshan','sathish')
       and nvl2(empno,empno,4) > 3 

  • Selection Screen Parameters in SQL statements

    Very new ABAP programmer here, so sorry if this is a really dumb question.
    I'm trying to use my selection screen parameters to limit what is pulled in by my SQL statement (which seems to me to be a very logical thing to do).  But I'm having a problem, that when no values are entered in the parameters, no data is returned in the table instead of all the data being returned.
    Here is the code I have now:
      SELECT cname1 akostl aorgeh asname apernr bbegda bendda bstatu
             bconfl bmedcf breasn breman b~rqday
      INTO CORRESPONDING FIELDS OF TABLE it_record
       FROM ( ( pa0001 AS a
          INNER JOIN pa0672 AS b ON bpernr = apernr )
          INNER JOIN t500p AS c ON cpersa = awerks )
      WHERE  b~reman in so_reman
        AND a~kostl  in so_kostl
        AND a~orgeh = p_orgeh
        AND b~begda = p_begda
        AND b~statu = p_statu
        AND b~confl = p_confl
        AND b~medcf = p_medcf
        AND b~reasn = p_reasn
        AND b~rqday = p_rqday
        AND c~name1 = p_name1.
    Can anyone tell me what I'd need to do to make it return properly?

    When you use parameters and no value is entered, it is treated as initial value. and the select statement looks for the initial values for those fields in the tabl;e...
    you can make the parameters mandatory..then the user would be forced to enter something....
    also you could do the following..
    instead of parameters, use select-options with the addition no intervals and no extension, then practically it looks like a parameter but internally it is a select-option...
    and in the select statement, give conditions like....field1 in <s_option name>....in this case if the user is not entering a value ...it is treated as *...
    Thnaks & Regards,
    Renjith

  • Very slow computer with all apps after Yosemite install

    I'm attaching the EtreCheck in order to get some help. Thanks.
    Problem description:
    Very slow launch of applications with Yosemite
    EtreCheck version: 2.1.2 (105)
    Report generated 15 de diciembre de 2014, 19:28:26 GMT+1
    Hardware Information: ℹ️
      MacBook Pro (15-inch, Late 2011) (Verified)
      MacBook Pro - model: MacBookPro8,2
      1 2.2 GHz Intel Core i7 CPU: 4-core
      8 GB RAM Upgradeable
      BANK 0/DIMM0
      4 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      4 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: 512 MB
      AMD Radeon HD 6750M - VRAM: 512 MB
      Color LCD 1920 x 1080
      HP 2311x 1920 x 1080 @ 60 Hz
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 0:22:35
    Disk Information: ℹ️
      APPLE HDD HTS727575A9E362 disk0 : (750,16 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 748.93 GB (83.02 GB free)
      Core Storage: disk0s2 749.30 GB Online
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Western Digital My Passport 0748 2 TB
      S.M.A.R.T. Status: Verified
      disk2s1 (disk2s1) <not mounted> : 210 MB
      Mi Passport (disk2s2) /Volumes/Mi Passport : 2.00 TB (121.89 GB free)
      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: ℹ️
      Anywhere
    Adware: ℹ️
      Geneio [Remove]
    Kernel Extensions: ℹ️
      /Library/Application Support/Roxio
      [not loaded] com.roxio.TDIXController (2.0) [Support]
      /Library/Extensions
      [loaded] at.obdev.nke.LittleSnitch (4228 - SDK 10.8) [Support]
      [not loaded] com.microsoft.VirtualPC.Networking.1040 (7.0.2) [Support]
      [not loaded] com.pgp.iokit.PGPdiskDriver (9) [Support]
      [not loaded] com.pgp.kext.PGPnke (1.0.0) [Support]
      /System/Library/Extensions
      [not loaded] com.elgato.driver.DontMatchAfaTech (1.1) [Support]
      [not loaded] com.elgato.driver.DontMatchCinergy450 (1.1) [Support]
      [not loaded] com.elgato.driver.DontMatchCinergyXS (1.1) [Support]
      [not loaded] com.elgato.driver.DontMatchEmpia (1.1) [Support]
      [not loaded] com.elgato.driver.DontMatchVoyager (1.1) [Support]
      [not loaded] com.hzsystems.driver.CDSDAudioCaptureSupport (1.5) [Support]
      [not loaded] com.paceap.kext.pacesupport.master (5.6.1) [Support]
      [not loaded] com.pgp.iokit.PGPwdeFilter (1.0.1) [Support]
      [not loaded] com.roxio.BluRaySupport (1.1.6) [Support]
      [loaded] com.squirrels.airparrot.framebuffer (2 - SDK 10.7) [Support]
      [loaded] com.squirrels.driver.AirParrotSpeakers (1.7 - SDK 10.7) [Support]
      [not loaded] com.wdc.driver.1394HP (1.0.9) [Support]
      [not loaded] com.wdc.driver.USBHP (1.0.11) [Support]
      /System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns
      [not loaded] com.paceap.kext.pacesupport.leopard (5.6.1) [Support]
      [not loaded] com.paceap.kext.pacesupport.panther (5.6.1) [Support]
      [not loaded] com.paceap.kext.pacesupport.tiger (5.6.1) [Support]
    Startup Items: ℹ️
      PACESupport: Path: /Library/StartupItems/PACESupport
      Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
      [running] at.obdev.LittleSnitchUIAgent.plist [Support]
      [running] com.amazon.sendtokindle.launcher.plist [Support]
    Launch Daemons: ℹ️
      [running] at.obdev.littlesnitchd.plist [Support]
      [loaded] com.barebones.authd.plist [Support]
      [running] com.filemaker.fms.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [not loaded] com.squirrels.kextinstaller.plist [Support]
      [failed] PACESupport.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
      [running] com.genieo.completer.download.plist Adware! [Remove]
      [loaded] com.genieo.completer.ltvbit.plist [Support]
      [loaded] com.genieo.completer.update.plist Adware! [Remove]
      [loaded] com.google.keystone.agent.plist [Support]
      [failed] com.Wondershare.TunesGoWatchDemo.plist [Support]
    User Login Items: ℹ️
      Dropbox Aplicación (/Applications/Dropbox.app)
      Genieo Aplicación (/Applications/Genieo.app)
      Genieo Aplicación (/Applications/Genieo.app)
    Internet Plug-ins: ℹ️
      Flip4Mac WMV Plugin: Version: 2.4.2.4 [Support]
      QuickTime Plugin: Version: 7.7.3
      Default Browser: Version: 600 - SDK 10.10
      AmazonMP3DownloaderPlugin: Version: AmazonMP3DownloaderPlugin 1.0.15 [Support]
      OfficeLiveBrowserPlugin: Version: 12.2.3 [Support]
      Mathematica: Version: 8.0.1.2063850 [Support]
      iPhotoPhotocast: Version: 7.0 - SDK 10.7
    User internet Plug-ins: ℹ️
      WebEx64: Version: 1.0 - SDK 10.6 [Support]
    Safari Extensions: ℹ️
      Evernote Web Clipper
      Slick Savings Adware! [Remove]
      Omnibar Adware! [Remove]
      MacVeXe
      Amazon Shopping Assistant Adware! [Remove]
      Ebay Shopping Assistant Adware! [Remove]
      Searchme Adware! [Remove]
    3rd Party Preference Panes: ℹ️
      Flip4Mac WMV  [Support]
      Perian  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Mobile backups: OFF
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 748.93 GB Disk used: 665.91 GB
      Destinations:
      Mi Passport [Local]
      Total size: 2.00 TB
      Total number of backups: 99
      Oldest backup: 2013-01-04 00:59:11 +0000
      Last backup: 2014-11-24 02:17:18 +0000
      Size of backup disk: Adequate
      Backup size 2.00 TB > (Disk used 665.91 GB X 3)
    Top Processes by CPU: ℹ️
          38% WindowServer
          33% Finder
          24% calibre
          2% launchd
          2% com.apple.WebKit.Networking
    Top Processes by Memory: ℹ️
      507 MB calibre
      301 MB java
      258 MB Finder
      232 MB WindowServer
      223 MB Safari
    Virtual Memory Information: ℹ️
      126 MB Free RAM
      3.41 GB Active RAM
      3.29 GB Inactive RAM
      1.44 GB Wired RAM
      2.89 GB Page-ins
      15 MB Page-outs
    Diagnostics Information: ℹ️
      Dec 15, 2014, 07:06:53 PM Self test - passed
      Dec 15, 2014, 07:02:31 PM CVMCompiler_2014-12-15-190231_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 07:02:11 PM iBooks_2014-12-15-190211_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 07:01:51 PM aslmanager_2014-12-15-190151_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:57:58 PM QuickLookSatellite_2014-12-15-185758_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:57:46 PM QuickLookSatellite_2014-12-15-185746_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:57:23 PM QuickLookSatellite_2014-12-15-185723_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:56:06 PM calibre_2014-12-15-185606_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:55:55 PM mdworker32_2014-12-15-185555_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:55:49 PM garcon_2014-12-15-185549_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:55:35 PM garcon_2014-12-15-185535_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:55:20 PM xpcproxy_2014-12-15-185520_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:53:55 PM mdworker_2014-12-15-185355_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:51:46 PM mdworker_2014-12-15-185146_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:51:30 PM lssave_2014-12-15-185130_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 06:51:30 PM xpcproxy_2014-12-15-185130_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 04:44:18 AM mdworker_2014-12-15-044418_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 01:13:43 AM mdworker_2014-12-15-011343_MacBook-Pro-de-Manuel-3.crash
      Dec 15, 2014, 12:07:47 AM mdworker_2014-12-15-000747_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 09:25:36 PM AdobeReader_2014-12-14-212536_MacBook-Pro-de-Manuel-3.hang
      Dec 14, 2014, 09:25:34 PM Mail_2014-12-14-212534_MacBook-Pro-de-Manuel-3.hang
      Dec 14, 2014, 09:22:33 PM mdworker_2014-12-14-212233_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 09:18:19 PM mdworker_2014-12-14-211819_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 04:52:14 PM mdworker_2014-12-14-165214_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 03:03:01 PM mdworker_2014-12-14-150301_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 03:02:51 PM mdworker_2014-12-14-150251_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 01:14:28 PM mdworker_2014-12-14-131428_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 01:13:34 PM genatsdb_2014-12-14-131334_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 01:12:48 PM lssave_2014-12-14-131248_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 01:12:48 PM mdworker_2014-12-14-131248_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 01:09:13 PM mdworker_2014-12-14-130913_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 10:42:20 AM mdworker_2014-12-14-104220_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 04:04:06 AM mdworker_2014-12-14-040406_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 04:04:06 AM lssave_2014-12-14-040406_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 04:04:06 AM aslmanager_2014-12-14-040406_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 12:44:32 AM maspushagent_2014-12-14-004432_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 12:44:26 AM mdworker_2014-12-14-004426_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 12:44:23 AM lssave_2014-12-14-004423_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 12:44:19 AM aslmanager_2014-12-14-004419_MacBook-Pro-de-Manuel-3.crash
      Dec 14, 2014, 12:44:18 AM nehelper_2014-12-14-004418_MacBook-Pro-de-Manuel-3.crash
      Dec 13, 2014, 10:55:16 PM mdworker_2014-12-13-225516_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 10:55:15 PM mdworker_2014-12-13-225515_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 06:26:48 PM mdworker_2014-12-13-182648_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 05:13:08 AM AddressBookSourceSync_2014-12-13-051308_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:39:35 AM mdworker_2014-12-13-043935_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:09:31 AM mdworker_2014-12-13-040931_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:08:51 AM mdworker_2014-12-13-040851_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:06:42 AM lssave_2014-12-13-040642_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:06:39 AM lssave_2014-12-13-040639_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:06:30 AM mdworker_2014-12-13-040630_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:06:30 AM lssave_2014-12-13-040630_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:05:33 AM mdworker_2014-12-13-040533_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:03:31 AM iTunes_2014-12-13-040331_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:03:23 AM AddressBookSourceSync_2014-12-13-040323_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:03:12 AM findNames_2014-12-13-040312_MacBook-Pro-de-Manuel-2.crash
      Dec 13, 2014, 04:03:02 AM systemstatsd_2014-12-13-040302_MacBook-Pro-de-Manuel-2.crash

    First you need to get rid of all the malware on your computer starting with Genieo. Also, get rid of:
    [failed] com.Wondershare.TunesGoWatchDemo.plist [Support]
    [failed] PACESupport.plist [Support]
    Startup Items: ℹ️
      PACESupport: Path: /Library/StartupItems/PACESupport
      Startup items are obsolete in OS X Yosemite
    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide, AdwareMedic, or Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support.
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
    Fix Some Browser Pop-ups That Take Over Safari.
    Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      OS X Mavericks- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)

  • 2.4GHZ clients very slow speeds with AP3600

    5508 WLC (7.5.102)
    AP36021
    We currently have a test WiFi SSID setup that uses basic mac filtering on our WLC's
    WLAN is configured with WPA and WPA2 L2 Security with WPA Policy and WPA2 Encryption.
    For some reason we seem to be getting very slow speeds on clients with 2.4GHZ
    for example speedtest.net I get 70mg upload and 65mg download on 5GHZ devices and about 1-3mg download and 1mg upload for 2.4GZ devices!
    AP36021 are dual band with 4 channels (2 x 2.4Ghz and 2 x 5Ghz)
    fyi - There are no dropped packets on the client stats via Prime mgmt that use 2.4GHZ
    Any ideas here?

    Foreign Primary WLC (let me know if you need the Anchor controller ouput as well)
    We have 3 ports configured  as 0/12 trunked
    interface GigabitEthernet0/12
    description + WLC ****
    switchport access vlan 999
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 999
    switchport trunk allowed vlan 10,30,40
    switchport mode trunk
    switchport nonegotiate
    load-interval 30
    no cdp enable
    channel-group 3 mode on
    spanning-tree portfast
    end
    Building configuration...
    Current configuration : 330 bytes
    interface Port-channel3
    description + WLC ****
    switchport access vlan 999
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 999
    switchport trunk allowed vlan 10,30,40
    switchport mode trunk
    switchport nonegotiate
    logging event trunk-status
    logging event bundle-status
    load-interval 30
    end
    AP switch port config
    Building configuration...
    Current configuration : 617 bytes
    interface GigabitEthernet4/32
    description AP36021
    switchport
    switchport access vlan 30
    switchport mode access
    switchport voice vlan 20
    load-interval 30
    speed auto 10 100
    wrr-queue bandwidth 5 90 5
    wrr-queue queue-limit 5 80 5
    wrr-queue random-detect min-threshold 2 70 100 100 100 100 100 100 100
    wrr-queue random-detect min-threshold 3 70 100 100 100 100 100 100 100
    wrr-queue random-detect max-threshold 2 100 100 100 100 100 100 100 100
    wrr-queue cos-map 2 1 0 1 2 4
    wrr-queue cos-map 3 1 3 6 7
    no snmp trap link-status
    mls qos trust cos
    no mdix auto
    spanning-tree portfast
    end
    show wlan 4
    WLAN Identifier.................................. 4
    Profile Name..................................... WLKPV
    Network Name (SSID).............................. WLKPV
    Status........................................... Enabled
    MAC Filtering.................................... Enabled
    Broadcast SSID................................... Enabled
    AAA Policy Override.............................. Disabled
    Network Admission Control
    Client Profiling Status
        Radius Profiling ............................ Disabled
         DHCP ....................................... Disabled
         HTTP ....................................... Disabled
        Local Profiling ............................. Disabled
         DHCP ....................................... Disabled
         HTTP ....................................... Disabled
      Radius-NAC State............................... Disabled
      SNMP-NAC State................................. Disabled
      Quarantine VLAN................................ 0
    Maximum number of Associated Clients............. 0
    Maximum number of Clients per AP Radio........... 200
    --More-- or (q)uit
    Number of Active Clients......................... 21
    Exclusionlist Timeout............................ 60 seconds
    Session Timeout.................................. 7200 seconds
    User Idle Timeout................................ Disabled
    Sleep Client..................................... disable
    Sleep Client Timeout............................. 12 hours
    User Idle Threshold.............................. 0 Bytes
    NAS-identifier................................... hellotest
    CHD per WLAN..................................... Enabled
    Webauth DHCP exclusion........................... Disabled
    Interface........................................ new-byod
    Multicast Interface.............................. Not Configured
    WLAN IPv4 ACL.................................... unconfigured
    WLAN IPv6 ACL.................................... unconfigured
    WLAN Layer2 ACL.................................. unconfigured
    mDNS Status...................................... Enabled
    mDNS Profile Name................................ default-mdns-profile
    DHCP Server...................................... Default
    DHCP Address Assignment Required................. Disabled
    Static IP client tunneling....................... Disabled
    PMIPv6 Mobility Type............................. none
        PMIPv6 MAG Profile........................... Unconfigured
        PMIPv6 Default Realm......................... Unconfigured
    --More-- or (q)uit
        PMIPv6 NAI Type.............................. Hexadecimal
    Quality of Service............................... Silver
    Per-SSID Rate Limits............................. Upstream      Downstream
    Average Data Rate................................   0             0
    Average Realtime Data Rate.......................   0             0
    Burst Data Rate..................................   0             0
    Burst Realtime Data Rate.........................   0             0
    Per-Client Rate Limits........................... Upstream      Downstream
    Average Data Rate................................   0             0
    Average Realtime Data Rate.......................   0             0
    Burst Data Rate..................................   0             0
    Burst Realtime Data Rate.........................   0             0
    Scan Defer Priority.............................. 4,5,6
    Scan Defer Time.................................. 100 milliseconds
    WMM.............................................. Allowed
    WMM UAPSD Compliant Client Support............... Disabled
    Media Stream Multicast-direct.................... Disabled
    CCX - AironetIe Support.......................... Enabled
    CCX - Gratuitous ProbeResponse (GPR)............. Disabled
    CCX - Diagnostics Channel Capability............. Disabled
    Dot11-Phone Mode (7920).......................... Disabled
    Wired Protocol................................... None
    Passive Client Feature........................... Disabled
    --More-- or (q)uit
    Peer-to-Peer Blocking Action..................... Disabled
    Radio Policy..................................... All
    DTIM period for 802.11a radio.................... 1
    DTIM period for 802.11b radio.................... 1
    Radius Servers
       Authentication................................ Global Servers
       Accounting.................................... Global Servers
          Interim Update............................. Disabled
          Framed IPv6 Acct AVP ...................... Prefix
       Dynamic Interface............................. Disabled
       Dynamic Interface Priority.................... wlan
    Local EAP Authentication......................... Disabled
    Security
       802.11 Authentication:........................ Open System
       FT Support.................................... Disabled
       Static WEP Keys............................... Disabled
       802.1X........................................ Disabled
       Wi-Fi Protected Access (WPA/WPA2)............. Enabled
          WPA (SSN IE)............................... Disabled
          WPA2 (RSN IE).............................. Enabled
             TKIP Cipher............................. Disabled
             AES Cipher.............................. Enabled
    --More-- or (q)uit
          Auth Key Management
             802.1x.................................. Disabled
             PSK..................................... Enabled
             CCKM.................................... Disabled
             FT-1X(802.11r).......................... Disabled
             FT-PSK(802.11r)......................... Disabled
             PMF-1X(802.11w)......................... Disabled
             PMF-PSK(802.11w)........................ Disabled
          FT Reassociation Timeout................... 20
          FT Over-The-DS mode........................ Enabled
          GTK Randomization.......................... Disabled
          SKC Cache Support.......................... Disabled
          CCKM TSF Tolerance......................... 1000
       WAPI.......................................... Disabled
       Wi-Fi Direct policy configured................ Disabled
       EAP-Passthrough............................... Disabled
       CKIP ......................................... Disabled
       Web Based Authentication...................... Disabled
       Web-Passthrough............................... Disabled
       Conditional Web Redirect...................... Disabled
       Splash-Page Web Redirect...................... Disabled
       Auto Anchor................................... Enabled
       FlexConnect Local Switching................... Disabled
    --More-- or (q)uit
       flexconnect Central Dhcp Flag................. Disabled
       flexconnect nat-pat Flag...................... Disabled
       flexconnect Dns Override Flag................. Disabled
       flexconnect PPPoE pass-through................ Disabled
       flexconnect local-switching IP-source-guar.... Disabled
       FlexConnect Vlan based Central Switching ..... Disabled
       FlexConnect Local Authentication.............. Disabled
       FlexConnect Learn IP Address.................. Enabled
       Client MFP.................................... Optional
       PMF........................................... Disabled
       PMF Association Comeback Time................. 1
       PMF SA Query RetryTimeout..................... 200
       Tkip MIC Countermeasure Hold-down Timer....... 60
    AVC Visibilty.................................... Disabled
    AVC Profile Name................................. None
    Flow Monitor Name................................ None
    Split Tunnel (Printers).......................... Disabled
    Call Snooping.................................... Disabled
    Roamed Call Re-Anchor Policy..................... Disabled
    SIP CAC Fail Send-486-Busy Policy................ Enabled
    SIP CAC Fail Send Dis-Association Policy......... Disabled
    KTS based CAC Policy............................. Disabled
    Assisted Roaming Prediction Optimization......... Disabled
    --More-- or (q)uit
    802.11k Neighbor List............................ Disabled
    802.11k Neighbor List Dual Band.................. Disabled
    Band Select...................................... Disabled
    Load Balancing................................... Disabled
    Multicast Buffer................................. Disabled
    Mobility Anchor List
    WLAN ID     IP Address            Status
    4           10.x.x.x          Up
    4           10.x.x.x         Up
    802.11u........................................ Disabled
    MSAP Services.................................. Disabled

  • Just bought a Macbook pro 17" 2.16 with 2gb ram and 500gb 5400 HD. IT RUNS VERY SLOW, even with fresh install of X 10.6, what do I do?

    So I just bought a great condition Macbook pro 17" with 2gb of ram, and the last owner upgraded the HD to a 500gb toshiba 5400rpm HD....the computer is VERY slow....when loading up anything it take forever, and watching video's freezes it for a few seconds then starts for a 1-3 seconds then freezes again....what can I do? I really like the laptop, but hate the performance...and I don't want to go buy another one....but I have considered a SSD....any idea's before I do that?
    Thanks.

    How much hard drive space do you have left?
    Sluggish Finder - Bunch of icons on your desktop?  An overcrowded desktop slows down your Mac.
    Get rid of needless Finder calculations - Open a window in Finder/View/Show View Options:  ensure "Calculate All Sizes" option is unchecked.
    Internet related - It's likely that your broadband connection is the bottleneck.  You can check your speed on http://www.speedtest.net to see how fast your connection is.  If your web browser specifically performs slowly, quit and relaunch it.
    If browser remains sluggish, empty its cache.
    Safari/Empty Cache
    Firefox/Preferences - select the Network tab of the Advanced preferences and click the "Clear Now" button in the "Offline Storage" area.
    Application related - Launch "Activity Monitor" - Applications/Utilities - click the CPU heading and see what float to the top.  If an application takes up a large chunk of CPU and won't let it go, it could be dragging down your Mac's performance.  Quit it by clicking the Quit Process button at the top of the Activity Monitor window.
    Too little ram - max out your ram.

  • Very slow performance with UNION and UNION ALL

    I am returning three datasets as one with a UNION ALL between each of three SQL statements. The first one returns either 3 or 4 rows, the second one returns about 10 rows and the third one returns one row. The SQL statements are a little complex but they're all working on very small datasets ( < 1000 rows ) so when I run each of the three SQL statements by themselves, they run to completion and return data in less than 1 second.
    However.
    When I join the three statements together with a UNION ALL statement between them, the statement runs until I manually abort it. I've run it for up to two hours and it shows no signs of either 1) erroring or 2) running to completion. And, I've tried replacing the UNION ALL with UNION and I get the identical results - nothing returned, no error message.
    I've checked the obvious -- same column names, same number of columns, etc. I think that if there were something obvious like that, I would get an error message as soon as I attempted to execute the statements.
    I will be happy to post the code if you'd like, but I'm wondering if anyone has experienced these or similar symptoms when joining together SQL statements with UNIONs and if so what you did to get around it.
    Thanks in advance,
    Carl

    Or I guess you could use subquery factoring (WITH clause) and MATERIALIZE hints to create the temp tables inline, e.g.
    WITH table1 AS
         ( SELECT /*+ materialize */ somecolumns FROM sometable )
       , table2 AS
         ( SELECT /*+ materialize */ somecolumns FROM othertable )
       , table2 AS
         ( SELECT /*+ materialize */  somecolumns FROM anothertable )
    SELECT somecolumns FROM table1
    UNION ALL
    SELECT somecolumns FROM table2
    UNION ALL
    SELECT somecolumns FROM table3It might also be valuable to investigate exactly what is happening and why, as this might suggest a way to address the root cause.

  • USING MULTIPLE SELECT VARIABLE IN A SQL STATEMENT

    In HTMLDB, the value of the parameter of a multiple select box is colon delimited(ie P6_Name = Smith:Jones:Burke). Is there an easy way to use this parameter in a SQL statement?
    Example
    Select *
    from names
    where
    Name=P6_Name
    Select *
    from names
    where
    Name IN ('Smith','Jones','Burke')
    Thank you

    Thank you for your response! I'm an idiot. It didn't make sense to me because your talking about a <i>multi-select</i> variable and I was thinking about a <i>select-list</i> variable. My problem is that I need to assign a list of values to one select list item.
    <br>
    For example:
    <br>
    SELECT * FROM EMPLOYEE
    WHERE EMPLOYEE_TYPE IN ( :SELECT_LIST_RETURN_VALUE );
    <br><br>
    With the select list as
    <br><br>
    Display value = All Types, Some Types, One Specific Type<br>
    Return Value = (Type1, type2, type3), (type1, type2), (type3)
    <br><br>
    I've just started in all of this so I'd imagine that I'm probably going about it wrong.

  • Very slow working with eps files over new network

    Please help!!!
    Our IT has recently upgraded us from a OSX server to a 2 Terabyte SNAP SERVER 520.
    I am using the only INTEL Mac in the department (we have another 10+ G5 PPCs running 10.4), and the only one using OSX 10.5. Since changing to the new server, I am also the only one with several file saving/opening issues.
    I believe this is a network issue.
    It is with mostly ADOBE products and we all know they will not support, working over the network. Due to the volume of files, I simply cannot drag files to my HD, and work locally. It is not practical. I also know that we have not had any issues in the past, and don't see why I can't get to the root of the problem.
    **The most obvious issue is Illustrator .eps files.**
    I can open and save .ai files in good time both locally, and over the network. There is no difference either way. HOWEVER, if it is an .eps file working over the network is not practical. I get the spinning wheel for about 2 minutes each time I open, save, or make a change. It is VERY slow. Working on eps files locally is fine (about the same speed as .ai files), but as soon as it hits the server, it is painfully slow to do anything.
    Additionally, when saving Photoshop, Illustrator, InDesign AND Quark 7 files (direct to the network), I am regularly getting "Could not save because write access was not granted", or "Could not save becasue unexpected end-of-file was encountered", or "Could not save because the file is already in use or as left open" type errors.
    I simply then click 'OK', and then hit save again, and it either gives me the same message, or it goes into 'save as' mode which lets me save the file (same name, and same location, but the original file has disappeared).
    I am connected to the server IP address through afp:// but have also tried cifs://. IT have removed all access to the server through smb://, so I cannot try this.
    ANY help is appreciated.

    With regard to the EPS issue, I think I may have found the source of the problem for SMB users: the Suitcase Fusion plug-in.
    Did you make any progress on these issues?

  • Very slow scrolling with CS5

    I don't know if other people also have this problem, but I noticed an issue which makes Photoshop CS5 completely useless for me: It is scrolling incredibly slow. With CS4 I am able to scroll much faster and with different speeds. In CS5 it seems like the speed is limited. No matter how much I scroll with my mouse, Photoshop keeps scrolling at the same speed.
    It seems like it is not only me: The only website concerning this problem I was able to find is:
    http://macperformanceguide.com/OptimizingPhotoshopCS5-Issues.html
    Unacceptable scrolling speed with center button
    I use the scroll wheel in the center of the Apple mouse constantly. In CS5, this functionality is now broken, because CS5 scrolls only a small amount, very different from CS4. There is no apparent work-around.
    Reader Joe N agrees:
    I saw your posting about CS5 issues, and I want to add another STRONG vote for the Photoshop mouse wheel scrolling speed issue. I use a Magic Mouse, and the scrolling speed is so poor in PS CS5 that it is totally blocking my creative flow. I have scoured the web for a solution and have not found anything yet...
    I also use a Magic Mouse and a MacBook Pro with Snow Leopard. Is there any hope of a fix or a workaround?

    Thanks so much for replying, Chris. I've just started using CS5 and only used CS4 for a couple of weeks. There are so many variables. and I don't think it's just Photoshop. I'm wondering if the same problems happen in windows 7 (I switched to the Mac the last time I bought a computer.) Probably it's just that everything gets more complicated along with the improvements. : -(
    Thanks again,
    Peggy

Maybe you are looking for

  • Hello There, I have a macbook pro 10.6.8 2GHz intel core i7 4gb 1333MHz DDR3, it is continuously crashing with the following report;

    Interval Since Last Panic Report:  38496 sec Panics Since Last Report:          1 Anonymous UUID:                    FE4BA934-8824-4E34-AEFC-47973A17907E Wed Oct 30 10:41:08 2013 panic(cpu 6 caller 0xffffff80002251cd): "TLB invalidation IPI timeout:

  • Help a newbie get going w/ cldc

    Hello,      I've been struggling for several hours now trying to j2me to work w/ a palm emulator. I'm becoming increasingly frustrated since at every turn I have to download another package to get this to work . So far, I've gotten the wireless toolk

  • HTTP Sender Problem

    Hello, We have an HTTP => XI => R3 scenario. Using the http client tool we can successfully send a request to XI. When the url http://<server>:<port>/sap/xi/adapter_plain?namespace=urn%3A%2FTransactionDataSAPInbound&interface=MI%2DRequest&service=GRM

  • After installing Firefox 4 my bank website login is slow, why?

    MacBook, Mac OS X 10.6.7, Firefox 4 4.0.1 My bank login has strong security which worked fine under Firefox 3. After I loaded Firefox 4 the time needed to go through bank security, i.e., after entering password and before painting the initial page, h

  • Problems with Crop and TWAIN in CS5?

    I have not been using Photoshop lately other than keeping up with updates. When I started a project yesterday, I ran into two new issues. The Crop tool no longer works. I frame the area and when I double click to Crop, the entire image Crop's. This i