Oracle 12cでシノニムの情報を表示する
環境
Oracle 12.2.0.1.0
書式
SELECT * FROM DBA_SYNONYMS WHERE SYNONYM_NAME = 'シノニム名' SELECT * FROM USER_SYNONYMS WHERE SYNONYM_NAME = 'シノニム名'
使用例1
SQL> SELECT * FROM DBA_SYNONYMS WHERE SYNONYM_NAME = 'CFT_SYN' 結果 OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK ORIGIN_CON_ID YAMUS CFT_SYN KAKIU CFT_SYN (NULL) 0
使用例2
SQL> SELECT * FROM USER_SYNONYMS WHERE SYNONYM_NAME = 'CFT_SYN' 結果 SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK ORIGIN_CON_ID CFT_SYN YMUSER CFT_SYN (NULL) 0