重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2662|回复: 1
打印 上一主题 下一主题

oracle 12c resource角色去掉了unlimited tablespace 权限

[复制链接]
跳转到指定楼层
楼主
发表于 2016-10-16 17:14:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
In this Document

Symptoms
Cause
Solution


Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.
Symptoms
In Oracle Database 12c,the following error is seen when trying to insert the data into a table,though the RESOURCE role is granted to the user
ORA-01950: no privileges on tablespace <tablespace name>
SQL> create user test identified by oracle123;
User created.
SQL> grant create session,resource,create table to test;
Grant succeeded.
SQL> conn test/oracle123
Connected.
SQL> create table example(name varchar2(10),num number);
Table created.
SQL> insert into example values('abc',10);
insert into example values('abc',10)
            *
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'

Cause
This is an expected behavior.
In Oracle Database 12c,RESOURCE role no longer grants UNLIMITED TABLESPACE system privilege by default.
Solution
Grant UNLIMITED TABLESPACE system privilege to the user manually.
SQL> conn / as sysdba
Connected.
SQL> grant unlimited tablespace to test;
Grant succeeded.
SQL> conn test/oracle123
Connected.
SQL> insert into example values('abc',10);
1 row created.
SQL> commit;
Commit complete.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2017-12-12 17:50:39 | 只看该作者
11G在授予resource权限时,会附带授予unlimited tablespace权限,但是UNLIMITED TABLESPACE权限不属于resource角色。
我们可以通过查看resource权限看到:

SQL>     select privilege from dba_sys_privs where grantee = 'RESOURCE';

PRIVILEGE
----------------------------------------
CREATE TRIGGER
CREATE SEQUENCE
CREATE TYPE
CREATE PROCEDURE
CREATE CLUSTER
CREATE OPERATOR
CREATE INDEXTYPE
CREATE TABLE

8 rows selected.

而在12C中,已经取消了附带授予的unlimited tablespace权限,所以需要单独授予unlimited tablespace才能在相应表空间创建段。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 00:55 , Processed in 0.099095 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表