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

Thread: How make rollback segment online/offline in plsql procudure ?

  1. #1
    Join Date
    Sep 2004
    Posts
    54

    How make rollback segment online/offline in plsql procudure ?

    Hi All,

    I like to small rollback segments from a plsql procedure. whem I execute the following command in the procedure

    EXECUTE IMMEDIATE 'alter rollback segment rbs7 online';

    I am getting the following error:

    ORA-01031: insufficient privileges
    ORA-01031: insufficient privileges
    ORA-06512: at "DWARE.PR_ROLLBACK_ONLINE", line 16

    Please advice.

    Thanks

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    the user dware doesnt have permission to alter a rollback segment

  3. #3
    Join Date
    Mar 2004
    Location
    DC,USA
    Posts
    650
    What's the purpose to do that from pl/sql?

  4. #4
    Join Date
    Sep 2004
    Posts
    54
    Quote Originally Posted by dbasan
    What's the purpose to do that from pl/sql?
    We are trying to make some rollback segment offline and some online. e.g. we are trying to offline all small segments and big segment online from a procedure.

    Cheers

  5. #5
    Join Date
    Sep 2004
    Posts
    54
    Quote Originally Posted by davey23uk
    the user dware doesnt have permission to alter a rollback segment
    Thanks,

    I gave GRANT ALTER ROLLBACK SEGMENT TO DWARE; and it is working.

    Cheers

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