944,183 Members | Top Members by Rank

Ad:
  • Oracle Discussion Thread
  • Unsolved
  • Views: 2408
  • Oracle RSS
Oct 26th, 2009
0

what is the difference between deny and revoke?

Expand Post »
hi everybody ...could anyone tell what is the difference between deny and revoke of privileges from a user.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
baheddad is offline Offline
7 posts
since Jan 2008
Oct 28th, 2009
0
Re: what is the difference between deny and revoke?
Permissions are cumulative and DENY takes precedence. REVOKE removes GRANT and DENY permissions previously assigned. Because all users are members of public, you should DENY permissions to public only when you want to prohibit access by all database users.

Hope that helps.
Reputation Points: 14
Solved Threads: 2
Light Poster
Cronless is offline Offline
29 posts
since Sep 2009
Oct 29th, 2009
0
Re: what is the difference between deny and revoke?
Only the owner of the object has the permission/access on the object. Other users needs to be granted permissions by the owner/dba for access which is taken back by the REVOKE command.

If permission is not granted it means it is denied and there is no command to DENY any previlages.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Nov 2nd, 2009
0
Re: what is the difference between deny and revoke?
thank you so much to replay ...but i need more explanation with example ,i did not get it yet.
thanks in advance.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
baheddad is offline Offline
7 posts
since Jan 2008
Nov 2nd, 2009
0
Re: what is the difference between deny and revoke?
you need to read books for all the details.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Nov 8th, 2009
0
Re: what is the difference between deny and revoke?
Dear Friend!

example as below

this used to changes the permissions on database
this DCL(DATA CONTROL LANGUGE)STATEMENT

*)GRANT---THIS IS ACCESS GARANTED ON PARTICLUR DB OR
USER
*)DENY----THIS IS PARTICLUR USER WAITING FOR ACCESS WHEN COMMETED THE DATA THEN PERMISSION ON DB

*)REVOKE--- THIS STATEMENT USE THE USER HAVE NO PERMISIONS

regards
Whizkidash
Reputation Points: 10
Solved Threads: 0
Newbie Poster
whizkidash is offline Offline
20 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Oracle Forum Timeline: SQL help
Next Thread in Oracle Forum Timeline: pl/sql block !





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC