Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Make App "Read-only"

Re: Make App "Read-only"

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 24 Jul 2006 22:24:50 +0200
Message-ID: <00bac21bvgm85dhp0klr4kiu329oa3el72@4ax.com>


On Mon, 24 Jul 2006 16:15:08 -0400, meathammer <googler_at_google.com> wrote:

>Say I'm designing an app and I want to give admin of the app the
>option of making it READ-ONLY when he needs to.
>
>How will you do it ?
>
>How about this ? :
>Putting app tables into TABLESPACE_myapp so
>the admin can just do this:
> alter tablespace TABLESPACE_myapp read only;
>
>thanks
>

Apart from the horrible method, what pressing business need, if you already can get everyone out by
- enable the restricted_session privilege - stop the listener

Other than that: two roles would suffice one with select, insert, update, delete
and
one with select
revoke role1
grant role2
and hey presto.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Jul 24 2006 - 15:24:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US