synonyms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandra517
    New Member
    • Feb 2012
    • 1

    synonyms

    hi,
    i am getting an error regarding synonyms.
    i created a private synonym for a column from a table.
    as create synonym <synonym name> for <colname.tablen ame>
    to retrieve the column i have given this query.

    sql>select <synonymname> from <tablename>;

    but i am getting error like this

    ERROR at line 1:
    ORA-04045: errors during recompilation/revalidation
    ORA-00980: synonym translation is no longer valid

    plz help me
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    You can not create synonym for a column. You can create synonym for a table.

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      and when you select use this

      select column_name from synonym name;

      Comment

      Working...