-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvdatafiles.sql
More file actions
21 lines (17 loc) · 460 Bytes
/
Copy pathvdatafiles.sql
File metadata and controls
21 lines (17 loc) · 460 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SET LINESIZE 300
SET PAGESIZE 1000
COLUMN file_name FORMAT A70
COLUMN status FORMAT A15
COLUMN enabled FORMAT A15
COLUMN checkpoint_time FORMAT A20
prompt ***************
prompt ** v$Datafiles **
prompt ***************
prompt
select d.file# file_id,
d.name file_name,
round(d.bytes/1024/1024/1024) size_gb,
d.status,
d.enabled,
to_char(d.checkpoint_time,'DD-MM-YYYY HH24:MI:SS') checkpoint_time
from v$datafile d;