I really need to understand why the behavior below is happening.
First, I just create a synonym:
CREATE SYNONYM SYN_NAME FOR MY_TABE@MY_DBLINK;
Second, when I try to select the rows from the table, the following error appears:
ORA-00942: table or view does not exist
Great, the table really does not exist.
However when I try to compile a Package that is using the synonym above, the compilation error is:
ORA-01775: looping chain of synonyms
There are no synonyms with the same name, cycling synonyms or database link/synonym conflicts in the entire database. Of course that when I create the table in the target database link schema, the errors runaway.
Could some one explain me why the errors aren't the same?