---
title: "ORA-08102: TRYING TO MANIPULATE A JOB IN DBA_JOBS [ID 1036858.6]"
author: "libin123"
date: "2010-12-03T23:52:11Z"
tags: []
categories: ["数据库"]
slug: "ora-08102-trying-to-manipulate-a-job-in-dba-jobs-id-1036858-6"
draft: false
lastmod: "2010-12-03T23:52:11Z"
id: 833126
url: "https://dbua.iteye.com/blog/833126"
---

\*\*\*Checked for relevance on 17-NOV-2010\*\**  
Problem Description:  
\====================

You are trying to manipulate a job in the job queue  
(DBA\_JOBS/USER\_JOBS) and you receive:

ORA-08102: index key not found, object...  
     Cause: Internal error: possible inconsistency in index  
    Action: Send trace file to your customer support representative, along  
            with information on reproducing the error

Example:

SQL&gt; execute dbms\_job.remove(1);  
ORA-08102: index key not found, object #124 -&gt;&gt;&gt; SYS.I\_JOB\_NEXT

where object #124 is the object# in DBA\_OBJECTS

SQL&gt; column owner format a10  
SQL&gt; column object\_type format a10  
SQL&gt; column object\_id format 99999  
SQL&gt; column object\_name format a10

SQL&gt; select owner, object\_name, object\_type, object\_id  
  2  from dba\_objects where object\_id=124;

OWNER      OBJECT\_NAM OBJECT\_TYP OBJECT\_ID  
\---------- ---------- ---------- ---------  
SYS        I\_JOB\_NEXT INDEX            124 

Solution Description:  
\=====================

You need to recreate the inex I\_JOB\_NEXT.

Script "$ORACLE\_HOME/rdbms/admin/cat7103.sql" creates the I\_JOB\_NEXT:

Drop and recreate this index.

connect sys/&lt;password&gt;  
drop index i\_job\_next;  
create index i\_job\_next on job$ (next\_date)

Note: alter index I\_JOB\_NEXT rebuild;

      Will not fix the problem.

Explanation:  
\============

The ORA-8102 pointed to index corruption, so rebuilding the offending index  
fixed the problem.

Search Words:  
\=============

DBMS\_JOB ALTER CHANGE UPDATE