Desktop command line parameter problem

We have just completed an upgrade from Discoverer 4i to 10g. We use the desktop version installed on a windows 2000 terminal server to run a batch file nightly (using the windows task scheduler to call the batch file). This runs the reports, then exports them in xls format to a public directory. During my testing I installed the 10g desktop version on my win xp machine to test the command line capabilities - we have about 50 reports that run nightly, and everything ran fine. Now I have installed the 10g Desktop and Admin versions on the terminal server, and need to use this new version to run the reports nightly. I did the install as an admin, and I am running the scheduled task as an admin. The reports are failing, complaining about the parameter values. With the exception of the path to the dis51usr.exe file, I'm using the exact same command line on my pc as I'm using on the terminal server.
Here's the command line I'm using on my pc, which runs fine:
c:\oracle\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb "Order Shipments" /parameter "From Date" "01-APR-2006" /parameter "To Date" "30-APR-2006" /parameter "Sales Territory" "North America" /export xls "\\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls" /batch
Here's the command line I'm using on the terminal server:
d:\oracle10g\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb "Order Shipments" /parameter "From Date" "01-APR-2006" /parameter "To Date" "30-APR-2006" /parameter "Sales Territory" "North America" /export xls "\\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls" /batch
This fails, with the following noted in the log file:
4/25/2006 1:54:09 PM
d:\oracle10g\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb Order Shipments /parameter From Date 01-APR-2006 /parameter To Date 30-APR-2006 /parameter Sales Territory North America /export xls \\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls /batch
Invalid value "From Date" for parameter "01-APR-2006"
Invalid value "To Date" for parameter "30-APR-2006"
Invalid value "Sales Territory" for parameter "North America"
4/25/2006 1:54:10 PM
I've been trying to figure this out for a couple of days now. Just got my copy of the new Discoverer 10g Handbook in the mail today (great book, by the way!) - I was hoping it would shed some light on this problem, but I'm still stuck. I'm hoping I'm missing something really simple here, and appreciate any help I can get.
Thanks
Rhonda

Hello Ott,
Yes, I tried that, because that is what the error message indicates. I also tried using single quotes instead of double around the parameter names and/or parameter values, and using no quotes at all. The confusing thing is that the same command works on my pc installation. I have also looked at all the option settings between the 2 installations, and made sure they are the same. The only difference is the operating system - for the life of me I can't figure out why 10g would act any different than 4i installed on the same OS, or for that matter why 10g would act any different installed on XP vs Terminal Server. I've got to be missing something simple here.
thanks
Rhonda

Similar Messages

  • Command Line Parameter in File Adapter in SAP PI

    Hi
    Can any body explaine me what is the purpose of 'Command Line' parameter in File Adapter (Sender/Receiver).
    Regards,

    Hi,
    Refer below two links for more help!
    SAP XI File Adapter OS Command Line Feature     
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
    More with the File Adapter      
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
    Regards,
    Jilan

  • Password not to be a command line parameter within scripts

    Hi,
    We have a few batch programs wherein the database passwords are stored as a command line parameter in an environment variable script.
    But the customer wants to avoid this.
    What are the options of storing password externally but which should be accessible to the batch programs.
    Please advise.
    Regards,
    Narayan

    user7202581 wrote:
    Hi,
    We have a few batch programs wherein the database passwords are stored as a command line parameter in an environment variable script.
    But the customer wants to avoid this.
    What are the options of storing password externally but which should be accessible to the batch programs.
    Please advise.
    Regards,
    Narayan
    Might solution depend upon OS name & version?
    Might solution depend upon Oracle version (to 4 decimal places)?
    Might solution depend upon where script file resides on DB Server or remote client system?
    Yes, options exist, but I refuse to speculate based upon total & complete lack necessary details.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Command-line parameter won't work

    I am trying to use the oraxsl command-line processor to pass a parameter to a stylesheet. All the examples I have found for this format (courtesy of Steve Muench in various mailing lists) show the same format I am using (i.e. oraxsl -p name="Steve" datadoc.xml transform.xsl),
    yet the processor invariably replies "oraxsl: Missing <param list> after -p". To which I can only reply, "There are none so blind as those who will not see." I'm using Windows XP. Has anyone else had a similar experience?

    I have that problem using the XML Java route. The code works but the <xsl:parm name="p"/> does not get populated with the value passed on the querysttring of th ecalling jsp.
    If i hard code the value of p with text then the xslt runs properly.
    I will try the oracle command line function and see what it does as I did not know about it until today.

  • Command line build problem

    We have a large help project I'm migrating to RoboHelp 6
    (nearly 3000 topics, 12 chms plus a master file). We generate using
    a script that calls the command-line option. One of the projects
    fails during command line processing, even though I can build it
    from within the GUI without fail. When I run the command line
    command, this is the message that is returned:
    "D:\quartus\robohelp\subs\reference>"d:\Adobe\RoboHelp
    6.0\RoboHTML\RHCL.exe" reference.xpj
    Adobe (R) RoboHelp Project Command Line Compiler version
    6.00.099
    Copyright (C) 2006 Adobe Macromedia Software LLC. All rights
    reserved.
    Project: D:\quartus\robohelp\subs\reference\reference.xpj
    Layout: Microsoft HTML Help.
    Output: D:\quartus\robohelp\reference.chm.
    Scanning project for compilation....
    Error: Failed to scan all the project files. Please use
    RoboHelp to recover the project.
    Unexpected Error: Failed to prepare single source data for
    RHCL. Please try to compile it in RoboHTML."
    If I open the project in the GUI and compile it, then compile
    from the command line, it works fine. But if I clear the directory,
    run the NGCMD.exe command and get the files out and run the
    RHCL.exe, I get the same error message.
    Thanks

    Finally I figured out this problem.
    It is because one .fpj file missing in the image folder.
    When I was using X5, there is no image.fpj in the image
    folder, but after upgrading to RH6, using the command line compiler
    will fail if there is no the .fpj file under the image folder.
    Checking in the image.fpj to the server, then check it out to
    your build machine, everything is OK now.
    AG2MM

  • Command-line paste problem

    Hi!
    I have a following problem: When I try to paste long input to my command-line app, only few first lines are pasted.
    I see, that I Can copy that to apps like TextWrangler, TextEdit.
    What Can I do?
    Regards.

    How long is "long"? Could there have been hard returns in your copied text?
    If you find you cannot paste it in the Terminal, can you still paste the same text into your text editor?

  • Command line package problem

    Am using this exercise to create packages:
    http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-answers.html
    I'm on Unix Solaris and have created /home/me/mygame directory as instructed. Then three subdirectories with their files:
    mygame/client/Client.java
    mygame/server/Server.java
    mygame/shared/Utilities.java
    Using their source code for each .java file, I sit in mygame directory and compile with
    javac shared/Utilities.java
    which works to produce Utilities.class
    But after that my compiles don't work. Two examples:
    javac -classpath . server/Server.java
    javac -classpath . client/Client.java
    returns in second case:
    client/Client.java:5: Class mygame.shared.Utilities not found in import.
    import mygame.shared.Utilities;
    1 error
    prompt% head client/Client.java
    package mygame.client;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import mygame.shared.Utilities;
    public class Client extends Thread {
    Socket clientSocket = null;
    public Client(Socket s) {
    Can you help? I'd really like to work in packages from the command line.
    By the way, the IDE JDeveloper 9i doesn't have any problem with packages, as you'd expect.
    More info:
    The error meaning it looked but it couldn't find Class mygame.shared.Utilities, I'm sure.
    java -version
    java version "1.2.2"
    Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit)
    path (. /home/me/mygame /home/me blah/blah/blah)
    Thanks,
    Chuck Williams

    Why don't you try everything from the directory above mygame?
    You'll have to adjust your commands accordingly, but I think your problems may go away.

  • Command line Argument Problem - '*'

    Hi, Is there any problem in giving * as Command line argument.
    My student was trying to write a calculator program but stuck :
    Code Sample
    public class test
    public static void main(String[] args)
    System.out.println(args[1]);
    java test 2 + 2
    No Problem
    java test 2 * 2
    gives Problem

    It's not relevant to the programming language. The shell is what expands the *.
    OTOH, I heard that MS-DOS filename expansion is spotty (that's been my experience actually) and that Java has a workaround built into it to make it make sense.
    I'd encourage you to change the assignment (or however this is working out) to allow your student to submit the entire expression as a single argument:
    java Calculator '2 * (3 + 2)'

  • Simple command line parameter does not seem to work; options?

    All,
    I asked an earlier question about getting an application (Olyvia) to work as a remote app.  Specifically, we were having issues with it not wanting to run for more than one user at a time.
    I found that I needed to add the "-m" (multi-user switch) to enable it to run for more than one user at a time.  I tested this by logging on to the server by two different people, bringing up a command prompt, and adding the "-m"
    to execute line.  so, "xvViewer.exe -m"  Worked great.
    Unfortunately this solution does NOT work when setting the same "-m" option in the command line parameters "Always use the following command line parameters"
    I do note that the published app name is Olyvia, but the actual application file is "xvViewer" and is called an "alias."  I'm wondering if the parameter is not being passed to the actual executable?
    Am I going to have to create a vbscript/powershell/whatever that calls the executable with the correct parameter and publish that script instead?
    Thanks,
    GeoffW

    Hi,
    Generally by passing the command line it must work but if for any specific application you are facing any error then you can try for the script\batch file and then publish as RemoteApp and check the result.
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Console APP - Call function based upon a command line parameter

    I am writing an extrensible console ( interactive console ) application was thinking having my application read in the command, then look up which function to use to process its parameters.
    say the command the user types is "print Hello World"
    I would just grab the first parameter, recognize it as the print command , and then call a function in my class that prints out "Hello World" to the screen.
    Instead of doing a bunch of If statement to match the first argument to a recognized command, what I would like to do is have a type of Hash table that points to the correct function to process the command.
    So.. something like :
    String cmd = console.readline( "Enter your command" ); - get the users command
    "function = HashMap.get( cmd)" - get the function out of the hashmap
    "function( parameters )" - run the function
    the prompt for another command, as long as the last command wasn't "exit"
    I would have to check to make sure the command had a function mapped to it, but with this setup, all I do is update the table when I need to add a new command. and the function( method ) that processes it.
    Thanks!

    It sounds like you're describing the Command pattern. It normally goes something like this:
    interface Command {
        Object execute(String... args);
    Map<String, Command> commands = new HashMap<String,Command>();
    commands.put("print", new Command() {
        public Object execute(String... args) {
            System.out.print(args);
    // ... and more commands
    //.. then in your command-line UI, for example:
    BufferedReader in = new BufferedReader...
    String line;
    while((line = in.readLine()) != null) {
        String[] tokens = line.split();
        Command cmd = commands.get(tokens[0]);
        String[] args = take_subarray_of_tokens_starting_at_1_I_forget_easiest_way_to_do_that(tokens);
        Object returnval = cmd.execute(args);
        // maybe you'll want to do something with return val, or maybe it should be an int more like an exit val, whatever
    }Not tested but you get the idea.

  • Command line path problem...?

    Ok, I am only after begining programing in java and hence im starting on HelloWorld. Its not the code that im stuck on though. Its the command line things afterwards. I know how to change the path and stuff and use DIR however this is what the tutorial says:
    "The Java tool set consists of a set of command line programs located in the bin directory of your Java installation. For instance, if your Java installation is in C:\j2sdk1.4.2 then the programs you need will be located in C:\j2sdk1.4.2\bin. Make sure you have modified your PATH environment variable to include this bin directory. You can modify your PATH through the control panel or temporarily on the DOS command line (see your operating system help)."
    When I try that but replace it with my current version its says this "System cannont find file path" Then if I put program files before that it still doesnt work and no matter what ive tried it doesnt seem to work. Another question also, does the HelloWorld.java file need to be saved in the \bin directory also?
    I hope you get back to me, because its kinda hard without someone here to explain it all.
    -ARA

    When I try that but replace it with my current version its says this "System cannont find file path" Then if I put program files before that it still doesnt work and no matter what ive tried it doesnt seem to work.I'm not a Windows guy, but it sounds like you put the wrong path in the PATH variable. Maybe you installed the JVM in a different location?
    Another question also, does the HelloWorld.java file need to be saved in the \bin directory also?NO! You shouldn't put anything in there, or anywhere the directory above it either (the JAVA_HOME directory). Create a separate directory for your own files. Maybe in your home directory, if Windows is supporting the "home directory" concept in any meaningful way.

  • Command line codegen problems

    hello,
    I try to build using commandline codegen tool. I am using the sample project from eGate Tutorial (Project 1: This Project addresses a very simple business challenge where an input TimeCard File is read and a workfile is output).
    I have had experience doing some build using Ant, but apparently it's not as straightforward as I would've expected with this one.
    I have updated the "build.properties" file to match the project as specified on the documentation. The build seems to go okay for a while until it spits the following errors (in logy.log):
    2006-08-07 20:19:23,328 ERROR [main] [com.stc.codegen.anttaskImpl.CodeGen] [] java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.stc.codegen.anttaskImpl.CodeGen.execute(CodeGen.java:218)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.apache.tools.ant.Main.runBuild(Main.java:668)
         at org.apache.tools.ant.Main.startAnt(Main.java:187)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: com.stc.codegen.framework.model.CodeGenException: C:\JavaCAPS51\commandlinecodegen\temp\1154945927859\Project1dpProject1\CMap1_Service1_ejb\Project1\Collaboration_1.java:15: package dtd.s1_input_420537843 does not exist
        public void receive( com.stc.connector.appconn.file.FileTextMessage input, com.stc.connector.appconn.file.FileApplication FileClient_1, dtd.s1_input_420537843.Employees s1_input_Employees_1, xsd.s1_output_133304065.Employees s1_output_Employees_1 )
                                                                                                                                                                      ^
    C:\JavaCAPS51\commandlinecodegen\temp\1154945927859\Project1dpProject1\CMap1_Service1_ejb\Project1\Collaboration_1.java:15: package xsd.s1_output_133304065 does not exist
        public void receive( com.stc.connector.appconn.file.FileTextMessage input, com.stc.connector.appconn.file.FileApplication FileClient_1, dtd.s1_input_420537843.Employees s1_input_Employees_1, xsd.s1_output_133304065.Employees s1_output_Employees_1 )
                                                                                                                                                                                                                              ^
    C:\JavaCAPS51\commandlinecodegen\temp\1154945927859\Project1dpProject1\CMap1_Service1_ejb\Project1\CMap1_Service1\Collaboration_1_Runtime_Handler.java:372: package dtd.s1_input_420537843 does not exist
                                                                           (dtd.s1_input_420537843.Employees) params.get("s1_input_Employees_1")
                                                                                                       ^
    C:\JavaCAPS51\commandlinecodegen\temp\1154945927859\Project1dpProject1\CMap1_Service1_ejb\Project1\CMap1_Service1\Collaboration_1_Runtime_Handler.java:374: package xsd.s1_output_133304065 does not exist
                                                                           (xsd.s1_output_133304065.Employees) params.get("s1_output_Employees_1")
                                                                                                        ^
    Note: C:\JavaCAPS51\commandlinecodegen\temp\1154945927859\Project1dpProject1\CMap1_Service1_ejb\Project1\CMap1_Service1\Collaboration_1_Runtime_Handler.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    4 errors
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.compileCodegen(CodeGenFrameworkImpl.java:802)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkAntImpl.doPostProcess(CodeGenFrameworkAntImpl.java:452)
         at com.stc.codegen.anttaskImpl.driver.BuildProject.doPostProcess(BuildProject.java:560)
         ... 25 more
    Caused by: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
         at com.stc.codegen.frameworkImpl.model.util.AntTasksWrapperImpl.javac(AntTasksWrapperImpl.java:285)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.compileCodegen(CodeGenFrameworkImpl.java:795)
         ... 27 moreAs can be seen, it failed on the receive() method of the Collaboration, cannot find the package dtd.s1_input_420537843.Employees and xsd.s1_output_133304065.Employees.
    Also, there were some errors to do with velocity:
    2006-08-07 20:18:51,734 ERROR [main] [com.stc.codegen.frameworkImpl.model.util.AntVelocityHelperImpl] [] ResourceManager : unable to find resource 'velocity-templates/VM_global_library.vm' in any resource loader.Within eDesigner, it builds sucessfully indeed. No issues whatsoever.
    As, we have many deployment profiles, building it one by one in eDesigner is very tedious. So, I'd like to get the command line build tool to do the job so we can have unattended build process and possibly use the deploycli tool in combination.
    Any idea on the errors? Has anyone sucessfully used the command line codegen?
    Thanks in advance
    Ari

    Hello Ari,
    I am able to successfully build the project using codegen , command line tool. I tested the same timecard project from the sample projects
    It works fine for me.
    I think the error you are getting is related to OTDs.
    When u created the JCDs did u include all the 3 OTD , file , S1_input_employees , s1_output_employees.
    Right click the collab and in properties check if all the three OTDs are listed
    Let me know if they are listed and still u r getting the error

  • Servertool command line usage problem

    I'm trying to use the servertool in 1.4 /solaris2.6 from the command line eg:
    servertool -ORBInitialPort <port> list
    which should(I would have thought) started servertool, listed the servers and returned.
    Instead if displays the servertool command line prompt.
    what is going on? thanks
    PS: i've previously started orbd on with -ORBInitialPort <port>

    Hi,
    actually it's not a real bug. I would say it's documentation inaccuracy. The right syntax is:
    servertool -ORBInitialPort <port> -cmd <command>
    Try
    servertool -ORBInitialPort <port> -cmd help <command>
    for detailed help.
    regards,
    Todor

  • Command Line echo problem

    Hi there,
    So i have a little problem. I have a short code that i want to log, but the logfile must have redirection characters
    like these : < and >
    wmic qfe list brief /format:texttablewsys > "c:\wmic.txt"
    So i added this:
    echo ^<log^> >>c:\wmic.txt ^</log^>
    But then the output doenst come with the redirection characters. Anyone out here who knows how to help me?
    Many thanks in advance!

    Sorry, but I don't understand what you really want.
    wmic qfe list brief /format:texttablewsys > c:\wmic.txt works fine.
    Give a better sample of that what you want to get.
    WMIC is also able to write the output in special formats, like html or xml - try wmic /?If you only want to begin the logfile with <log> and end with </log> do it with three lines of batch:
    echo ^<log^> > c:\wmic.txt
    wmic qfe list brief /format:texttablewsys >> c:\wmic.txt
    echo ^</log^> >> c:\wmic.txt

  • Command lines & cpu problem

    Hi
    i have a cpu problem , lightroom keep my cpu busy @ 100%
    and i have a dual core
    i have to use task manager to assign only 1 cpu , and so runs great
    is there a command list?

    What system? Haw much RAM, More info. And do the forum search suggested!
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

Maybe you are looking for

  • Clients Business area: Banking Services - BI Development & Support?

    Hi All, I would like to know the things taken into consideration while working in developement & support projects with respect to domain. As we have a clients doing retail business for whom the BW is implemented,<b> In the same way i want to have the

  • When I close the lid to my Macbook Pro, it won't stay awake.

    I am trying to hook up a SAMSUNG SyncMaster B2330 monitor to my MacBook Pro so that I can close the lid and work with my wireless mouse and keyboard instead of the laptop screen.  I have limited desk space and I dont have room to have two monitors op

  • Query performance tuning

    Hello, Can someone please tell me if there is anyway to improve this query to perform better.I tried using temp table instead of CTE .it did'nt change anything.I think there is a problem with latter part of query.When I execute every select individua

  • Bought refurb MBP with Superdrive set to region 6. What to do?

    Hi everyone, I bought a refurbished Macbook Pro and found out that instead of the drive having no region set and 5 changes left, it's set to region 6 and there are 4 changes left. Having set it for region 1 left it with 3 changes remaining. I thought

  • Maintained the storage location in MRPview2

    Hi, Though I have maintained storage location in MRP view2, while reversing the document from m.type 103 to 105 system is asking storage location in GR, then entered the storage location in GR, even though system is not allowing to post the GR becaus