Running reports via command-line with /batch option

Hi,
I have created a batch file which runs, and exports the results of 7 different discoverer reports with /batch option.
Contents of batch file:
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
Sample of a cmd file the bacth file runs:....
/connect user/password@oraprd /apps_responsibility "BIS Super User"
/open "H:\Projects\DRP Import Modelling\Dev\Intransit Extract.dis"
/sheet 1 /export xls "H:\Projects\DRP Import Modelling\automation\Intransit Input.xls" /batch
The batch file runs ok and processes each report in sequence, and creates the excel export one after the other.
However, I need to process the 7 reports in parallel, so changed the batch file to process in own thread :
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
The reports kick off at the same time and I can see 7 dis4usr.exe processes running via task manager
Problem:
The first reports runs and exports ok.
All the others dis4usr.exe processing stops with the following error pop-up:
! Could not open file. OK
Question:
Can you only process reports sequentially via command line mode with /batch option?
If not...what am I missing...its driving me insane :)
All asistance is greatly appreciated. Thanks

Ladies and gentlemen.....I have solved my problemo!
The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
trying to access the same standard log file simultaneously.
I modified each cmd file to write logging info to individual files: eg
/logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
I am definitely having a beer this evening!
Thanks for everyone's input...kept me on the righteous path :)

Similar Messages

  • How to run report on command line with user parameter?

    Hi,
    How do I run oracle report on command line (batch) with pre-set User Parameter values ? e.g. :P_1 ='SYSDATE' , :P_2 = 'DEPT_NO'
    Thanks

    Hello,
    If you are using rwrun :
    rwrun report=myreport destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    If you are using rwclient , just add server=<reports server name> :
    rwclient server=myrepsevrername report=+myreport+ destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    Regards

  • Run reports via command line

    I'm new to Discoverer. I am trying to come up with a batch job so that the operators can run Discoverer reports via the command line.
    The issue I am having is that when I issue the command (shown below), its opens up the Discoverer program (its because of the open command). Is there anyway I can issue a command which immediately runs a sheet inside the Discoverer file and exports it to a file without opening Discoverer. Thanks.
    /connect ofsa_eulowner/[email protected] /open c:\selvi\customer.dis /sheet sheet1 /export xls c:\selvi\customer.xls

    You need to use /batch to run the report.

  • Running report from command line with multiple value for same parameter

    Hey,
    I know how to run a report from the command line specifying parameters values each time but I was wondering if someone could tell me how I would go about running the same report multiple times in a batch program but specifying a list of values to pass to a parameter each time.
    So for example if a parameter was 'School Number', how could I run a report in a batch program that would pass a school number to the report as a parameter using a list of school numbers generated for a sql statement or something. So if I had 300 school numbers in my list then I would get 300 different reports when the batch program finished.
    This leads me to another question. How can I dynamically change the name of the report generated by the batch to use the school number value passed in, so for example if the value 3 was passed in the name would be something like School 3.pdf, if 4 was passed in the name would be School 4.pdf....etc
    Any help on this?
    Thanks

    Hello,
    Bursting and Distribution may help you ....
    37 Bursting and Distributing a Report
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_dist.htm
    Regards

  • Running Jar vs. command line with libraries

    Hi everybody,
    I have an application that works well from the command line, which relies on 3 libraries, all of which are in the same directory. My current directory structure is like this:
    Main Folder
    -> Library 1
    -> Library 2
    -> Library 3
    -> Run script
    -> Source Folder ("source")
    ->-> Code and main class
    Library 1 depends on both Library 2 and Library 3. When I run from the command line, from the main folder, using this command:
    java -Djava.library.path=. source/MainClass
    My program runs fine.
    The problem comes when I try to package it into a Jar and replicate the directory structure.
    My manifest is:
    Manifest-Version: 1.0
    Main-Class: source.MainClass
    <newline>
    and my jar command is:
    jar cvmf Manifest.txt test.jar source/*.class
    When I try to run my jar, I get this error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/MainDirectory/Library1.so: Library2.so: cannot open shared object file: No such file or directory
    I know what this means-- for some reason it doesn't know where Library2 is-- but I'm mystified as to why this works fine from the command line and not from a jar. Can anyone help me figure this out, please?
    Thanks,
    Jezzica85

    warnerja wrote:
    Wrong question. You still want to run it via java -jar, but...
    Your jar needs a MANIFEST.MF (if I recall correctly, that is the right file name) in its META-INF folder (again, if I recall correctly) which needs to set up the classpath via a Class-Path=... line in the file.
    Actually you probably already do have such a file (you need it anyway for the jar to figure out what the main class is to execute), but it probably doesn't contain a Class-Path entry or is incorrect.
    Google for jar manifestI've had less than stellar success on correcting the big boys lately, but why should I let that stop me...
    As far as I can tell, the OP seems to be having problems with native link libraries. Some java class loads Library1 then (it appears) Library1 attempts to load Library2.
    Would fixing a CLASSPATH help that?
    I would expect it to be a problem with LD_LIBRARY_PATH (ala Sabre's earlier reply).

  • Slow processing time, via Command line, with Reader

    I'm using Reader 9, via command line, to process PDFs in a 3rd party application and it's taking much longer to process files this way than with Acroplot or Ghostscript.  Is there a way to improve this processing time?
    thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • Running FMLE via command line without installation?

    Hi,
    I would like to run FMLE via the command line without an installation of FMLE. I would use AIR to deliver FMLE files and call the command line via the NativeProcess API.
    Is that possible?
    Thanks a lot.
    Malte

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • Trigger Report via Command Line CLI or API ?

    Post Author: sgolby
    CA Forum: WebIntelligence Reporting
    Hi Everyone,
    Is there a way to trigger a Report generation via the Command Line CLI or via an API ?
    We'd like to use our scheduling software to do something like this
    - Check Database is ready- Run BizObj Report- ftp resulting Excel file off BizObj machine- Import Excel file into Intranet webpage
    We are running the Linux version of BusinessObjects X11R2.
    Any similar suggestions would be appreciated.
    Thanks!
    Scott

    There is some discussion of it elsewhere - this page should help.

  • Running from a command line with a .bat file

    I am running my program through a .bat file.
    The .bat file looks as follows:
    java ../classes/HelloWorld
    The .bat file is in a directory at the same level as classes so to get to the class file to run I specify this path. However, it cannot find the class file unless it is in the same directory as the .bat file. Is there a way around this?

    hi,
    as you could have known from the documentation, the java virtual machine executable 'java' expects a fully qualified class name as parameter, no file path. so 'java ../classes/HelloWorld' is of course completely wrong, it should be 'java HelloWorld' and nothing else. if you want to specify a certain path where the class file is to be found, use the -classpath command line option as in 'java -classpath ../classes/ HelloWorld'.
    sincerely, Michael

  • Running program via command-line

    I've using NetBeans IDE 5.5 and to run my projects, I simply click the "Run" button and everything goes fine. When I build the project, it says this:init:
    deps-jar:
    compile:
    To run this application from the command line without Ant, try:
    java -jar "/home/tristan/Java Programs/CalendarProgram/dist/CalendarProgram.jar"
    jar:
    BUILD SUCCESSFUL (total time: 1 second)I try that and I get:[tristan@tristan ~]$ java -jar "/home/tristan/Java Programs/CalendarProgram/dist /CalendarProgram.jar"
    Exception in thread "main" java.lang.UnsupportedClassVersionError: UserInterface  (Unsupported major.minor version 50.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)This happens on both my Fedora Core 5 and Windows XP machines. Maybe I'm just oblivious to the problem, but if it's giving me that argument to run, why won't it work but works when I click "Run" in NetBeans?

    Alriight. Well, when I type in java -version. It says I have 1.4.2 and NetBeans uses 1.6. I have no idea where 1.4.2 is installed (Linux), but since I'm compiling it with 1.6, does that mean no one else can run the program unless they have 1.6 on their machine?

  • Open application via. command line with parameters - Multiple times

    I'm using ANT to compile a program, then launch in FireFox ... I've looked all over for a solution to this, but have yet to find one.
    I need the command to open a specified URL in FireFox... easy enough, right?
    Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
    Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
    Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
    Thanks!
    -Eric
    Message was edited by: eheaton

    If you don't get an answer here, you might try reposting in the UNIX forum. That's where the command line experts tend to hang out. Good luck.

  • How to merge multiple documents via command line (Adobe Acrobat Pro 9.3.2)?

    I'm searching solutions to merge multiple documents (all stored in one folder) via command line or batch file to a single PDF-File...
    Is there a way to do this?
    Finaly I want to control this from a application written in MS-Access. So, perhaps there are some features already integrated in Access to do this?
    Thanks for answer!

    If you have some programming experience you could probably do this using VBA from within MS Access to control Acrobat via OLE.
    Lots of examples on the Web.
    Hope this helps

  • How to run a 10g report from command line ?

    Good Afternoon,
    Please advise if there is a way to run a 10g report from command line.
    We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
    Thank you,
    Dmitri

    Steps to take.
    (1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
    (2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
            (a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
                   or, if it does not work
            (b.) Add D:\OracleDevR2\bin to the system env. variable PATH
    (3.) Start OC4j
    (4.) Now you can access the jobs using URL like:
        http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
          where 192.161.11.143 is your machine's IP address.

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • Running Discoverer Desktop query.... via command line

    Hi Everyone,
    Hope all is well,
    I have learned how to run Discoverer using command line.
    My question is:
    ===========
    When you log into Discoverer manually, the parameters values that were last used in the last run display when
    the query opens....
    When i run Discoverer command line, i have to explicitly mention all the parameter names and their values
    If i do not mention the parameters, i get an error message: unresolve parameter...
    I'd really like to run the query command line style WITHOUT mentioning parameters, and wish Discoverer to run
    the query with the default parameters....
    Is this possible...
    Thx for your ideas and advice, sandra

    Hi Tamir,
    sigh...
    tx for writing...
    i just found this post.... says if parm is used in calc, cannot be made optional...
    Parameters - do they have to be mandatory?
    tx, s

Maybe you are looking for

  • Can't detect CD-DVD, fresh install

    Hi, I'm banging my head because I can't find a solution to make my arch-install detect an audio CD (windows 8 does detect it). I've done the https://wiki.archlinux.org/index.php/Ud … leshooting and this is the result: [root@32 ~]# diff -y present_gro

  • Can't open pdf for Reader 9.0 and above on iPad2

    Hi, Would greatly appreciate the advice of the experts here. My iPad2 can view most pdf documents, but when the pdf requires Reader 9.0 and above, it can't be viewed in the Reader I've installed (which is the latest version on iTunes). Here are the w

  • Photo stream not syncing with windows PC

     

  • Podcasts on my iPod...

    Is there a way to stop my podcasts from showing up under "albums" and "songs" on my iPod? My video podcasts are also showing up it "podcasts" under music. I'd be much happier if they were all in the right place. Can anybody help? Thanks.

  • Disable Full Screen Option in Slide Show?

    I'd like to be able to watch slideshows in the iphoto window & Not have it take up the full computer screen-I'm a multi-tasker. A few versions ago, that was possible, but the option was removed. Is it possible to achieve this in the latest version? I