modifies an existing large partitioned table to automatically add the partitions

Hello world

According to me, it is not possible to modify an existing large partitioned table, to add partitions automatically as you insert it into this one. What would be the best way to do this? Dbms_redefinition? DEC + copy dependant rename?

Any ideas?

Thank you.

current version:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, Real Application Clusters, Automatic Storage Management, OLAP,.
Options of Data Mining and Real Application Testing

>
According to me, it is not possible to modify an existing large partitioned table, to add partitions automatically as you insert it into this one. What would be the best way to do this? Dbms_redefinition? DEC + copy dependant rename?

Any ideas?
. . .
I guess what I'm looking for is
ALTER TABLE XXX INTERVAL DEFINED (NUMTOYMINTERVAL(1,'MONTH'));

The following problem, I see is my required interval varies 01 hours of daylight at the time month 01 day 01 01 of the following month.
>
The best way to do it is to change your way of thinking.

Do not be afraid to break the Oracle actually trying things. Just ALTER the table.

drop table part_test cascade constraints;

create table part_test(id number, entry_date date)
partition by range (entry_date)
(
partition old_years values less than (to_date('01/01/2013 01:00:00', 'mm/dd/yyyy hh24:mi:ss')),
partition jan_2013 values less than (to_date('02/01/2013 01:00:00', 'mm/dd/yyyy hh24:mi:ss'))
)

insert into part_test values(1, to_date('01/01/2013 00:00:00', 'mm/dd/yyyy hh24:mi:ss'));

insert into part_test values(2, to_date('01/01/2013 02:00:00', 'mm/dd/yyyy hh24:mi:ss'));

alter table part_test set interval(numtoyminterval(1,'MONTH')); 

insert into part_test values(2, to_date('02/01/2013 02:00:00', 'mm/dd/yyyy hh24:mi:ss'));

SQL> set serveroutput on
SQL> select partition_name, high_value
  2  from dba_tab_partitions
  3  where table_name = 'PART_TEST';

PARTITION_NAME
------------------------------
HIGH_VALUE
--------------------------------------------------------------------------------

OLD_YEARS
TO_DATE(' 2013-01-01 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA

JAN_2013
TO_DATE(' 2013-02-01 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA

SYS_P225
TO_DATE(' 2013-03-01 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA

SQL>

Note the limit of the score for SYS_P225 that was created? It includes the same ' time 1' of the highest range partition that existed before the ALTAR.

Tags: Database

Similar Questions

  • How to create a unique temporary table delete automatically after the join?

    I have a lot of users simultaneously accessing web applications.
    My problem is how to fix the SELECT WHERE IN('..') clause ...

    I read a lot of threads with the same option...

    (1) open the connection and start transaction
    2) create temporary table
    (3) Insert (insert batch) data
    (4) the main objective. SELECT JOIN or SELECT WHERE IN (SUBQUERY).
    (5) end of transaction and close the connection

    How can I ensure that the temporary table created was deleting/moving on 5)?

    Thank you very much..

    You can do this by using global temporary tables. Also data from the temporary table is automatically deleted after that validation but the table will remain.

    for example

    CREATE TEMPORARY TABLE global today_sales
    ON COMMIT DELETE ROWS
    AS SELECT * FROM Orders WHERE order_date = SYSDATE;

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/tables.htm#i1006400

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_7002.htm#i2153132

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_7002.htm#i2153132

    Concerning
    Rajesh

    Published by: Rajesh on June 10, 2010 15:34

  • Can Adobe Pro automatically add the numbers of files?

    In our hospital, we went from Nuance PDF Pro to Adobe Acrobat IX.  The largest surface that we cannot defeat is defining the Adobe as our default printer and sequencing automatically files.  In the PDF of Nuance (DocuCom and ScanSoft) printer drivers, we have been able to change the properties to automatically add flight numbers.  We spent many hours with our support technical (we are a huge institution in many States and countries) and they do not have a solution.  We travel options, is there a way for Adobe Acrobat Pro, put on the numbers that we run PDF print multiple files?  We have not found anything in the literature or by trial and error.

    I assume you mean the creation of PDFs by printing to the Adobe PDF, PostScript printer driver instance, correct?

    If Yes, this instance of printer driver creates a default file to PDF on the base name of the %% Title line comment placed in the PostScript file by the Windows PostScript driver. You can of course change this to what you want in the dialog box file presented to you for the location for the placement of the PDF file.

    What being doesn't say, there is no possibility of embedding to create numbers end automatic or in the case of duplicate file names, either unconditionally.

    If you have an application of your own which is printing with the PostScript driver, programmatically, you can probably force a new name with continuously moving numbers when calling GDI to start the printing process.

    -Dov

  • Automatically add the blocks of text or pages

    Greetings,

    I would like to know if it is possible for InDesign (either automatically or by script) to add any columns or pages if the content exceeds the width/height of the text frame.

    overlaping text frame.png

    The content is imported via the import option in XML format. My layout is composed of 6 columns per page. When I import the xml into the gray text block, the framework grows in height that overlap the next block of text instead of "push," as I want it too. It is the same for the other blocks of text.

    Is it possible to automatically add text blocks to fit the content and/or the pages?

    That's what I mean, but you will need to click on a place that does not already have a block of text (a new page or an empty column) and autoflow will add as many pages as needed from there.

  • Orchestrator how Automatic Add the computer to the specific ORGANIZATIONAL unit and edit the Description of the computer

    Hello

    We use VMware Orchestrator to clone sysprep VM templates, and join the virtual machine to the domain.

    The problem is that we cannot find a function in Orchestrator to join VM to the specific ORGANIZATIONAL unit and edit the description of the computer.

    Our workflow built sysprep on the fly so that we can not add a command in sysprep to join the specific ORGANIZATIONAL unit

    Plugin installed:

    • VIX
    • Active Directory

    Example workflow:workflow.png

    Any ideas how to set up our requirements in the workflow

    Hello

    Over the past two months, I learned Orchestrator and built a large workflow highly customized for the automation of windows and linux deployments of models.  We are also in two different datacenters which each have their own ORGANIZATIONAL unit in AD.  The solution I use is "dsadd computer" (http://technet.microsoft.com/en-us/library/cc754539 (WS.10) .aspx) and then then I execute 'netdom' on Windows OS which adds the server to the domain and reboot.

    I use sysprep for the IP configuration, etc., but don't not to join the server to the domain.  Once sysprep is finished I execute the following code to add the computer object to the specific ORGANIZATIONAL unit:

    var cmdText = "cmd/c";
    "var = cmdLine" dsadd computer------"" + att_AD_OUPath + "------"-desc------"" + arg_in_AD_ComputerDescription + "\" - u "+ att_domainUser + '-p' + att_domainPass;

    order = new order (cmdText + cmdLine);
    returnCode = command.execute (true);

    If (returnCode == 0)
    {
    System.log ("computer" "+ arg_in_serverName +" has been added to the domain");
    }
    on the other
    {
    throw "error adding computer '" + arg_in_serverName + "' to the field."
    System.Error ("error adding computer '" + arg_in_serverName + "' field.");
    }

    Installation program:

    • Standalone Orchestrator installed on Server 2008
    • Active Directory Domain Services role installed on the server Orchestrator

    I hope this helps!

    Post edited by: robrtb12

  • Automatically add the word "immediately" after a title

    Is it possible to add the word "suite" automatically after a chapter title, on page 2, 3, etc.

    You need to have different master pages

    A master for the first page with the title on the subject

    then to duplicate A template to Master B

    On the Master B change the text block and insert 'suite '.

    You need to apply a Master to the first page, then B Master on the following pages.

  • Firefox automatically adds the port number in the address bar when it is not.

    I work for an ISP company that implements regular routers for a customer locations. One of the things I need to change about it is to assign the management port 8080. For example, 192.168.0.1:8080. Once I try to install a new router that Firefox automatically assume I want to go to the same port 8080 and automatically concludes for me. Since the new router has not been configured with the 8080, yet I can't. So basically I would like to see if I can stop Firefox automatically enter this bit of information. It is very annoying and even more annoying that I have to use another browser to make changes since Firefox can not. I found a similar fix posted when Firefox will automatically ".www" but which did not fix my problem.

    Disable the URL bar auto-complete feature. You can always select an address already used by the arrows down on the drop-down list of AutoComplete, but Firefox won't add characters to the URL as you type. Here's how:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search box that appears above the list, type or paste the filling and make a break while the list is filtered

    (3) double-click the browser.urlbar.autoFill preference to change its value from true to false.

    Who help me?

  • Automatically add the MCU recorded lectures

    Hi all

    When you create a conference call between and endpoint and a registration server, the MCU should be automatically added to these conferences. At present, the MCU will only add itself when the particular codec models are currently in use.

    for example

    Click new conference, add ONE of the following, codec models

    1700MXP
    770mxp
    880MXP
    Edge 95MXP
    3000MXP

    Add TCS registration server and it WORKS, the MCU is automatically added. This allows us to customize the page layout (we generally to mute the video of the CSTC). See green arrow in the attached jpeg.

    Repeat the process on any of these models.

    C40
    SX80
    SX20
    C20
    EX60
    Polycom HDX 8000 HD
    6000MXP

    Now, it fails. The MCU not will automatically itself add to the Conference. See the red arrow in the attached jpg.

    Any ideas? The only thing that I know so far is that its broad base of model of endpoint. I have searched on the parameters of MCU, MSDS etc but can't find anything related to this at all.

    Thank you very much

    Rhys

    Don't know why the MCU is automatically added for some endpoints and not others without knowing more about the configuration keys and the option on the endpoints.

    If you want the MCU to always add to scheduled conferences, you must set the following options under administrative tools > Configuration > conference settings:

    1. External MCU use in routing: always
    2. MCU route Type preferred: Cisco TelePresence MCU

    The configuration of this setting is the only way to ensure an MCU is always included, please note that this is a system wide setting and will affect all scheduled conferences regardless of the number of participants and who they are.  If you wish, you can also set the first option above 'Always, except for point to point', which will allow you to choose when the SCM must be used if you have rather a choice between point-to-point and multipoint calls using the MCU.

  • The name already exists error when you try to add the host to the cluster

    I created a cluster that currently has no inside host. When I try to add a host I get an error that says: "the name"ip address of the host, I add"already exists. I don't understand why I get this error if there is no showing on the cluster host. See below for the screenshot.

    Your screen shot shows hosts is already part of the inventory - if the host is already part of the theinventory have not need to add it again - simply drag and drop it into the cluster

  • How to automatically add the line number in the query

    Hello

    Can anyone please glimpses me the path to achieve this?

    I want to write a query that will search the record based on the line number in the result set.
    Let's say I have 500 rows in the employee table, but I want to put a condition on request where will see record only between 100 to 200 line number in the result set.



    Thank you
    Madam.

    It is wrong to say that look for the lines between ROWNUM 100 to 200 unless you define a column of lines must be ordered.

    Oracle does not guarantee that the lines will be be returned in the same order if you run the query several times without defining the ORDER BY clause.

    So first decide on what columns you want to order the files and then use the rownum to assign the line number and then get the records you want.

    something like that

    SQL>SELECT *
      2    FROM ( SELECT e.*
      3                 ,ROW_NUMBER() OVER (ORDER BY sal)  row_num
      4             FROM emp  e
      5         )
      6   WHERE row_num BETWEEN 5 AND 10;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO    ROW_NUM
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- ----------
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30          5
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10          6
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30          7
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30          8
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10          9
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30         10
    
    6 rows selected.
    
    SQL>
    

    Concerning
    Arun

  • How to automatically add the version number in the javadoc

    Can JDeveloper add automatically the version number to the javadoc for all project files comments when we commit the code to a repository, say SVN? Is it possible to do? Thank you.

    Hello

    JDeveloper, does not, but can of Subversion. You can use the special keyword ($Rev$) in your javadoc comment and then configure the properties subversion so that SVN which will replace with the revision number when you commit your changes. [url http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html] The docs for Subversion explain how to do this.

    John

  • Cannot automatically add the extension

    PES 9 on Mac. I can't the value in "Preferences", "Always" add the extension. I always chose "add extension" then press OK, but he's still to add 'never'. Can anyone help?

    The consequence is that you will have to redo all the changes to the PSE interface, as if you shot things of the location of the Panel, for example. You will be not able to change anything, because the preferences file restores when you restart Publisher. Everything you do some of the parameters of PES is back to where they were when you started for the first time there.

  • You can automatically add the same CSS markup to each HTML export?

    I created prototypes of web page, not true web pages that serve as a clickable Visual AIDS for our design discussions.

    I wish that all my html pages of prototope to export from Fireworks CS4 without on top and left margins.  Is it possible to make it always insert a link to a style sheet or insert this style:

    < style type = "text/css" >
    <!--
    body {margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;}
    padding: 0; }
    ->
    < / style >

    in each html page, it exports?

    Yes, oddly.

    This was irritating the bejeezers out of me, so I got confused in the bowels of the application files and found the docs used by Firworks to genetrate the HTML code. they can be found here:

    C:\Program Files\Adobe\Adobe Fireworks CS4\Configuration\HTML Code\

    I default to export HTML Dreamweaver thingy, so I opened the Dreamweaver folder and found a file named:

    SLICES. XTT

    First thing, make a copy of such and name it old_SLICES. XTT or whatever, in case you inadvertanlty something to spoil...

    Then open the original in Notepad and look for this string:

    Close the body tag.

    Just below this line, insert these three lines:

    WRITE_HTML(" ");

    Save and export. Voila!

    HTH

    -Ted

    Here this is a little closer:

    ("If (i > 0) WRITE_HTML (" ");") ;
    Hey!  the order here is very important.  We must put the call to MM_preloadImages() first
    because the javascript in FWLoadInit might return or cause any javascript syntax errors
    the following! (ajf - 27/03/2002)
    WRITE_HTML (FWLoadInit);
    WRITE_HTML("\"");
    }
    WRITE_HTML(">\n");    Close the body tag.
       
    WRITE_HTML(" ");

    }

    function WriteStyleSheets (curSlices, indent, topLevel) {}
    var curCol;
    var curRow;
    var prevTop = 0;
    var prevLeft = 0;

  • Cannot add the partition to an existing table.

    Hello

    I don't add the partition to an existing table that is not partitioned, get the error as a type of data not valid, then I'm not find syntax errors.

    ALTER TABLE MESSAGEX_XCHANGE

    ADD THE PARTITION OF RANGE (LAST_MODIFY_TIMESTAMP)

    (

    PARTITION old_data VALUES LESS THAN (To_TIMESTAMP('27/02/2014','DD/MM/YYYY')),

    You see for VALUES LESS THAN (To_TIMESTAMP('28/02/2014','DD/MM/YYYY')) of the PARTITION

    );

    Error report:

    SQL error: ORA-00902: invalid data type

    1. 00000 - "invalid data type".

    * Cause:

    * Action:

    Thank you

    Manon...

    You get this error because your edit statement has an invalid syntax. In addition, you cannot partition a table that is not already configured for partitioning!

    You have to physically re-create the partitioned table in order to add new partitions to it.

  • How to stop the logic to automatically add events midi Volume/Pan

    Hello

    How can I prevent the Logic Pro X automatically add the volume/pan events whenever I cut a clip into two?

    I have a volume/pan at the beginning of each track event and sometimes I want to just insert new midi events existing in-between, so I cut the clip, the second part of move to the right and the record or paste my new events.

    The problem is that LPX is insert automatically the events of volume/pan at the beginning of the clip cut and then, when I join these clips, I have many events unwanted volume/pan

    How can I stop doing that?

    Version LPX is 10.2.1

    Thank you!

    Just figured it out myself

    "Go to Midi - project settings - file and uncheck the box 'Change of order 7/10...' under the ' send after loading project" section.

Maybe you are looking for