DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: tablespace files moving from one db to another

  1. #1
    Join Date
    Feb 2000
    Posts
    23

    Given the datafiles belonging to a tablespace, how can I move them to another d/b and assign them to a tablespace with the same name without loosing the contents of the file.

    Is there a way to attach a tablespace to a file without loosing it's contents ?

    Thanks for all your help.

    MS

  2. #2
    Join Date
    Sep 2001
    Location
    Ohio
    Posts
    334
    Check out Transportable tablespaces. There's a good article on how to do this on this site:

    http://www.dbasupport.com/oracle/ora8/page9.shtml

    One note... the article says to set the tablespace to read-write and then copy the datafile. You MUST copy the datafile BEFORE you set the tablespace back to read-write.

    Good Luck!
    Jodie

  3. #3
    Join Date
    Feb 2000
    Posts
    23
    Jodie:

    Thanks for your response. That article is good. However due to the restrictions/pre-requisites it is not an option.

    Any other solutions ?

    thanks for your help and insight.

    MS

  4. #4
    Join Date
    Sep 2001
    Location
    Ohio
    Posts
    334
    I'm not aware of any other way to move a datafile to another db and assign it to a Tablespace.

    Maybe someone else does....

    Sorry!
    Jodie

  5. #5
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    you cannot attach files to tablespaces, you move tablespaces not files, even with transporatblespace tablespaces

  6. #6
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Pando,
    I think you meant, "you move tablespace WITH files.."
    You have to move files in TTS but you can not plug them to the exisitng tablespace.

    Sanjay

  7. #7
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    I meant when we transport we transport tablespaces since tablespaces is formed by datafiles...
    We dont transport files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width