SELECT name,
file#,
status,
checkpoint_change# "CHECKPOINT" FROM v$datafile;
NAME FILE# STATUS CHECKPOINT
----------------------------------- ----- ------- ----------
filename1 1 SYSTEM 3839
filename2 2 OFFLINE 3782
filename3 3 OFFLINE 3782
FILE# lists the file number of each datafile; the first datafile in the SYSTEM tablespace, created with the database, is always file 1. STATUS lists other information about a datafile. If a datafile is part of the SYSTEM tablespace, its status is SYSTEM (unless it requires recovery). If a datafile in a non-SYSTEM tablespace is online, its status is ONLINE. If a datafile in a non-SYSTEM tablespace is offline, its status can be either OFFLINE or RECOVER. CHECKPOINT lists the final SCN written for a datafile's most recent checkpoint.