ORA-01950: no privileges on tablespace xxxx

简介:

案例场景:

新建了一个表空间后TBS_MARKET_DAT,希望将归档的数据放置在这个表空间。


SQL> CREATE TABLESPACE TBS_MARKET_DAT
  2  DATAFILE '/u04/oradata/gps/bookt_data_arch_01.dbf'
  3  SIZE 100M
  4  AUTOEXTEND ON
  5  NEXT 10M
  6  MAXSIZE 4G
  7  EXTENT MANAGEMENT LOCAL
  8  SEGMENT SPACE MANAGEMENT AUTO ONLINE ;

用户A(默认表空间为TBS_ODS_DAT)创建表时指定表存储在表空间为TBS_MARKET_DAT时,遭遇ORA-01950: no privileges on tablespace 'TBS_MARKET_DAT'

 

原因分析:

   如下所示,用户没有权限在指定的表空间分配空间。只需要将表空间的权限授予给该用户即可。

[oracle@DB-Server ~]$ oerr ora 01950
01950, 00000, "no privileges on tablespace '%s'"
// *Cause:  User does not have privileges to allocate an extent in the
//          specified tablespace.
// *Action: Grant the user the appropriate system privileges or grant the user
//          space resource on the tablespace.

解决方法:

 

方法1: 授予用户对该表空间的UNLIMITED配额

 

SQL> ALTER USER ETL QUOTA UNLIMITED ON TBS_MARKET_DAT;

User altered.

SQL>

 

方法2: 重新授权resource角色给用户之后,便可以创建表格

 

SQL> GRANT RESOURCE TO ETL;

相关文章
|
2月前
|
容器
How to set the Undo_tablespace in PDB in Physical Standby RAC Database. (Doc ID 2726173.1)
How to set the Undo_tablespace in PDB in Physical Standby RAC Database. (Doc ID 2726173.1)
20 1
|
4月前
|
Oracle 关系型数据库
oracle no privileges on tablespace 'USERS
oracle no privileges on tablespace 'USERS
54 0
|
存储 Oracle 关系型数据库
【数据库】解决 oracle: ORA-01653: unable to extend table *.LINEORDER by 1024 in tablespace SYSTEM
【数据库】解决 oracle: ORA-01653: unable to extend table *.LINEORDER by 1024 in tablespace SYSTEM
410 0
【数据库】解决 oracle: ORA-01653: unable to extend table *.LINEORDER by 1024 in tablespace SYSTEM
|
SQL 关系型数据库
ORA-1652: unable to extend temp segment by 128 in tablespace xxx Troubleshootin
当收到告警信息ORA-01652: unable to extend temp segment by 128 in tablespace xxxx 时,如何Troubleshooting ORA-1652这样的问题呢? 当然一般xxx是临时表空间,也有可能是用户表空间。
2048 0

热门文章

最新文章