Trying to solve ORA-00980: synonym translation is no longer valid
I found out from further reading to export from newer to older version of Oracle DB you have to use the export utility of older version. If I attempt to see the tables in my 9i version 9.2.0.1.0 Enterprise Edition DB from the Oracle Navigator in 9i version 9.0.1.1.0 Personal Edition, I get the "ORA-00980: synonym translation is no longer valid".
I found the following SQL statement from an Oracle DBA who works for a consulting firm but received the error at the end of the copy&paste. I ran the following script in SQLPLUS logged in as SYSTEM and it comes back with error per the following copy&paste from SQLPLUS:
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Jul 25 11:27:28 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> select 'drop '||decode (s.owner,'PUBLIC','PUBLIC SYNONYM ',
2 'SYNONYM'||s.owner||'.')||s.synonym_name||';'
3 from dba_synonyms s
4 where table_owner not in('SYSTEM','SYS')
5 and db_link is null
6 and not exists
7 (select 1
8 from dba_objects o
9 where s.table_owner=o.owner
10 and s.table_name=o.object_name);
from dba_synonyms s
*
ERROR at line 3:
ORA-00980: synonym translation is no longer valid
I get the error "ORA-00980: synonym translation is no longer valid" even when I do a simple "select * from dba_synonyms. dba_synonyms is a view based on a SQL statement.
Perplexed,
aascotty



