permanent to temporary

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nunnasujatha
    New Member
    • Nov 2006
    • 24

    permanent to temporary

    Hi all,
    i ve tried to convert a permanent tablespace to temporary.

    for this i 've used

    alter tablespace test_per_ts temporary;

    ERROR:invalid option for create/alter tablespace.

    Note:There are no objects in my permanent table space test_per_ts.
  • pragatiswain
    Recognized Expert New Member
    • Nov 2006
    • 96

    #2
    Originally posted by nunnasujatha
    Hi all,
    i ve tried to convert a permanent tablespace to temporary.

    for this i 've used

    alter tablespace test_per_ts temporary;

    ERROR:invalid option for create/alter tablespace.

    Note:There are no objects in my permanent table space test_per_ts.
    What is the ORA Error Code?
    Try this:
    alter tablespace test_per_ts OFFLINE IMMEDIATE;
    alter tablespace test_per_ts temporary;

    Comment

    • nunnasujatha
      New Member
      • Nov 2006
      • 24

      #3
      it didn't work too.

      SQL> alter tablespace test_per_ts temporary;
      alter tablespace suj_second_tab temporary
      *
      ERROR at line 1:
      ORA-03218: invalid option for CREATE/ALTER TABLESPACE

      Comment

      • pragatiswain
        Recognized Expert New Member
        • Nov 2006
        • 96

        #4
        Originally posted by nunnasujatha
        it didn't work too.

        SQL> alter tablespace test_per_ts temporary;
        alter tablespace suj_second_tab temporary
        *
        ERROR at line 1:
        ORA-03218: invalid option for CREATE/ALTER TABLESPACE
        Check this out.

        SQL> grant unlimited tablespace to <MY_USER>;
        --- Then Check Priviledges, should show "UNLIMITED TABLESPACE"
        SQL> select * from session_privs;

        Then try doing what you wanted to do.

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          please use this

          [CODE=oracle]alter tablespace test_per_ts offline temporary;[/CODE]

          Comment

          Working...