Partitioning the database from the most recent to the last partitioned

Hi everyone
We have a huge database which is partitioned based on datetime column and for each month. The last partition that we have on it was for 12/1/2013. And since then we have accumulated data with millions of rows already till 3/1/2015.
We want to continue to add partitions for the next two years to it now.
Since splitting the last partition from 12/1/2013 to 1/1/2014 is pretty painful and then to split 1/1/2014 to 2/1/2014, We were thinking if there is a way to split from the back. Like add a partition for 2/1/2015 so that data for Feb only
goes there and the 1/1/2015 and then making our way back to 1/1/2014.
So far I have a script for going from 12/1/2013 to 1/1/2014 and the 1/1/2014 to 2/1/2014. Something like this
ALTER
PARTITION SCHEME MonthlyPartitionScheme
NEXT
USED [PRIMARY]
GO
ALTER
PARTITION
FUNCTION PartitionByMonth()
SPLIT
RANGE
('1/1/2014')
Go
ALTER
PARTITION SCHEME MonthlyPartitionScheme
NEXT
USED [PRIMARY]
GO
ALTER
PARTITION
FUNCTION PartitionByMonth()
SPLIT
RANGE
('2/1/2014')
Go
How can I change to make it work backwards from 2/1/2015 to 1/1/2015 and then 1/1/2015 to 12/1/2014 and so on. I am looking at more resources online, any help with this would be appreciated.
Thanks much
-Sarah

yes, i also think merge partition maybe can help you solve problem, you want to move some data to a new partition, so i also suggest you to use this one way, because splitting partition is time-consuming. Once i read one article, which can do this task,
more information click here:
how to merge partitions. It seems some partition software can do this, some reviews like:  http://dottech.org/95676/windows-best-free-partition-and-disk-manager-review  among them, i used aomei partition assistant, its server version is supported
in server OS, maybe it is useful for you.You also can use another partition manager, merge partitions instead of splitting partition. 

Similar Messages

  • Guys, good evenning! What is the most recently (or the best) iOS for the iphone 3G? Nowadays, i am using the 4.2.1 but i am having some problems to install apps from Apple Store because this iOS is not compatible with the apps. Thank You...

    Guys, good evening!
    What is the most recently (or the best) iOS for the iphone 3G?
    Nowadays, I'm using the 4.2.1, but I'm having some problems to install apps from Apple Store because this iOS is not compatible with the apps.
    Thank you very much...

    Thank You Niel!
    And if I install another version (eg 4.3), can I damage my iphone?
    This is the version required by the Apple Store when I try to install apps.
    For you understand better my problem, I'm not able to install simple apps like facebook and skype
    What do you advise me to do?
    Best regards,
    Jocemar

  • Can application know the location of its most recent cached *jnlp* file?

    Can an application know if it was launched by clicking on the hyperlink in a web page, or whether it was launched from the shortcut on the desktop?
    Alternatively, Can the application know the location of its most recent cached jnlp file on the desktop?
    To take a specific example, let's say I have a word processor, My Word that is deployed using Web Start. It can view documents on the web and must also work offline to view local documents.
    When a user clicks the hyperlink to the doc, say,
    myParty Open the myParty document
    then myParty.jnlp launches My Word, opening the myParty.txt file.
    Since there is no way to pass arguments dynamically, one must have a jnlp file for each doc.
    So myParty.jnlp has the url of the doc hardcoded in it.
    <application-desc main-class="MyWord">
    <argument>http://www.MySite.com/myParty.doc</argument>
    </application-desc>
    The problem is that apparently Web Start uses the most recent jnlp each time it is launched.
    So that if the file has moved, or if one is offline, then the application hangs because it is trying to open the same document, regardless of whether MyWord was launched by clicking on the hyperlink in a web page - in which case this would be appropriate - or whether it was launched from the shortcut on the desktop - inappropriate here.
    As a workaround, I was wondering - where is the jnlp file stored on the local desktop?
    If the application could find the most recent jnlp, then it could rewrite it (after it was opened the first time) with an identical jnlp that has no application-desc arguments.
    Then when the user runs from the shortcut on the desktop, it will launch without a document to open.
    Any help appreciated.
    thanks,
    Anil Philip
    Are you planning to kill yourself? Stop! listen to this song
    broadband version: http://www.youtube.com/watch?v=pLHHB4YZucI
    dial-up version: http://www.youtube.com/watch?v=xL5WyBenUpM

    1) To make it more complicated, it seems that the browser also does the caching.
    2) I could not find the jnlp as a file on the desktop, so I suspect that is stored in some database. Is there any way the application can write to it or any api to simply allow the application to change the arguments?
    3) It is not an option to use jnlpservlet as the document can be placed anywhere and not just on a webserver under our control.
    Edited by: anilp1 on Mar 20, 2009 9:40 PM

  • How to recovery the database from a complete backup

    I have a 10.2.0.3 database with archive log enabled.
    I do a cold backup of database every Sunday night.
    I shutdown the database, copy all the database files, control files and redo logs to a backup disk.
    Then the database started and running again.
    I am trying to test my backup and make sure I can recovery the database to the most current stage using the Sunday backup and the archive logs.
    for example: use the backup from 4/01/2012, recover the database to today 4/04/2012 9:00am.
    What's the steps of doing this?
    I tried to copy all the Sunday backup files to the correct location, start the database, the database is started successfully. However, I don't know how to apply the logs from since the Sunday backup upto now.
    Thanks a lot!

    hi,
    rman is your friend to do backups, restores and recovers of database.
    to do a full recover of database, for example to do a test on your current test database (no in crash):
    rman time:
    startup nomount;
    restore controlfile;
    alter database mount;
    sql now
    select archivelog_change#-1 from v$database;
    then go back to rman and do the following :
    RMAN> run{
    2> set until scn xxxxxx;
    3> restore database;
    4> recover database;
    5> alter database open resetlogs;
    6> }
    **where xxxxx is the result of your sql query
    HTH
    --edit:
    forgot to told that You will need to set your ORACLE_HOME and ORACLE_SID env variables
    Edited by: Me_101 on 04-abr-2012 8:41

  • When connect the Database from Toad , Sqlplus giving the error

    when connect the Database from Toad , Sqlplus giving the error
    recent changes 12.1.1 installatiojn
    Oracle SQL plus encountered a problem and needs to close we are sorry for convenienvce
    Oracle Forms Designner has encountered a probloem and needs to close we are sorry for the convenience
    Thanks & Regards,
    sree

    when connect the Database from Toad , Sqlplus giving the error recent changes 12.1.1 installatiojnHave you tried using the same user via simple sqlplus on the database server or apps tier server itself? Please try the same database user/login on the database server using the sqlplus available on the server itself. See what message do you get. If the the login happens, then try with the tns entry e.g. sqlplus username/password@prod and see if that works on the db server. If both of these conditions work the check where is Toad picking up the tns entry from on the client pc/laptop. If first test fails, then check if the account is locked.
    Hope this helps.

  • Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoyi

    Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoying. What happened? Internet Explorer 8.0 did the same thing. This was one of the reasons why I started using Firefox to download all images. I went into Tools>Options and it only lets me set another folder. I dont want to set a specific folder I want it to always go to the last folder used. So what gives?
    == This happened ==
    Every time Firefox opened
    == possibly when the most recent updates were installed, a few days ago

    Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.
    So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

  • ORA-03113: Error while upgrading the Database from 11.1.0.6 to 11.1.0.7

    Hi,
    I am trying to upgrade the database from 11.1.0.6 to 11.1.0.7 on OEL operating system.
    After applying the patch "6890831" when trying to start the database using "Startup Upgrade" command I am getting the below error.
    ORA-03113: end-of-file on communication channel
    Process ID: 20826
    Session ID: 170 Serial number: 3
    I am getting the same error when trying to create the new database using "DBCA".
    Please provide me the probable outcomes.
    Thanks
    Amith

    Below entries found in alert_orcl.log file
    MMNL started with pid=15, OS id=20571
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /u01/app/oracle
    Thu Dec 03 20:11:11 2009
    ALTER DATABASE MOUNT
    Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_mman_20557.trc:
    ORA-27103: internal error
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    Additional information: -1
    Additional information: 1
    MMAN (ospid: 20557): terminating the instance due to error 27103
    Instance terminated by MMAN, pid = 20557
    Below entries found in the Trace file generated
    error 27103 detected in background process
    ORA-27103: internal error
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    Additional information: -1
    Additional information: 1
    *** 2009-12-03 20:11:14.727
    MMAN (ospid: 20557): terminating the instance due to error 27103

  • Upgrading the database from Oracle 8.0.6 to Oracle 9.2.0

    Dear SDN,
    We are in the process of upgrading SAP 4.6b to 4.7 R/3 Enterprise.
    Source Release:Windows 2000/Oracle 8.0.6/SAP 4.6b
    Target Release:Windows 2000/Oracle 9.2.0/SAP R/3 4.7
    Can anyone help us in explaining the procedure for upgrading the database from Oracle 8.0.6 to Oracle 9.2.0.
    Thanks n Regards ,
    Anantha Raman E.

    Thanks Mr.Mohan
        We tried to upgrade from 8.0.6 to 8.1.7 with the help of Inst Guides from service market place..the thing is we created another oracle home with new DBSID ither than the old DBSID...when we started the migration using 8.1.7 Data migration tool its not responding after the first phase CHECKING THE OLD DATABASE...
    Pls help us in this regard
    Whether we have to migrate or what...

  • I recently bought a MacBook Air.  I migrated the info from my old MacBook to the new Air.  None of my contacts migrated.  I still have them on my old Macbook, Ipad and iPhone.  How do I get them to the new Air?

    I recently bought a MacBook Air.  I migrated the info from my old MacBook to the new Air.  None of my contacts migrated.  I still have them on my old Macbook, Ipad and iPhone.  How do I get them to the new Air?

    You can copy the iWeb application from the desktop machine to your new MBA.  But if it's iWeb 2 it won't work with Mavericks or Mt. Lion. Also  copy the Domain.sites file from the desktop to your MBA as that's the file with your webstite files in it.
    Happy New Year

  • Get the data  from excel and insert into the database

    I want to read the data from excel file, get the data from excel and insert into the database.

    You can use the Apache POI HSSF API to read data from Excel files and you can use the Sun JDBC API to insert data in database.
    This has nothing to do with JSP/JSTL.

  • How to upload files/images to the database from a form.

    I'm making a custom user profile form.
    The users can update their profile in this form.
    I cannot use the standard profile form, because the customer got very specific
    demands about the context of the profile form.
    In this custom profile form the user must be able to upload an image
    from their hard disk(just like in the standard profile form).
    I've got the following questions about uploading pictures:
    - How do I make a button to show the explorer window.
    - how do I get the chooses file-name in a field.
    - how do I get the new file in the database.
    - how do I get rid of an old file in the database.
    - how do I get the image on the form.
    Or is there a special portal way to upload images/files in a form.
    Does anyone have a clue?
    regards
    arny

    Hi,
    Regular Portal forms will support upload of images/documents to the database. Just identify your column as a blob, and the 'Browse' button will automatically show up in the form and the users will get to choose the file they want to upload from their desktop.
    The thing is, I haven't been able to figure out how to get that document/image back out of the database (e.g. in a report), once it's put in. Maybe someone else can answer that.

  • Migration of the database from Microsoft SQL 2014 Express to Microsoft SQL 2012 Server

    I posted a similar thread yesterday, and I realized that there was a serious typo.
    Link: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b3e201ea-6c7c-43a4-8908-842b714ea451/migration-of-the-database-from-microsoft-sql-2014-express-to-microsoft-sql-2012-server?forum=sqlservermigration
    Therefore, I made a decision to post another thread right now.
    I am
    writing to ask if there are any known issues when migration from MS SQL 2014 Express to MS SQL 2012 Server version. Are there any step-by-step instruction on how I can go about doing this?
    Looking forward to your response. Thank you for your time.
    Regards,
    Jeff Yoo 

    Hello,
    SQL Server 2012 setup program won’t allow you to perform a downgrade from SQL Server 2014 Express Edition. Backup/Restore
    and Detach/Attach won’t help you either.
    One option you have left is using SQL Server Import/Export Wizard as explained on the following article.
    http://www.mytechmantra.com/LearnSQLServer/Downgrade_SQL_Server_Database_P1.html
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Resore the database from Tape to a new directory

    Hi
    can i use rman to resore the database from Tape to a new directory (not the database directories)
    is that will work
    run{
    allocate channel.....
    restore database to 'path';}
    Thanks for any contribution

    This will not work.
    You need to code
    set newname
    commands in your rman script.
    The syntax is
    set newname <filenumber> to '<filename>'
    As far as I recall this is a scenario which is documented in the RMAN documentation for your unknown version of the database.
    Sybrand Bakker
    Senior Oracle DBA

  • How to startup the database from pfile?

    Hi guys.
    hope all of you fine.
    how to startup the database from pfile?
    Thanks.

    You can create pfile from spfile
    SQL>create pfile='/tmp/pfile.ora' from spfile;
    then
    SQL>startup pfile='/tmp/pfile.ora';
    You can edit pfile.ora file and startup your database with this newly changed database parameter using pfile
    And you can define you're using pfile or spfile by issuing:
    SQL> show parameter spfile;

  • I have the latest generation ipad and just purchased an ipad mini but when signing onto the apple store, my most recent app purchases are not visible to download on my new ipad mini i.e. "receipe box"

    i have the latest generation ipad and just purchased an ipad mini but when signing onto the apple store, my most recent app purchases are not visible to download on my new ipad mini i.e. "receipe box".  How can i download onto the new ipad mini without paying again?

    Sign out, reboot and sign in
    Settings>iTunes and App Store>Apple ID

  • All of a sudden my outlook inbox messages are all scrambled by date instead of being sorted by most recent at the top...how do i sort them by most recent at top (which is suppose to be default)

    all of a sudden my outlook inbox messages are all scrambled by date instead of being sorted by most recent at the top...how do i sort them by most recent at top (which is suppose to be default)

    As far as I can tell, there is no way to reverse the sort.

Maybe you are looking for

  • Any one  please correct  this code it is not giving the result as expected.

    class image {      public int[][] data;      public int rows;      public int columns; public class BlurImage { public int function1(image i1,int k,int j,int rad)                int sum=0;                int count=0;                int R=0,G=0,B=0;  

  • Rotated photos still in landscape.

    Hi everyone, I am having a problem when I've used the edit option. Photos which I've rotated, cropped or edited in any way appear only as a landscape thumbnail - all squashed up! I haven't tried to print them but when I put them on my homepage they a

  • Create a melody with Labview/ Function Generator

    Hi (first sorry for poor english, not my native language) I have a project at school which is creating a melody using Labview and a function generator. I've worked on it for hours now and i still can't get through it. I joined the vi file with my pos

  • 10g R2 OLEDB provider

    Hi, we have a client side application, on Windows and Oracle 10g R2. We use OLEDB templates from MFC (CDynamicParameterAccessor). There is a long query (4610 char) what provider return E_UNEXPECTED HRESULT (from execute, before the bind). No detailed

  • How to export in tape

    plz give me detail that how to exporting video in tape