ORACLE SOS

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6300|回复: 3

Creating index in non existing schema results in ORA-1129 and not ORA-1918

[复制链接]

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
发表于 2014-9-22 16:45:18 | 显示全部楼层 |阅读模式
Bug 17058847  Creating index in non existing schema results in ORA-1129 and not ORA-1918 This note gives a brief overview of bug 17058847.
The content was last updated on: 22-OCT-2013
Click here for details of each of the sections below.
Affects:
Product (Component)Oracle Server (Rdbms)
Range of versions believed to be affectedVersions BELOW 12.2
Versions confirmed as being affected
Platforms affectedGeneric (all / most platforms affected)
Fixed:
The fix for 17058847 is first included in

Interim patches may be available for earlier versions - click here to check.
Symptoms:Related To:
  • (None Specified)
Description
Creating an index in a non-existing schema results inORA-1129 instead of ORA-1918. The existence of user is not checked before executing create index.  Workaround  None other than issue a valid SQL as it will error with or without this fix.


Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复

使用道具 举报

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
 楼主| 发表于 2014-9-22 16:47:21 | 显示全部楼层
6:48:38 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

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


Elapsed: 00:00:00.02

16:49:05 SQL> select count(*) from dba_users where username='ABC';

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

Elapsed: 00:00:00.03

Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复 支持 反对

使用道具 举报

1

主题

8

帖子

41

积分

新手上路

Rank: 1

积分
41
发表于 2014-9-26 10:00:12 | 显示全部楼层
SYS@test>select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SYS@test>create index abc.indx_t2 on service.t2(id);
create index abc.indx_t2 on service.t2(id)
                                    *
ERROR at line 1:
ORA-00942: table or view does not exist


SYS@test>select count(*) from dba_users where username='ABC';

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

11.2.0.3没有这个bug?
回复 支持 反对

使用道具 举报

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
 楼主| 发表于 2014-9-29 16:53:55 | 显示全部楼层
parknkjun 发表于 2014-9-26 10:00
SYS@test>select * from v$version;
BANNER
----------------------------------------------------------- ...

service.t2(id)  你这个要真实存在的
abc.indx_t2 是不存在的

Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|ORACLE SOS 技术论坛

GMT+8, 2024-5-3 02:10 , Processed in 0.040085 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表