Optimizer / schema Sta - Stats are not collected on certain tables in a schema

Hello

I have a unique situation. Every weekend, we collected his stats on SCHEMA AR.

execute fnd_stats.gather_schema_statistics ('AR', 10, 4)

Recently, I noticed that for some tables in the schema, the last_analyzed very old watch. Could someone explain the reasons why the stats are not collected for the table?

DB - 10g
HP - UX OPERATING SYSTEM

I checked if the table is marked for locked statistics - STATTYPE_LOCKED in DBA_TAB_STATISTICS. The column returns null.

Thank you
Josiane

This seems to be a database of EBS. If so, can you find an entry for this table in the FND_EXCLUDE_TABLE_STATS table? This table has a list of tables for which statistics are not met.

Is there is no entry in the FND_EXCLUDE_TABLE_STATS table, then it's a TEMPORARY table?

HTH
Srini

Tags: Database

Similar Questions

  • In the attached VI I do not understand why given domestic business structures are not transferred in the table.

    In the attached VI I do not understand why given domestic business structures are not transferred in the table.

    Thank you.

    The VI has yet InfoCluster.ctl.

    If you don't bring anything in the cluster, you should always pass the cluster via.  You run the same question ' use default if Unwired "as before.  The presence of these "case bundleless" begs the question why you have these States because they do nothing.

  • Generate data that are not available in the table

    I have a table that has monthly data for agents. Example of table structure is the following:

    create table agt_dum)

    agent_id number,

    number of months,

    Commission number)

    Examples of data include:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    1625
    2110
    2220

    Month value can be from 1 to 12.

    So as you can see these data is missing for the agents a few months.

    Here, the requirement is I need to generate data for each agent for 12 months. If the data is not already in the table and are should include agent_id, month number and commission is equal to zero.

    The output for the above data would be:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    130
    140
    150
    1625
    170
    180
    190
    1100
    1110
    1120
    2110
    2220
    230
    240
    250
    260
    270
    280
    290
    2100
    2110
    2120

    I tried SQL query with full outer join. I was able to generate data for columns of MONTHS and the COMMISSION using the NVL function. But I have been unable to generate the AGENT_ID.

    Please share your suggestions.

    I'm using Oracle 11 g 2.

    Thank you

    Sudhanshu

    If you need something like:

    WITH agt_dum (agent_id, MONTH, commission)

    (SELECT 1, 1, 50 IN all double union)

    Select 1, 2, 100 of all the double union

    Select 1, 6, 25 Union double all the

    Select double union all 2, 1, 10

    SELECT 2, 2, 20 DOUBLES)

    all_months as (select rownum as LUN double connect by rownum<=>

    SELECT *.

    To all_months:

    partition outer join agt_dum ad bequeathed (agent_id) on (ad.month = am.mon)

    /

    It is not yet complete, but I'm sure you can handle the rest...

    HTH

  • FND_REQUEST. SUBMIT_REQUEST returns request_id, but documents are not inserted into the table AP_INVOICES_ALL

    simultaneous program returns request_id, but the lines are not inserted into the AP_INVOICES_ALL table.

    where can I check for errors? is there any error log written by simultaneous program?

    Please do not post any duplicates- FND_REQUEST. SUBMIT_REQUEST stores the error messages in the table

  • Portals events are not load in the tables of database Analytics

    Database ASFACT (ASFACT_PAGEVIEWS, ASFACT_PORLETVIEW) analytical tables are not get filled with data.

    Tried diagnostic solutions:
    -Check the configuration of analytics in configuration manager, select Analytics Communication option checked
    -Events Portal registered during the installation of Analytics
    -Check that the UDP events are sent from the Portal: Test: OK
    -Reinstalled analytical component of Interaction

    All entries were highly appreciated.

    See you soon,.
    Sandeep

    ----------------------------------------------------
    In collector.log, find the exception:
    ----------------------------------------------------

    July 8, 2010 07:12:54, PageViewHandler of ERROR 613 - not able to retrieve user: com.plumtree.analytics.collector.exception.DimensionManagerException: could not insert dimension in the database
    com.plumtree.analytics.collector.exception.DimensionManagerException: not able to insert in the database dimension
    at com.plumtree.analytics.collector.cache.DimensionManager.insertDB(DimensionManager.java:271)
    at com.plumtree.analytics.collector.cache.DimensionManager.manageDBImage(DimensionManager.java:139)
    at com.plumtree.analytics.collector.cache.DimensionManager.handleNewDimension(DimensionManager.java:85)
    at com.plumtree.analytics.collector.eventhandler.BaseEventHandler.insertDimension(BaseEventHandler.java:63)
    at com.plumtree.analytics.collector.eventhandler.BaseEventHandler.getUser(BaseEventHandler.java:198)
    at com.plumtree.analytics.collector.eventhandler.PageViewHandler.handle(PageViewHandler.java:71)
    at com.plumtree.analytics.collector.DataResolver.handleEvent(DataResolver.java:165)
    at com.plumtree.analytics.collector.DataResolver.run(DataResolver.java:126)
    Caused by: org.hibernate.MappingException: unknown entity: com.plumtree.analytics.core.persist.BaseCustomEventDimension$ $BeanGeneratorByCGLIB$ $6a0493c4
    at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:569)
    at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1086)
    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:83)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184)
    at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173)
    at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)
    at org.hibernate.impl.SessionImpl.save(SessionImpl.java:481)
    at org.hibernate.impl.SessionImpl.save(SessionImpl.java:476)
    at com.plumtree.analytics.collector.cache.DimensionManager.insertDB(DimensionManager.java:266)
    ... 7 more

    ---------------------------------------------------------------
    In analyticsui.log, we find the exception below:
    ---------------------------------------------------------------

    July 8, 2010 06:50:25, Configuration of 910 ERROR - could not compile the mapping document
    org.hibernate.MappingException: duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$ $BeanGeneratorByCGLIB$ $6a896b0d
    at org.hibernate.cfg.Mappings.addImport(Mappings.java:105)
    at org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:541)
    at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:488)
    at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:234)
    at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
    at org.hibernate.cfg.Configuration.add(Configuration.java:362)
    at org.hibernate.cfg.Configuration.addXML(Configuration.java:317)
    at com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:796)
    at com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:652)
    at com.plumtree.analytics.core.HibernateUtil.refreshCustomEvents(HibernateUtil.java:496)
    at com.plumtree.analytics.ui.common.AnalyticsInitServlet.init(AnalyticsInitServlet.java:104)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.plumtree.container.Bootstrap.start(Bootstrap.java:531)
    at com.plumtree.container.Bootstrap.main (Bootstrap.java:254)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
    at java.lang.Thread.run(Thread.java:595)
    July 8, 2010 06:50:25, Configuration of ERROR 915 - couldn't set up XML data store
    org.hibernate.MappingException: duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$ $BeanGeneratorByCGLIB$ $6a896b0d
    at org.hibernate.cfg.Mappings.addImport(Mappings.java:105)
    at org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:541)
    at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:488)
    at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:234)
    at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
    at org.hibernate.cfg.Configuration.add(Configuration.java:362)
    at org.hibernate.cfg.Configuration.addXML(Configuration.java:317)
    at com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:796)
    at com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:652)
    at com.plumtree.analytics.core.HibernateUtil.refreshCustomEvents(HibernateUtil.java:496)
    at com.plumtree.analytics.ui.common.AnalyticsInitServlet.init(AnalyticsInitServlet.java:104)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.plumtree.container.Bootstrap.start(Bootstrap.java:531)
    at com.plumtree.container.Bootstrap.main (Bootstrap.java:254)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
    at java.lang.Thread.run(Thread.java:595)


    ---------------------------------------------------
    wrapper_collector.log
    ---------------------------------------------------

    INFO | JVM 1 | 2009/11/10 17:25:22 | at com.plumtree.analytics.collector.eventhandler.PortletViewHandler.handle(PortletViewHandler.java:46)
    INFO | JVM 1 | 2009/11/10 17:25:22 | at com.plumtree.analytics.collector.DataResolver.handleEvent(DataResolver.java:165)
    INFO | JVM 1 | 2009/11/10 17:25:22 | at com.plumtree.analytics.collector.DataResolver.run(DataResolver.java:126)
    INFO | JVM 1 | 2009/11/10 17:25:22 | Caused by: java.sql.SQLException: [plumtree] [Oracle JDBC Driver] [Oracle] ORA-00001: unique constraint (ANALYTICSDBUSER. IX_USERBYUSERID) violated
    INFO | JVM 1 | 2009/11/10 17:25:22 |
    INFO | JVM 1 | 2009/11/10 17:25:22 | at com.plumtree.jdbc.base.BaseExceptions.createException (unknown Source)

    Key words of the msg of error suggests relocation of Analytics is necessary to solve this problem. Database Analytics does not get updated with the correct event mapping and this is why no data is inserted.

    'Could enter no dimension in the database',

    "Setup ERROR - not able to configure XML data store.
    "org.hibernate.MappingException: duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$ $BeanGeneratorByCGLIB$ $6a896b0d.

    «ORA-00001: unique constraint (ANALYTICSDBUSER.» IX_USERBYUSERID) violated. "

    "Setup ERROR - could not compile the mapping document.

  • How can I create a chart that creates new series each year when the data are not collected on a daily basis?

    I collect numbers "occasionally" of my solar system and to create a standardized chart that shows that the generation on an annual basis, so I can compare fall in the fall of each year, etc..

    Because the information is not strictly 'daily' (just whenever I get to it), I don't know how it normalize for several years.

    For example, if I had

    Date - Kw/day

    15/01/10 - 14

    03/04/10 - 18

    18/04/10 - 17

    01/06/10 - 19

    21/09/10 - 15

    03/12/10 - 9

    07/02/11 - 13

    02/05/11 - 16

    17/08/11 - 18

    01/11/11 - 12

    02/11/11 - 12

    05/01/12 - 9

    04/06/12 - 12

    and so on.

    What I'd like to see is a line graph for each year from January to December with these datapoints on it. I have much more "incremental data" that I presented above, but it's on "random dates" during the last 8 years, and I'm just trying to see how each year compared to other years.

    To be at the front, I tried to understand how this in Excel as well, but he could not understand where the other.

    DRM for any tips/tricks/tips!

    Steve

    This might work for you...

    I placed your data in a table named "Data."

    Create a second (in this example, titled 'Table 1')

    In the table 'Table 1' months are in the first column and the first row (which is a header row) contains the years - add columns to add new year:

    B2 = if (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:

    = IF (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    Select copy of cell B2

    Select the cells B2 at the end of F13, dough

    now select cells A2 through F13 and add a graphic (the XY scatter diagram)

    Add new year add one (or more) new columns for "table 1", then add the year to the top:

    Now alone, click the chart to activate the chart.  then click on the button 'change data references '.

    now, drag the data reference control handle to the right to add the new year to the table:

    You can add several years to the time, so you don't have to it very often

  • Can wherre I find my product key? My product States are not authentic.

    I'm looking to activate my Windows M, its saying my product is not authentic.

    Can you help me

    Hello IkeClepper,

    To be able to solve your problem with Activation and Validation, you must provide a copy of a report from the MGADiag tool.
    You can download at the following address:
    ( http://go.microsoft.com/fwlink/?linkid=52012 )

    Save it to your desktop and run.
    Click on the button continue to produce the report.
    Copy the full text of the report and reply to the thread.

    To copy the report in your response, click the copy button in the tool (you can ignore the error messages) and then paste (using r-click and paste or Ctrl + V) in your response.

    Please indicate the Version and edition of Windows on your COA sticker (if you have one) on the case of your machine (or inside the battery compartment).
    Please do NOT include the product key for the thumbnail, as others may copy and use this number.
    http://www.Microsoft.com/en-us/howtotell/hardware.aspx

    Thank you

    Marilyn

  • Hi friends this is the code for the dynamic creation of user in plsql, but these statements are not run if pls help for this error

    DECLARE

    n NUMBER.

    BEGIN

    n: = 1;

    WHILE (n < = 10)

    LOOP

    CREATE a user EM | IDENTIFIED BY KLU n;

    SESSION CREATION GRANT, GRANT ANY PRIVILEGE TO EM. n;

    COMMIT;

    n: = n + 1;

    END LOOP;

    END;

    Hello

    Here is the dynamic creation of user query and giving grants to the user,.

    DECLARE

    n NUMBER.

    cr_user VARCHAR2 (300);

    gr_user VARCHAR2 (300);

    BEGIN

    n: = 1;

    While (n<=>

    LOOP

    cr_user: = 'CREATE user EM | n | "IDENTIFIED BY KLU";

    gr_user: = "GRANT CREATE SESSION, GRANT ANY PRIVILEGE to EM '. n | '';

    EXECUTE IMMEDIATE cr_user;

    EXECUTE IMMEDIATE gr_user;

    n: = n + 1;

    END LOOP;

    END;

    Edited: Removed when OTHER exceptions to Code.

    See you soon!

  • Why the names of my chapters are not displayed in the table of contents?

    Hello. I use Indesign & DPS simple editing to make an application. In Indesign, I created several different documents that I used to make items that I put together in a Folio.  I saw it using the tool preview Adobe & on the iPad using Adobe Content Viewer. When I select the button table of contents I see thumbnail screenshots of the first page of each chapter, but no text chapter name.  For each of the documents that I used to make items that I named them after the chapter they represent, which is what I thought each chapter name defined.

    The strange thing is that before I did a couple of test folios and they do not have the name of chapter text. So what can I do to display the chapter name in the table of contents?

    Also, is there a way to change change the thumbnail used by the table of contents?

    Thank you

    The answer to both questions is in the Article Properties dialog box. Select the item in the Folio Builder Panel and choose Properties from the context menu. Specify the name of the chapter of "Title" - which is probably empty now. (There is a difference between an article name and a title of the article. The name is used for internal purposes, such as the binding, and the title appears in the application).

    At the bottom of this dialog box, you see a preview of the Table of contents. Click the folder icon and specify a PNG of 70 x 70 that you design.

  • Paragraph styles are not properly in automatic Table of contents

    Hi all

    I'm currently busy with the lay-out of my doctoral thesis in Indesign CS6. I did the separate files for each chapter, after that, I joined the files in a document of a book. Now, I need to create a table of contents and want to do using the Table of contents style.

    I've already customized a table style content in which I said Indesign which paragraph styles should be included in the table of contents. I also created new paragraph styles to use as entry style. When you create a table of contents the lay-out seems just perfect, except that I set the text for being "fat" in my paragraph style, but it comes in the form of 'regular' text in my table of contents. Now I can pass this "BOLD" text by selecting it and alt + shift clicking on the paragraph style in the paragraph style menu. Problem is that after updating the table of contents text back to "regular". All the other stuff that I defined in the paragraph for entry style style (e.g., tablets, the font size, leading) are applied.

    How can I solve this problem? I would appreciate your comments, because it's annoying me a lot: S.

    Thanks a lot already!

    Did you apply a character style to your topics throughout the book?

    If so, this could cause the erratic behavior that you see.

    Check your table of contents update to see if there is a character applied to the imported text style.

  • Data are not engaging in the table

    Hi all

    I have a requirement in which I need to add the following in an existing page.

    There is a query with a simple search panel and tabel corresponding region on the page. My requirement is to add a new field in the search panel and
    in the table. I did it successfully. The table has an update icon in which you navigate to a page where you can go and update all fields. But what is happening is that all the data are correctly updated except for the newly added field. Value NULL is is filled in the table.

    In the existing page they use an entity object to insert/update in tabel.

    I followed the following steps:

    1 has created a new field in the research and the table Panel.
    2 aajoutee new attribute in EO and VO.
    3. has created a new field in the page updated and joint vo attribute to it.


    But the data are fill in the tabel except adding the newlt field.


    Please help me.

    Adam

    There is no option to synchronize if Jdev 10 G. He is smart enough to take care of this. But if you add a new attribute to your existing VO EO-based, you can deal with a bug that is mentioned in the link below.

    You need to modify the generated XML. So, please check this link.

    http://oracleanil.blogspot.com/2010/11/EO-based-vo-extension-in-OAF-R12.html

    I hope that helps!

    Thank you
    AJ

  • How can I force a stats command to collect?

    I use 10g on Unix. With the help of the users on this site, I was able to build a stored procedure to collect statistics and alter index on a table that is filled and emptied twice during a process. If the stats are not collected after each population, the program will run for hours instead of minutes. The task log shows three seconds between the call and the return, so I thought that the statements were executed. However looking at the stats record he said that statistics had not been updated for several days. I was given to understand that Oracle would not execute a gather and stats if it feels that it is not necessary. How can I run the commands without worrying?


    This is the code of the program, at this stage that the temporary table was populated by SQLLDR. This code sequence will be run twice.

    PreScrub_Ztemp_ESI_Accum;
    ReportData (ErrorFileLocation, trim (ParamStr (3))); {is true also for zero count error}
    dmMainRX.spAlterIndex.ExecProc;
    TD: = BeginTransaction (TDBXIsolations.ReadCommitted);
    ZeroCounterRecords;
    DeleteRecords_ZTEMP;
    DeleteRecords_Counter_x;
    InsertRecords;
    CommitFreeAndNil (TD);
    TruncateTable;

    This is the stored procedure

    PROCEDURE ALTER_ACCUM_INDEX
    IS
    BEGIN
    DBMS_STATS. GATHER_TABLE_STATS ('CCOK', 'ZTEMP_ESI_ACCUM', METHOD_OPT = > 'for all indexed columns', CASCADE = > TRUE);
    RUN IMMEDIATELY "ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUMM_1 COMPUTING STATISTICS;
    RUN IMMEDIATELY "ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUM_2 COMPUTING STATISTICS;
    END;

    use 10g on Unix. With the help of the users on this site, I was able to build a stored procedure to collect statistics and alter index on a table that is filled and emptied twice during a process. If the stats are not collected after each population, the program will run for hours instead of minutes

    You can use the parallel option to accelerate the collection statistics work faster. and as true strength...

    check this http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm

  • Necessary insight as to how the Stats are cascaded to the index after updates.

    SCENARIO OF

    • We have a process of intensive loading (100 s of the tables involved, several hours of execution). We collect stats diagram only on obsolete objects when executing to minimize the load on the system while the statistics come together at intervals (see the command below).

    • There is a table with an index on column X
    • When the table is inserted in during a charge process column X is null and that the index is empty.
    • When the table becomes stale (and the column X is null of remains), his stats get generated using the package gather_schema_stats with the STALE 'COLLECT' and ' CASCADE = TRUE options.

    • Subsequently, all records from the table are loaded and the collection of statistics has occurred, column X happens to updated with the values so then inserted in the index. More no record is inserted into the table.


    QUESTION

    After the charge fit more no record and the table never gets denial as defective if new stats are not generated (no surprise). However, what is the impact on the index which now has lines in there (as a result of updates that occurred after the loading table has been loaded)? When the stats were executed on the table (with case sensitive = true) index was empty. Do I need a work of gather_stats separated on the index or somehow, it will inherit the values associated with the full table optimizer statistics? _

    Here is the command I use:
    exec dbms_stats.gather_schema_stats (ownname = > 'UICONNECT',-)
    Options = > "FADE TOGETHER",
    estimate_percent = > dbms_stats.auto_sample_size, -.
    method_opt = > 'for all columns size auto ' -.
    degree = > dbms_stats.auto_degree;
    Cascade = > TRUE);

    This problem is forcing me to understand the optimizer (viz has know statistics) more than I hoped would be necessary. But alas... developers ask me if I need to manage (correctly)!

    Thanks in advance for any idea on this issue (or references to good material... it's hard to google it).

    Published by: TonyG on July 14, 2010 14:10

    Published by: TonyG on July 14, 2010 14:11

    Just to clarify one thing:
    "Cascade" not "copy" table to the indices statistics.
    Cascade just make sure that you don't have to hard-code calls individual gather_index_stats. So this means that its index stats are also gathered, based on what is in the index.
    This means that the generated statistics will be inaccurate, once the column is filled, as probably the key indicator, the clustering_factor, of the index will change.
    So yes, his stats should be re-assembled, or you can decide (when the grouping after load factor is relatively constant) to block these statistics and to exclude the gathering.

    HTH
    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • best way to get documents that are NOT in another table

    I have two large tables in oracle. An array of account that has millions of rows. Each account can be registered in a particular program and can therefore also to the Enrollment table, also with millions of rows. I am to find the most optimal way to find all accounts into ACCOUNT which are NOT in the Enrollment table.

    I did something like this:

    Select / * + index (ACCOUNT idx_acct_no) * /.
    a.Acct_No
    one account
    If a.acct_no not in (Select e.acct_no from e REGISTRATION);


    It takes a long time to run, even though I'm using the index.

    I even tried to use the PK on the ACCOUNT dashboard, as is a FK on the ENROLLMENT table as such:

    Select a.acct_no
    one account
    Where a.id not in (Select e.id of e REGISTRATION);

    too, it takes too much time to recover (if any).

    Is there a better way to make this choice please?

    +
    Try this:

    SELECT a.acct_no
      FROM ACCOUNT a
     WHERE NOT EXISTS (SELECT '?'
                         FROM ENROLLMENT e
                        WHERE e.acct_no = a.acct_no);
    

    : p

  • After the ship confirms delivery is not inserted into the table WSH_DOCUMENT_INSTANCES

    After ship confirm, sheet print Pack but the pages are not virgins no data.

    Then when I tried to submit the request manually, it did not allow the delivery name is set to the name of delivery.

    I checked and found that the delivery data are not there in the table WSH_DOCUMENT_INSTANCES.

    Can anyone here help to explain the data inserted in this table and in what scenarios, this problem may occur, where the data is inserted in this table.

    And how the pack slip can be reprinted.

    Found the Solution

    Profile of sequential numbering option was not setup at the level of the Application for the execution of the shipment.

    Defined as always used for executing shipment and that worked.

Maybe you are looking for

  • How can I disable the preview pane in my email?

    I tried several areas on my email page, but there is no place that displays the preview pane, so that I can turn it off. It bothers my eyes for got it, & then open the e-mail above.

  • On a podcast RSS is, on iTunes is not present.

    Hello! I have of Russia, will try to write in both languages. Honestly, he's not sure that someone will want to help and answer. But still, I will ask a question. I RR http://alexandrpodkast.com/?feed=rss2 , but there is no 120 podcast which I filled

  • Personal question Apple Modem

    I have a personal Modem from Apple (A9M0334) and have tried to connect it to my Macintosh Plus as well as my Apple / / e. The //e isn't any software of modem, but the Macintosh has MacTerminal 1.1. Telephone cables are connected to both ports on the

  • Lenovo z570 nvidia hardware does not detect

    Basically, I bought a lenovo ideapad z570 last year I have reset this laptop using the recovery system of key a few times everything works normally and its great. But this time, it's not detecting not the graphics card from nvidia which is incorporat

  • Win 7 Security

    I have a program I respected using LabWindows 2010.  Program works well under Windows XP, but WIndows 7 the program gets a shield attached to the icon (see attachment).  When you run the program under Windows 7, it asks that an admin password be ente