oracle创建用户、表空间,并赋权

发布时间:2020-06-24 02:49:00 作者:flameover
来源:网络 阅读:861

--创建表空间

create tablespace test_tps   

datafile 'D:\app\Administrator\oradata\orcl\test_tps.dbf'   

size 1500M   

autoextend on next 5M;


--创建用户并制定表空间

create user test_tps identified by test_tps   

default tablespace test_tps;  

--赋权限

grant connect,resource to test_tps;  

grant create any sequence to test_tps;  

grant create any table to test_tps;  

grant delete any table to test_tps;  

grant insert any table to test_tps;  

grant select any table to test_tps;  

grant unlimited tablespace to test_tps;  

grant execute any procedure to test_tps;  

grant update any table to test_tps;  

grant create any view to test_tps;  


--赋权DBA

grant sysdba to test_tps;

--撤回dba权限

revoke dba from 用户

---------------------------------------------------------------

--授权命令:

--GRANT   {DBA|RESOURCE|CONNECT}   TO   {PUBLIC|user-list}  

--PUBLIC|user-list:全部或指定的用户。     

--三种权限居且仅居其一,事务处理过程中不要执行GRANT语句。


推荐阅读:
  1. Hbase无法给用户赋权
  2. Oracle 赋权和回收权限的生效时间

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

oracle 创建表 表空间

上一篇:速学python之headfirst python第三章学习笔记

下一篇:java调用main自动执行testng方法一

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》