Moving table from one tablespace to another

Hi,
I want to move several tables from one tablespace to another as I know I need to rebuild indexes(as indexes are invalid after this) what I want to know is that constraints needs to recreate again after table movement, Thanks.

what I want to know is that constraints needs to recreate again after table movementNo you don't need do that.

Similar Messages

  • Moving table from one project to another project using metadata.

    I have exported metadata of one table from project owb_demo and I want the same table in project Owb_demo_1 by importing the metadata. I am newbie . When we export it even store project info like owb_demo . How to change this things in metadata. When I try to import it gives error saying table already exists.
    How do we migrate objects from one project to other using import and export of metadata.
    thanks

    Hi Vix,
    Regarding using multiple enviornments in OWB there is a case study on "How to manage multiple versions of BI implementation". You can find it the OWB case studies on the net. This guide is a useful one.
    One more thread you can look into in this forum - " How design with OWB", the link is below:
    How to design inside OWB
    Still if you want some specific explanations regarding this, better start a fresh new thread.
    Hope this helps
    Regards
    -AP

  • Moving tables from one schema to another

    Hi
    I have 9 tables in Schema_1 that have already been populated with data.
    I would like to remove these tables from Schema_1 and place them into Schema_2
    These tables also have indexes attached to them.
    Thanks

    I don't think there's a "move" command as such, though someone may prove me wrong.
    You could "grant select" on the relevant tables to user Schema_2, then log on as the second user and perform "create table ... as select * from Schema_1.....". Then, create the indexes manaually. After all this, drop the old tables.

  • Move objects from one tablespace to another

    Hello
    Running Oracle 10g rel 2 and I would like to move all objects from one tablespace to another. There are Primary Key indexes to other tables in this tablespace. The size grew too large and I want to reduce the size.
    Thank you.

    Good afternoom Sir!
    I believe that below "ask tom - moving tables across tablespaces" may help you.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:47812348053
    Regards,
    Marcello M.

  • 10g express, scheduled copy of table from one db to another

    Hi,
    I don't know much about Oracle and was hoping if someone could shed some light on how we could implement our solution.
    Our scenario is as follows:
    For a new customer we are going to have 35million records per month coming into the database.
    What we had normally been doing in MSSQL, is creating a new table every month and writing the records in here (although we never had 35 million records before).
    The problem is, I want to archive these old monthly tables in order to save space. I don't know enough about the Oracle suite to see if there is already a program that we can schedule every month to move this table from one database to another. I was initially doing it by code, but this ends up taking 3 hours to copy... something we cannot afford.
    Is 35 million records too much to hold in a table? Should we be partitioning this down even more? I don't know where the threshold is before Oracle craps out.
    Or, maybe a better idea is to create a new database and just store new entries in a new database every month... this way we won't need to copy anything. To me, this sounds stupid though as i don't want to have 60 databases kicking around in five years.
    I'm a developer and no DBA, no one here is a DBA. We're trying to evaluate if our application is going to work on a Oracle platform all without knowing anything about it. Please help!
    Thanks,
    Kevin
    Message was edited by:
    user518940

    Kevin, you definately have the right database for 35M records/mth.
    From your post, it sounds like you need to retain the records in a database for 5 years (yes?). I don't know of any size limitation for Oracle outside of the OS. I don't think your solution should be multiple databases unless you have vastly different needs for the database that can not be satisfied with one instance - ie. OLTP vs. BATCH/OLAP...
    I don't fully understand what you are shooting for because it doesn't sound like you are going to save on any space just by moving the data from one database to another, the records will still require a similar amount of space unless compressed on another database. In either case, unless you can't, I would recommend a single database design. If you need high performance querying the data, and you query it by a specified period of time - ie month, I would recommend using enterprise edition with partitioning (seperately licensed). This would allow you to create a partitioned table where you could partition the table by month. As long as you don't create unnecessary global indexes, the performance should be quite similar to querying/inserting/appending into a table just containing 1 months records. Each partition can be placed in its own tablespace/datafile(s).
    If you absolutely must 'transport' the data to another instance (which I would strongly suggest that you should load it there in the first place unless business rules, performance limitations or something else simply don't allow it), you can use 'transportable tablespaces' and simply ftp the entire datafile to another Oracle database and attach it thus avoiding having to reload it. If it's truly historical you can just leave it ReadOnly. If you want to be tricky about it, you could try to make it part of a partitoned table on the new host.
    I hope I've helped just a little bit. If you need additional help, email me directly at LenLopez AT Yahoo DOT com

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How can I script moving paths from one file to another?

    Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!

    Thanks! This one actually worked for me. Thanks for your help.
    http://forums.adobe.com/message/3305389#3305389

  • How do I move a table from one schema to another schema on Oracle XE?

    How do I move a table from one schema to another schema on Oracle XE?

    Hi,
    I tried to use the insert/select statement that you had given, it did not work.
    The error is ORA-00913: too many values.
    But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
    However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
    Thank you
    Skye

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • Copying a table from one databse to another

    Hi,
    I used the following code to copy a table from one database to another.
    set copycommit 1
    set arraysize 1000
    copy from username/passwd@tnsname -
    create <tablename> -
    using -
    select * from <tablename>
    But I get the following error:
    set copycommit 1
    ERROR at line 1:
    ORA-00922: missing or invalid option
    Could you please let me know how this can be done.
    Thanks,
    Narasimhan

    Thanks for your suggestions.I created a database link.I had no problems.
    Then when i issue the command
    copy from uname/password@db
    create <tablename>
    using
    select * from <tablename>
    <Here db is database link to source database identified by uname and password>.
    I still get the error
    copy from uname/password@db
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    Does it mean that the command is wrong?Or I'm doing something different.
    Thanks!

  • Moving images from one library to another; or how to have 2 libraries open at the same time in Aperture 2

    This may be something easy but for some reason I am having a hard time figuring this out. Basically this is the situation: I have a library on my MBP hd that I import pictures to when I am not hooked up to my external hd for the time being. The main library is of course on the external 2tb drive. How do I have 2 libraries open so that I can essentially drag and drop the pictures from one library to another? It would basically be like moving files from one project to another. Thanks for any help!

    Always keep a backup of your original images, before you delete them. I make a backup right form the card, before I even import them to Aperture.
    How are your images stored right now? Are the referenced or managed? On your big volume I'd consolidate the newly imported images, to be sure they are really inside the Aperture library before I delete any images outside the library.
    but they have the little yellow triangle caution symbol on them and I can see them but not really edit them
    That is a very typical problem, when you imported your images as referenced images then somehow delete or move the original master image files, that are stored outside the Aperture library.
    Do you still have the original masters of the images with the yellow triangle that you cannot edit? In Aperture 3 you can point Aperture to the location of the master image file "File >Locate referenced image" - probably Aperture 2 has a similar command to let you reconnect your masters, if you still have them. Look into the manual.

  • Cutting and pasting tables from one project to another

    When cutting and pasting existing tables from one project to
    another, the line weights for the cell borders seem to vary at
    random - some are the original line weight and some are heavier
    when pasted.
    I've tried sorting things out with the table properties
    dialogue, but to no effect.
    Is there a quick fix, or am I better importing in whole
    topics and then editing the imported topic?

    Hi Colum/Peter,
    It's not a custom table, I just need to copy an existing
    table from one project to another.
    My blasted developers (may the fleas of a thousand camels,
    etc), just decided to change the toolbars in one of our
    applications. As this toolbar appears in slightly different guises
    in about 6 tabs, I was trying to update the table that shows what
    icon does what and cut and paste that table into all the sub
    projects I have. Each table then only needs a minor edit for a few
    icons specific to that sub-project.
    Peter's on the right track. When I cut and pasted the table
    it also pasted in a number of lines of HTML associated with the
    styles in the other project. If I delete those lines, the table
    then appears as it should.
    Thanks for prompt response

  • Moving Image from one Review to Another?

    I attempted to upload an image (open in Photoshop) to a specific review. However, I could not see the desired review in the Photoshop CS Review panel. Out of frustration - after attempting to "find" the desired review for several minutes - I uploaded the image to another review and then went online, using Safari, to Acrobat.com.
    There is no visible means of moving an image from one review to another. There is a way of dragging one review (with all sub-images) to another location. But I can't see a way of moving a sub-image from one review to another review.
    IF there is some "magic" that someone knows I would sure appreciate some education.

    This works quite well for a single image review. I've moved them from one workspace to another. The issue is when a review has multiple images and you want to take only one of them from that review and move it to another review in another workspace; I can't seem to get that to work at all.
    When I open a review and navigate to the desired image, then click in the lower left corner and select a new workspace to move the image to, it moves the entire review - not the single image - to the new workspace.
    I guess I could delete the "part" from the workspace it currently exists in and then create it as a stand alone review, but then I won't be able to imbed it into another review as I want to do.
    The source frustration here is that I can't get CS Review in CSPS5 to navigate to the desired workspace/review. I get "ALL REVIEWS" displayed but not the workspaces... Any ideas on how to display workspaces instead of reviews?

  • Moving Stack from one folder to another?

    Is there a way to keep a stack together while moving it from one folder to another. When I grab the stack and drop it to a folder, I view the folder and the images are no longer in a stack. It would save me a lot of time if they would stay stacked. Am I missing something?
    Thank you.

    Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
    To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
    That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

  • Moving personalization from one instance to another.

    Hi All,
    Could anyone guide me with the steps of moving personalizations from one istance to another..
    I tried this syntax..
    FNDLOAD <userid>/<password> 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct <filename.ldt> FND_FORM_CUSTOM_RULES form_name=<form name>
    what could be the filename.ldt location,
    should i execute this from putty on unix box...
    Regards, Ashish
    Edited by: Ashish on Aug 30, 2010 9:59 AM

    Ashish,
    I am followin that document, but it does not tell me where do i execute the script.. Please if you could..Run the command on the server as applmgr user and after sourcing the application env file. You can run the command anywhere provided that the directory is writable by applmgr user.
    Thanks,
    Hussein

Maybe you are looking for