Skip to content

Add Oracle Synonyms to explorer sidebar #1201

Description

@flacrosse

What

Show Oracle synonyms in the database explorer sidebar tree and include them in autocomplete/IntelliSense suggestions.

Both private synonyms (owned by the current user) and public synonyms, ideally under a "Synonyms" node within each schema — similar to how tables and views are grouped today.

Why (problem/use case)

Synonyms are a first-class object type in Oracle and are used heavily in production schemas — particularly public synonyms that alias objects across schemas or point to remote database links. When synonyms aren't visible in the tree:

  • You can't tell at a glance which synonym names are available without running SELECT * FROM all_synonyms manually.
  • Autocomplete doesn't suggest synonym names, so queries that rely on them have to be typed from memory.
  • It's impossible to inspect a synonym's target (owner, table/view name, DB link) without dropping to SQL.

Additional Context

Oracle exposes synonyms via ALL_SYNONYMS (accessible synonyms) and USER_SYNONYMS (owned by current user).

SELECT owner, synonym_name, table_owner, table_name, db_link
FROM all_synonyms
ORDER BY owner, synonym_name;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions