Inconsistency between cdb_temp_files and v$tempstat (Doc ID 1636216.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

Symptoms

Running on an Oracle 12.1.0.1, we can notice that there is a mis-match in the FILE#, CON_ID between cdb_temp_files and v$tempstat

SQL> select file_id,con_id from cdb_temp_files
FILE_ID,CON_ID
2 2
1 1
5 5
4 4

SQl> select file#,con_id from v$tempstat
FILE#,CON_ID
1 1
2 2
3 1
4 2
5 1
6 1
7 3
8 3

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms