Very slow queries

I have a query that I precompile and invoke after setting a variable. I do this to precompile the queries in stored modules as precompiling the queries would seem like a good performance enhancement.
When I invoke the query, it returns in 122168.68 (ms)! Obviously this is not ideal so in an attempt to diagnose the problem, I run the same query (same code) but I hard code the value instead of using a variable. Much to my pleasure, the query returned in 17.039 (ms). Now this is great! The only problem is that we can’t go into production with a hard coded variable. Are there any ideas how I can work around this (or better, if there is a patch)?
The code is as follows (the element names have been changed to protect the innocent):
import java.io.File;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlManager;
import com.sleepycat.dbxml.XmlManagerConfig;
import com.sleepycat.dbxml.XmlQueryContext;
import com.sleepycat.dbxml.XmlQueryExpression;
import com.sleepycat.dbxml.XmlResults;
import com.sleepycat.dbxml.XmlValue;
class BDBTest
    public BDBTest()
        XmlContainer container;
        Environment dbEnv;
        XmlManager dbManager;
        XmlQueryContext queryContext;
        EnvironmentConfig envConf;
        XmlManagerConfig managerConfig;
        String xquery;
        XmlQueryExpression  xmlQueryExpression;
        container = null;
        dbEnv = null;
        dbManager = null;
        try
            envConf = new EnvironmentConfig();
            envConf.setAllowCreate(true);
            envConf.setInitializeCache(true);
            envConf.setInitializeLocking(true);
            envConf.setInitializeLogging(true);
            envConf.setTransactional(true);
            dbEnv = new Environment(new File("/opt/db"), envConf);
            managerConfig = new XmlManagerConfig();
            managerConfig.setAdoptEnvironment(true);
            managerConfig.setAllowAutoOpen(true);
            dbManager = new XmlManager(dbEnv, managerConfig);
            dbManager.setDefaultContainerType(XmlContainer.NodeContainer);
            container = dbManager.openContainer("db/test");
            queryContext = dbManager.createQueryContext();
            queryContext.setEvaluationType(XmlQueryContext.Eager);
            queryContext.setVariableValue("contentKey", new XmlValue("AlexUserhttp://mydomain.org/ns/1.0/some/test/value/HERE"));
            // This query is very slow.
            xquery = "declare namespace tf = \"http://mydomain.org/ns/0.1/test/format\"; " +
                "count (collection('db/test')/Record[ContentKey=$contentKey]/tf:TestDocument)";
            // This query is very fast.
            // xquery = "declare namespace tf = \"http://mydomain.org/ns/0.1/test/format\"; " +
               // "count (collection('db/test')/Record[ContentKey=\"AlexUserhttp://mydomain.org/ns/1.0/some/test/value/HERE\"]/tf:TestDocument)";
            xmlQueryExpression = dbManager.prepare(xquery, queryContext);
            String qPlan = xmlQueryExpression.getQueryPlan();
            System.out.println("--------------------------------------------------");
            System.out.println(qPlan);
            System.out.println("--------------------------------------------------");
            long ns0 = System.nanoTime();
            XmlResults results = xmlQueryExpression.execute(queryContext);
            long ns1 = System.nanoTime() - ns0;
            double ms1 = (double) ns1 / 1000000;
            String message = "Found ";
            message += results.size() + " documents for query: '";
            message += xquery + " Time to execute: " + ms1 + " (ms)\n";
            System.out.println(message);
            System.out.println(results.next().asNumber());
        catch (Exception e)
            e.printStackTrace(System.err);
    public static void main(String args[]) throws Throwable
        new BDBTest();
}The query plans are as follows:
SLOW:
<XQuery>
  <Function name="{http://www.w3.org/2005/xpath-functions}:count">
    <DocumentOrder>
      <DbXmlNav>
        <LookupIndex container="db/test">
          <ValueQP index="edge-element-equality-string" operation="eq" parent="Record" child="ContentKey">
            <Variable name="contentKey"/>
          </ValueQP>
        </LookupIndex>
        <Join type="parent-of-child" return="argument">
          <DbXmlNav>
            <QueryPlanFunction result="collection" container="db/test">
              <OQPlan>P(edge-element-equality-string,prefix,Record.ContentKey)</OQPlan>
            </QueryPlanFunction>
            <DbXmlStep axis="child" name="Record" nodeType="element"/>
          </DbXmlNav>
        </Join>
        <DbXmlStep axis="child" prefix="tf" uri="http://mydomain.org/ns/0.1/test/format" name="TestDocument" nodeType="element"/>
      </DbXmlNav>
    </DocumentOrder>
  </Function>
</XQuery>
Found 1 documents for query: 'declare namespace tf = "http://mydomain.org/ns/0.1/test/format"; count (collection('db/test')/Record[ContentKey=$contentKey]/tf:TestDocument) Time to execute: 122168.68 (msFAST:
<XQuery>
  <Function name="{http://www.w3.org/2005/xpath-functions}:count">
    <DocumentOrder>
      <DbXmlNav>
        <LookupIndex container="db/test">
          <ValueQP index="edge-element-equality-string" operation="eq" parent="Record" child="ContentKey" value="AlexUserhttp://mydomain.org/ns/1.0/some/test/value/HERE"/>
        </LookupIndex>
        <Join type="parent-of-child" return="argument">
          <DbXmlNav>
            <QueryPlanFunction result="collection" container="db/test">
              <OQPlan>V(edge-element-equality-string,Record.ContentKey,=,'AlexUserhttp:// ://mydomain.org/ns/1.0/some/test/value/HERE')</OQPlan>
            </QueryPlanFunction>
            <DbXmlStep axis="child" name="Record" nodeType="element"/>
          </DbXmlNav>
        </Join>
        <DbXmlStep axis="child" prefix="tf" uri="http://mydomain.org/ns/0.1/test/format" name="TestDocument" nodeType="element"/>
      </DbXmlNav>
    </DocumentOrder>
  </Function>
</XQuery>
Found 1 documents for query: 'declare namespace tf = "http://mydomain.org/ns/0.1/test/format"; count (collection('db/test')/Record[ContentKey="AlexUserhttp://mydomain.org/ns/1.0/some/test/value/HERE"]/tf:TestDocument) Time to execute: 17.039 (ms)We’re using Java with BDB 2.3.10 on CentOs 64 bit (but see this in other environments as well). I’m happy to give any more info.
Thank you for your help,
Alex

Hi Alex,
I've just answered this question here:
Re: XQuery Performance in BerkeleyDB
John

Similar Messages

  • Very slow queries when using oracle spatial

    Hi,
    I am new to oracle, please help with me the problem that I am facing.
    I am storing spatial regions inside the data base. The data is in very simple in form. That is each region is a small rectangle. The boundaries of rectangle touch each other but they do not overlap. Basically I am filling the 2D space with rectangles.
    I use the SDO_FILTER query to find regions inside the data base that intersect with a line. The data base contains a single table. With one column of type SDO_GEOMETRY. And the table has around 25000 tuples.
    The problem is that when the result of the query is large (70% of the tuples) that means there are many regions in the cache that intersect the line, the amount of time it takes is a lot more(6 times) than if I do the same without using the R Tree.
    I can do it without using the R Tree because all my objects are rectangles. I store the the left bottom and the top right corner of the rectangle in the data base. And then use a simple range query.
    Is this behaviour expected? should I use an R Tree index structure, or something else. I know that when the result is very large the R Tree search will have to search many sub trees to retrieve the data points. But should the performance be worse than a sequential scan?
    Or will indexes only work for cases where the selectivity of the query is high?
    Please reply I need help,
    Thank you,
    Nishant

    Hi,
    I am using the version of spatial that we get with Oracle9i Release 2 (9.2.0.1) or it could be
    Oracle 9i release 2 (9.2.0.2).
    I don't know how to check that.
    Here I provide the create script, create index statement and a few sample data items that I insert into the data base.
    Create Script:
    create table out5d(
    ID                          NUMBER(9),
    PID NUMBER(9),
    X                          NUMBER,
    Y NUMBER,
    L NUMBER,
    PL NUMBER,
    shape                          MDSYS.SDO_GEOMETRY,
    HEIGHT                         NUMBER,
    N                          NUMBER(9),
    d0 NUMBER,
    d1 NUMBER,
    d2 NUMBER,
    d3 NUMBER,
    d4                         NUMBER,
    D0_MAX NUMBER,
    D1_MAX NUMBER,
    D2_MAX NUMBER,
    D3_MAX NUMBER,
    D4_MAX NUMBER,
    D0_MIN NUMBER,
    D1_MIN NUMBER,
    D2_MIN NUMBER,
    D3_MIN NUMBER,
    D4_MIN NUMBER);
    alter table out5d
    add constraint keyConstraint
    primary key (ID);
    Create Index:
    INSERT INTO USER_SDO_GEOM_METADATA VALUES ('out5d' , 'shape' , MDSYS.SDO_DIM_ARRAY( MDSYS.SDO_DIM_ELEMENT('X', 0, 1, 0.0000001), MDSYS.SDO_DIM_ELEMENT('Y', 0, 1, 0.0000001) ), NULL);
    CREATE INDEX out5d_rtree ON out5d(shape) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    I changed the fan out to 50. Because I read in the spatial user guide that in case you are expecting a big output result you should increase the fan out to 50 or 60.
    Also here is a sample data items that I inserted into the tables.
    insert into out5d Values (25129,17556,0.804932,0.804993,0,NULL,NULL,NULL,1,0.298039,0.5,0.243137,0.222222,0.266667,0.298039,0.5,0.243137,0.222222,0.266667,0.298039,0.5,0.243137,0.222222,0.266667);
    insert into out5d Values (25130,17556,0.804993,0.805054,0,NULL,NULL,NULL,1,0.290196,0.494681,0.235294,0.222222,0.266667,0.290196,0.494681,0.235294,0.222222,0.266667,0.290196,0.494681,0.235294,0.222222,0.266667);
    insert into out5d Values (25131,19920,0.371094,0.371155,0,NULL,NULL,NULL,1,0.337255,0.734043,0.262745,0.239316,0.357576,0.337255,0.734043,0.262745,0.239316,0.357576,0.337255,0.734043,0.262745,0.239316,0.357576);
    insert into out5d Values (25132,19920,0.371155,0.371216,0,NULL,NULL,NULL,1,0.345098,0.723404,0.270588,0.239316,0.357576,0.345098,0.723404,0.270588,0.239316,0.357576,0.345098,0.723404,0.270588,0.239316,0.357576);
    insert into out5d Values (25133,19920,0.371216,0.371277,0,NULL,NULL,NULL,1,0.352941,0.734043,0.262745,0.247863,0.363636,0.352941,0.734043,0.262745,0.247863,0.363636,0.352941,0.734043,0.262745,0.247863,0.363636);
    insert into out5d Values (25134,19920,0.371277,0.371338,0,NULL,NULL,NULL,1,0.345098,0.728723,0.262745,0.247863,0.363636,0.345098,0.728723,0.262745,0.247863,0.363636,0.345098,0.728723,0.262745,0.247863,0.363636);
    insert into out5d Values (25135,17615,0.298706,0.298767,0,NULL,NULL,NULL,1,0.231373,1,0.262745,0.589744,0.606061,0.231373,1,0.262745,0.589744,0.606061,0.231373,1,0.262745,0.589744,0.606061);
    insert into out5d Values (25136,17615,0.298767,0.298828,0,NULL,NULL,NULL,1,0.223529,1,0.270588,0.589744,0.606061,0.223529,1,0.270588,0.589744,0.606061,0.223529,1,0.270588,0.589744,0.606061);
    insert into out5d Values (25137,17615,0.298828,0.298889,0,NULL,NULL,NULL,1,0.231373,1,0.262745,0.598291,0.618182,0.231373,1,0.262745,0.598291,0.618182,0.231373,1,0.262745,0.598291,0.618182);
    insert into out5d Values (25138,17615,0.298889,0.29895,0,NULL,NULL,NULL,1,0.231373,1,0.270588,0.589744,0.612121,0.231373,1,0.270588,0.589744,0.612121,0.231373,1,0.270588,0.589744,0.612121);
    insert into out5d Values (25139,19918,0.518127,0.518188,0,NULL,NULL,NULL,1,0.584314,1,0.152941,0.282051,0.412121,0.584314,1,0.152941,0.282051,0.412121,0.584314,1,0.152941,0.282051,0.412121);
    insert into out5d Values (25140,19918,0.518188,0.51825,0,NULL,NULL,NULL,1,0.572549,1,0.160784,0.282051,0.418182,0.572549,1,0.160784,0.282051,0.418182,0.572549,1,0.160784,0.282051,0.418182);
    insert into out5d Values (25141,19918,0.51825,0.518311,0,NULL,NULL,NULL,1,0.572549,0.994681,0.152941,0.282051,0.412121,0.572549,0.994681,0.152941,0.282051,0.412121,0.572549,0.994681,0.152941,0.282051,0.412121);
    insert into out5d Values (25142,19918,0.518311,0.518372,0,NULL,NULL,NULL,1,0.576471,1,0.160784,0.282051,0.412121,0.576471,1,0.160784,0.282051,0.412121,0.576471,1,0.160784,0.282051,0.412121);
    insert into out5d Values (25143,23411,0.193237,0.193298,0,NULL,NULL,NULL,1,0.211765,1,0.145098,0.196581,0.218182,0.211765,1,0.145098,0.196581,0.218182,0.211765,1,0.145098,0.196581,0.218182);
    insert into out5d Values (25144,23411,0.193298,0.193359,0,NULL,NULL,NULL,1,0.219608,1,0.145098,0.196581,0.212121,0.219608,1,0.145098,0.196581,0.212121,0.219608,1,0.145098,0.196581,0.212121);
    insert into out5d Values (25145,23411,0.193359,0.19342,0,NULL,NULL,NULL,1,0.219608,1,0.145098,0.196581,0.206061,0.219608,1,0.145098,0.196581,0.206061,0.219608,1,0.145098,0.196581,0.206061);
    insert into out5d Values (25146,23411,0.19342,0.193481,0,NULL,NULL,NULL,1,0.219608,0.994681,0.152941,0.188034,0.218182,0.219608,0.994681,0.152941,0.188034,0.218182,0.219608,0.994681,0.152941,0.188034,0.218182);
    insert into out5d Values (25147,23411,0.193481,0.193542,0,NULL,NULL,NULL,1,0.219608,1,0.152941,0.188034,0.212121,0.219608,1,0.152941,0.188034,0.212121,0.219608,1,0.152941,0.188034,0.212121);
    insert into out5d Values (25148,10867,0.326904,0.326965,0,NULL,NULL,NULL,1,0.156863,1,0.290196,0.589744,0.612121,0.156863,1,0.290196,0.589744,0.612121,0.156863,1,0.290196,0.589744,0.612121);
    insert into out5d Values (25149,10867,0.326965,0.327026,0,NULL,NULL,NULL,1,0.152941,1,0.298039,0.581197,0.606061,0.152941,1,0.298039,0.581197,0.606061,0.152941,1,0.298039,0.581197,0.606061);
    insert into out5d Values (25150,10867,0.327026,0.327087,0,NULL,NULL,NULL,1,0.152941,1,0.290196,0.598291,0.618182,0.152941,1,0.290196,0.598291,0.618182,0.152941,1,0.290196,0.598291,0.618182);
    insert into out5d Values (25151,10867,0.327087,0.327148,0,NULL,NULL,NULL,1,0.156863,1,0.305882,0.589744,0.612121,0.156863,1,0.305882,0.589744,0.612121,0.156863,1,0.305882,0.589744,0.612121);
    insert into out5d Values (25152,10867,0.327148,0.327209,0,NULL,NULL,NULL,1,0.156863,1,0.298039,0.589744,0.612121,0.156863,1,0.298039,0.589744,0.612121,0.156863,1,0.298039,0.589744,0.612121);

  • Very slow queries when connecting through the listener in Oracle 10.2.0.4

    Hi,
    I have a 10g database with a little table (2 columns, 9 rows).
    When i connect to the db through the listener (sqlplus system/manager@SID) and run this query : select * from table, the execution time is about 500ms
    When i connect to the db by setting the ORACLE_SID to SID (export ORACLE_SID=SID; sqlplus system/manager) and run the same query, it's 10x faster ...
    The listener is : TNSLSNR for Solaris: Version 10.2.0.4.0 - Production
    The database is : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    Any ideas ?
    Thanks ... (i'm a newbie in oracle and in english ... so excuse me in advance)
    Edited by: user1248176 on 12 avr. 2010 22:50

    steve80lyon wrote:
    i didn't activate wait tracing ... that's done : now i get this when running through TCP/IP connection
    PARSING IN CURSOR #5 len=70 dep=0 uid=5 oct=3 lid=5 tim=1038452661888 hv=3805331552 ad='8fa8e228'
    SELECT ID, DESCRIPTION FROM AGARIC.PROFILS ORDER BY LOWER(DESCRIPTION)
    END OF STMT
    PARSE #5:c=260000,e=300749,p=10,cr=1047,cu=0,mis=1,r=0,dep=0,og=4,tim=1038452661879
    EXEC #5:c=0,e=84,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=1038452662120
    WAIT #5: nam='SQL*Net message to client' ela= 5 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452662202
    WAIT #5: nam='SQL*Net message from client' ela= 50324 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452712705
    WAIT #5: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452713043
    FETCH #5:c=0,e=359,p=0,cr=7,cu=0,mis=0,r=9,dep=0,og=4,tim=1038452713153
    WAIT #5: nam='SQL*Net message from client' ela= 1750 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452715077
    PARSE #3:c=0,e=23,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=1038452715199And there we see the difference. Notice the WAIT lines, above? They aren't in your previous post, with the bequeath connection.
    I'm re-reading some docs on exactly how to "walk the clock" in reading the above. If you are interested, see if you can find a copy of "Optimizing Oracle Performance" by Cary Milsap. It goes into great detail about how to interpret these traces.
    The "ela" value is the elapsed time of the wait, in micro-seconds (1 ms = 0.000 001 second). Unless I've slipped a decimal position, you have 0.52081 sec (a whisker more than one-half second) in network wait time, that doesn't exist on the bequeath connection. That is your "about 500 milliseconds".
    Edited by: EdStevens on Apr 13, 2010 9:56 AM
    Edited by: EdStevens on Apr 13, 2010 10:00 AM

  • Very slow query on xml db objects

    Hi, I'm a dba (new to xml db) trying to diagnose some very slow queries against xml tables. The following takes 2 + hours to return a count of ~700,000 records. We have some that take 10-15 hours.
    select count(*)
    from MEDTRONICCRM a, table(xmlsequence(extract(value(a),'/MedtronicCRM/Counters/
    Histogram'))) b ,
    table(xmlsequence(extract(value(b),'/Histogram/Row'))) c, table(xmlsequence(extract(value(c),'/Row/Column'))) d
    The explain plan from a tkprof looks like this:
    Rows Row Source Operation
    1 SORT AGGREGATE (cr=1586294 r=27724 w=0 time=334399181 us)
    761020 NESTED LOOPS (cr=1586294 r=27724 w=0 time=6285597846 us)
    209395 NESTED LOOPS (cr=1586294 r=27724 w=0 time=1294406875 us)
    16864 NESTED LOOPS (cr=1586294 r=27724 w=0 time=188247898 us)
    544 TABLE ACCESS FULL OBJ#(26985) (cr=1993 r=548 w=0 time=171380 us)
    16864 COLLECTION ITERATOR PICKLER FETCH (cr=0 r=0 w=0 time=82831582 us)
    209395 COLLECTION ITERATOR PICKLER FETCH (cr=0 r=0 w=0 time=939691917 us)
    761020 COLLECTION ITERATOR PICKLER FETCH (cr=0 r=0 w=0 time=3399611143 us)
    I noticed the following statemnt in a previous thread:
    "Indexing is not the answer here... The problem is the storage model. You are current storing all of the collections as serialized lobs. This means that all manipluation of the collection is done in memory. We need to store the collections as nested tables to get peformant queries on them. You do this by using the store VARRAY as table clause to control which collections are stored as nested tables. "
    Could this be the problem? How do I tell which storage model we are using.
    Thanks ,
    Heath Henjum

    With 10g I get the following
    SQL> begin
    2 dbms_xmlschema.registerSchema
    3 (
    4 schemaURL => '&3',
    5 schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
    6 local => TRUE,
    7 genTypes => TRUE,
    8 genBean => FALSE,
    9 genTables => &5
    10 );
    11 end;
    12 /
    old 4: schemaURL => '&3',
    new 4: schemaURL => 'MedtronicCRM.xsd',
    old 5: schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
    new 5: schemaDoc => xdbURIType('/home/OTNTEST/xsd/MedtronicCRM.xsd').getClob(),
    old 9: genTables => &5
    new 9: genTables => TRUE
    begin
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00175: a complex base within "simpleContent" must have simple content
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 17
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options

  • Queries very slow in JSP

    Hi,
    I am working with an Application Server and a Database Oracle 10g. In the JSP's I have a problem with the queries, there are some queries that work very slow, it is not logical for me, because the same query executed in Toad or SQLPlus works very fast.
    For example this query:
    SELECT MAX(COL1) FROM MYTABLE WHERE COL2 = +PARAMETER
    it is very slow in JSP, I have try to do a stored function that returns the result of this query, but it's also is slow:
    SELECT MY_FUNCTION FROM DUAL
    I haven't a lot of experience with JSP. Please, can someone help me?
    Thanks in advance.
    Fernando.

    Hello Krystian.
    Yes, I'm using prepared statements, but I don't know if this can altered the result of a query.
    I'm going to add the result of the trace:
    /* THIS IS THE TOAD EXECUTION */
    SELECT MAX(MED2.MEDICION_ID)
    FROM
    T_MEDICIONES MED2 WHERE MED2.DISPOSITIVO_SENSOR_ID=340 AND VALIDA = 'S'
    call count cpu elapsed disk query current rows
    Parse 2 0.00 0.00 0 0 0 0
    Execute 2 0.00 0.00 0 0 0 0
    Fetch 2 0.00 0.00 0 6 0 2
    total 6 0.00 0.00 0 6 0 2
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    Rows Row Source Operation
    1 SORT AGGREGATE (cr=3 pr=0 pw=0 time=181 us)
    1 FIRST ROW (cr=3 pr=0 pw=0 time=121 us)
    1 INDEX RANGE SCAN (MIN/MAX) IND_MEDICIONES_DISP_SENS (cr=3 pr=0 pw=0 time=110 us)(object id 50555)
    explain plan set statement_id='ROOT:020306140415' into PLAN_TABLE For SELECT MAX(MED2.MEDICION_ID)
    FROM
    T_MEDICIONES MED2 WHERE MED2.DISPOSITIVO_SENSOR_ID=340 AND VALIDA = 'S'
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.01 0.01 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    Rows Row Source Operation
    0 SORT AGGREGATE (cr=0 pr=0 pw=0 time=0 us)
    0 FIRST ROW (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX RANGE SCAN (MIN/MAX) IND_MEDICIONES_DISP_SENS (cr=0 pr=0 pw=0 time=0 us)(object id 50555)
    /* THIS IS THE JSP EXECUTION */
    explain plan set statement_id='ROOT:020306121435' into PLAN_TABLE For /* Formatted on 2006/02/03 12:14 (Formatter Plus v4.8.5) */
    SELECT MAX (med2.medicion_id)
    FROM t_mediciones med2
    WHERE med2.dispositivo_sensor_id = 340
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.01 0.01 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.02 0.02 0 0 0 0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    Rows Row Source Operation
    0 SORT AGGREGATE (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX FAST FULL SCAN IND_MEDICIONES_DISP_SENS (cr=0 pr=0 pw=0 time=0 us)(object id 50555)
    ********************************************************************************

  • Performance is very slow

    Hi Guys,
    My Prod db performance is very slow..
    I collected the addm report and got some sql queries which are consuming significant memory.
    Below out put is from ADDM Report
    FINDING 1: 45% impact (9529 seconds)
    SQL statements consuming significant database time were found.
    RECOMMENDATION 1: SQL Tuning, 21% benefit (4393 seconds)
    ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
    "bxkdtdywnp6xa".
    RELEVANT OBJECT: SQL statement with SQL_ID bxkdtdywnp6xa and
    PLAN_HASH 2404633280
    and I just wanted to know what is the base level analysis from DBA end.
    Regards,
    Maddy

    user11263705 wrote:
    HIPatience, Grasshopper
    You posted this follow-up a mere 85 minutes after your previous post.
    This forum is not a chat line, and it is not paid support.
    No one is responsible for monitoring it and giving a quick response.
    Furthermore, it is a global forum. The person with the information you seek may very well live 20 time zones away from you and was going to bed just as you posted. He will not even see your post for several more hours.
    Your original post went up in the middle of the night for half the world.
    And going into a weekend, at that.
    No one with the information you seek is deliberately withholding it until you sound sufficiently desperate.

  • After upgrading to mountain lion my mac is very slow?

    Hello
    After upgrading to mountain lion my mac is very slow
    It was starting in 10 seconds and shuting dow in 5 seconds and now it's taking more than one minute to start it or shut down it and everything is slow
    why????????/
    Thanks

    First, back up all data immediately, as your boot drive might be failing.
    Take these steps when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • After upgrading to Mavericks, macbook pro very slow

    Hiya
    I upgraded to Mavericks and ever since then my macbook pro is very slow.
    When I try to open a new finder window, I get the rainbow ball. Chrome is extremely slow. Word is also slow to open, slow to wake, and slow to shut down. Pretty much everything is slow!
    I did repair permissions using disk utility, but that didn't solve the problem.
    I ran EtreCheck and here's what I got:
    EtreCheck version: 1.9.11 (43) - report generated May 29, 2014 at 12:40:03 AM EDT
    Hardware Information:
              MacBook Pro (13-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,1
              1 2.3 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
              OS X 10.9.3 (13D65) - Uptime: 0 days 0:15:50
    Disk Information:
              ST9500325ASG disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Ripley's Monster (disk0s2) / [Startup]: 499.25 GB (73.12 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Gatekeeper:
              Anywhere
    Kernel Extensions:
              [not loaded] com.novationmusic.driver.usb.audio (2.3) Support
              [not loaded] com.numark.V7.usb_TIGER (2.0.3) Support
              [not loaded] com.numark.ns6.usb (2.1.0) Support
              [not loaded] com.numark.ns6.usb_TIGER (2.1.0) Support
              [not loaded] com.numark.ns7.usb (2.0.2) Support
              [not loaded] com.numark.ns7.usb_TIGER (2.0.2) Support
              [not loaded] com.numark.v7.usb (2.0.3) Support
              [not loaded] com.ploytec.xonedx.usb (2.0.2) Support
              [not loaded] com.ploytec.xonedx.usb_TIGER (2.0.2) Support
              [not loaded] com.rane.driver.sixtyeight.10.6 (1.1.2f4) Support
              [not loaded] com.rane.driver.sixtyone.10.6 (1.0.0f1 - SDK 10.6) Support
              [not loaded] com.rane.driver.sixtytwo.10.6 (1.0.0f1 - SDK 10.6) Support
              [not loaded] com.rane.driver.sl2.10.6 (1.0.1f3) Support
              [not loaded] com.rane.driver.sl3.10.6 (1.3.2f6) Support
              [not loaded] com.rane.driver.sl4.10.6 (1.0.1f2) Support
              [kext loaded] com.serato.usb.kext (2.3.0) Support
    Startup Items:
              HP IO: Path: /Library/StartupItems/HP IO
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [running] com.rane.sixtyeight.daemon.plist Support
              [running] com.rane.sixtyone.daemon.plist Support
              [running] com.rane.sixtytwo.daemon.plist Support
              [running] com.rane.sl2.daemon.plist Support
              [running] com.rane.sl3.daemon.plist Support
              [running] com.rane.sl4.daemon.plist Support
    Launch Agents:
              [running] com.amazon.sendtokindle.launcher.plist Support
              [loaded] com.google.keystone.agent.plist Support
              [loaded] com.lexmark.bmspecificlaunchd.plist Support
              [loaded] com.lexmark.lxknetlaunchd.plist Support
              [running] com.pharos.notify.plist Support
              [running] com.pharos.popup.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
    User Login Items:
              iTunesHelper
              GrowlHelperApp
              Stickies
              BlueHarvest
              EvernoteHelper
              Flux
              Flux
              Dropbox
              SpeechSynthesisServer
              EvernoteHelper
              Rowmote Helper
              6500 Series Button Monitor
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.4.1.18709 Support
              nplastpass: Version: 2.0.7 Support
              Unity Web Player: Version: UnityPlayer version 4.2.2f1 - SDK 10.6 Support
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.4.4.2 Support
              OfficeLiveBrowserPlugin: Version: 12.2.0 Support
              ebrary Reader: Version: 2.22 - 1/26/10 Support
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
              FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.214 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 5.4.1.18709 Support
              iPhotoPhotocast: Version: 7.0 - SDK 10.7
              AdobePDFViewer: Version: 9.5.5 Support
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 Support
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
              AudioScrobbler: Version: 3.0.4 Support
    User Internet Plug-ins:
              RealPlayer Plugin: Version: (null) Support
    3rd Party Preference Panes:
              BlueHarvest  Support
              Flash Player  Support
              Flip4Mac WMV  Support
              Growl  Support
              SIXTY-EIGHT Audio Control Panel  Support
              Sixty-One Audio Control Panel  Support
              Sixty-Two Audio Control Panel  Support
              SL 2 Audio Control Panel  Support
              SL 3 Audio Control Panel  Support
              SL 4 Audio Control Panel  Support
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Volumes being backed up:
                        Ripley's Monster: Disk size: 464.96 GB Disk used: 396.86 GB
              Destinations:
                        Time Machine Backups [Local] (Last used)
                        Total size: 931.19 GB
                        Total number of backups: 10
                        Oldest backup: 2013-03-01 09:16:00 +0000
                        Last backup: 2014-05-29 03:59:43 +0000
                        Size of backup disk: Too small
                                  Backup size 931.19 GB < (Disk used 396.86 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   9%          WindowServer
                   6%          Google Chrome
                   3%          hidd
                   1%          System Information
                   1%          Dock
    Top Processes by Memory:
              160 MB          Finder
              139 MB          mds_stores
              127 MB          com.apple.IconServicesAgent
              119 MB          Google Chrome
              82 MB          Dropbox
    Virtual Memory Information:
              538 MB          Free RAM
              1.50 GB          Active RAM
              1000 MB          Inactive RAM
              1016 MB          Wired RAM
              483 MB          Page-ins
              0 B          Page-outs

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Here are my Etrecheck results....can anyone help me get my computer faster?  Problem description: Computer very slow-.and unresponsive  EtreCheck version: 2.1.8 (121) Report generated April 16, 2015 at 10:19:42 AM EDT

    Problem description:
    Computer very slow….and unresponsive
    EtreCheck version: 2.1.8 (121)
    Report generated April 16, 2015 at 10:19:42 AM EDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2012) (Technical Specifications)
        MacBook Pro - model: MacBookPro9,1
        1 2.3 GHz Intel Core i7 CPU: 4-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 412
    Video Information: ℹ️
        Intel HD Graphics 4000
        NVIDIA GeForce GT 650M - VRAM: 512 MB
            Color LCD 1440 x 900
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 7 days 18:4:45
    Disk Information: ℹ️
        APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 498.88 GB (299.54 GB free)
                Core Storage: disk0s2 499.25 GB Online
        MATSHITADVD-R   UJ-8A8
    USB Information: ℹ️
        Western Digital My Passport 0748 500.07 GB
            EFI (disk3s1) <not mounted> : 210 MB
            My Passport (disk3s2) /Volumes/My Passport : 499.73 GB (126.16 GB free)
        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
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    com.quark.driver.Tether (1.1.0d4 - SDK 10.4) [Click for support]
        [loaded]    com.quark.driver.Tether64 (1.1.0d3 - SDK 10.6) [Click for support]
        [not loaded]    com.wdc.driver.1394HP (1.0.11 - SDK 10.4) [Click for support]
        [not loaded]    com.wdc.driver.1394_64HP (1.0.1 - SDK 10.6) [Click for support]
        [not loaded]    com.wdc.driver.USBHP (1.0.11) [Click for support]
        [loaded]    com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6) [Click for support]
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.gamed.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.printtool.agent.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        6 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.awdd.plist
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.emond.aslmanager.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.wdhelper.plist
        [killed]    com.apple.xpc.smd.plist
        6 processes killed due to memory pressure
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.coupons.coupond.plist [Click for support]
        [running]    com.mcafee.menulet.plist [Click for support]
        [running]    com.mcafee.reporter.plist [Click for support]
        [running]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [failed]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2.Agent.plist [Click for support]
        [unknown]    com.mcafee.ssm.ScanFactory.plist [Click for support]
        [unknown]    com.mcafee.ssm.ScanManager.plist [Click for support]
        [running]    com.mcafee.virusscan.fmpd.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.facebook.videochat.[redacted].plist [Click for support]
        [failed]    com.facebook.videochat.[redacted].plist [Click for support]
        [loaded]    com.google.keystone.agent.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: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        WDSecurityHelper    UNKNOWN  (missing value)
        WDSecurityHelper    Application  (/Applications/WD Security.app/Contents/WDSecurityHelper.app)
        WDDriveUtilityHelper    UNKNOWN  (missing value)
        WDDriveUtilityHelper    Application  (/Applications/WD Drive Utilities.app/Contents/WDDriveUtilityHelper.app)
    Internet Plug-ins: ℹ️
        SiteAdvisor: Version: 2.0 - SDK 10.1 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        CouponPrinter-FireFox_v2: Version: 5.0.3 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
    User internet Plug-ins: ℹ️
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Stamps.com: Version: 1.1.13 [Click for support]
        DISH Anywhere Player: Version: 2.7.2.0 [Click for support]
    Safari Extensions: ℹ️
        SiteAdvisor
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 498.88 GB Disk used: 199.33 GB
        Destinations:
            My Passport [Local]
            Total size: 499.73 GB
            Total number of backups: 29
            Oldest backup: 2013-05-17 22:06:43 +0000
            Last backup: 2015-03-27 16:16:56 +0000
            Size of backup disk: Too small
                Backup size 499.73 GB < (Disk used 199.33 GB X 3)
    Top Processes by CPU: ℹ️
             6%    backupd
             5%    WindowServer
             1%    Google Chrome
             1%    loginwindow
             1%    mtmd
    Top Processes by Memory: ℹ️
        289 MB    Google Chrome Helper
        189 MB    Google Chrome
        84 MB    backupd
        78 MB    Mail
        77 MB    Finder
    Virtual Memory Information: ℹ️
        17 MB    Free RAM
        1.22 GB    Active RAM
        1.22 GB    Inactive RAM
        996 MB    Wired RAM
        54.55 GB    Page-ins
        1.93 GB    Page-outs
    Diagnostics Information: ℹ️
        Apr 14, 2015, 03:11:54 PM    /Library/Logs/DiagnosticReports/softwareupdated_2015-04-14-151154_[redacted].cp u_resource.diag [Click for details]

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    When you post the log extract, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the text on Pastebin, then post a link here to the page you created.

  • My 2012 Macbook pro is running very slow from this week

    Started from the day before yesterday, my Macbook runs very slow. A single click on anything can cause me to wait its finish running. Even when typing
    Here is the result
    EtreCheck version: 2.1 (101)
    Report generated December 4, 2014 at 11:02:03 AM EST
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2012) (Verified)
      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
    Video Information: ℹ️
      Intel HD Graphics 4000 -
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 1:16:59
    Disk Information: ℹ️
      TOSHIBA MK7559GSXF 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 (377.07 GB free)
      Encrypted AES-XTS Unlocked
      Core Storage: disk0s2 749.30 GB Online
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
      Apple Inc. FaceTime HD Camera (Built-in)
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Launch Agents: ℹ️
      [loaded] com.google.keystone.agent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [Support]
      [loaded] org.macosforge.xquartz.startx.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
      [loaded] com.oracle.java.JavaUpdateHelper.plist [Support]
      [loaded] org.macosforge.xquartz.privileged_startx.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [loaded] com.facebook.videochat.[redacted].plist [Support]
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      有道词典  Application (/Applications/有道词典.app)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      Default Browser: Version: 600 - SDK 10.10
      AdobePDFViewerNPAPI: Version: 10.1.12 [Support]
      FlashPlayer-10.6: Version: 15.0.0.239 - SDK 10.6 [Support]
      Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
      Flash Player: Version: 15.0.0.239 - SDK 10.6 [Support]
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 [Support]
      AdobePDFViewer: Version: 10.1.12 [Support]
      Mathematica: Version: 9.0.1.4092152 [Support]
      JavaAppletPlugin: Version: Java 8 Update 25 Check version
    userinternetplugins ℹ️
      RealPlayer Plugin: Version: Unknown [Support]
      aliedit: Version: 1.0 - SDK 10.6 [Support]
      aThunderPlugIn: Version: Unknown
    Safari Extensions: ℹ️
      Extensions: No such file or directory
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
      Java  [Support]
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          5% WindowServer
          2% hidd
          1% M-fM^\M^IM-iM^AM^SM-hM-/M^MM-eM^EM-8
          0% Finder
          0% Dock
    Top Processes by Memory: ℹ️
      172 MB softwareupdated
      112 MB ocspd
      103 MB com.apple.WebKit.WebContent
      86 MB Safari
      86 MB Finder
    Virtual Memory Information: ℹ️
      3.51 GB Free RAM
      3.52 GB Active RAM
      597 MB Inactive RAM
      965 MB Wired RAM
      1.50 GB Page-ins
      0 B Page-outs
    Diagnostics Information: ℹ️
      Dec 4, 2014, 10:21:17 AM QQ_2014-12-04-102117_JIAYIs-MacBook-Pro.hang
      Dec 4, 2014, 09:47:29 AM Self test - passed
      Dec 3, 2014, 11:23:25 AM com.apple.WebKit.WebContent_2014-12-03-112325_JIAYIs-MacBook-Pro.crash

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • My MacBook Pro is running very slow.  I've run repair permissions without positive result.  Does anyone have any ideas?

    My MacBook Pro (2010) is runnign very slow.  This came on all of a sudden.  It opens, closes, reboots, etc., all much slower than ever before.  I have used the repair disk permissions without any positive result.  Does anyone have any ideas?

    First, back up all data immediately, as your boot drive might be failing.
    Take these steps when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • Macbook Pro running VERY slow- spinning wheel of death

    My 4 year old MacBook Pro has been running very very slow for quite some time and I'm fed up enough to ask for some suggestions. Upon reading some forums, I was advised to download EtreCheck... here are my results. Some things are in red and look bad, I'm just not sure how to decipher this report. Any help is greatly appreciated!!
    EtreCheck version: 1.9.12 (48)
    Report generated July 30, 2014 at 9:43:01 PM EDT
    Hardware Information:
      MacBook Pro (15-inch, Mid 2010) (Verified)
      MacBook Pro - model: MacBookPro6,2
      1 2.66 GHz Intel Core i7 CPU: 2 cores
      4 GB RAM
    Video Information:
      Intel HD Graphics - VRAM: 288 MB
      NVIDIA GeForce GT 330M - VRAM: 512 MB
      Color LCD 1440 x 900
    System Software:
      OS X 10.9.4 (13E28) - Uptime: 7 days 23:30:30
    Disk Information:
      Hitachi HTS545050B9SA02 disk0 : (500.11 GB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 499.25 GB (173.38 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      MATSHITADVD-R   UJ-898 
    USB Information:
              USB FLASH DRIVE 2 GB
      PHLASH (disk1s1) /Volumes/PHLASH: 2 GB (27 MB free)
      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:
      Mac App Store and identified developers
    Kernel Extensions:
      [not loaded] com.silabs.driver.CP210xVCPDriver (3.0.0d1) Support
      [not loaded] com.silabs.driver.CP210xVCPDriver64 (3.0.0d1) Support
      [not loaded] com.wacom.kext.wacomtablet (6.3.6 - SDK 10.8) Support
    Problem System Launch Daemons:
      [failed] com.apple.Kerberos.digest-service.plist
      [failed] com.apple.Kerberos.kdc.plist
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist Support
      [not loaded] com.adobe.SwitchBoard.plist Support
      [not loaded] com.cloudpath.maccmd.plist Support
      [running] com.fitbit.galileod.plist Support
      [running] com.intego.BackupAssistant.daemon.plist Support
      [not loaded] org.eyebeam.SelfControl.plist Support
    Launch Agents:
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.CS5ServiceManager.plist Support
      [running] com.Affinegy.InstaLANa.plist Support
      [loaded] com.intego.backupassistant.agent.plist Support
      [running] com.wacom.wacomtablet.plist Support
    User Launch Agents:
      [loaded] com.adobe.AAM.Updater-1.0.plist Support
      [failed] com.akamai.client.plist Support
      [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
      [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
      [loaded] com.divx.agent.postinstall.plist Support
      [loaded] com.facebook.videochat.[redacted].plist Support
      [loaded] com.google.keystone.agent.plist Support
      [running] com.spotify.webhelper.plist Support
    User Login Items:
      iTunesHelper
      GrowlHelperApp
      Belkin Router Monitor
      Dropbox
      Spotify
      Fitbit Connect Menubar Helper
    Internet Plug-ins:
      WacomNetscape: Version: 2.1.0-1 - SDK 10.8 Support
      OVSHelper: Version: 1.1 Support
      Default Browser: Version: 537 - SDK 10.9
      OfficeLiveBrowserPlugin: Version: 12.3.5 Support
      WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.2 Support
      AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 Support
      FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
      DivXBrowserPlugin: Version: 2.2 Support
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
      Flash Player: Version: 14.0.0.145 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      iPhotoPhotocast: Version: 7.0 - SDK 10.8
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
      DivX Plus Web Player HTML5 <video>: Version: 2.1.2.145
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
      TuneUp Visualizer: Version: 2.2.0 Support
    User Internet Plug-ins:
      Picasa: Version: 1.0 Support
    3rd Party Preference Panes:
      Akamai NetSession Preferences  Support
      DivX  Support
      Flash Player  Support
      FUSE for OS X (OSXFUSE)  Support
      Growl  Support
      Perian  Support
      WacomTablet  Support
    Time Machine:
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 464.96 GB Disk used: 303.49 GB
      Destinations:
      LaCie [Local] (Last used)
      Total size: 931.19 GB
      Total number of backups: 11
      Oldest backup: 2013-10-17 14:07:53 +0000
      Last backup: 2014-07-22 13:13:18 +0000
      Size of backup disk: Adequate
      Backup size 931.19 GB > (Disk used 303.49 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
        118% Finder
          9% com.apple.quicklook.satellite
          6% repair_packages
          5% WindowServer
          3% networkd
    Top Processes by Memory:
      236 MB Finder
      127 MB repair_packages
      123 MB Google Chrome
      106 MB networkd
      63 MB Google Chrome Helper
    Virtual Memory Information:
      18 MB Free RAM
      1.17 GB Active RAM
      1.17 GB Inactive RAM
      833 MB Wired RAM
      9.52 GB Page-ins
      1.89 GB Page-outs

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Very Slow Query due to Bitmap Conversion

    I have a strange problem with the performance of a spatial query. If I perform a 'SELECT non_geom_column FROM my_table WHERE complicated_join_query' the result comes back sub-second. However, when I replace the column selected with geometry and perform 'SELECT geom_column FROM my_table WHERE same_complicated_join_query' the response takes over a minute.
    The issue is that in the second case, despite the identical where clause, the explain plan is significantly different. In the 'select geom_column' query there is a BITMAP CONVERSION (TO ROWIDS) which accounts for all of the extra time, where as in the 'select other_column' query that conversion is replaced with TABLE ACCESS (BY INDEX ROWID) which is near instant.
    I have tried putting in some hints, although I do not have much experience with hints, and have also tried nesting the query in various sub-selects. Whatever I try I can not persuade the explain plan to drop the bitmap conversion when I select the geometry column. The full query and an explanation of that query are below. I have run out of things to try, so any help or suggestions at all would be much appreciated.
    Regards,
    Chris
    Explanation and query
    My application allows users to select geometries from a map image through clicking, dragging a box and various other means. The image is then refreshed - highlighting geometries based on the query with which I am having trouble. The user is then able to deselect any of those highlighted geometries, or append others with additional clicks or dragged selections.
    If there are 2 (or any even number of) clicks within the same geometry then that geometry is deselected. Alternatively the geometry could have been selected through an intersection with a dragged box, and then clicked in to deselect - again an even number of selections. Any odd number of selections (i.e. selecting, deselecting, then selecting again) would result in the geometry being selected.
    The application can not know if the multiple user clicks are in the same geometry, as it simply has an image to work with, so all it does is pass all the clicks so far to the database to deal with.
    My query therefore does each spatial point or rectangle query in turn and then appends the unique key for the rows each returned to a list. After performing all of the queries it groups the list by the key and the groups with an odd total are 'selected'. To do this logic in a single where clause I have ended up with nested select statements that are joined with union all commands.
    The query is therefore..
    SELECT
    --the below column (geometry) makes it very slow...replacing it with any non-spatial column takes less than 1/100 of the time - that is my problem!
    geometry
    FROM
    my_table
    WHERE
    primary_key IN
    SELECT primary_key FROM
    SELECT primary_key FROM my_table WHERE
    sdo_relate(geometry, mdsys.sdo_geometry(2003, 81989, NULL, sdo_elem_info_array(1, 1003, 3), sdo_ordinate_array( rectangle co-ords )), 'mask=anyinteract') = 'TRUE'
    UNION ALL SELECT primary_key FROM my_table WHERE
    sdo_relate(geometry, mdsys.sdo_geometry(2001, 81989, sdo_point_type( point co-ords , NULL), NULL, NULL), 'mask=anyinteract') = 'TRUE'
    --potentially more 'union all select...' here
    GROUP BY primary_key HAVING mod(count(*),2) = 1     
    AND
    --the below is the bounding rectangle of the whole image to be returned
    sdo_filter(geometry, mdsys.sdo_geometry(2003, 81989, NULL, sdo_elem_info_array(1, 1003, 3), sdo_ordinate_array( outer rectangle co-ords )), 'mask=anyinteract') = 'TRUE'

    Hi
    Thanks for the reply. After a lot more googling- it turns out this is a general Oracle problem and is not solely related to use of the GEOMETRY column. It seems that sometimes, the Oracle optimiser makes an arbitrary decision to do bitmap conversion. No amount of hints will get it to change its mind !
    One person reported a similarly negative change after table statistic collection had run.
    Why changing the columns being retrieved should change the execution path, I do not know.
    We have a numeric primary key which is always set to a positive value. When I added "AND primary_key_column > 0" (a pretty pointless clause) the optimiser changed the way it works and we got it working fast again.
    Chris

  • Since moving to a new location Foxfire is very slow

    I have recently moved and since that time Foxfire is very slow and hesitant. I have rebooted and everything I know to do. Can you please help me?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • MS-Access query running very slow

    Hi,
    We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow.
    These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Oracle.
    some more obeservation :
    (1) Some of the queries using "HAVING" clause without any aggregate function. When I moved this condition to "WHERE" clause, performance improved a lot.
    But problem is that I can't suggest this solution to "USERS". They are creating query using "query wizard" in MS-Access and they started creating noise on this.
    (2) I tested same MDB in two different PCs and same query is returning records in 4 seconds in one system, is taking more than 10 minutes in other system.
    Since I'm new to MS-Access, I don't know what other information I need to provide here.
    Please help me out.

    I have seen the problem like this,too
    can i have you

Maybe you are looking for

  • How to store Multiple values with restriction in Oracle 9i

    Hi, I am using oracle 9i R2 and i would like to know that how can i store multiple values and restrict some of values into oracle table? ex. I need to create table or inserting into existing table like below: ID will be Primary/Unique key and each ID

  • Using WiFi and 3G at the same time

    If I am hooked up to wi-fi, but my cell/3G connection is still active, is there a way to ensure that I'm maximizing my wi-fi use and minimizing depletion of my data plan? Comment edited to start new discussion. Message was edited by: Admin Moderator

  • Updates for n80... available, but where?

    i checked and my n80 runs V.3.0617.0.6 while i read that the latest firmare available is v4.0623.0.42. downloaded and tried software updater but it says that there's no newer version for my phone (n80 (rm-92). ho can i manually find and upload the v4

  • Assigning a template when importing a project

    Is there a way to assign a template when saving a Project to the PWA for Project Professional for the first time? I ask because some templates have a predesigned SharePoint site connected with them. In that situation, am I better off copying and past

  • Stream on internet, Can't connect to my ip

    Hello, I want to stream to the internet but i can't connect to my ip found on http://whatismyipaddress.com/ i can connect to localhost and my local network ip but i want to stream world-wide. How can i do this? this is my setup atm: 7*.170.***.74 is