Steps after the Gathering schema statistics

i am getting schema statistics using these statements
begin
dbms_stats.gather_schema_stats(ownname => 'FSL',estimate_percent => dbms_stats.auto_sample_size, method_opt => 'for all columns size auto');
end;
Now after issuing these statement which steps required

Which version of oracle are you using? Because, if you are using oracel 9i then, estimate_percent => dbms_stats.auto_sample_size, will collect 100% statistics. Its a kind of bug in oracle 9i Rel.2.
Once you collect the statstics, nothing to be done from yourside, because, CBO will comes in picture during parsing your queries with best execution plan based on your objects statsitics.
Jaffar

Similar Messages

  • How to run selected sequences/​steps after the great-gran​dparent, the grandparen​t and the parent sequence ?

    Hi,
    I developped a sequence file with many levels of interlinked subsequences, and I want to be able to run selected subsequences/steps after the great-grandparent, the grandparent and the parent sequence.
    Anyone know the best method to do this ?

    Indeed, there was an little error in the sequence file. You can find the corrected file in attachment.
    Run the selected step "Grandparent 2" doesn't do what I require because this run all sequences under "Grandparent 2", while I want to run "Parent 2.2" and "Child 2.2.2" under "Grandparent 2".
    Attachments:
    sample.seq ‏10 KB

  • GATHERING schema statistics

    Hi Guys...
    I am running Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production on Solaris.
    I have materialized views that I refresh and gather schema statistics everyday at midnight.
    Normally the procedure takes few minutes to complete.
    But now it's about three days the procedure running and is stuck on one table.
    How do I tell as to whether the table is having issues with statistics gathering?
    Or what would be the remedy for this situation?
    Thanks in advance

    Index rebuilding sounds so much Oracle 7! Indexes today generally take care of themselves quite well, throughout inserts, deletes and updates. It rebalances itself automatically when necessary, without requiring any rebuild. As for the stats, run it for sure after large data movements (i.e. deletes and inserts). Besides that, implement table monitoring for your tables, and run once in a while dbms_stats with the options parameter as GATHER STALE. That way, Oracle will automatically know which objects need their stats refreshed.
    Daniel

  • Gathering schema Statistics and Index rebuilding

    I want to know after how much time we must gather the schema Statistics and Index rebuilding.
    In our system approximately 7 logfile generates in one day
    Please suggest me

    Index rebuilding sounds so much Oracle 7! Indexes today generally take care of themselves quite well, throughout inserts, deletes and updates. It rebalances itself automatically when necessary, without requiring any rebuild. As for the stats, run it for sure after large data movements (i.e. deletes and inserts). Besides that, implement table monitoring for your tables, and run once in a while dbms_stats with the options parameter as GATHER STALE. That way, Oracle will automatically know which objects need their stats refreshed.
    Daniel

  • [SOLVED] Gathering Schema Statistics from Form Builder

    Hi
    these are my database and Forms versions:
    Forms [32 Bit] Version 6.0.8.8.0 (Production)
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    PL/SQL Version 8.0.6.0.0 (Production)
    I would like to build a form with a push button which when clicked will gather schema statistics using procedures from the DBMS_STATS package ie. using the command:
    DBMS_STATS.gather_schema_stats (ownname => 'DLIC', cascade => true, estimate_percent => 99.99);
    But when this line is added to the PLSQL code for the push button, i get the following error:
    Error 0 at line 0, column 0
    ORA-00600: internal error code, arguments:[17003], [59630960], [911], [1], [], [], [], []
    Can any one please tell me what is the problem here?
    Thank You.
    Message was edited by:
    One

    Thanks Christian the W1zard and Francois D for your help! The solution IS, as you have suggested, to include the call to the DBMS_STATS procedure in a PLSQL block ie. using BEGIN ... END;
    and the whole in a FORMS_DDL statement.
    For any one facing the same problem, here is the entire solution:
    --Code in push-button When-Button-Pressed trigger.
    DECLARE
         STATEMENT_TO_EXECUTE VARCHAR2(200);
         OWN_NAME VARCHAR2(4);
         CASCADE_PARAM VARCHAR2(4);
         EST_PC VARCHAR2(5);
    BEGIN
         OWN_NAME := 'DLIC';
         CASCADE_PARAM := 'TRUE';
         EST_PC := '10.99';
         STATEMENT_TO_EXECUTE := 'DBMS_STATS.gather_schema_stats(ownname=>'||''''||OWN_NAME||''''||',cascade =>'||CASCADE_PARAM||',estimate_percent=>'||EST_PC||')';
         FORMS_DDL('BEGIN '||STATEMENT_TO_EXECUTE||'; END;');
    END;
    Note that all parameters passed to the DBMS_STATS procedure is stored in a bind variable. Also, note that the parameter that is of type VARCHAR2, in this case DLIC or Ownname is preceded and succeded by '''' or 4 single-quotes.
    PS:
    Would be very helpful if someone explained why 4 single-quotes. I found this in another post in the OTN forum, but not quite sure of the theory behind it.
    Thank You.

  • Gathering Schema statistics automatically

    Hi All,
    I have a couple of doubts regarding automatic statistics gathering in Oracle 9i.
    I have seen a metalink document telling that in 9i statistics can be gathered automatically by giving options => 'GATHER AUTO'. My doubt is
    1) Once this statement is executed, dont we require running it any time afterwards? ie, will the statistics be gathered automatically for all objects in this schema without our intervention henceforth?
    2) It is mentioned to execute the following statement before the one above "exec dbms_stats.ALTER_SCHEMA_TAB_MONITORING('<owner>',TRUE);"
    If we enable table monitoring will it impact the database perfromance by any means? Will there be any overhead associated with table monitoring?
    Please clear my above doubts regarding the DBMS_STATS. Also could you please inform me which is the better way to gather object statistics for a schema.
    Thanks in advance
    Satish

    1) Yes, you need to create a job inside oracle (recommended) or a batch in your OS to calculate statistics in the interval (daily,weekly,etc) that you want. If you just execute it once only that time the statistics will be calculated.
    2)Yes, "it's recommended" but not mandatory. Except:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#sthref6562
    Well I think there will be some sort of impact, but I'm not sure how much. I once had that in a prod DB and I didn't noticed any kind of impact. You should test it before.
    I don't think there's a rule to know which way is better to gather statistics, because some options for DBMS_STATS applies for some cases and others for a complete different case.
    Depends in the type of DB that you have.

  • What's the next step after the rebate settlement running?

    I had created the final settlement for the some rebate settlements via vb(7,so what's the next step for it? Is it going to be routed to the financial side for the next amount payment?Please advise.

    You need to create a rebate credit memo request "Standard Document Type B1". It is created automatically while settling rebates.
    Just check if any sales document of type B1 has been generated? Go to VBO2 under menu 'Rebate Payments' you will see 'Credit Memo Request', if you are able to click on the Change/Request that would mean rebate credit memo request has been created.
    If not change the Agreement status in control data to 'B' and click on execute settlement. In the next screen enter the amount for which you want to create rebate memo and save.
    This would generate rebate credit memo request if all customizing is correct. Either case you will get a message.
    Now this credit memo request needs to billed as a normal sales order and if all SD-FI integration settings are correct this would also completes your rebate process.
    Sudhir

  • Gather Schema Statistics

    Hi All,
              When I run gather schema statistics, it is completing status normal .  But it took only 45 min.
              EBS - 12.1.3
                 DB - 11.2.0.3
                 OS - RHEL  64
              As per my understanding , it will take 2-3 hrs. After DB upgraded to 11.2.0.3, got an completd with error and followd the note: Gather Schema Statistics fails with Ora-20001 errors after 11G database upgrade [ID 781813.1]
              After that it completd with normal. But it took time only 45 min max in every run. with percentage 10 and 40. My DB size is 90 GB
    Request Log file:
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    In GATHER_SCHEMA_STATS , schema_name= ALL percent= 40 degree = 8 internal_flag= NOBACKUP
    stats on table FND_CP_GSM_IPC_AQTBL is locked
    stats on table FND_SOA_JMS_IN is locked
    stats on table FND_SOA_JMS_OUT is locked
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    In GATHER_SCHEMA_STATS , schema_name= ALL percent= 10 degree = 8 internal_flag= NOBACKUP
    stats on table FND_CP_GSM_IPC_AQTBL is locked
    stats on table FND_SOA_JMS_IN is locked
    stats on table FND_SOA_JMS_OUT is locked
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Now I querey the below :
    SQL> select column_name, nvl(hsize,254) hsize from FND_HISTOGRAM_COLS where table_name = 'JE_BE_LINE_TYPE_MAP' order by column_name;
    COLUMN_NAME                         HSIZE
    SOURCE                                254
    a)   Is this an expected behavior ?
    b)   If not, please suggest, to fix
    Thanks
    SAL

    Did the concurrent program fail? -- Gather Schema Statistics Fails With Error For APPLSYS Schema (Doc ID 1393184.1)
    Please check the LAST_ANALYZED column of DBA_TABLES and DBA_INDEXES views (Note: 166346.1 - How to Determine When a Table Was Last Analyzed By the Gather Schema Statistics Program).
    Thanks,
    Hussein

  • 'Gather Schema Statistics' concurrent request question

    Hello,
    I just have a question about the 'Gather Schema Statistics' concurrent request.
    We run this every evening on ALL schemas, however our SYS and SYSTEM schemas aren't registered in the application so therefore stats aren't gathered for these.
    Should SYS and SYSTEM be registered and stats gathered for these 2 schemas every night?
    Please advise
    Thank you
    Sarah

    Hi Sarah,
    First of all, Its not necessary to run gather schema statistics every evening. Either once in a week or month would suffice the need. Please look at the following note:
    How Often Should Gather Schema Statistics Program be Run? [ID 168136.1]
    With respect to your question:
    Sys and system users are not included in the "ALL" specified parameters in gather schema statistic program. It includes the list of product related users. But it is recommended you collect statistics for sys and system users and you can automate and achieve this by creating a job and schedule it at DB level. Please follow the following note which will assist you:
    EBPERF FAQ - Collecting Statistics in Oracle EBS 11i and R12 [ID 368252.1]
    Cheers,
    Asif

  • Gather Schema Statistics request fails with ORA-03113

    Hi All,
    We are run Oracle 9i R2 database & 11i APPS.
    when we are run the Gather Schema Statistics concurrent request it's come with following error massege.
    Gather Schema Statistics concurrent request fails with following error:
    FDPSTP failed due to ORA-03113: end-of-file on communication channel
    Please help.

    Is this the only program that gives this error ? After how long does this error get generated ? Is the database being shut down when this concurrent is running ?
    Pl see MOS Docs
    1020463.6 - DIAGNOSING ORA-3113 ERRORS
    17613.1 - ORA-03113 on Unix - What Information to Collect
    You will most likely get a better/faster response by posting EBS questions on the EBS Forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
    HTH
    Srini

  • Gather Schema Statistics improve the performance of the R12 application?

    Hi All,
    If we run “Gather Schema Statistics” program, it will improve the performance of the R12 application?
    Platform Linux and DB version 10.2.0.4.
    Thanks & Regards,
    Tharun

    Hi Tharun,
    If we ruer n “Gather Schema Statistics” program, it will improve the performance of the R12 application?
    Yes, it will speed up as it ensures to have an up to date statistics.
    Please refer notes:
    Concurrent Processing - How To Gather Statistics On Oracle Applications Release 11i and/or Release 12 - Concurrent Process,Temp Tables, Manually [ID 419728.1]
    How Often Should Gather Schema Statistics Program be Run? [ID 168136.1]
    Why Stats Gather?
    Stats gathering must be set as a routine job and is recommended to be scheduled. Even though this program is available from the fronted in the form of submitting a concurrent program basically it performs a DB level enhancement and ensures that you have an up to date optimizer statistics.Because the objects in a database can be constantly changing, statistics must be regularly updated so that they accurately describe these database objects.
    For indepth understand as to why it should be run, please refer doc:
    Managing Optimizer Statistics
    Thanks &
    Best Regards,

  • How to check the progress of statistics gathering on a table?

    Hi,
    I have started the statistics gathering on a few big tables in my database.
    How to check the progress of statistics gathering on a table? Is there any data dictionary views or tables to monitor the progress of stats gathering.
    Regds,
    Kunwar

    Hi all
    you can check with this small script.
    it lists the sid details for long running session like
    when it started
    when last update
    how much time still left
    session status "ACTIVE/INACTIVE". etc.
    -- Author               : Syed Kaleemuddin_
    -- Script_name          : sid_long_ops.sql
    -- Description          : list the sid details for long running session like when it started when last update how much time still left.
    set lines 200
    col OPNAME for a25
    Select
    a.sid,
    a.serial#,
    b.status,
    a.opname,
    to_char(a.START_TIME,' dd-Mon-YYYY HH24:mi:ss') START_TIME,
    to_char(a.LAST_UPDATE_TIME,' dd-Mon-YYYY HH24:mi:ss') LAST_UPDATE_TIME,
    a.time_remaining as "Time Remaining Sec" ,
    a.time_remaining/60 as "Time Remaining Min",
    a.time_remaining/60/60 as "Time Remaining HR"
    From v$session_longops a, v$session b
    where a.sid = b.sid
    and a.sid =&sid
    And time_remaining > 0;
    Sample output:
    SQL> @sid_long_ops
    Enter value for sid: 474
    old 13: and a.sid =&sid
    new 13: and a.sid =474
    SID SERIAL# STATUS OPNAME START_TIME LAST_UPDATE_TIME Time Remaining Sec Time Remaining Min Time Remaining HR
    474 2033 ACTIVE Gather Schema Statistics 06-Jun-2012 20:10:49 07-Jun-2012 01:35:24 572 9.53333333 .158888889
    Thanks & Regards
    Syed Kaleemuddin.
    Oracle Apps DBA
    Mobile: +91 9966270072
    Email: [email protected]

  • The MSS ECM FPM Steps are not working after the upgrade

    Hi all,
    The MSS ECM FPM Steps are not working after the upgrade. We use Java Webdynpro and MSS ECM (SP17), version 603.
    On cliking the FPM steps, nothing is happening, however we can navigate using the buttons.
    But this functionality was working before the upgrade.
    Please let me know what should I do.
    Thanks,
    Sarayoodharan.K

    clinet provided in the backend system was not correct during SSO certificate using tx-code strustsso2 -  Cleint should be 000

  • HT201269 When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a serve

    When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a server error. Have no clue what to do... I've restarted the iPad and get the same message. But my internet works just fine.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • What is the next step after editing or triming a video ? What type of file format to save and what to do after that ?

    what is the next step after editing or triming a video?
    what type of file format should be save and what to do after that?

    In the early days of digital video editing, an export render could take hours!  Not many applications are as hard on system resources as video editing, and rendering the final edit is probably the most system intense action of all.  
    Head on over to the Premiere Pro Hardware forum to see what sort of computer hardware the pros use for NLE (non linear editing), or to the PPBM5 site for a better look.
    PPBM5 Benchmark
    Also check out the specs on the Video Guys website

Maybe you are looking for

  • Data Recovery of Time Machine Backup From a Corrupted Drive

    I had to install 10.2 and 9.2.2 on an internal drive in my 2003 MDD G4 but first I had to reformat it (and wipe out its data) since it did not have OS 9 drivers installed. No problem thinks I since its contents are backed up to my 500 GB Western Digi

  • Triggers from sybase to oracle giving problem-------urgent please

    all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSER

  • How do i create a duplicate contact

    I want to speed up data entry when multiple people have the same basic information.

  • Page Function Item dispalys a text not a URL ?

    I tried to create a custom page that contains http procedure but when i tried to add this page procedure as page function item it renders as a normal not as a url to the target web page ? How can i display Page Function Item as a URL ?

  • Need help opening project

    when I open adobe premiere 8 for a new project I olny get a blank screen, and when I try to open a  old project it said this project was been made with Premiere Pro and I create the file in premiere elemets 8