052-242(新增70题2018)

本文探讨了在创建数据库表时遇到ORA-01950错误的原因及解决办法。用户在使用授予的系统权限尝试创建表时收到错误提示,指出没有在指定表空间上的权限。文章详细解释了此错误的含义,即用户在特定表空间中没有分配段的权限,并提出了两种解决方案:一是授予用户适当的系统权限,二是为用户在该表空间上设置资源配额。

You execute the following set of commands to create a database user and to grant the system privileges in your production environment.

SQL> CREATE USER user01

IDENTIFIED BY oracle

DEFAULT TABLESPACE tbs1

TEMPORARY TABLESPACE temp

PROFILE default

/

SQL> GRANT create session, create table TO user01;

While executing the command to create a table, the user gets the following error message and the CREATE TABLE ... command fails.

ERROR at line 1:

ORA-01950: no privileges on tablespace

What could be the possible reason for this error message?

A. The tablespace TBS1 is full.

B. The user is not the owner of the SYSTEM tablespace.

C. The user does not have quota on the TBS1 tablespace.

D. The user does not have sufficient system privileges to create table in the TBS1 tablespace.

E. The user does not have sufficient privileges to create table on the default permanent tablespace.

Answer: C

ORA-01950: no privileges on tablespace 'string

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.

转载于:https://www.cnblogs.com/Babylon/p/8623756.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值