Move a table from one table space to another tablespace and different table

Hi,
I have a 60gb table nearly 200 million records in it and the table has range partition.
inorder to archive this table we have created 3 different tables and 3 different tablespaces for the tables.
I want to move certain partitions to tableA and certain partitions to tableB and on to tableC and on the top i'm creating a view to access these 3 tables.
Is there any technique to move the partition wise data to different tables. is there any new technique in 11g database?
The database is 11gr1
linux rhel5 x-86-64
Edited by: user8894072 on Oct 12, 2010 2:03 PM

if i do that like each partition has some millions of records. and the undotablespace is filling out and also the temp table space is filling out. The performance is very very poor if i use the create statement.
Insert INTO TableA (select * FROM <BASETABLE> where pay_end_dt between '01-Jan-1999' and '31-Dec-2005')
the above statement is also degrading the performance. I just need the synatx to move the partioned wise data to new table.

Similar Messages

  • How to copy a table from one text frame to another...

    Is there a way to copy a table from one text frame to another? I'm using JavaScript. The following will move a table from one text frame to another, but I need to copy.
    var srcFrame = document.textFrames.item("section-template");
    var dstFrame = document.textFrames.item("test");
    srcFrame.characters[0].move(LocationOptions.before, dstFrame.insertionPoints[0]);
    Thanks,
    Mike-

    Hi Bhupinder,
    According to your description, you want to copy a table with Primary keys from one database to another database.
    As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
    Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
    To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
    and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
    References:
    Transfer SQL Server Objects Task
    Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to transfer the tables from one file group to another file group in SQL 2008.?

    Hello all,
    I have few issues regarding the transfer of the tables from one file group to another file group  in SQL 2008 and also How can we  backup
    and restore the particular database based on file group level.
    Let’s say I have a tables stored within the different FG. such as
    Tables                                                    
      File group
    Dimension tables                                              
                                                                     Primary
    Fact tables                                               
                                                                              FG1
               FG2…
    zzz_tables                                               
                                                                              DEFAULT_FG    
    dim.table1                                                                                                                          DEFAULT_FG
    dim.table2                                                                                                                          DEFAULT_FG
    Here all I want to transfer the dim.table1 ,dim.table2  from  DEFAULT_FG to the Primary File
    group .So is there simple methods for transfer the dim.table1,2  from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
    Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing  the Primary and FG1,FG2… not
    a DEFAULT_FG.Is it possible or not.?
    Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
    Regards,
    Anil Maharjan

    Well after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
    us feel really happy after all our research and hard work doesn't goes as waste.
    Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
    having clustered index on that tables .
    With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
    Really thanks to him for his great post and thanks to all for your response and your valuable time.
    http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
    Regards,
    Anil Maharjan

  • Can I move/copy songs from one itunes account to another itunes account on the same iMac?

    Can I move/copy songs from one itunes account to another itunes account on the same iMac?

    You move the song files to /Users/Shared/ and then into iTunes from the other Mac OS X user account.
    If you want to change the iTunes Store account associated with them, you need to redownload them from that account.
    (60812)

  • How can I move purchased apps from one itunes account to another account?

    How can I move purchased apps from one itunes account to another account?

    You can't. The apps must be purchased separately.

  • Is there a way to move photos directly from one iPhoto library to another iPhoto library?

    Is there a way to move photos directly from one iPhoto library to another iPhoto library?

    Not using iPhoto - Aperture can or iPhoto Library Manager can
    LN

  • Hi I have 2 apple id's one which has pulled through everything except my calendars and one which has pulled through just my calendars. How do I move my calendars from one apple id to another?

    Hi I have 2 apple id's one which has pulled through everything into icloud except my calendars and one which has pulled through just my calendars. How do I move my calendars from one apple id to another so that I can see everything in icloud with one apple id?

    Having read some other posts I think I have answered my question. If I was somehow able to terminate my old (unwanted) account and Apple ID I would no longer be able to access the material I bought with that ID-  so I'm stuck. I have to learn how to manage that situation.
    This is unfortunate for Apple consumers. Life is complicated for families these days and this "rule" although it is in place to prevent cheating and fraud makes things unnnecessarily difficult for me and my family as in my niaevity (sic) with the online world I bumbled into this situation. Not everyone is out to rip off Apple - one of the worlds richest corporations- or the entertainers who market their work through iTunes.I would just like to be able to enjoy the entertainment I pay for where and when I like to on whichever computer is available to me. And I'm not terribly computer literate.   
    It would have been nice to have had the opportunity to speak just once to a real person in the employ of Apple to explain my situation to them.

  • How do i move a picture from one pdf-file to another already created pdf-file with adobe reader?

    How do I move a picture from one pdf-file to another, already created pdf-file, with adobe reader?

    Reader doesn't have editing capabilities.

  • Transferring an Internal table from one Function Module to another

    Hi,
    I need to transfer an Internal Table from one FM to another. I've tried the statements IMPORT IT from Memory ID and EXPORT IT to Memory ID, but this is not working. I think the reason is different session or diff LUW, I can not use SET and GET Parametr syntax, as I will not be able to pass Internal Tables through it.
    Can any1 please give a solution on this? 
    Cheers
    Abhishek

    I'd agree with April that the easiest way to pass data directly from FM1 to FM2 is via "tables", but what is your overall code structure i.e. are you going:
    Program
      Call Function FM1
    back to Program
      Call Function FM1
    or are you going:
    Program
      Call Function FM1
        Call Function FM2 from FM1
    In either case, I would expect the export / import to be working fine, at least it seem to when I tried it using:
    export lt_data from lt_data to memory id 'Z:1234'.
    import lt_data to lt_data from memory id 'Z:1234'.
    Jonathan

  • How do i move a file from one external drive to another

    This is my first Mac computer and I have no idea how to move/copy a file from one external hard drive to another? It won't let me drag and drop from one Finder window to another and there is no copy/paste option on the left mouse click.

    mediamagnate03 wrote:
    This is my first Mac computer and I have no idea how to move/copy a file from one external hard drive to another? It won't let me drag and drop from one Finder window to another and there is no copy/paste option on the left mouse click.
    That is because it is on the Right Click, and the menu.

  • Move Protection Group from One DPM server to another DPM server

    Hi Mike,
    Can we move Protection Group from one DPM 2012 SP1 to another DPM 2012 R2 version? If yes then what is the steps to perform that. Also i am running DPM servers with co-located and non-colocated configuration. What would be best as per best practice? Because
    my 95% backup are SQL backups.

    Hi,
    There are no provisions in DPM to move protection groups or protected data sources to a new DPM server and maintain the recovery points.  The best you can do is to stop protection on DPM1 and retain the replica, then run the setdpmserver.exe on the
    protected server and point it the DPM2 server. On DPM2, run the attach-productionserver.ps1 script to establish agent communications, then make new protection groups and re-protect the same data sources.  After the retention goals are met, delete
    the replica from under inactive protection group on DPM1.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Best way to move redo log from one disk group to another in ASM?

    Hi All,
    Our db is 10.2.0.3 RAC db. And database servers are window 2003 server.
    We need to move more than 50 redo logs (some are regular and some are standby) which are not redundant from one disk group to another. Say we need to move from disk group 1 to 2. Here are the options we are thinking about but not sure which one is the best from easiness and safety prospective.
    Thank you very much for your help in advance.
    Shirley
    Option 1:
    1)     shutdown immediate
    2)     copy log files from disk group 1 to disk group2 using RMAN (need to research on this)
    3)     startup mount
    4)     alter database rename file ….
    5)     Open database open
    6)     delete the redo files from disk group 1 in ASM (how?)
    Option 2:
    1)     create a set of redo log groups in disk group 2
    2)     drop the redo log groups in disk group 1 when they are inactive and have been archived
    3)     delete the redo files associated with those dropped groups from disk group 1 (how?) (According to Oracle menu: when you drop the redo log group the operating system files are not deleted and you need to manually delete those files)
    Option 3:
    1)     create a set of redo members in disk group 2 for each redo log group in disk group 1
    2)     drop the redo log memebers in disk group 1
    3)     delete the redo files from disk group 1 associated with the dropped members

    Absolutely not, they are not even remotely similar concepts.
    OMF: Oracle Managed Files. It is an RDMBS feature, no matter what your storage technology is, Oracle will take care of file naming and location, you only have to define the size of a file, and in the case of a tablespace on an OMF DB Configuration you only need to issue a command similar to this:
    CREATE TABLESPACE <TSName>; So the OMF environment creates an autoextensible datafile at the predefined location with 100M by default as its initial size.
    On ASM it should only be required to specify '+DGroupName' as the datafile or redo log file argument so it can be fully managed by ASM.
    EMC. http://www.emc.com No further commens on it.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Looking for a way to move entire pages from one photo book into another photo book.

    I haven't found out how to move pages from one photo book into another. Surely this is possible?
    Also on the subject of photo books: it seems that it is not possible to enlarge the size of a text box. Or has anyone found a way to accomodate more than 1 line of text on a photo book page?

    You can look through some of the different Layouts available.
    Select your page.
    Click the "Layout" icon on the lower right hand of the application window.
    Above it will appear a "BACKGROUND" section and a "LAYOUT" section.
    Immediately below the "LAYOUT" is a drop down menu which will show you all the different options.

  • How to Move Music Library from one external HD to another

    I had about 60GB of music on an external hard drive, nicely organized and "linked to" from iTunes (just upgraded to version 5). I recently purchased a larger external hard drive and basically copied the contents of my older external drive to the new one, preserving all folder structures from the root of the drives down (but the name of the drive itself is different.) I was hoping I could just do a search/replace of the "iTunes Music Library.xml" file in my Music/iTunes folder, to replace the name of the old drive (volume) with the new one. I did, and iTunes launches fine, preserving my playlists, song ratings, etc... but whenever I try to play any of the songs, it says it can't find it (I can manually point iTunes to it, but I don't want to do that for 15,000 songs...) Strange thing, though, is that if I quit out of iTunes and re-open the Library XML file, all the paths have been reset to their original location!! What am I missing? Thanks in advance,
    Jesse

    I just want to add that the iTunes folder (with the library xml file and such) is on my local hard drive, in the typical Music/iTunes location. I don't want to simply re-import the songs 'cuz I'd lose playlist contents and ratings, and I don't want to "consolidate" the library because I want to keep my music folders and filenames as I currently have them. Basically, I just want iTunes to realize the songs have simply changed location from one external drive to another... thanks again.

  • How to export a table from one oracle server to another oracle server?

    Hi experts,
    Scenario : Copying table T1 from Server1 to Server2.
    Can I follow any of the following two options. Please advise if these options would be feasible under the current scenario.
    1) Create the same table T1 in Server2. Export the values of T1 in Server1 to an Excel sheet. Make the Excel sheet as source and import the values of the excel sheet to table T1 in Server2.
    2) Use an ETL tool like Oracle Warehouse builder to extract and load the values in T1 in Server1 to T1 in Server2.
    Can we schedule both option1 & 2 as a job in Oracle Warehouse Builder? The job will have 2 steps :-
    a) Delete all rows in T1 (Server2).
    b) Insert the values from T1(Server1) to T1(Server2).
    Please advise.
    Thanks,
    Debashish

    Can you exactly explain a little bit more what is the actual requirement.
    Just to kick off the things..
    In case:
    1) you just need to create a table based on another table in same schema. Its as simple as : create table table2 as (select * from table1)
    2) table1 is on remote db then
    create table table2 as (select * from table1@yourdblink)
    3) Need to export and import table1 refer this link :
    http://wiki.oracle.com/page/Oracle+export+and+import+?t=anon
    4) Need to refresh table periodically either schedule a job or create materialized view refer to this link :
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm
    Choose an approach. Then try it and see what errors you get, In case you get errors search on internet for that error code and how to resolve that and in case need any help post it here. But key is understanding first what exactly your requirement is and which approach you need/want to follow.

Maybe you are looking for

  • CES 2013 and items that will change the way you enjoy your Programming.

    I was able to take time off from work this year, and spend it at the CES 2013 with Verizon in Las Vegas. The things that I was able to see opened my eyes to the future of video entertainment. As a Verizon customer and a Community Leader, I am very pl

  • In Search of a Quiet External Burner

    Now that my internal super drive is failing, I'm considering a more robust external burner as a back-up to my internal burner (which is still under waranty and will be replaced). In the past, the external burners I've had were quite loud. The LaCie I

  • How To Adjust the a Pool's MaxPoolSize in resource xml DD.

    For registering a JDBC data source via the XML resouce descriptor, is there a way to specify pooling properties (e.g. MaxPoolSize)? We typically use iasdeploy to register data sources and have restrictions about using iAS admin ui. So if there is a w

  • How can I find Application Name/ EAR Name in runtime

    Hi, We need to log the Application Name and Name of the EAR. Is there a way to find these names runtime. Thanks, RK

  • ExecuteUpdate error

    Hi Im having a stupid little error and cant see what it is that is causing it. Im trying to set up an admin to allow user to update values in the DB of an application. However, I was using the executeQuery statement and getting the NoResultSet found