Oracle

Object Privileges

Figo Kim 2006. 12. 1. 01:06
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
  • Object Privileges vary from object to object.
  • The owner has all the privileges.
  • The owner can give specific privileges on that owner's object.
[ Syntax ]
GRANT object_priv [(columns)]
ON       object
TO       {user|role|PUBLIC}
[WITH GRANT OPTION]

- ALL : spcifies all object privileges.
- PUBLIC : grants object privileges to all users

[Ex]
GRANT select ON employees TO sue, rich;

GRANT update (department_name, location_id)
ON       departments
TO       scott, manager;

To grant privileges :
  - The object must be in your schema
  - Must have been granted the object privileges WITH GRANT OPTION.

An object owner can grant any object privileges on the object to any other user or role of the database.

Privileges with "WITH GRANT OPTION"
[ex]
GRANT    select, insert
ON          departments
TO          scott
WITH GRANT OPTION;


Allow all users on the system to query data
GRANT select
ON alice.departments
TO PUBLIC;




'Oracle' 카테고리의 다른 글

Object Privileges  (0) 2006.12.01
Object Privileges  (0) 2006.12.01
Change Your Password  (0) 2006.11.30
Change Your Password  (0) 2006.11.30
Role  (0) 2006.11.30