oracle create synonym code example
Example 1: oracle create synonym
-- Can be a table, package, procedure...
CREATE OR REPLACE SYNONYM syn_name FOR my_schema.my_table;
CREATE OR REPLACE PUBLIC SYNONYM syn_name FOR my_schema.my_table;
-- Through a dblink:
CREATE OR REPLACE SYNONYM syn_name FOR my_schema.my_table@my_dblink;
Example 2: synonym oracle
CREATE OR REPLACE PUBLIC SYNONYM suppliers FOR app.suppliers;