标签:c style class blog code java
SQL> drop table MOD_RESALT_PERF_CARR_1X_ZTE; create table MOD_RESALT_PERF_CARR_1X_ZTE(……)partition by ……(……); create unique index …… on MOD_RESALT_PERF_CARR_1X_ZTE(……) local tablespace …… compress; ORA-00054: resource busy and acquire with NOWAIT specified ORA-00955: name is already used by an existing object ORA-14016: underlying table of a LOCAL partitioned index must be partitioned
SQL> SQL> select t2.username , t2.sid, t2.serial#, t2.logon_time, t2.MACHINE, t2.PROGRAM from v$locked_object t1, v$session t2 where t1.SESSION_ID=t2.SID and t1.object_id = (select object_id from user_objects where object_name = ‘MOD_RESALT_PERF_CARR_1X_ZTE‘); USERNAME SID SERIAL# LOGON_TIME MACHINE PROGRAM ------------------------------ ---------- ---------- ----------- ---------------------------------------------------------------- ------------------------------------------------ FJCRNOP 596 39243 2014-5-27 1 fjcol8 JDBC Thin Client
SQL> alter system kill session ‘596,39243‘; alter system kill session ‘596,39243‘ ORA-00031: session marked for kill
此状态下,若drop 此表仍然会报错ORA-00054。
SQL> select a.spid,b.sid,b.serial#,b.username from v$process a,v$session b where a.addr=b.paddr and b.status=‘KILLED‘; SPID SID SERIAL# USERNAME ------------ ---------- ---------- ------------------------------ 282882 596 39243 FJCRNOP SQL> SQL> select spid, osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=596; SPID OSUSER PROGRAM ------------ ------------------------------ ------------------------------------------------ 282882 fjcrnop JDBC Thin Client
oracle@cwwydb2$uname -a AIX cwwydb2 3 5 00C445A54C00 oracle@cwwydb2$id uid=500(oracle) gid=203(oinstall) groups=204(dba) oracle@cwwydb2$ps -ef|grep 282882 oracle 282882 1 2 13:08:01 - 4:12 oraclecwwydb2 (LOCAL=NO) oracle 1274428 705422 0 17:16:07 pts/1 0:00 grep 282882 oracle@cwwydb2$kill 282882 oracle@cwwydb2$ps -ef|grep 282882 oracle 282882 1 2 13:08:01 - 4:12 oraclecwwydb2 (LOCAL=NO) oracle 790910 705422 0 17:17:00 pts/1 0:00 grep 282882 oracle@cwwydb2$kill -9 282882 oracle@cwwydb2$ps -ef|grep 282882 oracle 282892 705422 0 17:17:17 pts/1 0:00 grep 282882
SQL> select a.spid,b.sid,b.serial#,b.username from v$process a,v$session b where a.addr=b.paddr and b.status=‘KILLED‘; SPID SID SERIAL# USERNAME ------------ ---------- ---------- ------------------------------
SQL> @D:\jingyu\partitiontables\mod_resalt_perf_carr_1x_zte.tab Table dropped Table created Index created Index created Index created SQL>
记录一则ORA-00054,ORA-00031解决过程,布布扣,bubuko.com
标签:c style class blog code java
原文地址:http://www.cnblogs.com/jyzhao/p/3756023.html