Running odihragent from shell prompt

Hi
I am currently trying to run odihragent from a shell prompt to do some debugging however I am not sure of the date format that it expects? Can anybody help?
/oracle/10gASR2/ldap/odi/bin/odihragent OracleHRAgent connect=find login=apps pass=*** date=200501011200
status= -1
Error - ORA-01722: invalid number
Error in OCIStmtExecute
Error in Execute
HR Agent failed with Status:2

well, the problem is not with the command line arguments. it doesnt matter if we get the input from the user through command prompt or GUI. The problem is only in the handling of the change in exitValue during running.

Similar Messages

  • Can I change user name after running essbase from command prompt??

    Hi,
    I run essbase from command prompt and during this activity I was asked to give user name and password, but by mistake I put wrong user name and now wolud like to chanege it.
    Is it possible??
    cheers,

    It worked,
    now I was able to connect to easbase from planning, I ve created sample aplication and initialize it but cannot connect to Eas to download data for sample application. After I run the validation there is now only one error displayed:
    Essbase / Essbase Administration Services
    FAILED Web App Availability of web application context (POL-MPIKULSKI 10080, eas)
    Error: com.hyperion.cis.utils.BadResponseCodeException: Bad response code: 404
    Recommended Action: Check application is started
    I tried to start the eas from start>programs>epm system>essbase>administration services>start administration services(java embeded) but it didnt help.
    can I start in in different way??
    cheers,

  • VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job

    I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
    Here's the script in question:
    Option Explicit
    Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
    Const holdDays = 6
    main
    Sub Main()
    ClearArchive
    End Sub
    Sub ClearArchive()
    Dim fso 'As Scripting.FileSystemObject
    Dim fld 'As Scripting.Folder
    Dim f 'As Scripting.File
    Dim delLogName, delLogOut, delCtr
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set fld = fso.GetFolder(filePath)
    delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
    Set delLogOut = fso.CreateTextFile(delLogName, True)
    delLogOut.WriteLine(delLogName)
    delLogOut.WriteLine("")
    delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
    delLogOut.WriteLine("")
    delCtr = 0
    For Each f In fld.Files
    If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
    If DateDiff("d", f.DateCreated, Date()) > holdDays Then
    delLogOut.WriteLine(f.Name)
    fso.DeleteFile f, True
    delCtr = delCtr + 1
    End If
    End If
    Next
    If delCtr = 0 Then
    delLogOut.WriteLine("No log files were deleted this run...")
    End If
    Set fld = Nothing
    Set fso = Nothing
    delLogOut.Close
    End Sub
    If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
    do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
    access to the directory and the files do get deleted. Any ideas out there?
    Between this and other outstanding issues, I'm quickly losing faith in SQL Server.  >=o(
    Thanks in advance for your thoughts!
    John
    Version Info:
    Microsoft SQL Server Management Studio      10.0.2531.0
    Microsoft Analysis Services Client Tools      10.0.1600.22
    Microsoft Data Access Components (MDAC)      3.85.1132
    Microsoft MSXML      2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      8.0.6001.18702
    Microsoft .NET Framework      2.0.50727.3603
    Operating System      5.1.2600
    "A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."

    Hi
    jrmunn
    i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
    i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
    Below is the script used inside the file (RefreshExcel.vbs)
    //---Script code-----------------------------------------------------------------
    Dim objXL, objWB
    Dim FileLocation, FileName
    On Error Resume Next
    'lgnConn = 1
    FileLocation = "F:\Reports\Reports"
    Set objXL = CreateObject("Excel.Application")
    objXL.DisplayAlerts = False
    FileName = "ReportFile1.xlsx"
    'MsgBox (FileLocation & "/" & FileName)
    Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
    objWB.EnableConnections
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.Save
    objWB.Close
    Set objWS = Nothing
    Set objWB = Nothing
    objXL.Quit
    Set objXL = Nothing
    'MsgBox ("Refresh Completed")
    ---------------------------------------------------------------------------------------------------//Script complete
    Now when i am trying to call this script file in SQL agent job step (as you mentioned )
    as Type -cmdExec(OperatingSystem)
    cscript "C:\RefreshExcel.vbs"
    Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
    to run the file "when user is not logged in"
    that is why  i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
    Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
    Thanks in advance.
    Please help me. :-(

  • Running command from command prompt

    hai all,
    iam using Javamail to send emails. for that iam using the command prompt.the code for executing the commands from the command prompt is as given below.
    public static String runCommand(String s)
    String result=new String();
         try
         //the command is executed and stored in 'p'
         Process p=Runtime.getRuntime().exe("cmd /c "+s);
         result=(loadStream(p.getInputStream()));
         if(p.waitFor()!=0)
         System.out.println("Exit Value = "+p.exitValue());
         System.out.println("Wait for = "+p.waitFor());
    System.out.println("Result is "+result);
         catch(IOException e)
    System.out.println("IO Exception");
         e.printStackTrace();
         catch(InterruptedException e)
    System.err.println("Interrupted waiting for process!");
         return result;
    the contents of the 'javamail' directory are
    activation.jar, mail.jar, Msgmultisendsample.java and Msgmultisendsample.class
    in the first call to this method i pass the string "set classpath=%classpath%;e:\javamail\mail.jar;e:\javamail\activation.jar;e:\javamail; " here i set the classpath since i will be executing the command from the command prompt.the command works fine and the exitValue() is 0.
    in the second call to this method i pass the string "java Msgmultisendsample [email protected] abc 123.456.789.012 true" for running the Msgmultisendsample.class file. but i get the exitValue() as 1 and the command is not getting executed. i dont know how handle this change in the exitValue().
    both the above commands works fine if i run directly from C:\ but not when called to this method.
    Please help me out people, i will be glad to receieve the replies as early as possible since i have to submit this tomorrow.
    Thanks in advance,
    Jayanth.

    well, the problem is not with the command line arguments. it doesnt matter if we get the input from the user through command prompt or GUI. The problem is only in the handling of the change in exitValue during running.

  • How to run form from command prompt

    Hi,
    How to run a form from command prompt
    can anybody suggest me the way
    prasanth a.s.

    Well, if you are running windows, client server forms 6i, and your form is called 'myform', you could put this into a batch file :-
    start ifrun60 module=myform

  • Cant See RTF Files in JAR but can when running program from command prompt

    posted August 16, 2005 08:26 AM
    Hi ALL:
    I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
    When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
    However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
    Chetan
    any suggetsions

    posted August 16, 2005 08:26 AM
    Hi ALL:
    I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
    When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
    However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
    Chetan
    any suggetsions

  • New user can not run ping from shell

    Hello,
    I am an extreme novice, but I have been able to install Solaris 10 on a SunBlade 100 and have created a second user. I want to be able to telnet or ssh to my system as the second user and then run pings and traceroutes from there to other network devices.
    If I remote log in as root I get a # prompt and can run ping. If I remote log in as the second user I get a $ prompt even though the group [0], base directoty [], and shell [sbin/sh] are identical to root in the /etc/passwd file. If I try to run ping I get: ping: not found.
    What do I need to configure for the second user so that the login receives the # prompt and is able to run pings?
    Thanks,
    Greg

    I'm missing something. I want to create a user that is equal to the root. The root has # prompt and can run ping with no extra work. What do I need to do to my second user to get access to the # prompt and the ability to just type and run ping ?Oohhhhhhhhhh, root has that other prompt and his PATH statement is setup properly and mine isn't so I need to be him instead of fixing the user account.
    You can set any users prompt to anything you want. You can make root's prompt a dollar sign instead if you want to and you can set an ordinary users prompt to the # symbol so what does that prove?
    All you need to do is to fix the PATH statement in ~/.profile for bash or sh and the user no longer needs to type the full path or use ./ to run a command.
    You have a lot to learn.
    alan

  • Run report from Unix prompt

    Hi,
    for audit reasons we need to run a report again. Therefore a changed the where-clause of the report. Since the report needs to run on our production system and the prodcution-version of the report can not be changed, I need to run the report from the unix prompt. Can anyone tell me how to run an Oracle reports 2.5 from the uni prompt. We are using Oracle Applications and therefor still on reports 2.5....
    I tried to run the report from the client, but since the report fetches alot of data, my harddrive with 1.7GB of free space ran out of resources. Therefore I can only run the report on the production system (a little bit more resources...).
    Thanks in advance, Roel.

    Hi Roel,
    Go to $ORACLE_HOME/bin directory. You can see the reports executables r25runm - Runtime, r25clim - Client.
    You can run your report like this:
    r25runm report=myreport.rdf userid=scott/tiger@mydb destype=file desformat=pdf desname=myreport.pdf
    (or)
    r25clim report=myreport.rdf userid=scott/tiger@mydb destype=file desformat=pdf desname=myreport.pdf server=myserver
    Please, Change the desformat and destype as per your requirement.
    -Siva B

  • Running java from command prompt?

    What do I need to be able to run java code from the command prompt? I have J Builder and when I have questions, mainly people give want me to run from command line. When I do so it says it does not know what javac is.

    javac, java etc.. commands are in the j2sdk\bin directory.
    So you have to give PATH to that bin directory in order to use it in command line. Go to the JBuilder installation folder and look for the j2sdk. (JBuilder comes with the j2sdk but the name may vary)
    If you find it, then give the PATH to it's bin directory.
    Or you can download the j2sdk from sun seperately, and give the PATH to its bin directory.

  • Run midlet from command prompt

    Hi all,
    Can someone please detail me, as to how can I run the midlet from the command prompt directly and whether all kind of midlets (including those which use bluetooth and WMA api's ) can be directly run from the command prompt in windows. Any documentaiton or weblink to this will be appreciated.
    TIA
    -Shishir

    I have got around the issue. Previously I had not mentioned the path initially. But now I am getting an ExceptionInitializerError
    Here is the command again
    C:\Program Files\WTK2.5.1>java -cp .\wtklib\kvem.jar;.\wtklib\kenv.zip;.\wtklib\
    lime.jar;.\apps\Games\bin\Games.jar;.\wtklib -Dkvem.home=. com.sun.kvem.midp.Mai
    n DefaultGrayPhone -descriptor .\apps\Games\bin\Games.jadThe errors are
    Warning: Toolbar resources not found
    java.lang.ExceptionInInitializerError
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Sour
    ce)
            at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.sun.kvem.environment.JVM.main(Unknown Source)
    Caused by: java.lang.NullPointerException
            at com.sun.kvem.util.ToolkitResources.getString(Unknown Source)
            at com.sun.kvem.midp.MIDP.initMenuActions(Unknown Source)
            at com.sun.kvem.midp.MIDP.<clinit>(Unknown Source)

  • Running apps from shell

    Hi,
    as a complete newbie to OSX (changing from windows), I wonder how I can run apps (e.g. neooffice) from the shell, e.g. opening directly a document...
    regards
    eik

    What is your application release?
    Please see these docs/threads.
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    Concurrent program with executable of type HOST
    Thanks,
    Hussein

  • RunInstaller fails while running from command prompt

    Hi,
    The runInstaller when run fails from command prompt:
    Starting Installation...
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /vol2/newtmp/OraInstall2009-05-17_11-02-45PM. Please wait ...Success!
    Done!
    [oracle@saudas oracle]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
    Copyright (C) 1999, 2005, Oracle. All rights reserved.
    Unexpected Signal : 11 occurred at PC=0xF7D617CE
    Function=(null)
    Library=/vol2/newtmp/OraInstall2009-05-17_11-02-45PM/jre/1.4.2/lib/i386/client/libjvm.so
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    I have made a temporary directory logged as root user:
    Then login as root:
    $mkdir /vol2/newtmp
    $chown oracle:oinstall /vol2/newtmp
    $chmod 777 /vol2/newtmp
    Then login as oracle:
    $export TMP=/vol2/newtmp
    $export TEMPDIR=/vol2/newtmp
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    I am using Oracle 10g Server Release 2 64 bitThat's a good start.
    The OS is:Red Hat Linux 64 bit.Which version ?
    Did you set DISPLAY env variable ? Did you set the kernel to the required value ?
    Check again all the prerequisites.
    Nicolas.

  • Query v$ views from shell script fail

    Hi everybody,
    the query below is runing well with a SQL*PLUS (database is mounted and not open)
    SQL> SELECT member FROM v$logfile;
    MEMBER
    +DATA/testgfi/onlinelog/group_1.298.773871647
    +DATA/testgfi/onlinelog/group_2.294.773871647
    +DATA/testgfi/onlinelog/group_3.295.773871647
    But Giving error if I run it from Shell script ???
    $ sqlplus -s '/ as sysdba' << EOF
    SELECT member FROM v$logfile;
    EOFSELECT member FROM v
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only..
    Please help..
    Thanks..
    Aljaro

    Aljaro wrote:
    Hi everybody,
    the query below is runing well with a SQL*PLUS (database is mounted and not open)
    SQL> SELECT member FROM v$logfile;
    MEMBER
    +DATA/testgfi/onlinelog/group_1.298.773871647
    +DATA/testgfi/onlinelog/group_2.294.773871647
    +DATA/testgfi/onlinelog/group_3.295.773871647
    But Giving error if I run it from Shell script ???
    $ sqlplus -s '/ as sysdba' << EOF
    SELECT member FROM v$logfile;
    modify as below
    SELECT member FROM v\$logfile;

  • How to run clientgen from Workshop 9.2 IDE

    Is there a way to run clientgen for wsdl from within IDE, rather than creating your ant script and running it from dos prompt.
    -Anil Patel

    Hi Andrey,
    Are you on Workshop 9.2.1 ?
    The client jar gets created only during publish. Hence if you have deployed your application or ejb to a running server instance and you choose to publish the app, the jar will be created in the root of your project, assuming you have left default values.
    You can run a quick test by right clicking the project and selecting WebLogic EJB
    In that screen uncheck use default setting for the client jar value and specify your own jar file name
    with the server running, publish the app to the server.
    the jar should be created in the root of your project.
    you can always specify the fullpath to the jar too
    let me know if this works for you
    cheers
    Raj

  • Running SQLPLUS script from command prompt on SUN

    We are making a migration from VMS to SUN ( SunOS 5.10) and from 9i to 10g. We have encountered an unanticipated problem with running scripts from the command line in SUN(SQLPLUS execution from the command line). All of our packages have a naming convention such as "DM$LOAD.PKB". I know it is a strange naming convention.
    The problem is that when the package creation script is run in SQLPLUS at the command prompt SQLPLUS can not open the file.
    SQL> @dm$load.pb
    SP2-0310: unable to open file "dm$load.pb"
    SQL> host ls
    dm$load.pkb
    SQL>
    Setting the escape character does not seem to help.
    SQL> set escape '\'
    SQL>
    SQL> @dm\$load.pb
    SP2-0310: unable to open file "dm$load.pb"
    SQL>
    Unfortunately, we can not rename the scripts. This can be done from a shell script, but our Tech Services refuse to run the SQL scripts from a shell script
    Any ideas on how to get SQLPLUS to run the scripts from the SUN command line?

    I did not notice that the cut and paste was poor. It should have read
    SQL> @dm$load.pkb
    SP2-0310: unable to open file "dm$load.pkb"
    SQL> host ls
    dm$load.pkb
    Any ideas will be greatly appreciated.

Maybe you are looking for

  • Reporting Direct Production Cost Center Over/Under Absorption

    Hi, I am trying to find a way to report Manufacturing Cost Center Over/Under Absorption in a similar way COGS are reported in CO-PA. I mean - I would like to breakdown Direct Manufacturing Cost Center Over/Under Absorption into cost elements (just li

  • Workspace batch scheduler error

    We just upgraded to EPM 11.1.2.1. This morning, a user scheduled a couple of new batches in Workspace to run FR reports. Those batches were hung at 'Running' and never officially completed but now I'm getting this generic error message every time I t

  • Youtube ipad blank no UI but navigator for video has been shrink?

    I don't know if this a bug from youtube,or something that my small brother did,so i was letting my small brother going on my ipad mini youtube app,and when i got it back and go on youtube, the white UI for browsing videos has been shrinked into like

  • Anyone know how to put bookmarks in alphabet order

    Does anyone know how to put bookmarks in alphabet order? I am using Yosemite and would like to have all my bookmarks in alphabet order is there anyway to do this. Please advise. Thank you

  • Transaction is taking too long to load

    Hello Experts, Whenever i try to access PPOSE it takes a very long time to load. I also noticed that in the selection area of PPOSE there is already an Org Unit loaded. Is there any way that I can clear this default Org Unit that shows up? Also how c