kill rebuilt index

简介: 脚本内容cnsz081302:cch > more cch_rebuild_index01.s*::::::::::::::cch_rebuild_index01.sh::::::::::::::cd $HOME/wcsqlplus /nolog @$HOME/wc/cch_rebuild_index01.

脚本内容
cnsz081302:cch > more cch_rebuild_index01.s*
::::::::::::::
cch_rebuild_index01.sh
::::::::::::::
cd $HOME/wc
sqlplus /nolog @$HOME/wc/cch_rebuild_index01.sql
::::::::::::::
cch_rebuild_index01.sql
::::::::::::::
conn / as sysdba
spool cch_rebuild_index01.log
set timing on
set time on
set echo on
alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 rebuild online parallel 8;
alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 noparallel;
spool off
exit
 
日志信息:
cnsz081302:cch > more nohup.out
 
SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 21 21:23:15 2018
 
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
 
Connected.
21:23:15 sys@cch>alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 rebuild online parallel 8;
alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 rebuild online parallel 8
*
ERROR at line 1:
ORA-08104: this index object 837231 is being online built or rebuilt
 
 
Elapsed: 00:00:00.03
21:23:15 sys@cch>alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 noparallel;
alter index cchlogtmp.IDX_MAIN_INFO_T_SYSID_SMS_3 noparallel
*
ERROR at line 1:
ORA-08104: this index object 837231 is being online built or rebuilt
 
 
Elapsed: 00:00:00.01
21:23:15 sys@cch>spool off
21:23:15 sys@cch>exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
 
官方解释:
cnsz081302:cch > oerr ora 08104
08104, 00000, "this index object %s is being online built or rebuilt"
// *Cause:  the index is being created or rebuild or waited for recovering
//          from the online (re)build
// *Action: wait the online index build or recovery to complete
cnsz081302:cch >
 
 
清理方法:
declare
isClean boolean;
object_id binary_integer;
wait_for_lock binary_integer;
begin
object_id:=837231;
wait_for_lock:=null;
isClean := sys.dbms_repair.online_index_clean();
commit;
end;
/

目录
相关文章
|
安全 C#
【Azure 应用服务】在安全漏洞扫描中发现有泄露服务器IIS版本的情况,如何实现屏蔽服务版本号信息呢?
【Azure 应用服务】在安全漏洞扫描中发现有泄露服务器IIS版本的情况,如何实现屏蔽服务版本号信息呢?
523 1
|
安全 算法 网络安全
IPsec小实验:手工方式建立保护IPv4报文的IPsec-ESP隧道(上)
IPsec小实验:手工方式建立保护IPv4报文的IPsec-ESP隧道
IPsec小实验:手工方式建立保护IPv4报文的IPsec-ESP隧道(上)
|
编解码 Java Linux
从开发小白到直播软件开发的音视频专家
本文整理自卢俊的演讲,目标读者是对音视频开发感兴趣但是又不知道如何下手的初学者们,希望对大家有所帮助。
|
Oracle 关系型数据库 数据库
LeetCode - 48. Rotate Image
48. Rotate Image  Problem's Link  ---------------------------------------------------------------------------- Mean:  顺时针旋转矩阵.
879 0
|
PHP
php empty()和isset()
2015年12月11日 10:59:08 1 echo phpversion(); //5.6.13 2 3 $a = array( 4 'aaa' => 1, 5 'bbb' => 0, 6 'ccc' => null, 7 ); 8 ...
1186 0
|
2天前
|
云安全 人工智能 安全
AI被攻击怎么办?
阿里云提供 AI 全栈安全能力,其中对网络攻击的主动识别、智能阻断与快速响应构成其核心防线,依托原生安全防护为客户筑牢免疫屏障。