Synonyms
Synonym is an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym. Synonyms provide both data independence and location transparency. Synonyms permit applications to function without modification regardless of which user owns the table or view and regardless of which database holds the table or view. Using dbForge Studio you can create, edit and delete synonyms.
Creating a Synonym
- In the Database Explorer window, right-click the Synonyms folder, and then click New Synonym on the shortcut menu.
- Provide a synonym name in the opened dialog box. Optionally, you can change schema for the object.
- Click Create.
A new document appears with template in Design view. Choose synonym parameters and save the document to have the synonym created. You can switch to Text view to inspect generated SQL query.
Editing a Sequence
- In the Database Explorer window, expand the Synonym folder.
- Right-click a required sequence, and then click Edit Synonym on the shortcut menu.
Editing a synonym is as easy as the following 4 steps:
- Choose whether the object is located in the same database or remote one.
- For local database choose object type, for the remote one choose database link.
- Choose an object schema.
- Choose an object name.
For local database the available names are automatically suggested in drop-down lists. In case of remote database you have to input object’s schema and name yourself.
Deleting a Synonym
- In the Database Explorer window, expand the Synonym folder.
- Right-click a required synonym, and then click Delete on the shortcut menu.
Want to Find out More?
Take a quick tour to learn all about the key benefits delivered by dbForge Studio for Oracle.
Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for Oracle?