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

Thread: System tablespace

  1. #1
    Join Date
    Feb 2001
    Posts
    100

    Question

    Hi,

    I want to move system tablespace's datafiles from one disk to another. Can I put the tablespace system offline. Is it safe to do it


    Thanks

  2. #2
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    You can't do this.

    1. Shutdown normal your database.
    2. Copy the system datafile where you want
    3. Startup mount
    4. Alter database rename datafile 'old_path_for_system_datafile' to 'new_path'
    5. Startup open

    Regards

    Angel

  3. #3
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    1. backup
    2. create a backup controlfile script
    "alter database backup controlfile to trace"
    this file will be in the udump directory
    copy it, modify it with the new system tblspace file locations
    remove the comments - svrmgrl/sqlplus don't like them

    3. shutdown the database
    4. move the system tblspace data file(s)
    5. run the script modified in step 2

    -Ken

  4. #4
    Join Date
    Feb 2001
    Posts
    100
    Thank you Angel and Ken.

    Angel, I am using Oracle 8.1.7 on windows NT and it's

    Instead of

    ALTER DATABASE RENAME DATAFILE ...

    I used

    ALTER DATABASE RENAME FILE ...


  5. #5
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by Hakimca
    Thank you Angel and Ken.

    Angel, I am using Oracle 8.1.7 on windows NT and it's

    Instead of

    ALTER DATABASE RENAME DATAFILE ...

    I used

    ALTER DATABASE RENAME FILE ...

    That's funny. I'm on Unix and it's ALTER DATABASE RENAME FILE also...
    Jeff Hunter

  6. #6
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Thanx
    Sam



    Life is a journey, not a destination!


  7. #7
    Join Date
    Mar 2002
    Posts
    60
    when u say

    ALTER DATABASE it should be rename file to ' .....


    and when u say

    ALTER TABLESPACE
    it should be rename datafile to '.....

  8. #8
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    Originally posted by marist89
    That's funny. I'm on Unix and it's ALTER DATABASE RENAME FILE also... [/B]
    Yeah,

    A bug on my brain

    Regards

    Angel

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