Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suggestions for security please....

Status
Not open for further replies.

lewisp

Programmer
Aug 5, 2001
1,238
0
0
GB
Whats the best way to allow full access to a table in an Oracle form, but prevent the same (Oracle) user from modifying data in the same table using Sql*Plus, TOAD or somesuch?

I've tried using the PRODUCT_USER_PROFILE method which works fine for Sql*Plus, but I cant use this method to prevent access with TOAD. Can I?
 
1. Revoke all the permissions given to the user for the required table
2. Create a Role
3. Grant the necessary permissions for that table to the Role
4. On the new-form instance trigger of the form set the role using the dbms_session packaged procedure
5. Once the session gets over the role also looses its scope and this prevents access thru any other mode


 
Thanks avictora.

Is there anything I can do if the user is also the table owner?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top