Move FLOWS_FILES to new tablespace

Hi
is there any restrictions on moving FLOWS_FILES schema to a new tablespace?
I'm planning to use export/import as I can see there is a lob there.
Is there a better way?

Mistakenly thought about LONG restrictions. Moved wwv_flow_file_objects$ via ALTER TABLE MOVE with subsequent index rebuilds

Similar Messages

  • Move table to new tablespace

    How can we move table with long col to new tablespace(LMT) from DMT?

    Well, converting LONGs to LOBs is always "painful" :-)
    But it is doable, however, the solution depends upon the version of the database.
    There are several metalink notes coverting this matter:
    Note 137160.1 Oracle 9i PLSQL LONG-TO-LOB API For Easier LONG to LOB Migration
    Note 282464.1 How to convert LONG to a CLOB
    However here is one that I used recently and it needs one 10g instance as a staging site. (I don't know if this approach has been documented on Metalink. It worked for me, it might work for you as well, but you should test it first).
    My production database was 8i and it contained a table with LONG column. The requirement was to convert this column to CLOB.
    I exported the table and imported it in 10g database.
    Once in 10g I used ALTER TABLE tablename MODIFY longcolumn CLOB; which worked perfectly fine.
    Finally I exported the table with CLOB column from the 10g database and imported it back in 8i database.
    example:
    SQL> create table t
      2  (c1 long);
    Table created.
    SQL> insert into t values ('foo');
    1 row created.
    SQL> desc t
    Name                                      Null?    Type
    C1                                                 LONG
    SQL> alter table t
      2  modify c1 clob;
    Table altered.
    SQL> desc t
    Name                                      Null?    Type
    C1                                                 CLOB
    SQL> select c1 from t;
    C1
    foo
    SQL>Cheers,
    Mihajlo

  • Move tables to new tablespace

    Hi,
    I have 2 tablespaces
    (a) DATA_TBS
    (b) INDEX_TBS
    So, i am going to create another DATA_TBS_1 Tablespace..and move the some smaller tables from DATA_TBS to DATAB_TBS_1 Tablespace...
    All the Tables Indexes are in INDEX_TBS...i am going to move only Tables..
    If i move some tables to DATA_TBS_1..
    do we need to rebuild the indexes of those tables...i think it is no necessary..because we are not touching indexes...
    please help me

    Stop thinking. Read:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2297

  • Relocating objects into new tablespace?

    I was looking for an easy way to relocate all objects from one table space to another table space? Is there a utility or any way to have all objects in one table space move to a new tablespace with out have to either move or rebuild each object one at a time.
    We have a tablespace that is 50 gig but is only 2% utilized so I am looking to shrink the overall db size by relocating the objects, and the dropping the 50 gig table space.
    I am trying to avoid extracting all of the ddl for all of the objects as well as the ddl to rebuild all of the indexes as there are over 200 objects that need relocating?
    Thanks.

    HI..
    To relocate the tables into another tablespace you can spool the output of below query and run it.
    select 'alter table '||owner||'.'||table_name||' move tablespace new_tbs_name parallel N;' from dba_tables where tablespace_name='XXX';
    Note:- N = cpu_count-1
    parallel --> to fasten the activity
    After its done,
    Rebuild the indexes of these tables:-
    select 'alter index '||owner||'.'||index_name||' rebuild parallel N;' from dba_indexes where table_name in (select table_name from dba_tables where tablespace_name='XXX');
    Then change the degree back:--
    select 'alter table '||owner||'.'||table_name||' parallel (degree 1);' from dba_tables where degree > 1;
    select 'alter index '||owner||'.'||index_name||' parallel (degree 1);' from dba_indexes where degree > 1;
    If on 10g
    select 'alter table '||owner||'.'||table_name||' parallel (degree 1);' from dba_tables where degree > '1';
    select 'alter index '||owner||'.'||index_name||' parallel (degree 1);' from dba_indexes where degree > '1';
    HTH
    Anand

  • How to relocate table in new tablespace in Oracle 8i

    Hi all
    I would like to know how to relocate table from one tablespace to another tablespace in Oracle 8i. Currently, I create new table without data in new tablespace and then load data from old table in old tablespace. However, I think it is not efficient at all. Could anyone kindly advise any method to proceed it
    Thanks

    Nick has pointed out the best way to relocate a table. With the alter table move command you do not have to worry about FK or any other kind of constraints, table triggers, or grants. They all remain in place. You just need to rebuild the indexes as Nick pointed out.
    There were some restrictions on the types of tables that could be moved with alter table move when the command first was introduced. I think LOB columns were unsupported at first. The old exp/imp had to be used for those cases.
    HTH -- Mark D Powell --

  • Move schema to another tablespace

    I want to move one schema and all objects own by particular schema to it's own tablespace (new_tablespace).
    will command provided below move all existing schema objects to new tablespace or just new objects?
    alter user default tablespace new_tablespace;

    mishomor wrote:
    I know it's long time since I posted this but I finally had a change to implement it.
    Thing is, if I execute command on one-by-one basis it works fine, but if I try block you guys posted it doesn't work. It ends with error:
    Error starting at line 1 in command:
    begin
    for tbl in (select table_name from all_tables where owner = 'FLOWS_020000') loop
    execute immediate 'alter table ' || tbl.table_name || ' move tablespace flows';are you executing this as the owner of 'tbl_name'?
    end loop;
    end;
    Error report:
    ORA-00942: table or view does not exist
    ORA-06512: at line 3
    00942. 00000 - "table or view does not exist"
    Cause:
    Action:
    begin
    for tbl in (select table_name from all_tables where owner = 'FLOWS_020000') loop
    execute immediate 'alter table ' || tbl.table_name || ' move tablespace flows';
    end loop;
    end;
    output of
    select table_name from all_tables where owner = 'FLOWS_020000';
    brings bunch of tables!!
    If I just run ...
    alter table FLOWS_020000.whatever_table move tablespace flows;
    alter index FLOWS_020000.whatever_index rebuild tablespace flows;
    ... it works fine.
    Because here you specifically qualified the table name with the owner. In your procedure above, you did not do that, so 'whatever_table' was assumed to be owned by whoever was executing the procedure.
    I am using SqlDeveloper 1.5.4

  • How to move segments from one tablespace to another tablespace?

    I have created new tablespace now i want to move the old tablespace segments to new one but how?
    Please guide
    Thanks,
    Waheed.

    If it is Oracle 10g you might consider expdp and impdp and use remap_tablespace. After that you can purge the objects from the old tablespace.
    Throught PL/SQL scripting also it is possible.
    tables
    declare
    cursor cursor1 is select table_name from dba_tables where tablespace_name in ('USERDATA1');
    begin
    for cur1_rec in cursor1 loop
         execute immediate 'alter table '||cur1_rec.table_name||' move tablespace userdata2';
    end loop;
    end;
    indexes
    declare
    cursor cursor1 is select index_name from dba_indexes where tablespace_name in ('USERDATA1');
    begin
    for cur1_rec in cursor1 loop
    begin
         execute immediate 'alter index '||cur1_rec.index_name||' rebuild tablespace userdata2';
    exception
    when others then
    null;
    end;
    end loop;
    end;
    /

  • How to move indexes to another tablespace through script

    Hi Dear,
    How i can move indexes to another tablespace through a script which just gets new tablespace name, owner name and move and rebuild indexes in one go.
    Thank u for your prompt Help.
    Regards

    Hi,
    alter session set sort_area_size = 15000000;
    spool index.sql
    select 'alter index '||owner||'.'||index_name||' rebuild tablespace TARGET_TBS;'
    from dba_indexes
    where tablespace_name = 'INIT_TBS'
    @index.sql
    This script move and rebuild index from one tablespace INIT_TBS to an other tablespace TARGET_TBS
    Hope this help you
    Nicolas.

  • Is it possible to create a new tablespace whose datafile will be on a filesystem instead of ASM?

    All of our datafiles are located in ASM disks (we have only one ASM diskgroup). Now, we are running out of space in this ASM diskgroup although we have a planned ASM disk expansion, but it will not be happening anytime soon.
    Now, I need to move partitions in order to be able to resize the database files considerably. When moving partitions I need to create a new tablespace where the partitions can be moved to (in filesystem), and afterwards, be moved back to original tablespace (in ASM). But since our partitions are so big (in GB), I don't have enough space in ASM. I only have a filesystem which has enough space to do the above. My question is: Will there be no problem if I create this move tablespace in this filesystem having in mind that my database uses ASM? This is just temporary until I'm done with this. Unfortunately, I don't have a testbed where I can test this.

    Ok. Thank you very much. I created new tablespace in a filesystem without any problem neither an error. Now, our DB is a mix of ASM and filesystem, but as I've said earlier, this new tablespace is just temporary until I finish the relocation of partitions and back.

  • Moving table with XMLTYPE to a new tablespace

    I want to move my all tables with XMLTYPE to a seprate tablespace. One of my tables which is causing me greif is XML_SL_MESSAGE. Here is its structure;
    Name Type
    XML_SL_MESSAGE_ID NUMBER(11)
    DTE_TIMESTAMP TIMESTAMP(6)
    VALID_SL_MESSAGE_XML SYS.XMLTYPE Y
    INVALID_XML CLOB Y
    VALID_SL_MESSAGE_XML_V2 SYS.XMLTYPE Y
    Would any one of you guide me to how to move this monster in a new tablespace XML_DAT.
    Thanks
    Qazi Ahmed
    Canada

    hi SRK
    assumptions: both the table structures are the same.
                          the primary keys are the same.
    data: begin of itabA.
             include structure A.
    data: end of itabA.
    data: begin of itabB.
             include structure B. <<<<< if needed.
    data: end of itabB.
          select * from A into table itab.
          delete table B.
           modify table B by itab.
    The structure of Itab will the same structure of the Ztable we are updating.
    in the above case it will be of type B,
    Edited by: Jackandjay on Jan 27, 2008 6:09 PM

  • Parent partition of subpartitions that move to a new TS

    PLATFORM_NAME: Solaris[tm] OE (64-bit)
    VERSION: 11.2.0.2.0
    In our system we have several tables that are partitioned by range. Some of these tables are then sub-partitioned by list. Well initially we were creating a new tablespace every month and creating the new monthly partition on the new tablespace. Well I got annoyed by this, so I decided to move all of the partitions/subpartitions to a single tablespace. And this went smooth, at first, in my dev region. I moved all of the segments to the new tablespace, but then I noticed something odd...
    Example:
    CREATE TABLE me.sub_partitioned_table
    my_range_partitioned_column date,
    my_list_partitioned_column varchar2(30)
    PARTITION BY RANGE (my_range_partitioned_column)
    SUBPARTITION BY LIST (my_list_partitioned_column)
    SUBPARTITION TEMPLATE
    (SUBPARTITION value4 VALUES (4),
    SUBPARTITION value23 VALUES (23),
    SUBPARTITION value60 VALUES (60),
    SUBPARTITION "DEFAULT" VALUES (DEFAULT)
    PARTITION P_HIST VALUES LESS THAN (TO_DATE(' 2007-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    TABLESPACE P_HIST
    ( SUBPARTITION P_HIST_value4 VALUES (4) TABLESPACE MONTHLY_PARTITION,
    SUBPARTITION P_HIST_value23 VALUES (23) TABLESPACE MONTHLY_PARTITION,
    SUBPARTITION P_HIST_value60 VALUES (60) TABLESPACE MONTHLY_PARTITION,
    SUBPARTITION P_HIST_DEFAULT VALUES (DEFAULT) TABLESPACE MONTHLY_PARTITION ),
    ...... and there are a lot more partitions/subpartitions
    So I create all of my alter table move subpartition statements, and the execute as they should. If I do:
    select tablespace_name from dba_tab_subpartitions where table_name = 'SUB_PARTITIONED_TABLE' and table_owner = 'ME', I see that all of my subpartitions are on the new, single tablespace. BUUUUUUT, if I do:
    select tablespace_name from dba_tab_partitions where table_name = 'SUB_PARTITIONED_TABLE' and table_owner = 'ME', I see all of the old tablespace names are still listed for my partitions.
    My question is, can this be changed? Did I screw something up? Is this a bug? If I try to alter the table and move the partition I get an error because I'm trying to move something that isn't a segment. Any help would be appreciated. Hopefully this makes sense. If you need clarification on anything, please let me know.
    Thanks!

    I found my answer...
    ALTER TABLE ME.sub_partitioned_table MODIFY DEFAULT ATTRIBUTES FOR PARTITION MONTHLY_PARTITION TABLESPACE NEW_BIG_TS;

  • My old email account was disabled and I can't remember my password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my information because I can't answer the security questions correctly...

    My old email account is disabled and I can't remember my itunes password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my account information because I can't answer the security questions correctly...

    ➡ https://iforgot.apple.com/

  • Error while creating a new tablespace

    Hi all,
    i got the following errors when i tried to create a new tablespace in my database.
    ORA-00604: error occurred at recursive SQL level string
    ORA-01655: unable to extend cluster string.string by string in tablespace string
    can anyone suggest any possible reason?
    thanks in advance..

    Hi,
    ORA-01655 unable to extend cluster string.string by string in tablespace string
    Cause: Failed to allocate an extent for cluster segment in tablespace.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated
    Pls check out the disk space. The command you issued is working for me and for all. Might be some errors in your disk.
    Regards,
    Raj

  • When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

  • Can i move blob column one tablespace to another tablespace

    When I ruining the following script
    ALTER TABLE T_Transaction_Image
    MOVE LOB(RCSCOMPRESSED_IMAGE,CAMERA_PHOTO_1,CAMERA_PHOTO_2,NUMBER_PLATE)
    STORE AS TABLESPACE IMAGE
    I found error
    ORA-22853: invalid LOB storage option specification
    Here we have more than one column having BLOB data type .
    Question
    I want to know can i move multiple column in single alter table ?
    and how can i move blob column one tablespace to another tablespace
    Thanks in advance
    Edited by: abdul moyed on Feb 3, 2011 6:33 PM

    http://decipherinfosys.wordpress.com/2007/11/21/moving-lob-column-to-a-different-tablespace/
    Regards
    Asif Kabir

Maybe you are looking for

  • .oui error in the install of oracle database client in a linux CentOS

    I am installing oracle database client in eqipo linux CentOS, after making all the passages for the creation of the user oracle and its groups beginning the ./runInstaller application and appears to me the following error: ./runInstaller: line 66: /i

  • My HP Color Laserjet CP 1215 recently started printing crooked.

    My Printer at work, HP Color Laserjet CP1215 recently has started printing crooked.  I have open all doors to check for anything stuck in the printer that could be causing it to print crooked.  Any suggestions would be greatly appreciated as I am not

  • Issue with urlrequest opening in different tab

    so I have been working on this code for a few days now and cant seem to get it to work properly. it opens in new tab or window instead of the same tab or window. /* Mouse Click Event Clicking on the specified symbol instance executes a function in wh

  • Please explain the error message

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.awt.windows.Win32SurfaceData.initOps(Native Method) at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:448) at sun.awt.windows.Win32S

  • Beta testers wanted - Refactoring (and more) for FB4

    ElementRiver is excited to announce that our new professional add-on to Flash Builder 4 is now in beta. SourceMate adds many features to Flash Builder including refactoring, code generation, code snippets and much more. We're looking for beta testers