Old table plan can degrade the performance of SQL in refreshed environment?

Hello

We have a copy of the production which is only 2 days. A query that works well in the COP, but having the problem of possible performance if the Production. The statistics are updated. One thing while getting the plan explain I have Plan of Table is old in the test (cop).

What is this old table surface and it can affect the difference in performance for the same query?

Data in both environments are almost equal. Let me know if you have any necessary clarification from my side.

-Regads,

J_DBA

Hi Nikolai,

Thanks for your help. I was just checking my old posts and saw that it is not closed. This problem has been resolved.

Table plan was not causing the problem, it was happening because of a JOB that used to run obsolete statistics sometimes together work finished Prod. Who the hell a lot of insertions/deletions. And once again made the stale stat for 2 tables in this application (tables 8 and 9 was in total).  That was causing the problem. and explain the plan is different in the two aspects, where these two paintings have been obtained.

When this was addressed, it has solved the problem and Yes sql profile has also helped in this case.

Thank you

-Best regards,.

J_DBA_Sourav

Tags: Database

Similar Questions

  • Is possible to create a lot of email account on the same computer can affect the performance of the computer or something else?

    Is possible to create a lot of email account on the same computer can affect the performance of the computer or something else?

    Sheman salvation,

    What do you mean by "creates a lot of e-mail account on the same computer?

    I mean after connect hotmail.com let's say, after uttering the 1st email account, so I create another and one more, etc...  can affect the performance of the computer or something else?

    I know that with 1 or 2 email account is sufficient, but I just want to know by I have

    can affect the performance of the computer or something else?

    stuckfree,
    Who is 'Sheman?

    What about your further explanation - it can affect the performance of the computer?

    Together?  Only if you're so low disk space (almost out - the figure even single or double megabytes (MB) area) that everything is affected.  Otherwise - the only performance can affect the messaging application, you use as it POP3, IMAP, Exchange, etc. connects to different e-mail providers at the same time, you need to get your e-mail.  I have three to five settings of accounts on each of my systems (or accounts Hotmail, Gmail, or accounts, corporate, local accounts or accounts ISP, etc.) in Microsoft Outlook and don't encounter any problem.

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • Is there a way to merge the bookmarks on my old pc with those on my new pc? (PS: I have unable connect to the old pc using old profile but can access the profiles folder).

    My profile on my old laptop has become corrupted and I can't log in with my regular account (admin). I would like to add and merge bookmarks former firefox to another laptop, which already has existing bookmarks. I can not simply copy and paste the profile folder as this would crush my existing bookmarks and settings. Unfortunately, I have not set up the sync on this browser feature.

    Unfortunately, Firefox doesn't have good tools to merge and dédupliquant bookmarks. I will propose a roundabout way to do. Here's an overview:

    (1) create a new profile Virgin (#3) in your current Firefox (see details at the end)

    (2) while using the #3 profile, restore a file in JSON format to backup your old (#1 profile) system (see restore bookmarks from a backup or move them to another computer)

    (3) export bookmarks restored to an HTML element in a perfect location, with a file name unique format (see Export Firefox bookmarks to an HTML file for backup or transfer bookmarks)

    (4) exit Firefox and is reactivated in your normal profile (profile #2)

    (5) file bookmarks import as HTML (see import bookmarks in HTML file)

    (6) create a backup in case something is not going to step 7 (see restore bookmarks from a backup or move them to another computer)

    (7) rearrange bookmarks in the folder of imported bookmarks (see https://support.mozilla.org/kb/use-bookmarks-to-save-and-organize-w...), possibly using an add-on deduplicating

    Create a new Firefox profile

    A new profile will be your plugins installed by system (for example, Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions or other customizations. It should also have databases of completely fresh settings and cool a cache folder.

    Out of Firefox and start in the profile using Start Manager > Search box (or run):

    firefox.exe -P
    

    Do not delete anything here. Any time want to switch profiles, exit Firefox and return to this dialog box.

    Click on the button to create a profile, give it a name like OldBookmarks and skip the option to change the folder. Then launch Firefox in the new profile that you have created.

    You are ready to return to the new profile and create export to HTML format.

    When you return to the Profile Manager, you might be tempted to use the button to delete the profile. It's a little too easy to accidentally delete your 'real' profile, so I recommend you to resist the temptation. If you don't want to clean up later, I suggest to make a backup of all your profiles first in case something go wrong.

  • Which of the following activities can damage the performance of datadbase?

    What activities can be identified as the common causes of impassable of suboptimal performance of database?

    1 large amounts of recursive SQL executed by SYS
    2. recursive SQL executed by one user other than SYS

    The correct answer must be 1. large amounts of recursive SQL executed by SYS.
    Please see the following statement in this linked page:

    http://www.Oracle.com/technology/deploy/performance/PDF/perf_method1.PDF

    "High of Recursive (SYS) SQL levels: large amounts of recursive SQL executed by SYS.
    could indicate management activities of space, such as the measure benefits, taking place. It comes
    impassable and impact on the user response time. Recursive SQL executed under another user, what ID is
    SQL and PL/SQL and it's probably not a problem. »

  • on my old computer, you can defragment the hard drive - it was in the system - it's somewhere in windows XP Home Edition? or do I have to buy a defragmentation program?

    I had a gateway computer and a defrag program was in the system... Is there a Dell system? or do I have to buy a defragmentation from an outside source program?

    Your Windows do not have help or your computer files to access the Google?

    http://support.Microsoft.com/kb/314848

  • Table of references to the different types of performance issue

    Hi all

    See the attached code. I use a reminder VI and must pass a few references via the user's settings. I use a table.

    This is to avoid the constraint (should I care?), I type cast to more of a generic class, then in the callback function, go to a more specific class. (What is the best way to do it?)

    As you can see, even if, for some reason, almost all the nodes property are reading as variants, forcing me to use data Variant, which seems inefficient. Why is this the case? If I type cast to a Boolean, the value should be a bool... Why force me to use for the data range?

    Is there a better way to do this? Thanks for the comments.

    If you use a cluster of istead of a table, you can maintain the rigour of the reference.

    The reason why you have found variants is that you don't are not cast the ref to the same type. Try...

    Hand, create a strict constant of the wire Ref. Make slide a constant in the call back VI and use it when you launch as more specific. Property nodes you adapt to the specific data type they have in hand.

    Note:

    You can also create references of the appropriate type by dragging the appropriate type of control in the Ref control and it will fit.

    I hope that makes sense.

    Ben

  • I have a 2009 17 "MB pro 512 GB HD, it begins to run slowly. Is there a reliable program that can wipe the hard drive.

    I have a MB pro 17: with a hard drive, 512, he starts to run a bit slow. All the updates are installed. Is there a reliable program that will wipe the drive. «also it is an advantage to have a replacement disk SSD.»

    Performance issues, too full hard drive, lack of system resources, too old

    are obsolete applications, old parts of system of earlier versions (or is no longer valid)

    all the reasons to be aware of what to do.

    If the hard drive is too full of content, you will need to choose what to keep and what to

    Remove; an archive external and another drive for backup (recover or restore) are

    a few things to invest in and learn how to use Time Machine, OS X Recovery, and

    maybe learn to make, test and use full Clones of the OS X system.

    • Guides to tech - Malware, Adware, Performance - thesafemac

    http://www.thesafemac.com/tech-guides/

    You may obtain and use report generators software that is non-invasive, to see a

    General overview of where system resources are allocated; Etrecheck...

    http://etrecheck.com/#about

    Avoid 'cleanmymac' or 'mackeeper" and other items that are made to rip you off.

    There are a few software uninstaller that can help eliminate some software,

    those who are usually free like AppCleaner, among others that can be used

    with caution. There are a lot of unknown content in a non - casual

    technical users, who must be in the Mac OS X for the computer to operate.

    • Applications can affect the performance of Mac, battery, temperature and fan activity - Apple Support

    How to completely remove applications to OS X with AppCleaner (and maybe mess to the top of your Mac)

    http://osxdaily.com/2012/02/15/delete-applications-Mac-OS-x-AppCleaner/

    Some of the things there can be dangerous; If tread with caution...

  • Increase the performance of pl/sql delete

    version: 10g

    Hi all

    Help me please by increasing the performance of the code below,

    The code below takes about 10 min for deletion in 80 tables he recovered. Each table it does not remove more than 50,000 thousands

    Is there another way I can increase the performance of the below.

    I thought to delete forall, but I don't think its useful in this context.

    DECLARE

    v_num_2 PLS_INTEGER: = 50000;

    BEGIN

    THE C1

    (SELECT master: '.) '       || table_name table_name

    From all_tables owner WHERE = 'ARCHIVE' AND num_rows > 0 ORDER BY table_name

    )

    LOOP

    BEGIN

    EXECUTE IMMEDIATE 'remove'. C1.table_name |

    "where arch_ts < (sysdate-530) and rownum < =' | ' v_num_2;

    END LOOP;

    END;

    Thanks in advance

    Without asking what purpose your code is used:

    You can enable parallel DML and add a hint of parallel to your delete statement.

    Something like (not tested, but you'll get the idea):

    Start

    immediate 'alter session enable dml parallel. "

    --

    C1 in (select master: '.) ' || table_name table_name

    from all_tables

    where owner = "ARCHIVE".

    and num_rows > 0

    -order of table_name<-- not="" really="" needed,="" is="">

    )

    loop

    Start

    run immediately "remove / * + parallel (t 4) * / ' |"

    'from' | C1.table_name | |' t ' |

    "where arch_ts".< (sysdate-530)="">

    'and rownum '.<= 50000="">

    end loop;

    --

    immediate "alter session disable dml" parallel execution

    end;

    /

    You can test with different values for the declaration of principles (degree of parallelism), 4 in the index and find the optimal value.

  • is it possible to use external memory to increase the performance of my computer?

    I have a slow xp and each program/app/files in an external drive.
    But I want to know if I can improve the performance of my control memory left him in the external drive.

    Hi cesar vidal,.

    1. What is the total capacity of the hard drive primary?
    2. Since when are you facing problems of performance on the computer?

    Method 1

    There is no way the use of the memory or the space left in the external drive to increase the performance of the computer.

    See the article and check if it helps increase the performance of the computer.

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx

    Method 2

    It is possible that some third-party programs installed on the computer is at the origin of the performance problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • Information on the performance and tools: Visual effects adjust - adjust for a performance/appearance: influence on the photos and video?

    When I enter: Information on the performance and tools: Visual effects adjust - adjust for a performance/appearance, it affects pictures and video? What is the display of the video?

    I really like what I see with better appearance. But my laptop is slow a little, and I get this Green spinning circle and programs not opening.

    But since I intend to make some photos and video editing in the computer and watch a few videos, I wondered if the work will be compromised.

    I have a few tutorials to speed up my laptop, but can someone also suggest to speed up my laptop here? I'm always willing to learn some things.

    Hello

    You can optimize the performance of different options in the information on the performance and the tool window. This will not affect the performance of the images and videos. Adjust for best appearance to set the computer to enhance the appearance, it allows many features aero that improves the display quality of the computer.

    To optimize the performance of the computer follow the steps provided in the link below and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/optimize-Windows-Vista-for-better-performance

  • Lost "assess and improve the performance of your computer.

    When I got my laptop Vista Home Premium Dell Inspiron 1525, I was able to access the tools of Information Performance via the control panel and the page would show the "rates and improve your computers performance" upstairs with the details and the score below with the button 'update my score"at the bottom.
    Suddenly, all execution details and score, with the button "Update my score," disappeared leaving only the title of rate & Improve highlighted in blue that does not work when you click them. Is someone can you please tell me how I can return the performance score details?
    If this is relevant, I ran SFC \SCANNOW and I finished with a message "Windows Resource Protection found corrupt files but was unable to fix some of them." Details are provided in the c:\Windows\Logs\CBS\CBS.log. When I try to execute it I get 'access denied '.

    "Go to start / Control Panel / folder Options / view and click on 'Show hidden files' click on view files system, ' and unlclick ' hide the Extensions of known file Types".

    Then go to C:\Windows\Logs\CBS\CBS. JOURNAL and it should be there if you have run the SFC/SCANNOW command...

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Try to convert the partitioned Table of interval in the range... Swap partition...

    Requirement:

    Interval of replacement partitioned Table by range partitioned Table
    DROP TABLE A;
    
    CREATE TABLE A
    (
       a              NUMBER,
       CreationDate   DATE
    )
    PARTITION BY RANGE (CreationDate)
       INTERVAL ( NUMTODSINTERVAL (30, 'DAY') )
       (PARTITION P_FIRST
           VALUES LESS THAN (TIMESTAMP ' 2001-01-01 00:00:00'));
    
    
    INSERT INTO A
         VALUES (1, SYSDATE);
    
    INSERT INTO A
         VALUES (1, SYSDATE - 30);
    
    INSERT INTO A
         VALUES (1, SYSDATE - 60);
    I need to change this partitioned Table apart to a partitioned range Table. I can do using the EXCHANGE PARTITION. Like if I use the classic method to create another table range partitioned, then:

    DROP TABLE A_Range
    CREATE TABLE A_Range
    (
    a NUMBER,
    CreationDate DATE
    )
    PARTITION BY RANGE (CreationDate)
       (partition MAX values less than (MAXVALUE));
    
    Insert  /*+ append */  into A_Range Select * from A; --This Step takes very very long..Trying to cut it short using Exchange Partition.
    Problems:

    I can't do
     ALTER TABLE A_Range
      EXCHANGE PARTITION MAX
      WITH TABLE A
      WITHOUT VALIDATION;
     
    ORA-14095: ALTER TABLE CHANGE requires a not partitioned table nonclustered
    This is because the tables are partitioned. So it does not allow me.

    If I instead:


    Create a table that is not partitioned for exchanging data by partition.
      Create Table A_Temp as Select * from A;
      
       ALTER TABLE A_Range
      EXCHANGE PARTITION MAX
      WITH TABLE A_TEMP
      WITHOUT VALIDATION;
       
      select count(*) from A_Range partition(MAX);
     
    -The problem is that all the data is in MAX Partition.
    Even after the creation of a large number of partitions by walls of separation, the data is still in MAX Partition only.

    So:

    -What we cannot replace a partitioned Table to the Table partitioned using the EXCHANGE PARTITION range interval. that is, we have to insert in...
    -We can do it, but I'm missing something here.
    -If all the data is in MAX Partition due to "WITHOUT VALIDATION", can say us be redistributed in the right type of range partitions.

    You must pre-create the partitions in a_range and then swap one for one for a tmp, and then to arange. With the help of your sample (thanks to proviing code, incidentally).

    SQL> CREATE TABLE A
      2  (
      3     a              NUMBER,
      4     CreationDate   DATE
      5  )
      6  PARTITION BY RANGE (CreationDate)
      7     INTERVAL ( NUMTODSINTERVAL (30, 'DAY') )
      8     (PARTITION P_FIRST
      9         VALUES LESS THAN (TIMESTAMP ' 2001-01-01 00:00:00'));
    
    Table created.
    
    SQL> INSERT INTO A VALUES (1, SYSDATE);
    
    1 row created.
    
    SQL> INSERT INTO A VALUES (1, SYSDATE - 30);
    
    1 row created.
    
    SQL> INSERT INTO A VALUES (1, SYSDATE - 60);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    

    You can find the form of existing partitions assistance:

    SQL> select table_name, partition_name, high_value
      2  from user_tab_partitions
      3  where table_name = 'A';
    
    TABLE_NAME PARTITION_NAME HIGH_VALUE
    ---------- -------------- --------------------------------------------------------------------------------
    A          P_FIRST        TO_DATE(' 2001-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA
    A          SYS_P44        TO_DATE(' 2013-01-28 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA
    A          SYS_P45        TO_DATE(' 2012-12-29 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA
    A          SYS_P46        TO_DATE(' 2012-11-29 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA
    

    You can then create the table a_range with apporopriate partitions. Note that you may need to create additional in a_range partitions because the partitioning interval does not create the partitions has no data for, even if that leaves 'holes' in the partitioning scheme. So, on that basis:

    SQL> CREATE TABLE A_Range (
      2     a NUMBER,
      3     CreationDate DATE)
      4  PARTITION BY RANGE (CreationDate)
      5     (partition Nov_2012 values less than (to_date('30-nov-2012', 'dd-mon-yyyy')),
      6      partition Dec_2012 values less than (to_date('31-dec-2012', 'dd-mon-yyyy')),
      7      partition Jan_2013 values less than (to_date('31-jan-2013', 'dd-mon-yyyy')),
      8      partition MAX values less than (MAXVALUE));
    
    Table created.
    

    Now, create a regular table to use in the constituencies:

    SQL> CREATE TABLE A_tmp (
      2     a              NUMBER,
      3     CreationDate   DATE);
    
    Table created.
    

    and all partitions in Exchange:

    SQL> ALTER TABLE A
      2    EXCHANGE PARTITION sys_p44
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> ALTER TABLE A_Range
      2    EXCHANGE PARTITION jan_2013
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> ALTER TABLE A
      2    EXCHANGE PARTITION sys_p45
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> ALTER TABLE A_Range
      2    EXCHANGE PARTITION dec_2012
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> ALTER TABLE A
      2    EXCHANGE PARTITION sys_p46
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> ALTER TABLE A_Range
      2    EXCHANGE PARTITION nov_2012
      3    WITH TABLE A_tmp;
    
    Table altered.
    
    SQL> select * from a;
    
    no rows selected
    
    SQL> select * from a_range;
    
             A CREATIOND
    ---------- ---------
             1 23-NOV-12
             1 23-DEC-12
             1 22-JAN-13
    

    John

  • Is there a way I can find the AUTHID set of PL/SQL?

    If I am logged in as A user and I have a query a view that calls a function of authid DEFINER belonging to user B, and it called as a function of the user current authid owned by C that I am not some priivileges of the user whose second service runs under. I think it should be A but y at - it a routine system that I can call that tells me for certain that it is?
    Keith.

    Is there a way I can find the AUTHID set of PL/SQL?

    You can view the current_schema:

    SQL> create or replace procedure p1
       authid definer
    as
    begin
       dbms_output.put_line ('P1 :' || sys_context ('userenv', 'current_schema'));
    end p1;
    /
    Procedure created.
    
    SQL> create or replace procedure p2
       authid current_user
    as
    begin
       dbms_output.put_line ('P2 :' || sys_context ('userenv', 'current_schema'));
    end p2;
    /
    Procedure created.
    
    SQL> grant execute on p1 to scott
    /
    Grant complete.
    
    SQL> grant execute on p2 to scott
    /
    Grant complete.
    
    SQL> connect scott/tiger@oracle
    Connected as SCOTT@oracle
    
    SQL> exec michael.p1
    P1 :MICHAEL
    PL/SQL procedure successfully completed.
    
    SQL> exec michael.p2
    P2 :SCOTT
    PL/SQL procedure successfully completed.
    
  • The desktop icons don't "Refresh" copied or deleted

    This a problem that just started. There are two scenerios:
    1 copy or create a new icon on the desktop, however, it does not appear there. Yet when I go to Windows Explorer and navigate to my desktop folder, the file is there. The only time I can get the icon to appear, or 'Refresh' is when I restart the computer.
    2. I have delete a file on the desktop, however, it is simply there. When I try to delete it again, he says that the file does not exist.

    I think it's just a case of something to is not refreshing the desktop icons when these actions take place.

    Hi HarrisonHodgkins,

    See if updating the video card drivers helps. It works in some cases.

    If not, perform a clean boot and see if this is caused by a third-party software.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

Maybe you are looking for

  • Qosmio F50-12 b Win7 64 bit driver problems affects Fn, Power Saver, Tablet

    Hello I have Toshiba Qosmio F50 - 12 b. initially, I have Vista Ultimate 32 bit, then I refresh installation of Windows 7 Ultimate 64-bit...This is the problem, I installed all the drivers for my operating system and the computer, but I can not insta

  • 2 1580 edge - screen (lock num lock, turn the trackpad) does not

    Someone at - it aclue how to get these works again I did a clean install of windows and for the life of me can not get these to work I installed all the drivers page drivers with no luck Mod edit: System model added to the front of the subject line t

  • How can I extend the warranty of my phone online?

    Hello I would like to know how to extend the warranty on my phone online? My PC model: Compaq 620 Energy Star, product no.-XP866PA, country-India. Unable to get all the details on the site. My 1 year warranty expires the 10th of this month & I want t

  • Synchronization of the signal with PCI-6602

    Hello I need to generate three signals that must be synchronized. To do this, I use a PCI-6602. The first signal is used to trigger a device, the second signal is used to simulate the noise. The third signal should wear the noise so that it starts be

  • Microsoft works spreadsheet

    I try to use the spreadsheet and I need to choose a selection of cells and add a format/color, how can I do this at once?