---
title: "删除临时表报ORA-14452错误解决方法"
author: "剑雨123"
date: "2014-04-28T09:56:16Z"
tags: []
categories: ["数据库"]
slug: "ora-14452"
draft: false
lastmod: "2014-04-28T09:56:16Z"
id: 2056009
url: "https://cuug789.iteye.com/blog/2056009"
---

跑存储过程，里面有张临时表。跑完后打算删除临时表报ORA-14452：An attempt was made to create, alter or drop an index on temporary table which is already in use
如果您还有更多疑问，可点击cuug官网了解更多。
解决方法：

实际上要么就是等，等到资源释放。要么就是删除sid。

1、查询object_id

select object_id from dba_objects where object_name=UPPER('TBL_1');

-------

1199531

2、根据object_id查出session

select sid from v$lock where id1=1199531;

--------

186

3、根据sid查询SERIAL#

select serial# from v$session where sid=186;

----

57893

4、

alter system kill session '186,57893';