Non - indexed query's (9I)

Hello everbody,
How do I retrieve all the NON indexed query's used in the database? I want to find out which ones I need to optimize.
thanks John

Hello
That's not as easy as it sounds. Creating indexes for every query that does not use one could very easily cause more problems than it fixes. Full table scans are not evil, they are often the fastest way to access a relatively large portion of data in a table.
If you have issues with performance in your database you need to know exactly what they are, and you can get a very good idea by using statspack.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/statspac.htm#21793
Once you have the right metrics, you can make an informed decision as to what the correct course of action is to solve any performance problems you are having. Without these metrics, you are groping in the dark.
HTH
David

Similar Messages

  • Non-indexed queries

    Hello,
    Is there a way to retrieve all the non indexed query's used in the database?
    I use toad to monitor the database and there is a certain amount of queries non-indexed I want to find out.
    TIA.
    Alder

    In TOAD the 'Database -> Spool SQL -> Spool SQL to Screen' option is often your friend.
    From the spool output produced while refreshing the Database Monitor in TOAD you can see that TOAD uses the following query to derive the ratio of non-indexed to indexed SQL.
    SELECT SUM (DECODE (name, 'table scans (long tables)', VALUE, 0)) /
           (SUM (DECODE (name, 'table scans (long tables)', VALUE, 0)) +
            SUM (DECODE (name, 'table scans (short tables)', VALUE, 0))) *
           100
              non_indexed_sql,
           100 -
           SUM (DECODE (name, 'table scans (long tables)', VALUE, 0)) /
           (SUM (DECODE (name, 'table scans (long tables)', VALUE, 0)) +
            SUM (DECODE (name, 'table scans (short tables)', VALUE, 0))) *
           100
              indexed_sql
    FROM   v$sysstat
    WHERE  1 = 1
    AND    (name IN ('table scans (long tables)', 'table scans (short tables)'));As you can see this is simply the ratio of the count of 'table scans (long tables)' against 'table scans (short tables)' which are simple metrics for the database held in v$sysstat. This cannot be traced to the original statements themselves.
    You could try looking at the operation/options columns in v$sql_plan or dba_hist_sql_plan views - BUT - as has already been pointed out, it is not always preferable to use indexes over other access paths to answer queries - it is heavily dependent on the data distribution and the question being asked. You would be better off looking at which queries were resource intensive.

  • Exchange Server Information Store has encountered an error while executing a full-text index query

    Hi Team need help
    Exchange 2013 EAC doesnt show the databases and it gives message
    "Your request couldn't be completed. Please try again in a few minutes."
    Its a 9 Node DAG and I stopped and diabled Search and Search Host controller on all of them
    in the event viewer see a lot of Event id 1012
    Log Name:      Application
    Source:        MSExchangeIS
    Date:          4/1/2013 9:23:48 AM
    Event ID:      1012
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      ex1301.dagdc.com
    Description:
    Exchange Server Information Store has encountered an error while executing a full-text index query ("and(or(itemclass:string("IPM.Note*", mode="and"), itemclass:string("IPM.Schedule.Meeting*", mode="and"), itemclass:string("IPM.OCTEL.VOICE*",
    mode="and"), itemclass:string("IPM.VOICENOTES*", mode="and")), subject:string("SearchQueryStxProbe*", mode="and"), folderid:string("48A300C7FBA4DA408B80EB019A1CE94900000000000E0000"))"). Error
    information: System.TimeoutException: Failed to open a channel.
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.ExecuteServiceCall(IProcessingEngineChannel& serviceProxy, Action`1 call, Int32 retryCount)
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.ExecuteSearchFlow(String flowName, Dictionary`2 inputData)
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.<ExecuteInternal>d__18.MoveNext()
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.<ExecuteSimple>d__a.MoveNext()
       at Microsoft.Exchange.Server.Storage.FullTextIndex.FullTextIndexQuery.ExecutePagedFullTextIndexQuery(Guid databaseGuid, Guid mailboxGuid, Int32 mailboxNumber, String query, CultureInfo culture, Guid correlationId, QueryLoggingContext loggingContext,
    PagedQueryResults pagedQueryResults)
       at Microsoft.Exchange.Server.Storage.StoreCommonServices.StoreFullTextIndexHelper.ExecuteFullTextIndexQuery(Context context, MailboxState mailboxState, QueryParameters queryParameters, PagedQueryResults pagedQueryResults, ExchangeId searchFolderId,
    SearchExecutionDiagnostics diagnostics)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeIS" />
        <EventID Qualifiers="49156">1012</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-04-01T16:23:48.000000000Z" />
        <EventRecordID>192599</EventRecordID>
        <Channel>Application</Channel>
        <Computer>ex1301.dagdc.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>and(or(itemclass:string("IPM.Note*", mode="and"), itemclass:string("IPM.Schedule.Meeting*", mode="and"), itemclass:string("IPM.OCTEL.VOICE*", mode="and"), itemclass:string("IPM.VOICENOTES*",
    mode="and")), subject:string("SearchQueryStxProbe*", mode="and"), folderid:string("48A300C7FBA4DA408B80EB019A1CE94900000000000E0000"))</Data>
        <Data>System.TimeoutException: Failed to open a channel.
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.ExecuteServiceCall(IProcessingEngineChannel&amp; serviceProxy, Action`1 call, Int32 retryCount)
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.ExecuteSearchFlow(String flowName, Dictionary`2 inputData)
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.&lt;ExecuteInternal&gt;d__18.MoveNext()
       at Microsoft.Exchange.Search.OperatorSchema.PagingImsFlowExecutor.&lt;ExecuteSimple&gt;d__a.MoveNext()
       at Microsoft.Exchange.Server.Storage.FullTextIndex.FullTextIndexQuery.ExecutePagedFullTextIndexQuery(Guid databaseGuid, Guid mailboxGuid, Int32 mailboxNumber, String query, CultureInfo culture, Guid correlationId, QueryLoggingContext loggingContext,
    PagedQueryResults pagedQueryResults)
       at Microsoft.Exchange.Server.Storage.StoreCommonServices.StoreFullTextIndexHelper.ExecuteFullTextIndexQuery(Context context, MailboxState mailboxState, QueryParameters queryParameters, PagedQueryResults pagedQueryResults, ExchangeId searchFolderId,
    SearchExecutionDiagnostics diagnostics)</Data>
        <Binary>5B444941475F4354585D000084000000FF09000000000000000268000000808A00100000000080CA00100000000080B200100000000080D200100000000030FF001000000000309F00100000000030DF001000000000B09D001000000000B0DD001000000000B0ED001000000000B08D001000000000B095001000000000B0A5001000000000</Binary>
      </EventData>
    </Event>

    Hi,
    Please reenable and start the search engine service and try again.
    The simillar case for your reference:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/4f43ef50-b71f-4ab3-8ced-70f1c36c5509
    Hope it is hlepful.
    Fiona Liao
    TechNet Community Support

  • Java.sql.SQLException: Invalid column index Query: while using ROWNUM

    hi ,
    i am getting the invalid column index query error while executing following query .i m able to run it properly without using rownum but when i append rownum i m getting error.i m using apache queryrunner for execution of query.
    java.sql.SQLException: Invalid column index Query: select * from (
    SELECT
    TO_CHAR(A.REQ_FOR_RATING_ID) RFQID,
    TO_CHAR(F.COV_PLAN_ID) COVPLANID,
    B.FIRM_NAME FIRMNAME,
    B.PRIMARY_ZIP_CD ZIP,
    A.PRODUCR_CD PRODUCERCD,
    A.PRODUCR_NAME PRODUCER,
    H.COV_NAME COVDESP,
    C.SALE_OFFC_CD SALEOFFCCD,
    C.USR_OFFC_NAME USROFFC,
    C.USR_NAME USR,
    C.USR_REP_CD USRREPCD,
    to_char((SELECT TO_CHAR(COUNT(EMP_NBR)) COUNT FROM ROSTR_DATA WHERE ROSTR_ID = F.ROSTR_ID)) AS count,
    TO_CHAR(B.SIC_CD) SICCD,
    F.INDSTRY_TYPE_IND INDTYPEIND,
    TO_CHAR(F.MANL_SIC_FCTR_NBR) MANSICFACTOR,
    TO_CHAR(F.UW_OVERD_SIC_FCTR_NBR) UWOVERDSICFACTOR,
    TO_CHAR(G.AREA_FCTR_NBR) STRAREAFACTOR,
    G.COV_ID COVID,
    F.PLAN_APPRVL_STATUS_CD PLANAPPRVLCD,
    F.PLAN_PROGRS_STATUS_CD PLANPROGRESSSTATUSCD ,
    F.PLAN_SALE_ASSMNT_CD PLANSALEASSMTCD,
    F.CREATD_DT CREATEDDT,
    NVL(to_char(F.PLAN_RELSED_DT),' ') PLANRELSEDDT,
    TO_CHAR(F.PLAN_RELSED_BY_ID) PLANRELSEDBYID,
    TO_CHAR(F.PROPOSD_EFF_DT) PROPOSDEFFECTIVEDT,
    TO_CHAR(A.GRACE_PERIOD_NBR) GRACEPERIOD,
    A.RNWL_15_MONTH_IND FIFTEENMONTHRNWLIND ,
    I.CO_DESC_TXT COMPANYNAME ,
    NVL(to_char(F.PLAN_APPRVL_DT),' ') approvedDt,
                   (Select U.USR_NAME from USR_DETL U WHERE U.USR_ID = F.PLAN_RELSED_BY_ID) as planRelsedByName,
    (Select U.USR_NAME from USR_DETL U WHERE U.USR_ID = F.PLAN_APPRVR_ID) as approvedByName,
    '' createdByName,
    ROWNUM rnum
    FROM
    REQ_FOR_RATING A,
    FIRM B,
    USR_DETL C,          
    SALE_OFFICE D,
    QUOTE_SCENRIO E,
    QUOTE_COV G,
    COV_PLAN F,
    COV_LKUP H,      
    CO_LKUP I
    WHERE
    A.FIRM_ID = B.FIRM_ID AND
    A.SALE_REP_ID = C.USR_ID AND
    C.SALE_OFFC_CD = D.SALE_OFFC_CD AND
    A.REQ_FOR_RATING_ID=E.REQ_FOR_RATING_ID AND
    E.QUOTE_SCENRIO_ID=G.QUOTE_SCENRIO_ID AND
    G.QUOTE_COV_ID=F.QUOTE_COV_ID AND      
    G.COV_ID=H.COV_ID AND
    I.CO_CD = F.CO_CD AND
    TO_CHAR(F.CREATD_DT,'YYYYMMDD') > TO_CHAR(TO_DATE('07/16/2007', 'MM/DD/YYYY HH24:MI:SS'),'YYYYMMDD') AND
    TO_CHAR(F.CREATD_DT,'YYYYMMDD') < TO_CHAR(TO_DATE('10/16/2007', 'MM/DD/YYYY HH24:MI:SS'),'YYYYMMDD')
    and rownum <=?) where rnum >=? Parameters: [07/15/2007 00:00:00, 10/15/2007 23:59:59, 1117, 1]

    That's a SQL fault, not a JDBC/Java fault.

  • INTERMEDIA TEXT INDEX를 사용하는 QUERY의 TUNING

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    INTERMEDIA TEXT INDEX를 사용하는 QUERY의 TUNING
    ===============================================
    Purpose
    Intermedia text를 사용하는 query의 속도를 향상시킬 수 있는 방안을
    알아보자.
    Explanation
    1. Make analyze all the table in the query
    text index를 이용하는 Query 안의 모든 Table을 analyze 해 주십시요.
    예를 들어 다음의 command를 이용할 수 있습니다.
    ANALYZE TABLE <table_name> COMPUTE STATISTICS;
    or
    ANALYZE TABLE <table_name> ESTIMATE STATISTICS 1000 ROWS;
    or
    ANALYZE TABLE <table_name> ESTIMATE STATISTICS 50 PERCENT;
    2. Using FIRST_ROWS hint
    더 좋은 response time 을 위해서 first_rows hint 를 사용해 보십시요.
    database에 기본적으로 설정된 optimizer mode는 choose mode입니다.
    이것은 전체 처리시간(throughput)을 가장 빠르게 하기 위한(all_rows mode)
    plan을 따르기 때문에 user의 입장에서는 first_rows 보다는 늦다고 느낄 수
    있습니다.
    Query에 다음과 같이 hint를 주고 performance를 확인해 보십시요.
    select /*+ FIRST_ROWS */ pk, col from ctx_tab
    where contains(txt_col, 'test', 1) > 0;
    단, first_rows hint를 이용하는 경우 자동으로 score 순서대로
    ordering 되지 않습니다. 왜냐하면 단어에 부합하는 문서를 찾는대로
    즉시 결과로 나타내 주기 때문입니다.
    3. Make sure text index is not fragmented
    insert, delete 가 많이 되는 table의 경우 index fragment를 제거해 주어야
    합니다. Index fragmentation 은 다음과 같이 확인할 수 있습니다.
    select count(*) from dr$<indexname>$i; -> A
    select count(*) from (select distinct(token_text) from dr$<indexname>$i); -> B
    위의 결과가 A/B 의 값이 3:1 보다 크면 optimize_index 를 실행해 주시는
    것이 좋습니다. 다음과 같은 command로 index optimization을 할 수 있습니다.
    alter index <index_name> rebuild online
    parameters('optimize full unlimited');
    index rebuild중에 online option을 주면 rebuild하는 중에도 계속 index를
    사용할 수 있게 됩니다. 하지만, 가능하면 사용자가 없을 때 rebuild하는 것이
    좋습니다.
    4. Check execution plan and sql trace.
    기본적인 여러 가지 작업들에도 속도가 별로 향상되지 않는다면, 직접
    sql trace를 떠서 Execution plan등을 확인해 보는 것이 필요합니다.
    예를 들어 SQL*PLUS에서 다음과 같이 sql trace를 뜹니다.
    alter session set timed_statistics=true;
    alter session set sql_trace=true;
    select ..... -> execute the query
    실행 후,
    exit
    user_dump_dest 에 지정된 directory에 trace 가 떨어지면 다음과 같은
    command로 tkprof 를 떠서 내용을 확인합니다.
    $ tkprof <tracefilename> <outputfilename> explain=username/password
    Referenc Documents
    Bulletin#10134 : SQL trace와 tkprof 사용 방법

  • Correlated and non correlated Query

    hello
    I am confuse in correlated and non-correlated query? below query is correlated or non correlated ? why?
    SELECT FIRST_NAME,LAST_NAME FROM EMPLOYEES E WHERE department_id in
    (SELECT D.DEPARTMENT_ID FROM DEPARTMENTS D WHERE D.DEPARTMENT_ID=E.DEPARTMENT_ID)
    Thanks

    (SELECT D.DEPARTMENT_ID
       FROM DEPARTMENTS D
      WHERE D.DEPARTMENT_ID=E.DEPARTMENT_ID)is a correlated subquery. There is a correlation between this query and a table in the outer query (in this case the join condition between EMPLOYEES and DEPARTMENTS).
    Justin

  • TTIMDB Connection issues: Can't resolve a non-optional query descriptor property [DSN]

    Hi there,
    We currently have the 11g TTIMDB plugin deployed in our EM10g instance without issue and looking to migrate to 12c.  We've installed/deployed the 12.1.0.2.0 plugin into our EM12c instance and deployed it to 12cR3 agent on our TTIMDB dev server.
    When adding the TTIMDB target in the same manner it's deployed in 10g, the connection tested fine to the DB however the target is showing down with the following errors.....
    1. Under Monitoring > All Metrics we get this... "The TimesTen database is down: [data source/db name] is not loaded"
    2. Under Target Setup > Monitoring Configuration we test the connection, and though testing the connection when first configuring the plugin worked fine it's now failing... "
    Response;Can't resolve a non-optional query descriptor property [DSN] (DSN)"
    Any thoughts on what may be causing these errors?
    Thanks,
    Steve

    Maybe you are confusing the main daemon running (TimesTen instance is up) with a specific database being up? When you install TimesTen you create a TimesTen 'instance'. This instance has several daemon components the most critical of which is the main daemon. When the main daemon is running the instance is 'up' and when the main daemon is not running the instance is 'down'. An instance may manage several distinct databases concurrently and those may each be up (in memory) or down (not in memory) independently of each other. In order for anything meaningful to happen within an instance the instance must be up.
    The default behaviour for TimesTen is to load a database into memory when something connects to it, to maintain it in memory while there are open connections and to unload it from memory when the last connection is closed. This can be useful for development and testing environments but is not necessarily the best choice for production environments. Generally, in a production environment, you should set the database(s) to 'manual' ramPolicy:
    ttAdmin -ramPolicy manual DSN
    then you can explicitly load the database into memory (i.e. start up the database):
    ttAdmin -ramLoad DSN
    and, when all connections have been close, you can explicitly shut it down:
    ttAdmin -ramUnload DSN
    Many customers find this a better way to manage production databases than the default behaviour.
    Chris

  • Histogram on non-indexed columns

    Hi All,
    Is there any point in having histogram on non-indexed column? If we use a non-indexed column for filtering data, there will be a full table scan anyway.
    Does having histogram in such column make any difference.
    I am on v11.2. Are there any differences/advances in this respect in 11g ?
    Thanks in advance.

    rahulras wrote:
    Hi All,
    Is there any point in having histogram on non-indexed column? If we use a non-indexed column for filtering data, there will be a full table scan anyway.
    Does having histogram in such column make any difference.
    I am on v11.2. Are there any differences/advances in this respect in 11g ?
    Thanks in advance.Histogram used to correct estimate selectivity(~ cardinality) by CBO if there are indexes or no!.So if there are indexes then after estimating selectivity based on values CBO can be select FULL TABLE SCAN but not INDEX SCAN!.Finally histograms use when your columns data non uniform distributed(actually skewed).

  • How to link a non-linkable query and a plsql query in the datamodel

    Hi,
    I am creating a matrix group....
    Where in I get my
    1) Column values from a non-linkable query - Period (Jan, Feb....)
    2) Row values from a plsql query (ref cursor). Group is also from this query
    3) Cross product is on the above two queries.
    4) Cell info comes from a plsql query (refcursor).
    I created a group link from the cross product group (3) to the cell info query (4)
    I prepared the layout and executed the report... I am getting redundant data....
    The reason being the (4) and (1) are not linked properly.
    From google, About non-linkable queries column.... I understood that to link two non-linkable queries, we need to create a group link and then add a where clause in the child query referring the parent query column.
    But my case is a non-linkable query (which is a parent ) and a plsql query which is the cell.
    Any help...?
    Thanks in advance.
    KK

    Hello Sam,
    >
    I was wondering if you could have any link or examples to show how to make a form with report and an insert form in the same page, these two forms are related to the same table. Our customer wants a user can add new row to the table in a form and see all of rows created by this user in a report, this report should provide edit link as well. the problem is: whenever I inserted a new row or edit a row or delete a row, and submitted, and return to this page, all of hidden items lost their values, so report is blank, and some display only items also lost their values. Could anyone give me suggestions?
    >
    This will help:
    http://www.grassroots-oracle.com/2011/09/apex-tutorial-form-report-sharing-same.html
    Hope it helps!
    Regards,
    Kiran

  • How long should a search to Include Non-Indexed Files take??

    Hello,
    I left last night doing a search in Bridge and I said to include the non-indexed files ... it has been running over 12 hours???
    Is this normal on a large server?
    If I let it keep going, will it make all the future searches faster?
    thanks!
    babs

    I just did a search of at least 14,000 files and it took less than 1 minute.
    Hence my statement that Bridge (despite being a fabulous app for ingestion and sorting etc, all the work needed before the files are ready for distribution or publishing) it is lousy for use as a DAM (Digital Asset Management).
    It is also not designed for use over a network as you already clearly stated.
    To spoil your party a bit more, I just timed my search in my DAM application Canto Cumulus Single user edition. Having almost 60.000 keepers from the last 17 years in my digital archive a search took almost 2 seconds....
    Yes it is not fair because Bridge comes (somewhat) for free with PS or other CS applications and Cumulus single user is around 300 $ I believe.
    But there are some cheaper DAM applications. All those DAM apps are pretty lousy in the work Bridge is very good at. It is just trying to get the right tools for the job

  • Indexed attributes but non indexed search

    Hi !
    There's something that I don't understand in my directory.
    I have a request which is qualified as "non indexed" but when I look at the configuration of the indexes, it seems to be ok. Where am I wrong ?
    Search filter (using logconv.pl):
    Unindexed Search #1
    - Date/Time: 05/Jul/2007:17:26:06
    - Connection Number: 619481
    - Operation Number: 2
    - Etime: 21
    - Nentries: 20017
    - IP Address: 127.0.0.1
    - Bind DN: uid=xxxxxxxxx
    - Search Filter: (&(sn=*)(givenname=*))
    indexed attributes :
    dn: cn=sn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: sn
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    dn: cn=givenName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: givenName
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    Anyone an idea please ?
    Thanks for your help.

    Hi !
    There's something that I don't understand in my
    directory.
    I have a request which is qualified as "non indexed"
    but when I look at the configuration of the indexes,
    it seems to be ok. Where am I wrong ?
    Search filter (using logconv.pl):
    Unindexed Search #1
    - Date/Time: 05/Jul/2007:17:26:06
    - Connection Number: 619481
    - Operation Number: 2
    - Etime: 21
    - Nentries: 20017
    - IP Address: 127.0.0.1
    - Bind DN: uid=xxxxxxxxx
    - Search Filter: (&(sn=*)(givenname=*))
    indexed attributes :
    dn: cn=sn,cn=index,cn=userRoot,cn=ldbm
    database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: sn
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    dn: cn=givenName,cn=index,cn=userRoot,cn=ldbm
    database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: givenName
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    Anyone an idea please ?
    Thanks for your help.Although you have defined a substring index for both attributes the actual size of the index lists for those indexes may have exceeded the maximum value for index lists as governed by the system-wide configuration attribute "nsslapd-allidsthreshold" which is set by default to 4000. When the list of IDs for an index grows to the nsslapd-allidsthreshold attribute size, the allids token is set on that index which causes the index to be disregarded and those searches become unindexed.
    You may use the dbscan ("./dbscan -n -i -f /<path-to>/userRoot_sn.db3) utility that comes with the Driectory Server Resource Kit in order to confirm that those indexes are marked allids.
    Once confirmed you may consider to increase your nsslapd-allidsthreshold value - however changing the nsslapd-allidsthreshold attribute is costly, in that it requires you to rebuild (reindex) your database and will require thorough testing and examination of your data set as this is a system-wide attribute (in 5.x). It's also important not to set the nsslapd-allidsthreshold attribute so high as this puts the server in the position to constantly manage very large index ID lists.
    There is a very interesting article called "Understanding Indexing and the ALLIDs Threshold" @ http://blogs.sun.com/DirectoryManager/?page=3 which discusses that topic in depth.

  • Browsers/Users to go to http:/none/index.cfm

    I've getting a weird error on my CFMX 7.02 Server.
    Sporadically when clicking around on websites, I'll get a
    page cannot be displayed error. When I look at the application logs
    on the server. I can that somehow the users is trying to access
    \webroot\none\index.cfm instead of just webroot\index.cfm
    I can't reproduce the error consistently, only if I click
    around repeatedly I was wondering if anyone else has seen this
    happen before and could possibly share some insight. Thanks, Jake

    I have never run into or heard of a problem like this. My
    first thought
    when you described the behavior was a variable used to build
    a url link
    or something like that occasionally returning an unexpected
    and
    incorrect value. Does that ring any bells?
    I.E.
    <cfoutput...>
    <a href="#aVar#/index.cfm">
    </cfoutput>
    Where aVar does not equal the expected string under some
    condition.

  • After creating index query is taking more

    Hello all,
    I am trying the following..and not getting why the query is taking more time after creating the index
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:22.16
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=15 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=15 Card=1 Bytes=22)
    2 1 TABLE ACCESS (FULL) OF 'IEFLOA_DATA_ANAL' (Cost=2 Card=1
    Bytes=22)
    /*******************Here I am creating the Index************/
    SQL> create index t_ind_date on iefloa_data_anal(datetime_inserted);
    Index created.
    Elapsed: 00:07:427.38
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:40.10
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=14 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=14 Card=1 Bytes=22)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'IEFLOA_DATA_ANAL' (Cos
    t=1 Card=1 Bytes=22)
    3 2 INDEX (RANGE SCAN) OF 'T_IND_DATE' (NON-UNIQUE) (Cost=
    1 Card=1)
    can anybody explains whats the reason...
    the table is having around 1.5 crore records
    regards

    The execution plan clearly shows that Oracle thinks only one row is going to match that condition on the index ("Card=1"). Is that a true statement? If not, you should make sure your stats are accurate. If the data is highly skewed, you may need to put a histogram on that column.
    Another possibility is that the index is on much slower disks than the table. Although, I can't imagine any range scan on an index that has only one matching value taking that long. How about doing a full trace (SET AUTOTRACE ON) and posting the logical and physical i/o information?

  • Oracle Text Index Query

    Hello
    Had a query on oracle Text Index.
    1. I have created a table with column ID as sequence & column description as Varchar2(500)
    2. Inserted 3 records
    3. I created the Oracle Text index on column "description" as INDEXTYPE IS CTXSYS.CONTEXT
    4. Run a select using "contains" , get the records as required.
    5. I insert another new record & commit;
    6. Run the same old query using contains but for the new records I get 0 records
    7. Drop the Index and Recreate the index using same old index on column "description" as INDEXTYPE IS CTXSYS.CONTEXT
    8. Run the same old query using contains but for the new records and now I get the records as required.
    Does that mean every time I insert new records I have to rebuild the Oracle Text Index ?
    Your Help will be much appreciated
    Regards
    Harshad

    You need to use some method of updating your index. You can drop and recreate or you can rebuild or you can use ctx_ddl.sync_index or you can include sync(on commit) in your parameters when you create the index or various other methods of periodic synchronization and optimization.

  • Materialized views - schedule, indexes, query rewrite, etc.

    I'm trying to get the hang of materialized views and need some help . . .
    running Oracle 10gR2
    I created a materialized view as follows:
    CREATE MATERIALIZED VIEW "MY_SCHEMA"."USERS"
    AS
    SELECT * FROM "USERS"@PRODUCTION -- to copy the USERS table from my production database to this database
    Worked fine. So far so good. Then, I altered it to schedule the refresh:
    ALTER MATERIALIZED VIEW "MY_SCHEMA"."USERS" REFRESH FORCE START WITH SYSDATE NEXT TRUNC(SYSDATE + 1) + 4/24
    -- to schedule a refresh immediately (SYSDATE) and every morning thereafter at 4:00 am (I think)
    then, I wanted to enable query rewrite, so I issued the following command:
    ALTER MATERIALIZED VIEW "MY_SCHEMA"."USERS" ENABLE QUERY REWRITE;
    and I got the
    ALTER MATERIALIZED VIEW succeeded.
    message for both of those commands (I'm doing this in SQL Developer).
    Then, I edit the materialized view in SQL Developer, click on the 'SQL' tab, and get the following:
    CREATE MATERIALIZED VIEW "MY_SCHEMA"."USERS"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TBLSPC_PHIGH"
    BUILD IMMEDIATE
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TBLSPC_PHIGH"
    REFRESH FORCE ON DEMAND START WITH sysdate+0 NEXT TRUNC(SYSDATE + 1) + 4/24
    WITH PRIMARY KEY USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS SELECT "USERS"."User" "User","USERS"."Logon" "Logon","USERS"."Name" "Name","USERS"."Password"
    "Password","USERS"."Level" "Level","USERS"."Producer" "Producer","USERS"."Deleted" "Deleted","USERS"."ClaimDoctor"
    "ClaimDoctor","USERS"."UserType" "UserType","USERS"."Locked" "Locked","USERS"."Scheduler"
    "Scheduler","USERS"."RestrictDays" "RestrictDays","USERS"."First" "First","USERS"."DisableAutoChart"
    "DisableAutoChart","USERS"."MaxChartOut" "MaxChartOut","USERS"."MaxHoursOut" "MaxHoursOut","USERS"."EffDate"
    "EffDate","USERS"."ExpDate" "ExpDate","USERS"."SwipeLogon" "SwipeLogon","USERS"."SwipePassword"
    "SwipePassword","USERS"."PwdLastChanged" "PwdLastChanged","USERS"."Audit" "Audit","USERS"."IsInstructor"
    "IsInstructor" FROM "USERS"@PRODUCTION.REGRESS.RDBMS.DEV.US.ORACLE.COM "USERS";
    The problems I've encountered so far:
    1) I created this two days ago and changed the value of one column in one row in the 'source' USERS table
    (USERS@PRODUCTION) as a test case. So far, that change has not propagated over to my materialized view even though
    it has had two chances to do so (yesterday morning at 4:00 am and this morning at 4:00 am).
    2) I enabled QUERY REWRITE. Why does it still show DISABLE?
    3) The primary key of the table came over (as far as I can tell) because it shows in SQL Developer. However, the
    indexed columns are no longer indexed. Do I need to recreate those indexes manually and will they persist?
    4) As you have guessed, I have just taken the plunge into materialized views, and have not been able to find
    anything on the Web along the lines of 'Materialized Views for Dummies'. So, any and all advice/suggestions/help
    will be welcome.
    Thanks,
    Carl

    The Refresh would be executed by a job submitted in the background.
    Query USER_JOBS (or DBA_JOBS) to see if a job has been submitted and if it has been running (you'd be able to see LAST_DATE, LAST_SEC and NEXT_DATE and NEXT_SEC). \
    If the Refresh job has been failing the FAILURES count would be incremented. If there are 16 consecutive failures, the job is marked BROKEN. (if a job fails, Oracle retries it automatically and keeps retrying till it is BROKEN). If the job has been failing you would get messages in the database instance alert log file and trace files.
    If the Refresh job has not been running check the parameter value for JOB_QUEUE_PROCESSES -- a value of 0 would not run in jobs in the USER_JOBS/DBA_JOBS view. Ask the DBA to increase set this parameter to at least 1.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for

  • Report on Account Revenue

    I am trying to build an report to see the account Revenues(We have interface to import revenue records from the ERP system to Siebel) Each revenue records is associated with different Products. I am trying to build an reprot like : 'Sales Rep' 'Accou

  • Iwl3945 and kernel 2.6.30

    After installing the new kernel 2.6.30, my iwl3945 wifi module wouldn't load properly. A message in dmesg said that there was an unrecognized iwl3945 parameter "hwcrypto=1". I had to edit /etc/modprobe.d/iwl3945 so that it looked like this: alias wla

  • SQL from Access to Oracle

    Hi, I've been developing queries in Access, using pivot tables. Oracle SQL*Plus does not recognize either TRANSFORM or PIVOT keywords from Jet SQL. Can anyone help me find the necessary equivalents for SQL*Plus? Thanks, Joe

  • TS3376 I lost my iphone 5 and when i m trying to find this icloud showing no devices

    I lost my iphone 5 and when i m trying to find this icloud showing no devices

  • Firefox keeps saying Flash needs to be updated even after I update it

    The plugin check page says that Adobe Flash Player is vulnerable and I need to update it. I press the button to update it and install the new version, but then the plugin check page still says it needs to be updated, even if I reboot it still says th