遇到ORA-01536错误,首先要查看用户的表空间的限额
select * from dba_ts_quotas;
select * from user_ts_quotas;
max_bytes字段-1是代表没有限制,其它值多少就是多少.
dba_ts_quotas :描述所有用户表空间的限额
user_ts_quotas :描述当前用户表空间的限额。
如果查询结果中max_bytes字段不为-1,修改为无限制或者指定的大小。
不对用户做表空间限额控制:
GRANT UNLIMITED TABLESPACE TOuser;
这种方式是全局性的。 或者
alter useruserquota unlimited onuser_tablespace;
这种方式是针对特定的表空间的.
回收表空间限额控制:
revoke unlimited tablespace fromuser;
或者
alter useruserquota 0 onuser_tablespace;
错误号ORA-01536:space quota exceeded for table space ’ALCATEL’的解决办法
三个解决办法,任你选择:
(1) alter user USERNAME quota 100M on TABLESPACENAME;
(2) alter user USERNAME quota unlimited on TABLESPACENAME;
(3) grant unlimited tablespace to USERNAME;
已经解决,用户没有设置默认表空间
create user CSLMS
default tablespace CSLMS
temporary tablespace TEMP
profile DEFAULT;
grant connect to CSLMS with admin option;
grant resource to CSLMS with admin option;
select * from dba_ts_quotas;
select * from user_ts_quotas;
max_bytes字段-1是代表没有限制,其它值多少就是多少.
dba_ts_quotas :描述所有用户表空间的限额
user_ts_quotas :描述当前用户表空间的限额。
如果查询结果中max_bytes字段不为-1,修改为无限制或者指定的大小。
不对用户做表空间限额控制:
GRANT UNLIMITED TABLESPACE TOuser;
这种方式是全局性的。 或者
alter useruserquota unlimited onuser_tablespace;
这种方式是针对特定的表空间的.
回收表空间限额控制:
revoke unlimited tablespace fromuser;
或者
alter useruserquota 0 onuser_tablespace;
错误号ORA-01536:space quota exceeded for table space ’ALCATEL’的解决办法
三个解决办法,任你选择:
(1) alter user USERNAME quota 100M on TABLESPACENAME;
(2) alter user USERNAME quota unlimited on TABLESPACENAME;
(3) grant unlimited tablespace to USERNAME;
已经解决,用户没有设置默认表空间
create user CSLMS
default tablespace CSLMS
temporary tablespace TEMP
profile DEFAULT;
grant connect to CSLMS with admin option;
grant resource to CSLMS with admin option;