Create a synonym for a remote table

You can create a synonym for a remote table in another database or a remote table using a qualified name in the CREATE SYNONYM statement. For example, the following statement creates a synonym for rdb@srsys:rtab:
CREATE SYNONYM myrtab FOR rdb@rsys:rtab;

It is possible for a synonym to exist in both the local and remote server. In the previous example, it is possible that rtab is itself a synonym for rdb2@rsys2:rtab2. The chain of synonyms is followed when retrieving catalog information until the physical database and server where the table is located are found. If a synonym ultimately points back to itself, an error is returned.