如何在Oracle 12c中在表空间上授予用户空间资源

Pra*_*h G 1 oracle tablespace oracle-sqldeveloper oracle12c

我已经在oracle 12c标准版中创建了一个用户。

现在,我尝试在sql developer中使用用户名和密码创建表,但出现以下错误。

SQL Error: ORA-01950: no privileges on tablespace 'USERS'01950. 00000 -  "no privileges on tablespace '%s'"
Run Code Online (Sandbox Code Playgroud)

它还显示了以下原因和措施:

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.
Run Code Online (Sandbox Code Playgroud)

谁能帮我解决这个问题。我的用户名是c ## santh

APC*_*APC 6

您需要将表空间上的配额授予用户。表空间是一种逻辑上组织可用于存储数据的磁盘空间的方法。通常,即使在如今“存储便宜”的日子里,我们也会为普通用户提供固定数量的空间。例如,此命令将允许他们使用USERS表空间上的128 MB存储:

alter user c##santh quota 128M on users;
Run Code Online (Sandbox Code Playgroud)

您可以改用QUOTA UNLIMITED,这显然不限制用户可以抓住多少空间。无限配额对应用程序所有者架构很有用。