There are two schemas in a Oracle database.
MYSCHEMA
that is controlled by me.
OTHERSCHEMA
that is not controlled by me.
I just know I can get result from select * from OTHERSCHEMA.OTHEROBJECT
. However, OTHEROBJECT
is a synonym.
In my package, I have a statement like
insert into MYSCHEMA.MYTABLE(COL1) select COL1 from OTHERSCHEMA.OTHEROBJECT;
But it gave me Table or view does not exist.
How can I solve or bypass this problem? Thanks!