![]() |
|||
|
![]() |
![]() |
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
![]() Term: SYNONYM
Definition: CREATE [ | OR REPLACE] [PUBLIC] SYNONYM [SYNONYM NAME] FOR OWNER.OBJECT_NAME Example Usage: In the example below, user Bob creates synonym for EMPLOYEE table which is owned by user Anne: SQL> CREATE SYNONYM EMPLOYEE FOR A.EMPLOYEE; Now user Anne logs in and grants only SELECT privilege to Bob on the EMPLOYEE table. Note that all other operations on the EMPLOYEE table would be restricted for user Bob. SQL> GRANT SELECT ON EMPLOYEE TO BOB; User Bob logs in and queries the EMPLOYEE table. SQL> SELECT EMPNO, ENAME FROM EMPLOYEE; Now user Bob attempts to DELETE the EMPLOYEE table records. The operation fails because of insufficient privileges: SQL> DELETE FROM EMPLOYEE; Related Links: |
![]() |
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2025 psoug.org |