Oracle 排障配置与调整 - 20. page
ORA-00600: 内部错误代码, 参数: [ktecgetsh-inc], [1], [], [], [], [], [], []
系统 :aix 53
版本: 10.2.0.3
Errors in file /oracle/app/oracle/admin/sxsi/udump/sxsi_ora_909628.trc:
ORA-00600: 内部错误代码, 参数: [ktecgetsh-inc], [1], [], [], [], [], [], []
处理过程:
3.1查看数据库等待事件:
确定当前session没有任何等待事件 SQL> select sid from v$mystat where rowed <=1; SQL> select sid,event,p1,p1text from v$session |
3.3定位出现问题的ACA的表:
SQL> select * from tab where tname like '%ACA6%'; TNAME TABTYPE CLUSTERID —————————— ——- ———- ACA6 TABLE ACA60701 TABLE ACA6A TABLE ACA6B TABLE ACA6C TABLE ACA6MERGE TABLE ACA6MOVE TABLE ACA6_BACKUP TABLE ACA6_CW TABLE ACA6_DEF TABLE ACA6_TEMP TABLE TNAME TABTYPE CLUSTERID —————————— ——- ———- ACA6_TZ TABLE F_ACA6 TABLE F_ACA6_1201 TABLE F_ACA6_BAK_20100629 TABLE MLOG$_ACA6 TABLE ZZZ_ACA6_12 TABLE ZZZ_ACA6_DB TABLE ZZZ_ACA6_YL TABLE |
找出ACA6表
3.4 通过视图dba_indexes查看ACA6表上的索引
SQL> select INDEX_NAME,INDEX_TYPE from dba_indexes where table_name = 'ACA6'; INDEX_NAME INDEX_TYPE —————————— ————————— IDX_ACA6_AAC001_AAE140 NORMAL PK_ACA6 NORMAL IDX_ACA6_AAC001 NORMAL IDX_ACA6_AAE063 NORMAL IDX_ACA6_AAE074 NORMAL IDX_ACA6_AAB001 NORMAL IDX_ACA6_EAE038 NORMAL IDX_ACA6_AAE002 NORMAL IDX_ACA6_PRSENO NORMAL PK_ACA6 NORMAL IDX_ACA6_PRSENO NORMAL INDEX_NAME INDEX_TYPE —————————— ————————— PK_ACA6 NORMAL IDX_ACA6_AAC001 NORMAL IDX_ACA6_AAE002 NORMAL IDX_ACA6_AAE063 NORMAL IDX_ACA6_AAE074 NORMAL IDX_ACA6_EAE038 NORMAL IDX_ACA6_PRSENO NORMAL 已选择18行。 |
由上面的查询可以看出此表有18个索引,如果全部重建,那么需要的时间需要比较长,这里我们根据错误以及内部原理推出错误只局限在出现错误的对应的分区表上的索引,所以只要找出对应的分区表上的索引即可。
3.5 根据客户提供的aca6表的aca6_6分区进行拆分,那么报错也是这个分区表:
执行 SQL>Select * from aca6 partition(aca6_1) where ….; … SQL>select * from aca6 partition(aca6_6) where aae002='125485532354'; ORA-10632:invalid rowid |
得出的是 分区表aca6 1-5partition都是正常的,只有执行拆分操作的6号分区出现问题,根据查询到的ace002索引为此分区aae002字段上的索引,吕与我采用CATS尝试创建该表备份,并重建ACE002索引。
1.6 通过下面语句执行cats以及重建
Create table aca6_6bak as select * from aca6 partition(aca6_6);
报错:ora 10632.
终止业务服务器,尝试重建索引:
select dbms_metadata.get_ddl('index','IDX_ACA6_AAE002') from dual;
然后将结果粘贴执行,
报错:ora 10632
发现事故非常严重,已经无法访问表,无法用cats和重建索引方式解决这个问题,逐建议采用备份恢复,但是最后发现备份恢复不出
select /*+ parallel(aca6,2) */ count(*) from aca6 partition(aca6_6); 3725620 rows ora – 10632:invaild rowid |
这里标明,表数据还能扫描,还没全坏继续执行
SQL> select * from aca6 partition(aca6_6) where rownum <= 10000;
观察等待事件
SQL> select sid,event,p1,p2 from v$session where sid in (select sid from v$mystat where
Rownum <=1);
SID EVENT
———- —————————————————————-
P1 P2
———- ———-
137 SQL*Net message to client
1650815232 1
…….
在这里结果标明扫描并没有从磁盘里读取数据块,任何的select的操作都不可能没有等待事件,向磁盘读取数据过程都需要一定的时间,并且会有相关的IO事件在event中显示,
这里分析:数据库并没有向硬盘读取数据,表的数据在硬盘中,数据是正常的,可能是由于这个bug引起内存错误造成oracle无法正确去读取硬盘数据块。
解决办法:
将共享池刷新一遍,尝试cats以及index rebuild
操作:
SQL >Alter system flush shared_pool;
SQL >Alter system flush buffer_cache;
然后执行CATS以及INDEX REBUILT成功。备有aca6_6bak一份,大约5G数据
ORA-04098: trigger 'MONITOR.TRI_DDL_MONITOR' is invalid and failed re-validation
这个和隐含参数 _system_trig_enabled有关
设置成 false错误解决。
10g默认为enable。
ALTER SYSTEM SET "_system_trig_enabled"=FALSE
ORA-00932: inconsistent datatypes: expected BLOB, CLOB got CHAR
aix 5.309
oracle:10204
中午在导库时候报错:
misdb1:/home/oracle$exp userid=system/oracle full=y direct=y recordlength=65535 file=/backup/oracle/exp_full.dmp log=/backup/oracle/exp_full.log
Export: Release 10.2.0.4.0 – Production on Fri Jun 10 12:39:19 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export the entire database …
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
. exporting cluster definitions
EXP-00056: ORACLE error 932 encountered
ORA-00932: inconsistent datatypes: expected BLOB, CLOB got CHAR
EXP-00056: ORACLE error 932 encountered
ORA-00932: inconsistent datatypes: expected BLOB, CLOB got CHAR
EXP-00000: Export terminated unsuccessfully
——————————————————————————————
登陆sqlplus 执行以下脚本解决
/oracle/product/10.2.0/rdbms/admin/catmetx.sql
/opt/oracle/product/10.2.0/rdbms/admin/utlrp.sql
添加几个dump进程的查询脚本
select sid, serial#
from v$session s, dba_datapump_sessions d
where s.saddr = d.saddr;
select sid, program from v$session where paddr in
(select addr from v$process where pid in (—–));
这里的PID可以在后来的告警日志文件中找到。
使用并行的时候,可以在后台日志中找到PID,就是这里qcsid
select sid from v$px_session where qcsid = 23;
Oracle Recommended Patches — Oracle Database
Oracle Recommended Patches — Oracle Database
- Target Configurations
- Patch Availability
- Current Recommended Patches
- Conflict Resolution
- On Request
- Known Issues
- References
Beginning with release 10.2.0.3, Oracle releases Recommended Patches for Oracle Database. For an introduction to Recommended Patches, see Note:756388.1.
Target Configurations
Recommended Patches are provided for the following target configurations:
- Generic
- Real Application Clusters
- Data Guard
- Exadata
- Ebusiness Suite Certification
Patch Availability
Recommended Patches are released on all platforms at the same time. They are generally available on the following platforms: HP-UX PA-RISC, Solaris Operating System (SPARC 64-Bit), HP-UX Itanium, IBM AIX on POWER Systems (64-Bit), Linux x86 (32-bit), and Linux x86-64.
Oracle provides bundled patches for Microsoft Windows platforms. Recommended patches are included in these bundles rather than as separately downloadable patches. See Note:161549.1 for details of the bundled patches for Microsoft platforms. It is recommended to apply the most current Windows bundle patch .
Patches on other platforms are created on request.
Whenever planning on patching or upgrading you can get help from the Patch Planner or Upgrade Planner in My Oracle Support – See Note:847410.5 for more information.
Current Recommended Patches
11.2.0.2 Current Recommended Patches
Patch Set Updates
Document Description Rolling RAC Patch Download Note:11724916.8 11.2.0.2.2 Patch Set Update (PSU) Yes Patch:11724916
Generic
Document Description Rolling RAC Patch Download Note:1321817.1 Mutex waits may cause higher CPU usage in 11.2.0.2.2 PSU / GI PSU Yes Patch:12431716
Grid Infrastructure
Document Description Rolling RAC Patch Download Note:12311357.8 11.2.0.2.2 Grid Infrastructure Patch Set Update (GI PSU) Yes Patch:12311357
Exadata
Document Description Rolling RAC Patch Download Note:888828.1 Recommended Patch Information for Database Machine and Exadata Storage Server 11g Release 2 (11.2) – –
EBusiness Suite R11i Certification
Document Description Rolling RAC Patch Download Note:881505.1 Interoperability Notes for Oracle E-Business Suite Release 11i with Oracle Database 11.2.0.2 – –
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:1058763.1 Interoperability Notes for Oracle E-Business Suite Release 12 with Oracle Database 11.2.0.2 – –
11.2.0.1 Current Recommended Patches
Patch Set Updates
Document Description Rolling RAC Patch Download Note:11724930.8 11.2.0.1.5 Patch Set Update (PSU) Yes Patch:11724930
Grid Infrastructure
Document Description Rolling RAC Patch Download Note:9655006.8 11.2.0.1.2 Grid Infrastructure Patch Set Update (GI PSU) Yes Patch:9655006
Exadata
Document Description Rolling RAC Patch Download Note:888828.1 Recommended Patch Information for Database Machine and Exadata Storage Server 11g Release 2 (11.2) – –
EBusiness Suite R11i Certification
Document Description Rolling RAC Patch Download Note:1265268.1 Interoperability Notes for Oracle E-Business Suite Release 11i with Oracle Database 11.2.0.1 – –
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:1265232.1 Interoperability Notes for Oracle E-Business Suite Release 12 with Oracle Database 11.2.0.1 – –
11.1.0.7 Current Recommended Patches
Patch Set Updates
Document Description Rolling RAC Patch Download Note:11724936.8 11.1.0.7.7 Patch Set Update (PSU) Yes Patch:11724936
CRS
Document Description Rolling RAC Patch Download Note:11724953.8 11.1.0.7.7 CRS Patch Set Update (CRS PSU) Yes Patch:11724953
Data Guard
Document Description Rolling RAC Patch Download Note:7628357.8 11.1.0.7 Data Guard Broker Recommended Patch Bundle #1 No Patch:7628357
Exadata
Document Description Rolling RAC Patch Download Note:835032.1 Recommended Patch Information for Database Machine and Exadata Storage Server 11g Release 1 (11.1) – –
EBusiness Suite R11i Certification
Document Description Rolling RAC Patch Download Note:452783.1 Interoperability Notes for Oracle E-Business Suite Release 11i with Oracle Database 11.1.0.7 – – Note:7295298.8 Poor Subquery filter order / Queries against ALL_OBJECTS can be slow Yes Patch:7295298 Note:7253531.8 A dump [ttci2u] passing LOB data over heterogeneous connection with multibyte Yes Patch:7253531 Note:6530141.8 False ORA-979 can occur on an UPDATE DML Yes Patch:6530141
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:735276.1 Interoperability Notes for Oracle E-Business Suite Release 12 with Oracle Database 11.1.0.7 – – Note:7684818.8 11.1.0.7 EBusiness Suite R12 Certification Patch Bundle #1 Yes Patch:7684818 Note:7630760.8 HPUX: 11.1.0.7 patch install deletes libskgxp11.a No Patch:7630760 Note:7253531.8 A dump [ttci2u] passing LOB data over heterogeneous connection with multibyte Yes Patch:7253531
11.1.0.6 Current Recommended Patches
EBusiness Suite R11i Certification
Document Description Rolling RAC Patch Download Note:9196488.8 PLS-306 executing procedure on 11g from lower version PLSQL client No Patch:9196488 Note:7253531.8 A dump [ttci2u] passing LOB data over heterogeneous connection with multibyte Yes Patch:7253531 Note:6972189.8 Invalid package bodies when using _load_without_compile option Yes Patch:6972189 Note:6778860.8 11.1.0.6 EBusiness Suite R11 Certification Patch Bundle #1 No Patch:6778860 Note:6501565.8 Dump under JVM from JIT of Java class compiled with old Java compiler No Patch:6501565
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:7377378.8 11.1.0.6 EBusiness Suite R12 Certification Patch Bundle #1 Yes Patch:7377378 Note:7253531.8 A dump [ttci2u] passing LOB data over heterogeneous connection with multibyte Yes Patch:7253531 Note:6991626.8 Datapump export fails with ORA-39126 / ORA-22813 Yes Patch:6991626 Note:6815733.8 OERI [qctcte1] from cost based transformation with subquery in ORDER BY clause Yes Patch:6815733 Note:6598432.8 ORA-1466 from read-only transaction when client / server in different timezones Yes Patch:6598432 Note:6266400.8 A dump can occur in kokbTabFuncRewrite Yes Patch:6266400
10.2.0.5 Current Recommended Patches
Patch Set Updates
Document Description Rolling RAC Patch Download Note:11724962.8 10.2.0.5.3 Patch Set Update (PSU) Yes Patch:11724962
CRS
Document Description Rolling RAC Patch Download Note:9952245.8 10.2.0.5.2 CRS Patch Set Update (CRS PSU) Yes Patch:9952245
10.2.0.4 Current Recommended Patches
Oracle has introduced Patch Set Updates (PSU) for 10.2.0.4 which include recommended fixes for generic , RAC and DataGuard issues.
The PSU should be treated as the recommended patch for these areas – additional recommendations may be listed below under relevant areas.
Please read Note:854428.1 for an introduction to Patch Set Updates.
Patch Set Updates
Document Description Rolling RAC Patch Download Note:11724977.8 10.2.0.4.8 Patch Set Update (PSU) Overlay Yes Patch:11724977 Note:9352164.8 10.2.0.4.4 Patch Set Update (PSU) Yes Patch:9352164
Generic
Document Description Rolling RAC Patch Download Note:9572766.8 Recommended merge fix for bug 6994194 and bug 8830147 Yes Patch:9572766
RAC
Document Description Rolling RAC Patch Download Note:6367097.8 Recommended on HP Itanium: RAC diagnostics can abort the instance (LMS ORA-484) Yes Patch:6367097 Note:6079224.8 Recommended on Linux: RAC ORA-27506 / IPC Send timeout Yes Patch:6079224
CRS
Document Description Rolling RAC Patch Download Note:9294403.8 10.2.0.4.4 CRS Patch Set Update (CRS PSU) Yes Patch:9294403
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:7014646.8 OERI [kkocxj : pjpctx] from complex query Yes Patch:7014646
10.2.0.3 Current Recommended Patches
RAC
Document Description Rolling RAC Patch Download Note:7145055.8 10.2.0.3 RAC Recommended Patch Bundle #2 Yes Patch:7145055
CRS
Document Description Rolling RAC Patch Download Note:7117233.8 10.2.0.3 CRS Recommended Patch Bundle #3 Yes Patch:7117233
Data Guard
Document Description Rolling RAC Patch Download Note:6909784.8 Recommended Merge Fix for bug 6128197 with Data Guard Logical No Patch:6909784 Note:6081556.8 10.2.0.3 Data Guard RMAN Recommended Patch Bundle #1 Yes Patch:6081556 Note:6081550.8 10.2.0.3 Data Guard Logical Recommended Patch Bundle #1 No Patch:6081550 Note:6081547.8 10.2.0.3 Data Guard Physical Recommended Patch Bundle #1 Yes Patch:6081547 Note:6048286.8 10.2.0.3 Data Guard Broker Recommended Patch #1 No Patch:6048286
EBusiness Suite R11i Certification
Document Description Rolling RAC Patch Download Note:6166683.8 Z-Linux: ctxhx missing from 10.2.0.3 Yes Patch:6166683 Note:412271.1 Upgrade to 10.2.0.3 can fail with ORA-600 [22635] Yes Patch:5892355 Note:5871314.8 Pickler fix needed to allow some DB upgrade / downgrade to work Yes Patch:5871314 Note:5257698.8 9idata NLS files missing leading to file handle leak No Patch:5257698
EBusiness Suite R12 Certification
Document Description Rolling RAC Patch Download Note:6319846.8 EBusiness Suite R12 Certification Recommended Patch Bundle Yes Patch:6319846 Note:5240469.8 Linux-X86 64bit: genoccish generates lots of errors No Patch:5240469
Miscellaneous One Off Fixes
Document | Description | Rolling RAC | Patch Download |
Note:6875865.8 | Database instrumentation for OCM | Yes | Patch:6875865 |
Note:6869828.8 | Recommended Merge Fix of 6122097 and 5903829 | Yes | Patch:6869828 |
Note:471479.1 | IOT corruption after upgrade from <= 9.2 to >= 10g | Yes | Patch:6646613 |
Note:6455161.8 | Higher CPU / Higher "cache buffer chains" latch gets / Higher "consistent gets" after truncate/Rebuild | No | Patch:6455161 |
Note:453259.1 | OERI[kcrfr_resize2] / cannot recover database | No | Patch:6128197 |
Note:453309.1 | OERI[kcbo_link_q_1] / crash with fix for bug 5454831 installed | Yes | Patch:6017420 |
Note:5949701.8 | Recommended Merge Fix of 5648872 and 5863277 | Yes | Patch:5949701 |
Note:455832.1 | Client <= 9.2.0.7 / 10.1.0.4 can dump when running against higher level database | No | Patch:5933477 |
Note:5907779.8 | Self deadlock hang on "cursor: pin S wait on X" (typically from DBMS_STATS) | No | Patch:5907779 |
Note:5896963.8 | High LGWR CPU and longer "log file sync" with fix for bug 5065930 | Yes | Patch:5896963 |
Note:5765958.8 | OERI[qcscpqbTxt] / OERI[qcsfbdnp:1] from ANSI query in PLSQL | No | Patch:5765958 |
Note:5728380.8 | DML may spin under ktspffc searching for space in ASSM segment | No | Patch:5728380 |
Note:454464.1 | Various dumps / instance crash possible | Yes | Patch:5605370 |
Note:5577046.8 | ADD or DROP attribute causes UNION query to fail with ORA-1790 | Yes | Patch:5577046 |
Note:5514109.8 | OERI [kql-hash-collision] / false ORA-955 | No | Patch:5514109 |
Note:5364143.8 | Bind Peeking is not done upon query reload, Execution Plan changes | Yes | Patch:5364143 |
Note:5363584.8 | Array insert into table can corrupt redo | Yes | Patch:5363584 |
Note:4899479.8 | Undo/redo corruption if distributed transactions used | No | Patch:4899479 |