dba_ts_quotas

SQL> desc dba_ts_quotas;
名称 是否为空? 类型
----------------------------------------- -------- ----------------------------
TABLESPACE_NAME NOT NULL VARCHAR2(30)
USERNAME NOT NULL VARCHAR2(30)
BYTES NUMBER
MAX_BYTES NUMBER
BLOCKS NUMBER
MAX_BLOCKS NUMBER
DROPPED VARCHAR2(3)

SQL> select tablespace_name,username,sum(bytes)/1024/1024,max_bytes from dba_ts_quotas
group by tablespace_name,username,max_bytes;

TABLESPACE_NAME USERNAME
------------------------------ ------------------------------
SUM(BYTES)/1024/1024 MAX_BYTES
-------------------- ----------
SYSAUX DMSYS
.25 209715200

USERS SCOTT
7.6875 -1

SYSAUX SYSMAN
50.4375 -1


TABLESPACE_NAME USERNAME
------------------------------ ------------------------------
SUM(BYTES)/1024/1024 MAX_BYTES
-------------------- ----------
SYSAUX OLAPSYS
15.5625 -1


已选择4行。

SQL> alter user scott quota 180m on users;

用户已更改。

SQL> select tablespace_name,username,max_bytes/1024/1024 from dba_ts_quotas;

TABLESPACE_NAME USERNAME
------------------------------ ------------------------------
MAX_BYTES/1024/1024
-------------------
USERS SCOTT
180

SYSAUX OLAPSYS
-9.537E-07

SYSAUX SYSMAN
-9.537E-07


TABLESPACE_NAME USERNAME
------------------------------ ------------------------------
MAX_BYTES/1024/1024
-------------------
SYSAUX DMSYS
200


已选择4行。

你可能感兴趣的:(dba)