Updating the statistics information on database

Hello,
It takes a long time to have the reports from MKPF table on database. I had a research through OSS db02>Detailed Analysis which says to update the table manually. I did it and it was OK. It also advised that I can do it periodically as a SQL job. When I tried it with SQL Query, the following message occurred:
The query I used : UPDATE STATISTICS MKPF [_WA_Sys_BUDAT_...]
Reply              : Server: Msg 2706, Level 11, State 6, Line 1 Table 'MKPF'  does not exist.
But when I tried it manually using Db02 transaction, there was no problem. Is it related with an authentication of database? SQL Enterprise user has got a full admin account. There is no problem except this.
Not: This process is valid for all tables not only for MKPF.
Best Regards
ismail Karayaka

Hello,
in newer releases of R/3 the tables resides in a special schema named <sid>. So you have to switch into the schema first, before you can run this statements successful. The schema name is is the lowercase of the SAP system id, so if your system is PRD the schema name will be prd:
   setuser 'prd'
   update statistics ......
With
    setuser
you will switch back in the origianl schema (dbo).
Regards
   Clas

Similar Messages

  • I cannot update the song information on my iPod in iTunes.

    I got an iPod Touch 4g about a year ago.  Last month the iPod all the sudden stopped working. I took it into the store twice and the second time they simply replaced it with a new one. Since then I have been having two problems:
    1) The operating system has been running extremely slowly. I brought it into the store today and they suggested reinstall the OS and that this should fix the issue with it. I can't really ***** that problem right now.
    2) I for some reason cannot update the song information on the iPod directly in iTunes.  If I change the name of the song or the album or genre in Itunes that is actually on the iPod, it'll show up as changed in Itunes but on the iPod itself it hasn't changed. On my old one, whenever a change was made it would often say, "One moment while library updates." It doesn't do this on my replacement.
    In order to change information for the songs, I need to delete the copy off my iPod, update the information on the computer copy and then retransfer it over. Is there some setting I need to change in order for the changes to take place. I would like to avoid going back to the store a fourth time.

    1) Powering off nd then back on the iPOd tends to fix the lag problem for a while
    2) The problem with updating music is a known problem with iOS 5 and as you found out, you have to delete/unsync the music form the iPod and then resync.

  • How to Update the statistics of a table

    Dear Experts,
    I want to update the statistics of a table D010INC table.How can i update it.
    Plz provide me detailed steps.
    Regards,
    Farook.
    Edited by: farook shaik on Dec 15, 2008 1:04 PM

    check this SAP help
    http://help.sap.com/saphelp_nw04/Helpdata/EN/df/455e97747111d6b25100508b6b8a93/content.htm

  • HT1338 My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    Exactly the same for me.  Have tried to update three times and my iMac has restarted (after apparently downloading the update) but the update has not been installed.
    My iMac is still at 10.8.3.

  • HT2693 Why does my Ipad keep telling me that my security code is incorrect when i am trying to update the billing information?

    Why does my Ipad keep telling me that my security code is incorrect when i am trying to update the billing information?

    It might be because the billing address you provided doesn't exactly match your bank records.  It has to match your statement exactly.  See http://support.apple.com/kb/TS1646.

  • Updating the Leave Information (dates selected) from MSOutlook to SAP ESS

    Hi Forum,
                    I had a scenario where I need to use Microsoft Outlook as an interface and the leave information selected in outlook calender should be updated to SAP ESS. Does Any one worked on similar kind of scenarios ? I would like to know if any API is available to interface between MS Outlook and SAP. If not is there any 3rd part integration technologies available ? Helpful answers will be Appriciated in the SDN way
    Regards
    Ramesh

    Hi Manoj,
                   Thanks for your reply. I am looking for a Java API using which i can read the calender information in outlook (dates selected and saved by the user). If I can get this dates information i could think of updating the same dates (leave info) to SAP ESS usingn JCO Client java program.
    Please suggest me some java API to read the calender information stored in outlook.
    Thanks & Regards
    Ramesh

  • Mac OS X v10.6.4 update - health statistics/information

    Does anyone know if Apple or a 3rd party has a mechanism to provide an indication of the relative scale of the problems associated with a systems upgrade.
    The forums, a bit like hospitals, are were the problems are being raised, however there must be some mechanisms for gauging the overall health of an update cycle. Even a 10x increase in hospital attendance might provide a very rough indication that something might be wrong.
    Does anybody know of any links to this type of information?
    (In the mean time I migh wait a little longer before moving from 10.6.3 to 10.6.4)

    All system updates are important, since there are security updates piggybacking on every system update. The 10.6.4 update in particular quietly updated the XProtect.plist file, so Mac OS X now scans downloads for three trojans. The addition was a definition for the HellRTS (aka Pinhead) trojan, which has been seen masquerading as an illegal installer for iPhoto.
    For more info on this sort of thing, see my [Mac Virus guide|http://www.reedcorner.net/thomas/guides/macvirus>.

  • Itunes doesn´t update the media information on my mp3 files

    I hjust moved all my media library to a "My book" external drive. I had to rebuild my entire library (throug shift + init itunes) but now I tunes is neither updating my library nor the multimedia information of my pm3 files. For example when i update the albun info, I tunes would change the file from it´s location and create a folder with the new album name inside the folder with the artist name. I have already gone to preferences and in the advanced tab activated the option "Keep ITunes music folder organized". Can somebody help me?

    doesn't update the files or delete them
    First off it is not supposed to delete them, just
    because you delete them from iTunes. I am not sure
    it created new folder names after the initial
    download either.
    Is the "iTunes keep my library organized" option in
    the preferences menu checked?
    Whenever i deleted a file form my library Itunes would ask if i wanted to delete the file from the library or also from the hard disk. now it doesn´t do it and it just remove the file from the itunes library.
    The option is checked.

  • IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan

    Hi Experts,
    IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
    Vinai Kumar Gandla

    Hi Vikki,
    Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
    changes in distribution often require manual statistics updates as the following explanation.
    1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
    this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
    manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
    2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
    however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
    3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
    every insert.
    So in the case above, we could perform manual statistics updates by
    creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
    https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
    Regards,
    Michelle Li

  • How to update the merged customer information in custom tables?

    The "Setup merge Dictionary" is provided only to register APIs that would be called to update the merged information for parties.
    Is there a similar feature for the account merge?
    If anyone has any ideas of how to update the columns like customer_id, cust_acct_site_id etc. in custom tables at the end of customer merge, please let me know. Any sample code would be of great help.
    Please let me know ASAP.
    Thanks in advance,

    There is one method which I have used. The crm side uses a file called jtf_hooks_data. There is no guarantee that it will work in the future and you will have to test it. The merge program uses this sql
    'SELECT hook_package, hook_api,product_code ' ||
    'FROM jtf_hooks_data '||
    'WHERE package_name = ''ARP_CMERGE_MASTER'' ' ||
    'AND api_name = ''MERGE_PRODUCTS'' ' ||
    'AND execute_flag = ''Y'' ' ||
    'ORDER BY execution_order ';
    Your procedures have to have the same signature as the one being called. Issues the select statement on your system and see what is returned.

  • Optimizer Statitics Gathering Task is not updating stale statistics

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production
    ******************** List stale statistics for Schema IGR using dbms_stats.gather_database_stats **************************
    DECLARE
    ObjList dbms_stats.ObjectTab;
    BEGIN
    dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST STALE');
    FOR i in ObjList.FIRST..ObjList.LAST
    LOOP
    IF ObjList(i).ownname = 'IGR' THEN
    dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
    END IF;
    END LOOP;
    END;
    IGR.USER_INFO TABLE 189 < --------------------- 189 Tables with stale statistics
    PL/SQL procedure successfully completed.
    **************************** Check date IGR Table(s) last analyzed ***********************************************
    SELECT MAX(last_analyzed) last_analyzed
    FROM dba_tables
    WHERE owner = 'IGR'
    LAST_ANALYZED
    14-DEC-11
    *************************** Check status of Task 'auto optimizer stats collection' **********************************
    SELECT client_name, job_name, job_status, job_start_time
    FROM dba_autotask_job_history
    WHERE client_name = 'auto optimizer stats collection'
    ORDER BY job_start_time
    CLIENT_NAME JOB_NAME JOB_STATUS JOB_START_TIME
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11952 SUCCEEDED 12-FEB-12 10.07.23.059313 AM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11955 SUCCEEDED 12-FEB-12 02.07.33.879238 PM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11958 SUCCEEDED 12-FEB-12 06.07.43.783262 PM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11961 SUCCEEDED 12-FEB-12 10.07.54.206488 PM EUROPE/LONDON
    Any suggestions welcome
    Thanks
    Steve

    Thank you for the feedback.
    I have manually updated the statistics on a single Table successfully and the Table has been removed from the list of stale statistics. So this is further evidence the daily Task "Optimizer Statistics Gathering Task" is failing to update stale statistics.
    Any further comment or suggestion welcome
    Thanks
    Steve
    SQL> SELECT owner, table_name, last_analyzed, num_rows
    FROM dba_tables
    WHERE owner = 'IGR' AND table_name = 'SYSAUDIT';
    OWNER TABLE_NAME LAST_ANAL NUM_ROWS
    IGR SYSAUDIT 14-DEC-11 59036
    1 begin
    2 dbms_stats.gather_table_stats(
    3 ownname=> 'IGR',
    4 tabname=> 'SYSAUDIT',
    5 estimate_percent=> 100,
    6 cascade=> DBMS_STATS.AUTO_CASCADE,
    7 degree=> null,
    8 no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,
    9 granularity=> 'AUTO',
    10 method_opt=> 'FOR ALL COLUMNS SIZE AUTO');
    11* end;
    PL/SQL procedure successfully completed.
    SQL> /
    OWNER TABLE_NAME LAST_ANAL NUM_ROWS
    IGR SYSAUDIT 13-FEB-12 104970

  • Query regarding Update the data using application

    I have scenario i need to update single record in the the application and insert into a table
    for example
    SELECT ContactID,FirstName,MiddleName,LastName,Description FROM Contact
    Contact table contains 4 columns as explained. in the application there is one tab called Contact where it displays Above information
    and description is non editable.
    Now the new requirement has come user can update the description information and save information in a new column say 'Description1'
    that means new column needs to be added in the db and also necessary changes needs to be done at the application side
    For ex :SELECT ContactID,FirstName,MiddleName,LastName,Description,Description1 FROM Contact
    Now when user views the contact table it should display description info by default from 'description' table.
    If he edits he should see edited data from 'description1' table.
    Can any body guide me please and send me sample update query please, and the logic should if updated data is there display that data from
     'description1' table other wise display from  'description' table
    Smash126

    Hi Smash126,
    You need to fire the update command once you have filled the description record. It should happen on the primary key column of the record.
    For Example: 
    UPDATE Contact
    SET Description  = 'New Description',
    Description1 = 'New Description'
    where contactID = <<ContactID from application>>
    This way both will updated to same value, and next time you will get the updated value.
    Here is some ADO.Net links:
    http://www.codeproject.com/Articles/1155/Simple-ADO-NET-Database-Read-Insert-Update-and-Del
    http://www.onlinebuff.com/article_step-by-step-select-insert-update-and-delete-using-aspnet-c-and-adonet_32.html
    Regards Harsh

  • Issue in update of BANK INFORMATION in PERSONAL DATA INFORMATION(ESS)

    Hi Experts,
    i have an issue while i am trying to update the BANK INFORMATION in PERSONAL INFORMATION, i am getting the fallowing error:
    Data record 0000001300090      2010033120090401000 has grouping value "" instead of "40"
    Data record 0000001300090      9999123120100401000 has grouping value "" instead of "40"
    please help me out

    Dear Siva,
    You can do this using the personalization
    1. The pernr should be assigned to user id you are using having Content Administrator rights.
    2. Preview the iview for Bank Inforamtion and ctrl + right click on the "Edit Button".
    3. Select "Yes" for the Invisible property of button Edit.
    4. Click Apply and Ok.
    The button will not be visible anymore.
    Regards,
    Samir

  • Chat App: how to store the user IP in database when they login.

    hello,
    i am working on chat application. first i made a login GUI form. after login when we run the Chat program, it ask the ip address of the server to whom it want to connect. and if u enter the ip address, it will connect to the server and chat will begin, thats working perfect.
    but i want to show the list of users who r logged on and when i simply click on the user name, chat should begin.
    i have the logic that when any user log in, then its IP address will be stored in the database. this ip address will shown to the online users.
    but i dont know how to store the user information in database when they log in. can any body suggest me wht lines of code i should use.
    thanks.

    palakk wrote:
    i have the logic that when any user log in, then its IP address will be stored in the database. Bad approach. That will only work if this chat is only intended for use on a LAN. If it's used on the internet, then your users' IP addresses will almost always be either a) those of their routers, or b) private IP addresses, and in both cases, multiple users can have the same IP address.
    this ip address will shown to the online users. Why would you want to do that? I want to chat with "Bill", not with "1.2.3.4".
    but i dont know how to store the user information in database when they log in.Do the same thing that you're currently doing to store the IP address, but with the other information you want to store.
    can any body suggest me wht lines of code i should use. This is not a code writing service.

  • Standard API or package to update the Table fa_mc_books_rates in FA in R12.

    I should perform an update statement on fa_mc_books_rates. The package "MC_FA_UTILITIES_PKG" had a procedure for updating fa_mc_books_rates in 11i, but it doesn't have in R12. please let me know if you know the standard API or package to update fa_mc_books_rates.

    Also I am new to Oracle FA and I have couple questions in it and please I need your help. I am doing my assets conversion from 11.0.3 --> flat files --> Oracle R12
    through FA_MASS_ADDITIONS and Post mass additions program. If it's just converting the assets, it looks pretty straight forward, but my questions are:
    1. I have to also convert relations like Parent-Child-Grand child and we cannot convert all the assets along with these relations because the dependent assets
    might not exist before and I am thinking of using PARENT_MASS_ADDITION_ID for that purpose, but I am not sure as Oracle says not to use that column.
    I need your suggestion how can we achiene this.
    2. I also need to convert my project related information like PROJECT_ID and TASK_ID but oracle says I cannot use PROJECT_ID in FA_MASS_ADDITIONS, so I am
    wondering if we have any update api which I can update the project information in the base tables for the assets after the conversion like a post conversion process.
    Please advice me.
    Thanks in advanve

Maybe you are looking for

  • JEE5 Application Architecture Best Practice.

    Hi Everybody I am going to redesign a moderate size application (not v big but larger then normal). Now I have few Question in my mind. I am using JSF as front-end, EJB3 Session Bean for Business Logic and last but not the least JPA as domain model.

  • Java 6, JAXB 2 and X3D (version 3.0)

    Hi everyone, I'm trying to unmarshall a X3D file using JAXB2 included in Java 6. I successfully generated the classes from the schema (http://www.web3d.org/specifications/x3d-3.0.xsd). I then created a simple X3D file using Blender and the Duke model

  • Define sd organisational structure?

    define sd organisational structure?

  • Ascii to deimal conversion

    hey i have a device sending 2 bytes of data from RS232 port,i have set the display at hex display ,when i apply that to hex string to number function its not converted, may be due to the result not in normal mode????.can any one tell me how can i con

  • Doubt about transcoding

    Hi, We are implementing the IPCCX version 8.0.2 and I am the following doubt: For all inbound call that are forward to CTI Route Point (IPCCX) is open the transcoding session. I would like know it is possible not is use the transcoding. If there this