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: Prevent table delete

Re: Prevent table delete

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Fri, 17 Aug 2007 18:33:22 +0200
Message-ID: <46c5cdd2$0$422$426a74cc@news.free.fr>

"Thomas Kellerer" <FJIFALSDGVAF_at_spammotel.com> a écrit dans le message de news: 5iluotF3piq0pU1_at_mid.individual.net...
|
|
| Sean wrote on 17.08.2007 17:28:
| > how do i create a table which cant be deleted by the normal drop
| > command.
| >
| > a friend told me that by hiding the table file it cant be deleted. is
| > there any other way?
| >
|
| I have *no* idea what you mean with "table file", but revoking the DROP
| privilege from all users that are able to access the table should be enough.
|
| The only drawback is, that the owner of the table can grant himself the right to
| drop the table. But he won't be able to drop it accidently
| Thomas
|

You can do it with a database trigger "before drop" that raises an error if you want to drop this table.

Regards
Michel Cadot Received on Fri Aug 17 2007 - 11:33:22 CDT

Original text of this message

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