首页 文章

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

提问于
浏览
-1

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

现在我尝试使用sql developer中的用户名和密码创建一个表,但是我收到以下错误 .

SQL Error: ORA-01950: no privileges on tablespace 'USERS'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.

任何人都可以帮我解决这个问题 . 我的用户名是c ## santh

1 回答

  • 2

    您需要将表空间的配额授予用户 . 通常我们会向普通用户授予固定数量的空间 . 例如,这将允许他们使用128兆的USERS表空间:

    alter user c##santh quota 128M on users;
    

    您使用QUOTA UNLIMITED代替,这显然对用户可以抓取的空间没有限制 . 无限制配额适用于应用程序所有者架构 .

相关问题