Results 1 to 4 of 4

Thread: synonyms

  1. #1
    Join Date
    Jul 2005

    Unanswered: synonyms

    I was tryng to create a synonym and it gives me this error
    ERROR at line 1:
    ORA-00980: synonym translation is no longer valid

    inspite of recreating the synonym and granting access to it. Any idea what I can do regarding this

  2. #2
    Join Date
    Jan 2004
    Croatia, Europe
    Provided Answers: 5
    This error means that you are creating a synonym which is based on a table/view which doesn't exist. So - make sure it refers existing table or view.

    Could you post CREATE SYNONYM statement, as well as SELECT COUNT(*) FROM original_table_or_view so that we could make sure what is happening there. Please, copy the entire SQL*Plus session and post it here.

  3. #3
    Join Date
    Jul 2005
    SQL> sho user
    USER is "SYSADM"
    SQL> select count(*) from tab1
    2 ;


    SQL> grant all on tab1 to schema1;

    Grant succeeded.


    SQL> sho user
    USER is "schema1"
    09:39:05 SQL> create synonym tab1 for sysadm.tab1;
    create synonym tab1 for sysadm.tab1
    ERROR at line 1:
    ORA-00955: name is already used by an existing object

    Infact when I look up for the synonyms in schema1, I can see it TAB1 and the table_owner is SYSADM.
    It says name is already exisiting, so I tried to give a count on it and see but then I get the following:

    Elapsed: 00:00:00.14
    09:39:19 SQL> select count(*) from tab1;
    select count(*) from tab1
    ERROR at line 1:
    ORA-00942: table or view does not exist

    Elapsed: 00:00:00.15
    09:39:24 SQL> desc tab1;
    ORA-04043: object "SYSADM"."tab1" does not exist

  4. #4
    Join Date
    Jul 2003
    select owner, object_name, object_type, status
    from dba_objects
    where object_name = 'tab1';
    - The_Duck
    you can lead someone to something but they will never learn anything ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts