You are not authorized to create a view in Oracle. You are authorized to create a view in oracle.

Source: Internet
Author: User

You are not authorized to create a view in Oracle. You are authorized to create a view in oracle.

Q: After using scott to log on to Oracle, the system creates a view and prompts "insufficient Permissions". How can this problem be solved?
Answer:
This is because scott has no permission to create a view. Solution:
First, use the system account to log on. "tigertiger" indicates the password specified during Oracle Installation (which can be modified ):
Sqlplus system/tigertiger
Then execute:
Grant create any view to scott
Prompt: Authorization successful.
Run:
Exit
Exit the current system account.

Use sqlplus to log on to create a view, for example:
Sqlplus scott/tigert
Create a simple view as follows:
Create or replace view v1
As
Select * from t1;

 

Sometimes the above method still cannot solve the problem, use the following method:

-- Create view permission. Generally, this statement is used for searching on the Internet, but it still cannot be created.
Grant create view to B;

-- Grant query permission
Grant select any table to B;

-- Grant Permissions
Grant select any dictionary to B;

Appendix: if the above method cannot solve your problem, try the following method. My problem is solved. record it. I am looking for more than half a day;

 

Description:

Same Database: DB1

Two Custom Users: USER1 and USER2

Create a view in USER1 and try to include the table in user2. The system prompts "insufficient Permissions"

Run the following SQL statement to modify and use the statement as needed:

-- Authorize USER1

Grant create any table to USER1;
Grant select any table to USER1;
Grant comment any table to USER1;
Grant lock any table to USER1;
Grant select any dictionary to USER1;

 

-- Authorize USER2

Grant create any table to USER2;
Grant select any table to USER2;
Grant comment any table to USER2;
Grant lock any table to USER2;
Grant select any dictionary to USER2;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.