How to move partitions/sub-partitions into a different tablespace?

Hi Uisng oracle 1..20.3 and have a range-hash partitioned table using interval partitioning - code below.
Works fine just one problem.
we wish to move the system geneerated partitions to different tablespaces later and also rename th epartitions.
When try assign partition to a different tablespace get the folloiwng message
alter table por_rt move partition SYS_P2283 tablespace bi_dw_data
get message ora-14257 - cannot move partition other than range,list, system or hash partition.
How can we avoid this.
We we need to move all the subpartitions first?
Tried this
alter table move subpartition SYS_SUBP2269 tablespace bi_dw_data;
but get message ora-01735 message invalid statement
-- Create table
create table POR_RT
  plant_issue_id    NUMBER not null,
  pf_run_num        NUMBER,
  partitioning_date DATE
partition by range (PARTITIONING_DATE)
subpartition by hash (PLANT_ISSUE_ID)
  partition PART_200912 values less than (TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    tablespace BI_SUPPORT_DATA
    pctfree 10
    initrans 1
    maxtrans 255
    subpartition SYS_SUBP2261 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2262 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2263 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2264 tablespace BI_SUPPORT_DATA
  partition PART_201001 values less than (TO_DATE(' 2010-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    tablespace BI_SUPPORT_DATA
    pctfree 10
    initrans 1
    maxtrans 255
    subpartition SYS_SUBP2265 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2266 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2267 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2268 tablespace BI_SUPPORT_DATA
  partition SYS_P2273 values less than (TO_DATE(' 2010-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    tablespace BI_SUPPORT_DATA
    pctfree 10
    initrans 1
    maxtrans 255
    subpartition SYS_SUBP2269 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2270 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2271 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2272 tablespace BI_SUPPORT_DATA
  partition SYS_P2283 values less than (TO_DATE(' 2010-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    tablespace BI_SUPPORT_DATA
    pctfree 10
    initrans 1
    maxtrans 255
    subpartition SYS_SUBP2279 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2280 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2281 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2282 tablespace BI_SUPPORT_DATA
  partition SYS_P2278 values less than (TO_DATE(' 2010-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    tablespace BI_SUPPORT_DATA
    pctfree 10
    initrans 1
    maxtrans 255
    subpartition SYS_SUBP2274 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2275 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2276 tablespace BI_SUPPORT_DATA,
    subpartition SYS_SUBP2277 tablespace BI_SUPPORT_DATA
);Edited by: user5716448 on 22-Mar-2013 04:49

you can not move composite parition directly you need to move subpartition using this statments
alter table <tablename> move subpartition <sub partition name > tablespace <tablespace name>;
than change partition tablespace using
ALTER TABLE <table name> MODIFY DEFAULT ATTRIBUTES FOR PARTITION      <partition name> TABLESPACE <tablespace name>;

Similar Messages

  • How to import partitioned tables in different tablespace

    Hi everyone,
    I try to import the partitioned tables in different tablespace.
    Consider the following situation:
    I have a dump file which is created by using "Export" utility. Some data are in partitioned tables, some of them are in non-partitioned tables. Also, all tables are located in "MYTBS" tablesapce. I try to import all data from this dump file to another database. I didn't get error messages when importing the data from non-partitioned tables. However, I got error message when importing the data from partitioned tables. The error message is: tablespace 'MYTBS' does not exist.
    I just want to how I can solve this problem other than create 'MYTBS' tablespace for my new database.
    Thanks in advance.
    Angel

    Hi,
    I got the following error message:
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "FACILITYCONNECTION",....., "CONNECTIONTYPE" "
    "NUMBER(1, 0) NOT NULL ENABLE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 25"
    "5 PARALLEL ( DEGREE DEFAULT INSTANCES 1) NOLOGGING STORAGE( PCTINCREASE 0) "
    "TABLESPACE "MYTBS" PARTITION BY RANGE ("CONNECTIONTYPE" ) (PARTITION "
    ""EXT" VALUES LESS THAN (1) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 S"
    "TORAGE(INITIAL 65536) TABLESPACE "MYTBS" NOLOGGING, PARTITION "FAC" VA"
    "LUES LESS THAN (2) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
    "NITIAL 65536) TABLESPACE "MYTBS" NOLOGGING )"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'MYTBS' does not exist
    Thanks.
    Angel

  • How to move lobsegment and  lobindex to a different Tablespace

    Oracle Version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Os: Solaris 10
    Hello Everybody,
    I want to move a lobsegment and a lobindex to a differrent tablespace.
    But when i am executing the following statement in order to move the LOBINDEX I am getting the errors listed below:
    SQL> ALTER INDEX SYS_IL0000012358C00008$$ REBUILD TABLESPACE INDX;
    ALTER INDEX SYS_IL0000012358C00008$$ REBUILD TABLESPACE INDX
    ERROR at line 1:
    ORA-02327: cannot create index on expression with datatype LOB
    Is there any differrent commands/methods of moving the LOBSEGMENT/LOBINDEX to a differrent tablespace.
    Any help Appreciated..
    Regards,
    Prosenjit Mukherjee.

    Hi,
    Assuming that I have table "TEST" in USERS TableSpace
    CREATE TABLE TEST
    TEST_ID NUMBER NOT NULL,
    TEST_NAME CLOB,
    CONSTRAINT PK_TEST PRIMARY KEY(TEST_ID)
    SQL> ALTER TABLE TEST MOVE TABLESPACE EXAMPLE;
    Above command will move the table to new tablespace but will not move the CLOB segment and it will still be in original tablespace. This is because LOB data is stored outside of the table.
    Check the tablespace of the CLOB column by issuing following sql.
    SQL> SELECT index_name, tablespace_name
    FROM user_indexes WHERE table_name = ‘TEST’;
    INDEX_NAME TABLESPACE_NAME
    SYS_IL0000073575C00002$$ USERS
    In order to move CLOB column to different tablespace, we have to issue following command.
    SQL> ALTER TABLE TEST MOVE LOB(TEST_NAME) STORE AS (TABLESPACE EXAMPLE);
    In above example, TEST_NAME is the CLOB column which we want to move to new tablespace and EXAMPLE is target tablespace. Above command will successfully move LOB segments to the new tablespace. We can verify it by issuing same sql again.
    SQL> SELECT index_name, tablespace_name
    FROM user_indexes WHERE table_name = ‘TEST’;
    INDEX_NAME TABLESPACE_NAME
    SYS_IL0000073575C00002$$ EXAMPLE
    - Pavan Kumar N

  • How to Move "My Accounts" link into "My Dashboard" link ???????

    Hello Everyone....
    Anybody know this how to move "My Accounts" link into "My Dashboard" link?
    I have a requirement that i have to move "My Accounts" link (which is opening in the new window) to "My Dashboard" link (which has no reports published).
    I need this urgently....
    Thanks in Advance......

    hello kyle....
    Thank You for ur reply..
    we are using the OBIEE 10.1.3.2 version. The My Accounts link url is same like http://<servername>/analytics/saw.dll?UserPreferences&_scid=NBzLHCnJYTE
    The My Dashboard link url is http://<servername>/analytics/saw.dll?Dashboard
    Username: Administrator
    Password: Administrator
    Could you please tell me is any details further required??? if u give me any document or information in this regard it is so helpful to me.
    Thanks....

  • How to move milion of records into another table

    Hello, I would like to know if there is some way how to move large number of rows from one table into another.
    We have several tables storing runtime data. Data older then e.g. 10 days are moved into hitory tables. Currently we do this via pl/sql, but I was wondering if it is possible to do this somehow in SQL only (to make it faster).
    It is not possible to simply rename the tables, we need to move the data.
    Thanks for ideas.

    872553 wrote:
    Hello, I would like to know if there is some way how to move large number of rows from one table into another.
    We have several tables storing runtime data. Data older then e.g. 10 days are moved into hitory tables. Currently we do this via pl/sql, but I was wondering if it is possible to do this somehow in SQL only (to make it faster).
    It is not possible to simply rename the tables, we need to move the data.
    Thanks for ideas.To me looks like a Regular scheduled activity.
    Hence, using DBMS_SCHEDULER should be helpful.
    Create a Procedure to Copy the records from Transaction Table to History Table.
    create or replace procedure copyTransactionToHistory
    is
    begin
      insert /*+ append */ into history_table
      select column_list
        from transaction_table
       where transaction_date = trunc(sysdate) - 10;
      commit;
    end;
    Use DBMS_SCHEDULER to create Job with specified Time Interval (10 Days in your situation). More information and Examples are provided <a href="http://docs.oracle.com/cd/B28359_01/server.111/b28310/schedadmin006.htm#i1009099">Here</a>.There is also a possibilty of using NOLOGGING, but that will be recommended if the activity is not a regular scheduled activity and I do not think it would be a wise option to change the Table mode from LOGGING to NOLOGGING and vice-versa frequently.
    You might also consider options to improve the Data movement.
    1. Disabling Indexes/Constraints, if any, on History table.
    2. Using PARALLEL DML's option
    However, important information viz. your Oracle Version (Output of SELECT * FROM V$VERSION), Number of Records etc. are not mentioned which leaves us with no choice but to assume and suggest what we feel is best.
    Please read and post the information accordingly for us to help you. {message:id=9360002}

  • How to move a tempfile online to a different mountpoint

    Hi,
    I need to move a tempfile online to a different mountpoint
    Can you please tell me the steps
    Thanks
    bsac14

    hi,
    I would recommend the following steps:
    ==============================
    SQL> alter database tempfile '/u01/app/temp02.dbf' drop;
    Database altered.
    SQL> alter tablespace USER_TEMP_1 add tempfile '/oracle/temp03.dbf' size 2M;
    Tablespace altered.
    $ rm /u01/app/temp02.dbf
    ==============================
    i.e. Drop the tempfile and add a new one to the tablespace. Then remove the OS file.
    Hope this helps!

  • Importing data into a different tablespace

    How do we import an user level export file into another user and a different tablespace from the tablespace clause specified in the export file ?
    Thanx in advance
    Abhijit

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to move your b-rolls into (sub-event folder) separate folders or smart collection inside the same event?

    When ever you create an event how can you create folders inside the event for different folders of b-roll?  The reason why I ask is becuase when you create events, there becomes way too many events making a clutter.  I have tried to cut, copy, import, and other ways after creating a smart collection or folder inside an event to create, I guess to say a sub-event inside and event.  But it will only copy the b-roll into the main event only, not the folders or smart collections.  An example would be in class you will have several events for projects, but I want to have one event that is broken up into several folders or smart collections for each project.  Instead of having all 10 of your events open and displayed.  This way you can create an Event Folder named Class Projects, then open up the Class Projects event folder and inside you can have several folders for each of the separate b-rolls for each certain project.  I am wanting to do this instead of having 10 different kinds of b-roll footage all in one event, which is difficult to search through.

    Actually you CAN create folders INSIDE an Event to place keyword/smart/anaysis colletions in.
    Remember, you can apply Favorite/Rejected tags to whole clips, as well as ranges inside of clips.  The same is true of keywords.
    Related user manual pages here:
    http://help.apple.com/finalcutpro/mac/10.0.6/#ver68416335
    http://help.apple.com/finalcutpro/mac/10.0.6/#ver30ccd91f
    http://help.apple.com/finalcutpro/mac/10.0.6/#ver7a77eb6c

  • How to move all thumbnail clips into project library for editing?

    Hi there ...
    I haven't used imovie 08 for quite a while ... and I've forgotten how to do a major step .. which is leading to a lot of frustration. I need to drag all my thumbnails into the project library and have them available for editing. ANy way I try it now .... it seems to create one big clip in the project library .. so when I want to add a title or something ... when I drag it over to the clip ... it selects to add to the whole movie. Somehow I need to retain the individual thumbnails or clips ... so when I try to add effects it is just added to one clip ... not all of them ...
    I had this problem before and I can't remember how I moved all the separate clips from the event library to the project library and had them retain their individual clip format available for edit...
    CAn anyone help me .... thanks ....

    Hi,
    This is a shot in the dark but: if it is anything like 09 there is a little slider in the bottom right hand corner of the project window which, if it is all the way to the right will only give you the whole movie.
    Pull it to the left to give you different thumbnail settings.
    Hope this works.
    DM

  • PS11 Organizer. how 2 move 1 file(folder) into another? drag & drop doesnt work...

    as it does in Win. also how can i create a new file/folder to put other files/folders into. ex a new folder names "Flowers" then put all the other files that contain flowers such as folder "red roses" into the "main" file of Flowers. Cant figure it out even using the book The Missing Manual. Thanks sara

    It sounds like this question is for Photoshop. This is a Flash forum. In any case, is your question about real folders on your computer, or server, or are asking about the files and folders in the "Layers" panel? Or, is your question about using the Library panel in Flash?

  • IMovie '11: how to move edited clips back into the event library?

    I made a green screen video that is supposed to be the foreground, and edited out the ums and ahs.  Now I need to add a green screen background, which apparently I cannot do after already inserting the green screen foreground footage.  (I would LOVE to be able to do that, but apparently you cannot.)  I have tried to drag the edited videos back into the event library, but they bounce back out, and I have checked all of the menus twice and there is no command to export to event library.  Help!  I need to insert a background and don't have another hour to re-edit from scratch.

    Hi
    No - there are no easy and straight forward way to do this - BUT
    You must do as one does in iMoivie when there is a need to combine several functions.
    Export out (the manipulated clip) as a full quality QuickTime movie (just this part)
    Then import this as a new Event
    Put this into a new project (if several effects is to be applied) or into Main movie if You only need to apply one more thing as a GreenScreen.
    For several effects - one might need to Export/Import several times. Much easier in FinalCut Pro.
    Yours Bengt W

  • How to move the two itab into third itab

    Hi sap guru ,
    my question : i have 3 internal table (i_vbrk , i_vbrp and itab)
    1.i_vbrk like vbrk .
    DATA: BEGIN OF I_VBRK OCCURS 0 ,
         VBELN LIKE VBRK-VBELN ,
         FKDAT LIKE VBRK-FKDAT ,
         FKART LIKE VBRK-FKART ,
         KUNAG LIKE VBRK-KUNAG ,
         END OF I_VBRK .
    2.i_vbrp like vbrp .
    DATA: BEGIN OF I_VBRP OCCURS 0 ,
          VBELN LIKE VBRP-VBELN ,
          MATNR LIKE VBRP-MATNR ,
          WERKS LIKE VBRP-WERKS ,
          END OF I_VBRP .
    but for THIRD internal table which i have ' itab ' should be having same FIELDS like both internal table (i_vbrk and i_vbrp)
    so  I have ,
    3. ITAB .
    TYPES: BEGIN OF ITAB  ,
           VBELN TYPE VBRK-VBELN,
           FKDAT TYPE VBRK-FKDAT,
           FKART TYPE VBRK-FKART,
           MATNR TYPE VBRP-MATNR,
           WERKS TYPE VBRP-WERKS,
           KVGR1 TYPE VBRP-KVGR1,
           END OF ITAB .
    IS THIS RIGHT ....
    NOW I WANT THAT THE DATA WHICH I WILL FETCH FROM DB-TABLE FOR THOUSE TWO INTERNAL TABLE (i_vbrk and i_vbrp) SHOULD MOVE INTO THIS THIRD ITAB ..PLZ TELL ME WHAT WILL BE THE CODE FOR THAT ?
    answer will be rewarded....

    Hi,
      Common suggestion can be to use 'INNER JOIN' but to have
    a good performance of the code You can try the following.
    types : BEGIN OF t_VBRK,
    VBELN LIKE VBRK-VBELN ,
    FKDAT LIKE VBRK-FKDAT ,
    FKART LIKE VBRK-FKART ,
    KUNAG LIKE VBRK-KUNAG ,
    END OF t_VBRK .
    types : BEGIN OF t_VBRP,
    VBELN LIKE VBRP-VBELN ,
    MATNR LIKE VBRP-MATNR ,
    WERKS LIKE VBRP-WERKS ,
    KVGR1 TYPE VBRP-KVGR1,
    END OF t_VBRP .
    TYPES: BEGIN OF ITAB ,
    VBELN TYPE VBRK-VBELN,
    FKDAT TYPE VBRK-FKDAT,
    FKART TYPE VBRK-FKART,
    MATNR TYPE VBRP-MATNR,
    WERKS TYPE VBRP-WERKS,
    KVGR1 TYPE VBRP-KVGR1,
    KUNAG LIKE VBRK-KUNAG , 
    END OF ITAB .
    data : i_vbrk type STANDARD TABLE OF t_vbrk,
           wa_vbrk type t_vbrk.
    data : i_VBRP type STANDARD TABLE OF t_VBRP,
           wa_VBRP type t_VBRP.
    data : i_itab type STANDARD TABLE OF itab,
           wa_itab type itab.
    */////write the select statements here.....//////
    loop at i_vbrk into wa_vbrk.
      wa_itab-vbeln = wa_vbrk-vbeln.
      wa_itab-FKDAT = wa_vbrk-FKDAT.
      wa_itab-FKART = wa_vbrk-FKART.
      wa_itab-KUNAG = wa_VBRK-KUNAG.
      READ TABLE i_VBRP into wa_vbrp
      with key vbeln = wa_itab-vbeln.
      wa_itab-MATNR = wa_vbrp-MATNR.
      wa_itab-WERKS = wa_vbrp-WERKS.
      wa_itab-KVGR1 = wa_vbrp-KVGR1.
      append wa_itab to i_itab.
    endloop. 
    Reward points if helpful..................

  • HT203167 how to move music from purchased into your ipod music library

    I recently purchased an album on my comuter and it was added into the purchased catagory in iTunes. I want it in my iPod library buy cant get it there, any suggestions?

    Well, only if it were that easy. I have tried that. It only says preparing sync then finishing the sync in a few seconds like the music is not even there. Whenever I would ever purchase an album on the PC, it would automatically download in my itunes library. Now its sitting in some purchased menu I have never seen before. My question still remains. BTW I have the 1st genertation iPod touch. Its old but still works and never download updates. Maybe thats the reason?

  • How to move data in the table to different database ?

    I'm currently having some problem with moving some of my data from devlopment db to production db. Currently i'm having 2 dev. db and i would like to combine the data in the table into 1 prod. db. Can anyone pls tell me, is it possible to do so. Please tell me the solution on how this can be done, if you guys know.
    Thanks in advance.

    Hi,
    create a database_link from your
    PROD db to each of the DEV dbs.
    then insert into table (select * from
    table@dev_db1)
    insert into table (select * from table@dev_db2)
    HTH
    Detlev
    null

  • How to move temp file, redo log to different drive oracle 9i

    Hi ,
    I am using oracle 9i
    by mistakenly, i have instaled oracle installable on system drive i mean c: drive.I have installed teh database on D: drive.
    For tunning perfomance i would like to move the redlog files and temp files to different drive.
    Could you please explain me the step by step procedure how to do this
    Thanks
    AITS

    Very easy -
    Create a new temp tablespace with the files on the drive you want, make it the default temp tablespace for any users/schemas you have created, then drop the old temp tablespace including datafiles.
    For the redo logs, create new groups, again with the logfiles on the dirves you want them on, cycle out of the old ones with "alter system switch logfile;" then drop them.

Maybe you are looking for