问题描述:在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; 

相关文章:

  • 2021-06-23
  • 2021-09-15
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-01-05
  • 2021-07-06
  • 2021-05-14
  • 2021-07-11
  • 2021-07-14
相关资源
相似解决方案