create index ORA-00376 處理方法
臨時段reuse引起的異常,小記!
SQL> create index cwdtest.testidx1 on cwdtest.tab_level_2(FID) tablespace testidx;
create index cwdtest.testidx1 on cwdtest.tab_level_2(FID) tablespace testidx
*
ERROR at line 1:
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/opt/app/oracle/oradata/orcl/testidx01.dbf'
alter system set db_block_checksum=false;
System altered.
select 'exec dbms_space_admin.segment_corrupt('''||tablespace_name||''','||relative_fno||','||HEADER_BLOCK||')'
2 from dba_segments where SEGMENT_TYPE='TEMPORARY'and TABLESPACE_NAME = 'TESTIDX';
'EXECDBMS_SPACE_ADMIN.SEGMENT_CORRUPT('''||TABLESPACE_NAME||''','||RELATIVE_FNO|
--------------------------------------------------------------------------------
exec dbms_space_admin.segment_corrupt('TESTIDX',3,130)
SQL> SQL> exec dbms_space_admin.segment_corrupt('TESTIDX',3,130);
PL/SQL procedure successfully completed.
select 'exec dbms_space_admin.segment_drop_corrupt('''||tablespace_name||''','||relative_fno||','||HEADER_BLOCK||')'
2 from dba_segments where SEGMENT_TYPE='TEMPORARY'and TABLESPACE_NAME = 'TESTIDX';
'EXECDBMS_SPACE_ADMIN.SEGMENT_DROP_CORRUPT('''||TABLESPACE_NAME||''','||RELATIVE
--------------------------------------------------------------------------------
exec dbms_space_admin.segment_drop_corrupt('TESTIDX',3,130)
SQL> exec dbms_space_admin.segment_drop_corrupt('TESTIDX',3,130);
PL/SQL procedure successfully completed.
select owner, segment_name, tablespace_name, relative_fno, HEADER_BLOCK
from dba_segments
where SEGMENT_TYPE='TEMPORARY'
4 and TABLESPACE_NAME = 'TESTIDX';
no rows selected
SQL> exec SYS.DBMS_SPACE_ADMIN.TABLESPACE_REBUILD_BITMAPS('TESTIDX');
BEGIN SYS.DBMS_SPACE_ADMIN.TABLESPACE_REBUILD_BITMAPS('TESTIDX'); END;
*
ERROR at line 1:
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/opt/app/oracle/oradata/orcl/testidx01.dbf'
ORA-06512: at "SYS.DBMS_SPACE_ADMIN", line 120
ORA-06512: at line 1
SQL> SHOW PARAMETER db_block_checksum
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_checksum string FALSE
SQL> alter system set db_block_checksum=true;
System altered.
SELECT distinct(segment_name), owner, segment_type, partition_name FROM dba_extents
2 WHERE tablespace_name = 'TESTIDX';
no rows selected
SQL> create index cwdtest.testidx1 on cwdtest.tab_level_2(FID) tablespace testidx;
Index created.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29863023/viewspace-2704406/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- create index/create index online區別Index
- CREATE BITMAP INDEXIndex
- 【問題處理】ORA-00376 file xx cannot be read at this time
- create index online 和create index 不同及注意點Index
- hive orc表'orc.create.index'='true'與'orc.create.index'='false'HiveIndexFalse
- create index .. onlineIndex
- Unable to create git index lockGitIndex
- create index onlineIndex
- Create Index ...ONLINEIndex
- Create index with open on-line index creationIndex
- CREATE INDEX ......ONLINE分析Index
- create index , rebuild index troubleshooting 索引故障解決IndexRebuild索引
- ORACLE資料庫壞塊的處理 (通過re-create table方法)Oracle資料庫
- create index online 與rebuild index onlineIndexRebuild
- create index online 與rebuild index onlineIndexRebuild
- CREATE INDEX index1 ON table1(col1)Index
- can't create PID file問題處理
- codeblocks處理undefined reference to `pthread_create'BloCUndefinedthread
- Salesforce 大資料量處理篇(二)IndexSalesforce大資料Index
- postgresql create index concurrently過程描述SQLIndex
- create pfile時報ORA-27037問題的處理
- MySQL online create index實現原理MySqlIndex
- Unable to create index.lock File exists錯誤Index
- 加快create / rebuild index的3個點(zt)RebuildIndex
- Default behavior of create & rebuild index in 10G (zt)RebuildIndex
- 加快建立索引(create / rebuild index) 的幾點索引RebuildIndex
- 非同步處理方法非同步
- 影像預處理方法
- APM RUEI processor處理程式hang死處理方法
- 實踐001-elasticsearch的index、create、updateElasticsearchIndex
- JVM如何處理方法呼叫JVM
- php事務處理方法PHP
- AlertDialog 處理方法二
- 處理問題的方法
- 異常處理方法 (轉)
- oracle10.2.0.4_create table_constraint_indexOracleAIIndex
- 處理恢復資料方法
- JavaScript常用的字串處理方法JavaScript字串