문제

SQL Developer shows the creation and last DDL time for a public synonym in a table:

CREATED         15-AUG-09
LAST_DDL_TIME   15-AUG-09
OWNER           PUBLIC
SYNONYM_NAME    ISEMPTY
TABLE_OWNER     MDSYS
TABLE_NAME      OGC_ISEMPTY
DB_LINK     (null)

How can I get the same information via a SQL query?

select *  from all_synonyms where synonym_name = 'ISEMPTY'

does not get the created/last ddl dates.

More generally, is there a good way to see the queries that sql developer uses to display the data it displays (when you do not have access to a profiler)? Thanks

도움이 되었습니까?

해결책

You need the ALL_OBJECTS system view:

select *
  from all_objects
 where owner = 'OWNER_NAME'
   and object_name = 'ISEMPTY'
   and object_type = 'SYNONYM'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top