Home » RDBMS Server » Server Administration » locking user's own tables from updation
locking user's own tables from updation [message #53141] Thu, 29 August 2002 01:13 Go to next message
M.POORNIMA
Messages: 1
Registered: August 2002
Junior Member
There is an option to lock tables from updation,deletion etc by other users.
We need to lock the tables from updation,deletion even by the user himself.
let me know if any method is available to lock the tables so that only querying is the only option to be available to all the users and user who has created the tables.

thankyou
poornima
Re: locking user's own tables from updation [message #53159 is a reply to message #53141] Thu, 29 August 2002 09:12 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
You could rename the table and replace it with a read only view (but the renamed table is still open).

You can move the table and it's indexes to a separate tablespace and then set the TS to read only.

You can add a before insert/update/delete trigger to the table which simply does a:
raise_application_error(-20501, 'Table X is read only');
Previous Topic: DBCA / CREATE DATABASE hangs (9i, Redhat 7.3)
Next Topic: Oracle processes
Goto Forum:
  


Current Time: Thu Sep 19 12:36:29 CDT 2024