IT Ninja Turtles quota insufficient solution ORA-01536: spacequotaexceededfortablespace
Today, some colleagues reported that data in the past few days could not be found in oracle. Check TT error Log display: 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 ()".
Check oracle for the obvious insufficient tablespace quota:
SQL> select * from dba_ts_quotas where username = 'username ';
TABLESPACE_NAME username bytes MAX_BYTES BLOCKS MAX_BLOCKS DRO
---------------------------------------------------------------------------------------------
TBSLOG1 USERNAME 6835470336-1 834408-1 NO
The quota of USERNAME in table space TBSLOG1 is unlimited, and no TBSLOG quota is displayed.
Change quota:
SQL> alter user USERNAME quota unlimited on tbslog;
User altered.
SQL> select * from dba_ts_quotas where username = 'username ';
TABLESPACE_NAME username bytes MAX_BYTES BLOCKS MAX_BLOCKS DRO
---------------------------------------------------------------------------------------------
Tbslog username 6835470336-1 834408-1 NO
TBSLOG1 USERNAME 6835470336-1 834408-1 NO
Max_bytes =-1 indicates that the quota of username on tbslog has been changed to unlimited. Check that the tt synchronization has been back to normal, and the error log does not report the error of insufficient quota.
11g sqlplus error ORA-28002: the password will expire within 5 days Solution
11g adds the logon time limit, which can be found in the DEFAULT Profile, as shown below:
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
The LIMIT field is displayed for 180 days.
Let's take a look at the 10G value:
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
Solution:
1. Change the LIMIT value to UNLIMITED. The modification takes effect immediately without restarting the database.
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. If an error has been reported, you must change the password once.
SQL> alter user user1 identified by user1;
User altered.