Home » Developer & Programmer » Reports & Discoverer » Run report from batch file
Run report from batch file [message #167570] Fri, 14 April 2006 00:50 Go to next message
juicyapple
Messages: 92
Registered: October 2005
Member
Hi, I want to run oracle report as a schedule task, is it possible to run it with using command in batch file?

can anyone provide some info about this?

Thanks.
Re: Run report from batch file [message #167576 is a reply to message #167570] Fri, 14 April 2006 02:03 Go to previous messageGo to next message
aciolac
Messages: 242
Registered: February 2006
Senior Member
For example you can include next block in Your file and run them from crontab or any sheduler.

sqlplus -s username/password <<EOF > log_name.log
set serveroutput on
--here You can put your SQL command
select *
from dual;
EOF
Re: Run report from batch file [message #167585 is a reply to message #167570] Fri, 14 April 2006 03:24 Go to previous messageGo to next message
juicyapple
Messages: 92
Registered: October 2005
Member
Sorry that I missed out something, I want the report save in text format after generate it, is it possible?
Re: Run report from batch file [message #167586 is a reply to message #167570] Fri, 14 April 2006 03:49 Go to previous messageGo to next message
aciolac
Messages: 242
Registered: February 2006
Senior Member
All data which will return selects, will be saved in file log_name.log.
Re: Run report from batch file [message #167641 is a reply to message #167570] Fri, 14 April 2006 19:45 Go to previous messageGo to next message
juicyapple
Messages: 92
Registered: October 2005
Member
I can change the log_name.log to other file format also? eg. filename.csv
Re: Run report from batch file [message #167650 is a reply to message #167570] Sat, 15 April 2006 00:48 Go to previous message
aciolac
Messages: 242
Registered: February 2006
Senior Member
This is the simply log file - you can write into them all that you want. Also you can rename them as you want.
Previous Topic: Deploying Oracle report with graphs
Next Topic: Placeholders and Summing Data
Goto Forum:
  


Current Time: Fri Nov 29 20:22:47 CST 2024