The oracle Database prompts ORA-01129 Error

Source: Internet
Author: User

The oracle Database prompts ORA-01129 Error

Database Version

The Code is as follows:  


SQL> select * from v $ version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit Production
PL/SQL Release 11.2.0.4.0-Production
CORE 11.2.0.4.0 Production
TNS for HPUX: Version 11.2.0.4.0-Production
NLSRTL Version 11.2.0.4.0-Production

Error Reporting ORA-01129

The Code is as follows:  

SQL> create index SERIVCE. ind_xifenfei on SERVICE. t_user (create_date );
Create index SERIVCE. ind_xifenfei on SERVICE. t_user (create_date)
*
ERROR at line 1:
ORA-01129: user's default or temporary tablespace does not exist

Query table space information

The Code is as follows:  

SQL> select TABLESPACE_NAME, CONTENTS, STATUS from dba_tablespaces where TABLESPACE_NAME in ('service', 'temp ');

TABLESPACE_NAME CONTENTS STATUS
------------------------------------------------
SERVICE PERMANENT ONLINE
TEMP TEMPORARY ONLINE

Through analysis, it is proved that all related tablespaces exist. Further Check the SQL statement and find that the SERVICE is incorrectly written as SERIVCE AND THE SERIVCE user is checked.

The Code is as follows:  
SQL> select count (*) from dba_users where username = 'serivce ';

COUNT (*)
----------
0

Through analysis, we can know that the index corresponding to the user does not exist, and thus the ORA-01129 error, according to the principle should report ORA-01918, rather than ORA-01129. querying MOS found Bug 17058847 Creating index in non existing schema results in ORA-1129 and not ORA-1918

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.