I am running a shell scipt which connects to oracle and runs a select query and display data in above format (screenshot attached). I am redirecting this data to a file using spool command. How can I have data in a tabular format in my file like excel with a headers.
I have tried below options but its not working properly
set feedback off
set pages 0
set verify off
set pagesize 0 embedded on
SET COLSEP ","
SET LINESIZE 200
SET UNDERLINE =
set markup on
set termout off
BREAK ON ROW SKIP PAGE

set markup ondoesn't do it for you? Please specify "it's not working properly". How is not working? Remember, you can see your screen and we can't. We only know what you tell us.