After using scott to log in to Oracle, a view is created, and the message "Permission is not enough" is displayed. How can I solve it?

Question: After using scott to log in to Oracle, when a view is created, it prompts "Insufficient permissions", how to solve it?
Answer:
This is because the scott account currently does not have permission to create views. The solution is:
first log in with the system account, where "tigertiger" is the password specified when installing Oracle (can be modified):
sqlplus system/tigertiger
and then execute:
grant create any view to scott
prompt: the authorization is successful.
Execute:
exit
to exit the current system account.

Then use sqlplus to log in to create a view, such as:
sqlplus scott/tigert
Create a simplest view below:
create or replace view v1
as
select * from t1;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324794994&siteId=291194637