Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4385

RE: Script manager and send SQL query results to excel format

$
0
0

I am not sure if i'm configuring the setup correctly but getting an ORA-00900 invalid sql statement error when running an SQL statement in the dataset properties screen,dataset,  export query and exporting to excel

i.e just a simple query and it works fine in toad directly. Does it need to be a specific format ?

column SESSION_KEY format a10
column INPUT_TYPE format a10
column status format a10
column START_TIME format a15
column END_TIME format a15
select SESSION_KEY, INPUT_TYPE, STATUS, to_char(START_TIME,'mm/dd/yy hh24:mi') start_time, to_char(END_TIME,'mm/dd/yy hh24:mi') end_time, elapsed_seconds/3600 hrs from V$RMAN_BACKUP_JOB_DETAILS
where input_type = 'DB FULL' and STATUS = 'COMPLETED' --and STATUS <> 'COMPLETED'
and start_time > sysdate - 1
order by start_time desc;


Viewing all articles
Browse latest Browse all 4385

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>