I am having trouble creating a .sql batch file that can execute a select statement on SQL Developer.
This is my code:
set pagesize 500
spool @c:\temp\output.log
set echo on
SELECT OBJECT_NAME
FROM DBA_OBJECTS
WHERE OBJECT_TYPE = 'TABLE'
AND OWNER = 'DWBATCH'
GROUP BY = 'OBJECT_NAME'
spool off
The script will display the original output, and the select statement is not being executed. I will appreciate any input to what is wrong with this script, since it should work according to my knowledge.