首页 > 数据库技术 > 详细

解决Oracle在scott用户下创建视图(VIEW)权限不足的方法

时间:2016-03-31 23:24:37      阅读:268      评论:0      收藏:0      [点我收藏+]

问题描述:在scott用户下创建视图的时候,报错:权限不足。(其他用户以此类推)
解决方法

    1. 以dba用户登录
      [sql] view plain copy
       
       print?
      1. sqlplus / as sysdba  
    2. 赋予scott用户创建VIEW的权限
      [sql] view plain copy
       
       print?
      1. grant create view to scott  
    3. 以scott用户登录oracle
      [sql] view plain copy
       
       print?
      1. conn scott/tiger  
    4. 创建视图成功
      [sql] view plain copy
       
       print?
      1. CREATE OR REPLACE VIEW myview AS  
      2.     SELECT * FROM emp where deptno = 20; 

解决Oracle在scott用户下创建视图(VIEW)权限不足的方法

原文:http://www.cnblogs.com/rain318/p/5342927.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!