after receiving instructions from the user today, you need to create a table in the database. After the script is written, the user is successfully executed, but the user is found to be using the error user1, user2 should be used.
Delete the original table, log on to user2 again, and execute the script. Everything is OK.
the user user1 cannot access the result. Suddenly, the user is not authorized, and the PL/SQL authorization fails, only scripts can be used for execution
execution:
grant select, insert, update on table name to user name;
users using user1 still cannot access the table directly. If you select * From user2. the table name is OK, ask an expert, create a synonym in user1
Create a synonym statement in Oracle:
Create synonym table_name for user2.table _ name;
although I have been busy for one afternoon, I have learned new things. What I learned is that it is worth your attention ~~~
good knowledge, good experience, and sharing can save a lot of time ~~~