Hallo!
Ich versuche folgenden SQL auszuführen, erfolglos!
Zunächst ist Zeile 1 angemeckert! Lasse ich Zeile 1 (und auch 2) weg, wird immer noch über Zeile 1 gemeckert (also die ursprünglich dritte Line). Komischerweise werden aber Zeile 1 und auch 2, alleine für sich eingegeben, ausgeführt! Warum??
SQL*Plus: Release 9.2.0.1.0 - Production on Do Jul 15 15:32:25 2004
Copyright © 1982, 2002, Oracle Corporation. All rights reserved.
Verbunden mit:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
SQL> run
1 clear computes
2 clear breaks
3 column „Total Bytes“ format 999,999,999,999
4 column „Bytes Free“ format 999,999,999,999
5 column „% Free“ format 999.99
6 break on report
7 select substr(fs.FILE_ID,1,3) „ID#“,
8 fs.tablespace_name,
9 df.bytes „Total Bytes“,
10 sum(fs.bytes) „Bytes Free“,
11 (100*((sum(fs.bytes))/df.bytes)) „% Free“
12 from sys.dba_data_files df, sys.dba_free_space fs
13 where df.file_id(+) = fs.file_id
14 group by fs.FILE_ID, fs.tablespace_name, df.bytes, df.blocks
15* order by fs.tablespace_name
clear computes
*
FEHLER in Zeile 1:
ORA-00900: invalid SQL statement