잘못 등록된 SYNONYMS가 있어서(TAB와 이름이 같아 select * from tab 하면 동의어 해석 불가라 해서..)
drop synonym tab; 를 해버렸더니...
select * from tab 하면 정보가 뜨질 안네요..
문제가 생길수 있는건가요?
자문 자답이군요...
TAB은 뷰라서 시스템에 영향은 없습니다.
아래에 뷰를 생성하는 방법과
다른 계정에서 뷰를 이용하는 방법입니다.
CREATE OR REPLACE VIEW SYS.TAB
(TNAME,TAB,CLUSTERID)
AS
select o.name,
decode(o.type#, 2, 'TABLE', 3, 'CLUSTER',
4, 'VIEW', 5, 'SYNONYM'), t.tab#
from sys.tab$ t, sys.obj$ o
where o.owner# = userenv('SCHEMAID')
and o.type# >=2
and o.type# <=5
and o.linkname is null
and o.obj# = t.obj# (+)
CREATE SYNONYM tab FOR SYS.TAB;