Rename the table require re-run the stats?

OS: OEL (last) 64-bit
DB: 11 GR 1 material

I need to create a copy of a large table A in production (call of the new table B). The data are the same, but the physical layout of the tables is different (different partitioning scheme is used between table A and B).
When I go to move table B to replace table A (which will be eventually abandoned), should I raise his stats on table B?

It's
(1) table to become A_OLD
(2) table B becomes table A

I have to raise its stats on table A in step (2)? Is there something else that needs to be done?
(I do this to limit the impact to the GUI that uses this table - the name of the final table does not change so the GUI should not be affected).

See you soon!

user601798 wrote:
Yes, I have to raise his stats on the 'new' A table even if it has the same data and the name (after renaming) but different partitioning scheme (physical model)? It seems to me that the answer would be 'yes '.
Otherwise, not the optimizer does not fail to recognize the new partitioning?

(1) Board toys (all data) and table Toys_New (empty)
(2) the Toys_New table is loaded with toys data table (the two tables have the same data - only difference is partitioning)
(2) the toys table is renamed table Toys_Old (this will be served at a later date)
(4) table Toys_New is renamed table Toys

And I was thinking - I forgot to talk about first-hand - Toys_New will have the same indexes, but of course the clues will have unique names from toys (to avoid the error "object already exists".

Given that the last note, I am convinced more than stats must be run on Toys_New after step (4)

See you soon!

Yes, you must.

Name of your new table is 'Toys', but this new table is totally different than the old toys. If you need to analyze the table again.

Concerning

Grosbois

Tags: Database

Similar Questions

  • How to reset the State of package variables in all sessions connected (without requiring a disconnection and a connect) if they are reset in one of connected sessions.


    Hi people,
    Need help, the example requires that the value of packet data 'g_var' must be updated in the session/s connected everywhere without the session/s to be disconnected and reconnected.
    Here's the scenario:

    I created a table my_table having the pair name / value.
    A variable with global package "g_var' in his body and a get accessor method to access g_var variable from the outside world.
    This variable g_var is initialized within the block of the entry into force of the package and retrieves the current value of the variable from my_table.
    When I update the value in the table a trigger on my_table would reset the State of the package and therefore g_var to the most recent value in the same session
    All is well so far since the change in value is reflected in the current session, but if I've already connected session/s
    and I'm trying to retrieve the value of "g_var", it is not updated in already connected sessions and remains the same before the update.
    Can U help please how can I update this value in a session/s connected without having to disconnect and reconnect.
    because if I disconnect and reconect the existing sessions, it seems to show the updated value.

    Thanks in advance.

    Kind regards
    Gaurav Rajput

    Here are the Scripts:


    drop table my_table;
    create table my_table
    (
    my_variable_name varchar2 (100),
    number of my_variable_value
    );

    create or replace package my_package as
    Function get_g_var return number;
    end my_package;
    /

    create or replace package body my_package as
    number of g_var;

    Function get_g_var return number is
    Start
    Return g_var;
    exception
    while others then
    lift;
    end get_g_var;

    procedure init (my_passed_name varchar2) is
    Start
    Select my_variable_value in the g_var from my_table where my_variable_name = my_passed_name;
    exception
    while others then
    raise_application_error (-20004, "I got an error during Init");
    end init;

    Start
    init ('$'); -This is a call to time when the package is loaded into the memory of session
    exception
    while others then
    raise_application_error (-20003, 'Error in my_package');
    end my_pACkage;

    /
    create or replace TRIGGER my_trigger
    BEFORE DELETE OR UPDATE
    ON my_table
    FOR EACH LINE
    declare
    number of my_ret;
    Start
    DBMS_SESSION.modify_package_state (DBMS_SESSION. RESET);
    exception
    while others then
    lift;
    end my_trigger;

    /

    -It is initially set to null
    insert into my_table values ('DOLLAR', 62);
    commit;

    -test value for first time to package loading (62 views)
    Select * from my_table;

    Set serveroutput on

    declare
    my_variable varchar2 (100);
    BEGIN
    my_variable: = my_package.get_g_var;
    dbms_output.put_line ($my_var);
    END;

    -run the same block of end to start in another session it shows 62. All is well so far
    -check if the value after the update in the same session (shows 38), also check in another before the connected session as well (shows 62 and not 38)
    Update my_table set my_variable_value = 38 where my_variable_name = "DOLLAR";
    commit;

    Select * from my_table;

    Set serveroutput on

    -It displays 38 in this session, but there in an already connected session 62 and only after you log out shows 38
    declare
    my_variable varchar2 (100);
    BEGIN
    -my_variable: = my_package.g_var;
    my_variable: = my_package.get_g_var;
    dbms_output.put_line ($my_var);
    END;

    Package variables are stored in the private memory (PGA). The value is not visible in the session. A package variable is therefore not approach appropriate to your problem. You can look at in the context of the Application, as Solomon has said.

    http://docs.Oracle.com/CD/B28359_01/network.111/B28531/app_context.htm#CIHFJHCG

  • Unable to get the correct rules table result when the State is unknown

    Hi all

    I use OPA version 10.4. I'm writing a rule by using a table of rules. Requirement is such that when the State is unknown then conclusion should evaluate to 'Others' (for example). Now, I have a condition (text) attribute and attribute of conclusion (text). Now when the condition attribute value is "abc" then attribute of the conclusion must be "xyz" but when the condition attribute is 'unknown' or anything else then attribute conclusion must be 'other '. I tried to implement this in the two table rules in word doc and also in excel table of rule but failed to get the desired result. It assesses the 'unknown' conclusion when the condition attribute is 'unknown '. Please suggest.

    Thank you

    Mounia

    ruleTable3.JPG

    ruleTable2.JPG

    Hi Pascal,.

    As the table of treaty rules the rules in the top-down approach, so the 'unknown' State should be written before the value condition.

    If she meets the condition of value firstly she neglects the unknown state and gives the value of the conclusion as 'unknown '.

    Hi Sean,.

    Want your comments on that.

    See you soon,.

    Arup

  • RENAMECOLLECTIONTABLE - questions by renaming the table from the collection.

    Hi all

    I use the version of database Oracle 10.2.0.2, OS - Solaris

    I am enrolled in the scheme after successfully.

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xs: schema xmlns: XS = "http://www.w3.org/2001/XMLSchema".
    xmlns:xdb = "http://xmlns.oracle.com/xdb".
    elementFormDefault = "qualified" attributeFormDefault = "unqualified" >

    < xs: element name = "employee" type = "employeeType" xdb:defaultTable = "EMPLOYEEXMLTYPE_TABLE" / >

    < name XS: complexType "employeeType" = >
    < xs: SEQUENCE >
    < xs: element name = "name" type = "xs: String" / >
    < xs: element name = "departments" type = "departmentsType" nillable = "true" minOccurs = "0" / >
    < xs: element name = "name" type = "xs: String" / >
    < / xs: SEQUENCE >
    < name XS: attribute = "id" type = "Integer" use = "required" / >
    < / xs: complexType >

    < name XS: complexType = "departmentsType" >
    < xs: SEQUENCE >
    < xs: element name = "Department" type = "DepartementType" maxOccurs = "unbounded" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < name XS: complexType = "DepartementType" >
    < xs: SEQUENCE >
    < xs: element name = "name" type = "xs: String" / >
    < xs: element name = "departmentWings" type = "departmentWingsType" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < name XS: complexType = "departmentWingsType" >
    < xs: SEQUENCE >
    < xs: element name = "departmentWing" type = "departmentWingType" maxOccurs = "unbounded" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < name XS: complexType = "departmentWingType" >
    < xs: SEQUENCE >
    < xs: element name = "name" type = "xs: String" / >
    < xs: element name = "target" type = "xs: String" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < / xs: Schema >

    My goal is to create indexes on/employee/departments/department/departmentWings/departmentWing/name.

    I followed the steps mentioned in Create index for an XMLType column.

    One of the measures mentioned in the link above is to rename the table in the collection (in my case departmentwing) using the DBMS_XMLSTORAGE_MANAGE procedure. RENAMECOLLECTIONTABLE.

    So I tried the following:
    SQL > START
    DBMS_XMLSTORAGE_MANAGE 2. () RENAMECOLLECTIONTABLE
    OWNER_NAME 3 = > "XDB_TEST"
    Table_name 4 = > "EMPLOYEEXMLTYPE_TABLE"
    5 COL_NAME = > NULL,
    XPATH 6 = > ' / employee/departments/Department/departmentWings/departmentWing/name. "
    7 COLLECTION_TABLE_NAME = > 'DEPTWING_TABLE '.
    (8);
    9 END;
    10.

    PL/SQL procedure successfully completed.

    If the procedure has said that it has completed successfully, I couldn't see the created DEPTWING_TABLE.

    SQL > DEPTWING_TABLE DESC;
    ERROR:
    ORA-04043: object DEPTWING_TABLE does not exist

    I am left helpless. Can someone please?

    Kind regards
    Simo.

    Published by: user5805018 on October 12, 2011 04:40

    Hello

    First of all, are you sure that the nested tables generated during the registration of the scheme?

    You must annotate the schema with xdb:storeVarrayAsTable = 'true' and use the option genTables-online true for registration.
    Then you should see something like this:

    SQL> select table_name, table_type_name, parent_table_name, parent_table_column
      2  from user_nested_tables
      3  ;
    
    TABLE_NAME                     TABLE_TYPE_NAME                PARENT_TABLE_NAME              PARENT_TABLE_COLUMN
    ------------------------------ ------------------------------ ------------------------------ --------------------------------------------------------------------------------
    SYS_NTy8fd9LOzSmun4whyTbJC4g== department384_COLL             EMPLOYEEXMLTYPE_TABLE          "XMLDATA"."departments"."department"
    SYS_NTeAiIyOu0Q9G3nvWMtcM6mQ== departmentWing381_COLL         SYS_NTy8fd9LOzSmun4whyTbJC4g== "departmentWings"."departmentWing"
     
    

    In addition, according to the manual (xdb_easeofuse_tools.pdf):

    For Oracle Database 11g Release 2 (11.2) and above, this function accepts only, XPath
    the rating as a dotted notation. If the XPath notation is used, a setting of namespaces
    may also be necessary.

    So, on your version, you must use the notation 'dot ':

    SQL> call XDB.DBMS_XMLSTORAGE_MANAGE.renameCollectionTable(
      2    USER
      3  , 'EMPLOYEEXMLTYPE_TABLE'
      4  , NULL
      5  , '"XMLDATA"."departments"."department"'
      6  , 'DEPT_TABLE'
      7  );
    
    Method called
    
    SQL> call XDB.DBMS_XMLSTORAGE_MANAGE.renameCollectionTable(
      2    USER
      3  , 'DEPT_TABLE'
      4  , NULL
      5  , '"departmentWings"."departmentWing"'
      6  , 'DEPTWING_TABLE'
      7  );
    
    Method called
    
    SQL> select table_name, table_type_name, parent_table_name, parent_table_column
      2  from user_nested_tables;
    
    TABLE_NAME                     TABLE_TYPE_NAME                PARENT_TABLE_NAME              PARENT_TABLE_COLUMN
    ------------------------------ ------------------------------ ------------------------------ --------------------------------------------------------------------------------
    DEPT_TABLE                     department384_COLL             EMPLOYEEXMLTYPE_TABLE          "XMLDATA"."departments"."department"
    DEPTWING_TABLE                 departmentWing381_COLL         DEPT_TABLE                     "departmentWings"."departmentWing"
     
    

    Hope that helps.

  • Stats not registered in the stat table use with gather_table_stats

    During the collection of statistics with DBMS_STATS. GATHER_TABLE_STATS and passing stattab parameter partitioned table, his stats are not saved for this partition in the table user stat unless it is executed twice. Here's the statement that I'm running. If I add a new partition and try to collect statistics for it and store it in the user table stats, it is not be stored even if his dictionary stats are updated. If I run the second time, it will update the entries in the user table stat.

    Start
    DBMS_STATS.gather_table_stats ("OWNER",
    tabname = > 'table_name ',.
    partName = > "P20090824"
    estimate_percent = > 2,
    method_opt = > 'for all THE COLUMNS of SIZE AUTO. "
    stattab = > "DICTSTATTAB"
    granularity = > "ALL."
    degree = > 8,
    Cascade = > true
    );
    end;
    /

    I used similar options and it worked all the time. Only difference is I used the granularity-online 'PARTITION Maybe you give him a try.
    Also try the stat of gathering and export to stat table separately.

  • Use Firefox all the time, but on the page where it tells you what plug-ins are oudated there is a message saying that I do not meet the requirements to run FF.

    I have an iMac. Mac OSX... Version 10.5.8 I had Firefox installed for a long time and use it more often than Safari these last time. However, when I'm on the FF page where it tells you what plug-ins are very good, and which are outdated (with a warning), at the top of the page, there is a message saying that my computer "does not meet the requirements to run Firefox. And yet I have it and use it! Maybe the message actually means that I can't upgrade to the latest version? But also I don't know if I should go ahead and try to download plug-ins up to date. Any input would be greatly appreciated. Thanks in advance.

    You can also
    Try to update to 10.6 and more if your computer supports (costs less than a new computer)

  • Try to rename the profile, now cannot start FF because it says it is already running

    So I wanted to rename the profile from my laptop. I went in the profile menu (on the laptop not Firefox) and finished by unchecking and rechecking the "read only"box. ". After that, Firefox would give an error saying that she could not access the security on the boot files. I searched Mozilla page and followed the instructions to rename profiles with no luck, restarts (multiple) no luck, profile deleted and built a new, no luck, deleted secmod and cert files with no luck. Uninstalled FF 8.01 installed completely and 3.6.3 (I think) and now it won't start because it says it is already running. I'm also getting a flag of Internet Eplorer telling me that another program has tried to change my search engine.

    Any help would be appreciated.

    Oops, something went wrong in this post. You don't have to rename a profile on the disc folder, if that's what you did to get the error "already running."

  • How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point

    How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point. I've been messing around with the without success. I'm under Labview 2012.

    Thank you!

    Townes wrote:

    I can't understand what you mean. I have no formal training with labview. It took me a long time to write the simple program that I joined. Any guidance would be greatly appreciated!

    Its pretty normal for a beginner to take the time to write code. Right-click the map of waveform > Create > property node > historical data, you will get a property node, keep this at the beginning of the code and create a constant. You can also go to the VI properties and > run and select "clear indicators when it is called.

    I recommend you to go through the basic materials of LabVIEW which will give you an understanding on the basics of bases/components of LabVIEW.

  • To run the State and asynchronous control pending...

    I have a VI that I call asynchronously.

    When I run it, I record the refnum for her and watch her status to see if it stops running. At some point, the asynchrounous VI will run the pending execution. How can I see by using the State of the VI property node. I assumed, apparently incorrectly, that when a Subvi is "waiting to run" that he would be in a State of execution other "Running". Is there something else I should be looking? What works here?

    I'd certainly prefer this solution rather than an alternative such as send a user or view event since it places no restriction on the Subvi (i.e. the subvis connector plan).

    Thank you!

    As I do this is to use asynchronous Start using the call and Collect Call option.  To say that if the VI has finished, I use a wait on node for asynchronous call with a short timeout - if he stopped (returned), then the wait will succeed without error, as if she is still underway, the wait will be timeout, throwing an error I can trap and clear.  My routine of waiting and then returns a Boolean to indicate whether the asynchronous routine is back.  If so, I can stop the asynchronous routine using a target Abort VI.

    In a fairly large project in real time, I had about 5-6 asynchronous 'loops' running in parallel, completely detached.  When I was ready to stop, I used a VIG who has been wired for their stop indicator.  In my hand, I then called the wait routine on all my routines in a loop until they call returned as "stopped", then I really 'arrested' them by calling the option "Stop" (Abort VI) on each of them.

    Bob Schor

  • The State of Machine table

    I need help store two different measurements in two different tables. Both are in a state machine in the same case, and I need to place them in the tables so that I can use both to get a linear fit. The two values are located in the case of 'Calc' of the state machine. The first is soul 3 (average sample), and the second is ^ T I tried simply initialization of an array, and then using the option Add to the range, but the result is a single value being stored in the table, every time through him makes a table a new value, which is not what I need.

    Both can be easily identified, because they are in the case of 'Calc' and each go into icons that display them on the front panel.

    I feel like there is a simple solution to that I'm just missing, so all contributions are welcome.

    Attached, this is the VI and thank you for your help.

    Ghalib wrote:

    I need help store two different measurements in two different tables. Both are in a state machine in the same case, and I need to place them in the tables so that I can use both to get a linear fit. The two values are located in the case of 'Calc' of the state machine. The first is soul 3 (average sample), and the second is ^ T I tried simply initialization of an array, and then using the option Add to the range, but the result is a single value being stored in the table, every time through him makes a table a new value, which is not what I need.

    Both can be easily identified, because they are in the case of 'Calc' and each go into icons that display them on the front panel.

    I feel like there is a simple solution to that I'm just missing, so all contributions are welcome.

    Attached, this is the VI and thank you for your help.

    Have 2 for 2 bays shift registers or register 1 to shift to a 2D array. Use a build terminal within Calc to add elements of each loop. In all other cases, simply pass the thread through it.

  • The files that are required to run Windows XP Professional have been replaced by unrecognized versions

    My files have been replaced by unreconized windows versions must resote the orginial version, they want insert me my cd have not... Professor of Windows service Pack 3

    The files that are required to run windows xp profecinal have been replaced by windows versions unreconized must restore these files insery your SP3 orginial version now... I do not have a CD and never no computer came already quiped.

    Hello

    You can check the link that contains the same information: Description of the Windows File Protection feature: http://support.microsoft.com/kb/222193

    Run the checker system files on the computer. Link, we can see: Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe): http://support.microsoft.com/kb/310747

    Note that: if he asks you the service pack CD, follow these steps from the link: you are prompted to insert a Windows XP SP2 CD when you try to run the tool on a Windows XP SP2 computer system File Checker: http://support.microsoft.com/kb/900910 (valid for Service pack 3)

  • Loading error when you try to load the Halo 2 "files are missing or damaged in the installation directory. A few important files required to run this game are missing from the installation directory.

    Original title: load error when you try to load Halo 2

    People at Microsoft, I have a problem trying to load Halo 2 on my dv7 Paviliaon with Vista and the 2.8 GB Intel Centrino 2 processor. When I try and load the game, I get and error stating: "the files are missing or damaged in the installation directory. A few important files required to run this game are missing from the installation directory. "It bothered me for several reasons. One: the disc that I use is an original disc out of the box so hsould have no problem. Two: the game has been loaded previously on the same computer without apparent problem at the time. It has been deleted (don't remember why) and when I tried to reinstall, the error came. Three: I did as recommended and updated all programs and drivers, nothing works. So my question is, how do I reinstall Halo 2 and what this problem will arise if I decide to buy and load Halo 3?

    Thank you for your time in advance.

    Hello

    As you are facing problems with Halo 2, I suggest you to refer the link for better support:

    http://forums.haloonwindowsvista.com/forums/

  • Microsoft NET Framework 3.5 is required to run the Catalyst Control Center.

    Warning message

    Microsoft NET Framework 3.5 is required to run the Catalyst Control Center.
    Please download and install the wedsite of Microsoft software.

    Hi LAMWah KA


    I suggest you to download and install the .NET Framework 3.5 Redistributable or .NET Framework 3.5 SP1, then check if that helps you solve the problem-

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=e3821449-3c6b-42f1-9fd9-0041345b3385&displaylang=en

     

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en

     

    I hope this helps.

  • Flash.ocx required to run the program...

    Hello

    I push myself a little crazy by an error message which began this afternoon.  I use a program called Activstudio and until today it worked fine.  This morning I went to update the flashplayer from adobe on my system and uninstalled the existing adobe products.  Now, I get an error message that says that this version of windows does not have the file flash.ocx that is required to run the program.  I have installed and uninstalled adobe Flash Player and shockwave player on a number of occasions now, I also searched on the net for about 4 hours to try the tips people gave for similar problems.  A good idea to copy the file flash.ocx and rebonding it in the c: windows\system32\macromed\flash folder, but the file flash.ocx does not exist so I can't do that.  I even downloaded the file flash.ocx by himself and place it in the folder, but nothing seems to work...  I don't have the original to the program software CD as it is a program I have given by a school for educational purposes...

    any help would be very welcome because I can't access one of my lessons...

    Nina

    Hi neeny468,

    Try the system restore and verify the result. If this does not help, then you will need to get the software to reinstall the program successfully.
    Step 1: Restore the computer to an earlier time when it was working fine
    a. Click Start, type system restore in the search box and then in the list click on the system restore program.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    b. in the System Restore dialog box, click on choose a different restore point and then click Next.
    c. in the list of restore points, click a restore point created before you started having the problem, and then click Next.
    d. click Finish.
    e. restart the computer and check if the problem persists.

    See What is system restore? : http://windows.microsoft.com/en-US/windows-vista/What-is-System-Restore

    You can also post your query to the adobe forums as they may be able to help with this:http://forums.adobe.com/index.jspa

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Change the screensaver to logon and get this error message - is required to run this screensaver Direct3D 9.0, but cannot be found.

    I changed the idle screen to login to one of the windows Vista by default (ssText3D.scr).  and I get this message:

    Direct3D 9.0 is required to run this screen saver, but cannot be found.  Please install the latest version of DirectX and try to re-run the screen saver.

    DirectX is installed. The screensaver works if someone is logged even if it is locked, but not to the logon screen.  All the patches?

    Hi pfdr70,
     
    1. are you able to apply other screensavers?
     
    We recommend trying the following steps and check the result.
    Step 1: Download and install the latest video card driver.
    1 visit the system manufacturer's Web site, download the Vista compatible video card driver and install it.
    2 restart the computer so that the changes take effect after the driver installation.
     
    Step 2: Set the monitor to display better.
    See Get the best display on your monitor
    Step 3: Enable graphics acceleration.
    1. open display settings by clicking the Start button, clicking Control Panel, on appearance and customization, personalization, and then clicking display settings.
    2. click on display settings, and then click Advanced settings.
    3. click on the Troubleshooting tab, and then click on change settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    4. move the slider full hardware acceleration.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

Maybe you are looking for

  • How can I view a list of all my devices in sync

    I can successfully add and remove devices from my sync account, but there seems to be no option to view a list of all my devices synced.

  • Links in Safari does not open

    I have an iPhone 6 s, IOS 9.3.2.   I can't open the hyperlinks in an e-mail message if I am not connected to wifi.  I get the following message: Safari cannot open the page because your iPhone is not connected to the internet.  Shouldn't he automatic

  • Toshiba Remote app on iPhone - a few thing that bothers me

    Hello world I just tested the Toshiba Remote app for iPhone (to control my TV Toshiba (40TL938F) 40TL938.There are a few thing that bothers me, and I'd be happy to help toshiba improve this application.Do you know who is responsible for the app? A fe

  • I want to move the profile data and the addons on another disk

    I want to move the profile data and the addons on another disk. Can I specify where Firefox puts the profile and the addons? If another location, then Windows uses by default.c:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\ W

  • Satellite Pro 6100 how to use recovery DVD-ROM with vmware products

    Hello I like to use the recovery DVDs of product (T201651-GR) of my Satelite Pro 6100 on VmWare player, because I use openSUSE Linux as main operating system (not Windows installed on the hard disk).I do like install and save hard disk laptop, so tha