Oracle authorizes the creation of synonyms

Business background

I want to query the OPEN_ACCOUNT_APPLY table under the jgtotctest library in the omtest library

Authorization

Execute under the jgtotctest library

grant select on jgtotctest.OPEN_ACCOUNT_APPLY to omtest;

Create synonyms

Execute under the omtest library

create or replace synonym OPEN_ACCOUNT_APPLY for jgtotctest.OPEN_ACCOUNT_APPLY;

Query the established synonyms

select *
from OPEN_ACCOUNT_APPLY;

Guess you like

Origin blog.csdn.net/qq_41489540/article/details/114088351