Is it possible in oracle dbms for a user to have the permission to create a table but not have the permission to insert in it although the same user just created it?
Thank you in advance!
Is it possible in oracle dbms for a user to have the permission to
Share
Short answer:
No, it’s not.
Longer answer:
You can do pretty much anything you want. If you want to restrict insert access the usual method would be to create the table in a different schema. Assuming you have a table
empin the schemahr, which you wanted to access from the schema ‘users`:You would grant
userspermission to SELECT from the tableempwhen connected ashr:or, if you also want
usersto be able to UPDATEemp:Lastly, when connected as
users, you prefix the table name with the schema it is located in:You can now select from the table but not insert into it.