oracle synonym

Solutions on MaxInterview for oracle synonym by the best coders in the world

showing results for - "oracle synonym"
America
31 Nov 2020
1-- Can be a table, package, procedure...
2CREATE OR REPLACE SYNONYM syn_name FOR my_schema.my_table;      
3CREATE OR REPLACE PUBLIC SYNONYM syn_name FOR my_schema.my_table;
4
5-- Through a dblink:
6CREATE OR REPLACE SYNONYM syn_name FOR my_schema.my_table@my_dblink;
7
8SELECT * FROM DBA_SYNONYMS WHERE SYNONYM_NAME = 'synonym_name';
Ben
21 Oct 2018
1CREATE OR REPLACE PUBLIC SYNONYM suppliers FOR app.suppliers;