How to correctly make a public synonym

后端 未结 2 1536
面向向阳花
面向向阳花 2021-02-20 15:26

This is a pretty silly one, but I need help.

I have a table owned by mydbowner. It is named mydbowner.mytable. I tried to make a public synonym by issuing the command:

2条回答
  •  攒了一身酷
    2021-02-20 16:02

    The error you're getting implies that mydbowner.mytable is not, in fact a table. What does

    SELECT object_type
      FROM all_objects
     WHERE owner = 'MYDBOWNER'
       AND object_name = 'MYTABLE'
    

    return?

提交回复
热议问题