zoukankan      html  css  js  c++  java
  • GRANT 授权

    sys(管理员)身份登录。创建usernamezsta_new

    create user zsta_new
      identified by password
      default tablespace ZSTA_DATA_TBS
      temporary tablespace TEMP
      profile DEFAULT;


    zsta_new用户授权(同意创建存储过程等):
    grant connect to zsta_new;
    grant resource to zsta_new;
    grant create any procedure to zsta_new;
    grant create any view to zsta_new;
    grant unlimited tablespace to zsta_new;
    grant create database link to zsta_new;
    grant debug any procedure, debug connect session to zsta_new;


    如果zsta_new用户创建了一个存储过程up_xx_gzmx 。并同意smxxpt用户调用

    那么以zsta_new用户登录,运行下面语句:

    grant execute on up_xx_gzmx to smxxpt


    參考:

    众所周知,grant是给别的用户赋权限。他不仅仅可以给表,视图赋权限,并且对存储过程。方法。以及包都可以。详细语法參考例如以下:

        1.grant给表赋权限: 

        grant  select/update on  table to user; 

        grant  权限 on 表  to 用户。

        2.grant 给存储过程赋权限: 

        grant execute on package/function/procedure to user; 

        grant execute on 过程、包、方法 to user

  • 相关阅读:
    一些信息熵的含义
    scikit-learn包的学习资料
    DB Scan算法的分析与实现
    ps教程连接
    用PS如何把图片调出时尚杂志色
    Linux FIFO读写时堵塞与非堵塞的效果
    yuyv转yuv420p代码及验证代码
    YUV格式介绍
    too many include files depth = 1024错误原因
    开发用小工具
  • 原文地址:https://www.cnblogs.com/cxchanpin/p/6902879.html
Copyright © 2011-2022 走看看