[oracle@user u01]$ ./test
Enter value for file_id:
User requested Interrupt or EOF detected.
[oracle@user u01]$
[oracle@user u01]$
[oracle@user u01]$ cat test
sqlplus -s / as sysdba <<EOF
SELECT /*+ RULE*/ owner, segment_name, segment_type
FROM dba_extents
WHERE file_id = &file_id
AND &block_id BETWEEN block_id AND block_id + blocks - 1;
EOF
[oracle@user u01]$