标签:style blog http color io ar for 数据 问题
今天有同事反映最近几天的数据在oracle中查不到。检查TT的错误日志显示:TT5211: TT5211: Oracle out of resource error in OCIStmtExecute(): ORA-01536: space quota exceeded for tablespace ‘TBSLOG‘ rc = -1 -- file "bdbTblH.c", lineno 2452, procedure "ttBDbStmtForce()"。这时看到了max_bytes=-1,说明已经将username在tbslog上的配额改成unlimited。检查tt的同步已经恢复正常,错误日志也不再报配额不足的错误。
11g
sqlplus报错ORA-28002: the password will expire within 5 days 的解决方法
11g增加了登录时间的限制,在DEFAULT Profile里能查到,如下所示:
SQL> select * from dba_profiles where profile=‘DEFAULT‘ AND RESOURCE_NAME=‘PASSWORD_LIFE_TIME‘;
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
LIMIT字段显示180天。
看一下10g的值:
SQL> select * from dba_profiles where profile=‘DEFAULT‘ AND RESOURCE_NAME=‘PASSWORD_LIFE_TIME‘;
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED
解决方法:
1、将LIMIT值改为UNLIMITED即可,修改马上生效,不需要重启数据库
SQL> alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;
Profile altered.
SQL> select * from dba_profiles where profile=‘DEFAULT‘ AND RESOURCE_NAME=‘PASSWORD_LIFE_TIME‘;
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED
2、已经报错的用户则必须修改一次密码,密码可以不变。
SQL> alter user user1 identified by user1;
User altered.
IT忍者神龟之 配额不足的解决方法ORA-01536: space quota exceeded for tablespace
标签:style blog http color io ar for 数据 问题
原文地址:http://blog.csdn.net/vipyhd/article/details/39255037