在scott用户下创建视图的时候,报错:权限不足,遇到这个问题,我也是束手无策,于是网上搜集整理了一下,晒出来和大家分享,希望可以帮助你们
问题描述:在scott用户下创建视图的时候,报错:权限不足。
(其他用户以此类推)
解决方法:
以dba用户登录
[sql]
代码如下:
sqlplus / as sysdba
赋予scott用户创建VIEW的权限
[sql]
代码如下:
grant create view to scott
以scott用户登录oracle
[sql]
代码如下:
conn scott/tiger
创建视图成功
[sql]
代码如下:
CREATE OR REPLACE VIEW myview AS
SELECT * FROM emp where deptno = 20;
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn