Can I convert a table to a partion in an array of partitoned quickly?

Hello

We have 2 tables, one is the transactions table, and the other is table to archive transaction.
Both have the same columns and indexes, but transaction archive table is a partition table stood by transaction date.

Each week, we need to move the data from the transactions table to archive the table, and he needs about 2 hours.
(add the partition, then insert into the partition by select * transaction)

Oracle has the function to convert a table to a partition to a partition table?
(just like the opposite direction of the EXCHANGE PARTITION)

Thank you

ARO
Patrick

Oracle has the function to convert a table to a partition to a partition table?

It seems that you want to move ALL the rows in the transaction table in the table to archive.

Why not do
a. Add an empty Partition
b. remove unnecessary indexes on table txn (index who are not in the table to archive)
c. Swap Partition: ALTER TABLE EXCHANGE PARTITION WITH TABLE newpartition archivetable txntable;
d. create a new txntable that is empty
e. create indexes if necessary

PS: If really do you move all the lines from the operating table to the table to archive, it would be the REMOVAL of the operating table that would take the most time, undo and redo.

Hemant K Collette

Published by: Hemant K grapple on June 1st, 2010 16:34

Tags: Database

Similar Questions

  • Table 2D cluster table how insert table 2d of strings in an array of cluster?

    I have a cluster with 4 channel 3 elements of the string constants and 1 is a list box drop-down chain.

    I can save the Bay of cluster to deposit without any problem.

    Now, I want to read the file is saved in the Bay of cluster.

    How can I insert a table 2d of strings into an array of cluster?

    rcard53762 wrote:

    I have a cluster with 4 channel 3 elements of the string constants and 1 is a list box drop-down chain.

    I can save the Bay of cluster to deposit without any problem.

    Now, I want to read the file is saved in the Bay of cluster.

    How can I insert a table 2d of strings into an array of cluster?

    It would be useful to have an example of what real cluster Bay look like the typical data. One way to do is by saving the content of the table cluster in a configuration file (.ini extension) and then use the OpenG screws of the Variant Configuration file to store and retrieve data from the configuration file. You can get these screws in the VI package manager.

    Here is an example. The generated configuration file is also attached.

    Ben64

  • How can I convert table 1 d in a 2D array.

    I have a table 1 d I want to get into an Excel template.  How can I convert a 2D table so I can enter Excel Table.vi easy?

    Be sure to check the correct operation. Solution-Marc adds another row of zeros and I don't know if this is desirable here. (See also)

  • How can I convert an existing table to the ITO

    Hello

    My Oracle version is 10.2.0.4

    Here's my my test_table structure.

    He has 1141580 rows.

    I want to convert to table index. However, there is no secondary indexes.
    How can I convert an existing table to the ITO.

    CREATE TABLE test_table (
       Column1             NUMBER        NOT NULL,
       Column2             DATE          NOT NULL,
       Column3             VARCHAR2(100) NOT NULL,
       Column4             VARCHAR2(8)   NULL,
       Column5             VARCHAR2(40)  NOT NULL,
       Column6             VARCHAR2(3)   NULL,
       Column7             NUMBER        NOT NULL,
       Column8             NUMBER        NULL,
       Column9             VARCHAR2(32)  NULL,
    )
    
    /
    
    
    
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_pk2 PRIMARY KEY (
        Column1,
        Column2
      )
      USING INDEX
        STORAGE (
          INITIAL   30720 K
        )
    
    /
    
    
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_cons1 FOREIGN KEY (
        Column1
      ) REFERENCES test_table2 (
        Column1
      )
    /

    Documentation Oracle say:
    Redefinition of Table online allows you to change the organization from a normal table (heap-organized) to an organized in index table and vice versa.

    For example, you might want to try.

  • to convert decimal table table of Boolean

    Hey all

    I have a decimal table (or at least that's what I think it is).

    the table is 1010 (and the number of bits can change depending on the application)

    that 1010 is decimal. I want to convert that into a Boolean 1010, because I have to open close some ports in this logic.

    Help, please

    Thank you very much

    Well done more to give

    Your information is a little sparse, so I fill in some blanks by guessing...

    1010 is not a table (and no Boolean value either!)

    Is each figure part of the picture? What is the representation?

    If each digit is a digital element of the array, just wire 'not equal zero' to the table and you will get an array of Boolean.

    It might be easier if you can fix a simple VI which contains the table that you have and the table you want. Thank you!

  • How can I change a table 1 d to something?

    I am creating a state machine using a 2 X 13 matrix and loop for to transfer a line of binary data to the output lines of the wizard DAQ (see attachments)

    Tutorials, context-sensitive help, Labview help is for me.

    The variable N loop For is a table 1 d.  How can I convert the entire element of 32 bits for the entrance to the function "subset of the table.  How can I change the function of the subset of the Array' expected as input by the DAQ Assistant output to 1 D array?  Why is the variable N of the loop For a 1 d array?

    Nothing you have is correct. First of all, you have not a matrix. A matrix is a special type in LabVIEW. You do not have 2 x 13 is array. You have a table 14 d. I really have no idea how you have created that. What you want is a table of 5 x 13-5 columns for each of your digital lines and 13 for the number of models that you want to run. The loop you have is to display the values of the terminal - i not the n Terminal. When you exit a loop for example, the default is to autoindex the output and create a table.

    To put it simply, create a correct Boolean array and simply connect in a loop with the DAQ Assistant, inside.

  • convert a table to an xml file

    Hello

    I'm trying to convert a table that I got an http server to an xml file. So I'll be able to handle data with cvixml-lib. The problem are all special characters such as "<" or="" "="">". For example, the code for.<" is="" "<".="" do="" i="" have="" to="" write="" an="" own="" parser="" for="" all="" this="" 5="" spezial="" characters="" or="" is="" there="" a="" nice="" function="" can="" do="" this="" for="">

    I use CVI 2012.

    Thank you very much!

    OK, the right question is: 'how to convert html to xml.

    Here's how I did it:

    I hope that helps!

      while ( paSource[iAktuellePosSource] > 0 )
      // while no end of string continue with loop
      {
        if ( paSource[iAktuellePosSource] == '&' )
        { // a new escape seq was found!
          switch ( paSource[ iAktuellePosSource + 1 ] )
          {
            case 'l':
              // found < -> replace with <
              paDestination[ iAktuellePosDes ] = '<';
              iAktuellePosSource += 4;
            break;
            case 'g':
              // found > -> replace with >
              paDestination[ iAktuellePosDes ] = '>';
              iAktuellePosSource += 4;
            break;
            case 'a':
              if ( paSource[ iAktuellePosSource + 2 ] == 'm' )
              {
                // found & -> replace with &
                paDestination[ iAktuellePosDes ] = '&';
                iAktuellePosSource += 5;
              }
              else
              {
                // found ' -> replace with '
                paDestination[ iAktuellePosDes ] = '\'';
                iAktuellePosSource += 6;
              }
            break;
            case 'q':
              // found &qout; -> replace with "
              paDestination[ iAktuellePosDes ] = '"';
              iAktuellePosSource += 6;
            break;
          }
    
        }
        else
        {
          // normal sign just copy
          paDestination[ iAktuellePosDes ] = paSource[ iAktuellePosSource ];
          ++iAktuellePosSource;
        }
        ++iAktuellePosDes;
      }
    
  • How to convert a table 1 d of cluster of 5 items in a table of numbers 2D? (a graph historical data)

    Hello

    in my vi, I have an array with 5 slots displaying measurement data.

    The user must be able to record all the data in the history of the card at any time. (for example the user looks at the picture and something happens, then it based on a 'save' - button)

    I know that I can read the data in the history with a property node. This isn't the problem. The problem is, how to deal with the data? The type of history data is a table 1 d of cluster of 5 elements.

    I convert these data somehow in a 2 D-table of numbers or strings, so that I can easily save it to a text file.

    How to convert a table 1 d of cluster of 5 items in a table of numbers 2D?

    I use LabVIEW 7.1

    Johannes

    Hallo Johannes,

    the photo shows the trivial way:

  • How can I convert a column online

    Hi experts,
    How can I convert column as line in oracle...

    I have a table like Tab_Query this table has only one column.
       create table Tab_Query
      (
        result varchar2(4000);
      );
    
     insert into Tab_Query values(Mr,John,01-apr-1984,Software Engineer); 
    
      Then table has contain the value like below 
    
       Mr,John,01-apr-1984,Software Engineer
     
      My Requirement is i need the result like below
      Mr
      John
      01-apr-1984
      Software Engineer
    Please, can someone help how can I get the result...

    Kind regards
    Arun

    Hello

    Here's a way to do it when you have several lines:

    select   regexp_substr(result,'[^,]+',1,l) as Tokens
    from tab_query,
        (
        select level l
        from dual connect by level<= (
                                     select max(regexp_count(result, ',') )  +1
                                     from tab_query
                                     )
        )
    where regexp_substr(result,'[^,]+',1,l) is not null
    order by result, l ;
    

    Kind regards
    Sylvie

  • How to convert * all * tables of text in a document?

    Version: Indesign CS 5.5

    I have a massive document that was given to me after be imported into Word, and the person who has imported, it did not convert tables to text (or they tried and it did not work, be it, I have a huge amount of tables that must be not filed).

    I am responsible for the document formatting, and the formatting requirements are to convert all tables in the text document. I was able to batch-process other formatted in the document with the help of find + replace, but I can't seem to find a way to search for all instances of a table in the document and convert all the table set in shape to the text. I can find every table in the search/replace tool using < 0016 >, but I have no idea how, and then delete the table set shaped with the change function.

    I have no text special requirements (standard; tabs for columns and new paragraphs for the lines) and all tables should be converted, regardless of their formatting or content, so it's fairly simple formatting.

    There must be SOME way tot automate this process, it seems incredibly Loïc having to select each table individually and go up to the menu to select "convert table to text... '. ». Any idea is appreciated.

    Click on the text cursor in your text running, and then run this Javascript. WARNING: fully typed memory!

    App.Selection [0].parentStory.tables.everyItem () .convertToText ();

  • is that we can transform a GML table with oracle 11g?

    I have a project with GML and this is the first time that I work with.
    I just need to know if I can transform a normal table with oracle of GML.

    I found that we can do this with xml using the simple features sql example:

    SQL:
    SELECT XMLElement (name 'Department',
    XMLAttributes (deptno),
    XMLAgg (XMLElement (name"employee", ename))) .getStringVal () as a RESULT
    FROM scott.emp
    GROUP BY deptno;

    result:
    < Department deptno '34' = >
    ename < employee > < / employee >
    < / Department >

    < Department deptno = "35" >
    ename1 < employee > < / employee >
    < / Department >...

    We can do something like this with oracle11g for GML instead of XML (when we have spatial data).

    I hope that you have the answer or a reference that can help.
    Thank you
    Best regards

    Hi, -.

    We have the following conversion functions of GML and KML to/from SDO_GEOMETRY.
    We both support GML2 and GML 3.1.1:

    In 11.1.0.7, you will find the following functions:

    SDO_UTIL. FROM_GML311GEOMETRY: Converts a fragment of geography markup language (GML 3.1.1) a spatial geometry.
    SDO_UTIL. FROM_GMLGEOMETRY: Converts a fragment of geography markup language (GML 2.0) a spatial geometry.
    SDO_UTIL. FROM_KMLGEOMETRY: Converts a KML (Keyhole Markup Language) of a Spatial geometry object document.

    SDO_UTIL. TO_GML311GEOMETRY: Converts an object of spatial geometry to a fragment of language (GML version 3.1.1) geography markup based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_GMLGEOMETRY: Converts an object of spatial geometry a geography markup language (GML 2.0) fragment based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_KMLGEOMETRY: Converts a Spatial geometry object to a KML (Keyhole Markup Language) document.

    See also User Guide Pro Oracle Spatial and Oracle Spatial for book of 11g Oracle database for more details and examples.

    Please let us know if you have any other questions. We will be happy to help you.

    I hope this helps.
    Best regards
    Baris

  • How can I convert my friends to the Game Center on Facebook?

    With the new iOS for my iPod & iPad, I lost all my friends Game Center.  I have two games that I play as I would like.  How can I convert my friends to the Game Center for Facebook friends?

    You do not have. They have two different systems. What you need to do is to start on. For example, if your game has a forum or support page, they may have a way for people to communicate to a friend. Or if they have a facebook page, they probably have a system for "I want to make friends."

    It is now up to the games themselves to put in place the means to a friend using iMessage. You will need to wait for your game to do.

  • How can I convert Thunderbird emails to PST format?

    I learned to convert all my emails from Thunderbird to Outlook by the administrator of my office because to leave now, so use MS Outlook for emailing purpose. All my previous emails are in the form of Thunderbird, so I need to convert them to outlook to work smoothly without losing any emails. I need the solution that can help me more rapid as I have very less time. Is it possible to convert emails from Thunderbird to Outlook in bulk? can I convert Thunderbird to Outlook?


  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

  • How can I convert an incoming call read only an attachment so I can change it?

    How can I convert an incoming call reads only attachment so that I can change it? Save in Word does not it, and find research peut t.

    So, the problem seems to be that attachments are stored as files read-only by Thunderbird and an application it can open without editing privileges, so you cannot change the. Read-only mode was chosen because these files are kept in a temporary location. For example, if you modify and save the back, they are deleted when Thunderbird is closed, so losing your changes. The idea is to force to save you to a different location. You should be able to do it, then open it from that location with full editing capabilities.

    For a permanent change in this behavior, go in the [tools >] Options > advanced > general tab and click on Config Editor there. After you confirm the warning, copy - paste browser.helperApps.deleteTempFileOnExit into the search bar and switch false to true by double clicking on it. Now, saved attachments are created with read/write permissions, but is more removed when Thunderbird is closed (i.e., stored in % AppData%\Local\Temp).

Maybe you are looking for