A synonym is an alias for a schema object. Synonyms can provide a level of security by masking the name and owner of an object and by providing location transparency for remote objects of a distributed database. Also, they are convenient to use and reduce the complexity of SQL statements for database users.
Topics:
Oracle Database Administrator's Guide for information about synonyms
To create a synonym:
On the Workspace home page, click SQL Workshop and then Object Browser.
Object Browser appears.
Click Create.
From the list of object types, select Synonym.
Define the synonym:
Synonym Name - Enter a name.
Public or Private - Specify whether the synonym should be public or private.
Schema - Select the database schema (or user name) which owns the object upon which you want to create your synonym.
Object - Enter the name of the object upon which you want to create a synonym.
Database Link - Enter the name of the database link to use if the synonym is to be created on a remote object.
Click Next.
A confirmation page appears, which displays the SQL used to create the synonym.
Click Create Synonym.
To view a synonym:
On the Workspace home page, click SQL Workshop and then Object Browser.
Object Browser appears.
From the Object list, select Synonyms.
From the Object Selection pane, select a synonym.
The Object Details view appears displaying the following:
Synonym Owner
Synonym Name
Object Owner
Object Name
Object Type
Status
To drop a synonym in Object Browser:
On the Workspace home page, click SQL Workshop and then Object Browser.
Object Browser appears.
From the Object list, select Synonyms.
From the Object Selection pane, select a synonym and click Drop.
To confirm, click Finish.