|
#Á¤ÀÇ
SynonymÀ̶õ º¸Åë ½Ã½ºÅÛ°£ ´Ù¸¥ ¼ÒÀ¯ÀÚ(owner)¿¡°Ô º°ÄªÀ» ÁÖ±â À§ÇØ »ç¿ëÇϸç,
grant°¡ ÁÖ¾îÁø »óÅ¿¡¼ Àǹ̰¡ ÀÖ´Ù.
#»ý¼ºÇϱâ
1.µÎ Owner HRM°ú ACT°¡ ÀÖ´Ù°í Çϸé ÀÏ´Ü, HRMÀ¸·Î Á¢¼ÓÇÏ¿© table »ý¼ºÈÄ ±ÇÇѺο©
Create table HRM.EMP
(emp_no varchar2(5) not null,
emp_nm varchar2(30) not null);
grant select, insert, update, delete, references, alter, index on HRM.EMP to ACT;
2.ACT·Î Á¢¼ÓÇÏ¿©
CREATE SYNONYM ACT.EMP FOR HRM.EMP;
3.select * from emp;
#ÀǹÌ
HRM ¼ÒÀ¯ÀÇ EMP tableÀ» ACT°¡ ÀÚ±â¼ÒÀ¯ÀÇ TableÀÎ¾ç »ç¿ëÇÑ´Ù´Â °ÍÀÔ´Ï´Ù.
|