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: Gints Plivna <gints.plivna_at_gmail.com>
Date: 24 Jul 2006 23:08:56 -0700
Message-ID: <1153807736.083867.72530@h48g2000cwc.googlegroups.com>


meathammer wrote:
> Does that stop packages from doing U/I/D ? since roles are not enabled
> in packages....

Cannot see anything too wrong with putting tablespace read only, it also stops me as a user with dba rights to accidentaly change some non-changeable data :)
But one has to remember that read only tablespace doesn't prevent from DDL as in following example:
SQL> create table bla (a number) tablespace users;

Table created.

SQL> alter tablespace users read only;

Tablespace altered.

SQL> insert into bla values (1);
insert into bla values (1)

            *
ERROR at line 1:
ORA-00372: file 9 cannot be modified at this time ORA-01110: data file 9: '<path>/users01.dbf'

SQL> drop table bla;

Table dropped.

Gints Plivna
http://www.gplivna.eu Received on Tue Jul 25 2006 - 01:08:56 CDT

Original text of this message

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