IT Ninja Turtles quota insufficient solution ORA-01536: spacequotaexceededfortablespace

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.