ORACLEsoctt cannot create a view

Source: Internet
Author: User
ORACLE scott user create view error: CREATEORREPLACENOFORCEVIEWclasses_viewASSELECT * FROMclasses; -- create view statement row 1st error: ORA-01031: insufficient permissions solution: 1. View Current scott user permission select * fromsession_privs; -- check whether there are CRES in the result.

ORACLE scott user error creating VIEW: create or replace noforce view classes_view as select * FROM classes; -- create view statement row 1st error: ORA-01031: insufficient permission solution: 1. view the current scott user permission select * from session_privs; -- check whether the result contains Cres.

An error occurred while creating the view for scott users in ORACLE:

Create or replace noforce view classes_view
AS
SELECT * FROM classes; -- create view statement

Row 3 has an error:
ORA-01031: insufficient Permissions


Solution:

1. View scott User Permissions

Select * from session_privs; -- whether the create view permission is available in the result


2. If not, use the administrator user (sys) grant permission.

Window key + R open the run Window input: sqlplus/as sysdba

Grant create view to scott

Authorization successful.

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.