Home > Database > Mysql Tutorial > oracle 视图权限 oracle 创建视图权限不足

oracle 视图权限 oracle 创建视图权限不足

WBOY
Release: 2016-06-07 17:56:01
Original
1206 people have browsed it

在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;
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template