spool all_syns.rslt 

set linesize 80;
set pagesize 1000;
set long 50;
set echo on;

break on "OWNER" on "TABLE";

/* ****************************************************** */
/*                                                        */
/*  - will show all the synonyms for a given database     */
/*                                                        */
/*         @c:\oracle\sql\all_syns.sql                    */ 
/*                                                        */
/* ****************************************************** */

select 	substr(owner,1,10)                      "OWNER",
        substr(table_name,1,25)               	"TABLE",
        substr(table_owner,1,25)               	"TBL OWNER",
        substr(synonym_name,1,25)		"SYNONYM"
from 	all_synonyms 
order by 1 asc, 2 asc, 3 asc;

set echo off;
spool off;
set long 80;
commit;









