How to execute a scenario from Windows command prompt

Hi,
I have a package which is executing fine from Designer. But the same scenario if I am trying to execute from windows command prompt, then it is giving error.
The package is getting a refresh variable, passing to interface which is creating a file from table, this file is then getting FTP'ed to another server.
I am executing following command -
startscen OB_TAB_TO_FILE_PKG 001 ODICTX "-v=2"
The error is -
A JDK is required to execute Web Services with OracleDI. You are currently using
a JRE.
OracleDI: Starting scenario OB_TAB_TO_FILE_PKG 001 in context ODICTX ...
java.sql.SQLException: socket creation error
at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
at com.sunopsis.sql.i.run(i.java)
DwgJv.main: Exit. Return code:-1
Please let me know where I am going anything wrong.
Thanks,
Himanshu

Hi,
you need to make the necessary changes to the %odi%\bin\odiparams.bat config file, under the "Repository Connection Information" section so that startscen knows how to extract metadata from your repository.
You apparently have left the default settings to the Hypersonic demo repository. Is that the technology your repository is hosted on?

Similar Messages

  • How to execute a Scenario from Windows CMD prompt

    Please can you let me know how to execute the Scenario from a Windows CMD prompt? I am not sure if it is any different from "ODIStartScen" command that ODI uses to execute the scenario.
    Appreciate your help.
    Regards
    B

    Hi SH,
    I tried running the scenario from the command line, but the process was not completed and it came back with the below message
    Session : 131774001 finished with return code : 7000
    Do I need to set up any environmental variables or any other setups before I can run the scenario from the command line?
    Appreciate your help.
    Regards
    B

  • How to execute OMB scripts from the command prompt of OS

    Hi
    I want to deploy the mapping from one environment to other environment using OMB script language. But I dont want to run the OMB scripts from OMB plus COmmand prompt?
    All I need is , is there any way/scripts to access OMB command prompt from the general command prompt of the OS Machine?
    or Can I call this OMB command from java program but not JDeveloper?
    It would be a great help for me by sharing your knowledge?
    Cheers
    Pradeep

    This way from MS-DOS:
    set ORACLE_HOME=c:\oracle\OWB10gR2 (change to your Oracle Home)
    call C:\oracle\OWB10gR2\owb\bin\win32\OMBPlus.bat C:\...\my_script.tcl > C:\...\my_log.log
    my_script.tcl contains something like this:
    set OMBLOG "c:\\...\\some_kind_of.log"
    # Disconn just in case you have called a previous script
    OMBDISC
    source C:\\...\\script_with_omb_procedures.tcl
    OMBCC my_project
    OMBCONNECT CONTROL_CENTER "USER/PASSWORD@HOST:PORT:SERVICE" USE REPOSITORY 'MY_REPOSITORY_OWNER'
    OMBDCC
    DEFAULT_CONTROL_CENTER MY_CONTROL_CENTER
    proc_from_script_with_omb_procedures
    exit
    Hope this helps you to begin.
    Instead of using script_with_omb_procedures.tcl you can have your procedures directly inside my_script.tcl, but I like using a script apart to reuse my procedures.

  • How to execute ODI scenario from a web application

    Hi
    I need to execute ODI scenario from ApEx form.
    how to execute ODI scenario from application. Using 10.1.3.5.5
    -app

    In the SQL property of the TQuery object, enter the call as an anonymous block:
    begin
      pkg_name.procedure_name(true);
    end;

  • How to check system status from Windows command line?

    Does anyone has an idea how to check system status from Windows command line? In UNIX we use startsap check, unfortunately I didn't find an appropriate command provided by SAP.
    The only idea we have is to use
    tasklist /FI "Username eq SAPService<SID>" | find "disp+work"
    which isn't as nice as startsap check.

    Hi,
    In windows you can use the command
    go to profile directory in command prompt and the give the following command to check the status of the instance.
    sapstart check pf=START_DVEBMGS<nr>_<hostname>
    that means you need to mention start profile or instance profile. So that it will say whether the instance is running or not.
    If you want any other information please reply back to me.
    Thanks,
    Chaitanya.

  • Unable to connect to database from windows command prompt

    Hi All,
    Im trying to connect to Oracle database from my windows command prompt, these are the steps I followed:
    1) cd C:\oracle\product\11.2.0\client_1\sqlplus
    2) sqlplus username\password@hostname:1521\service_name
    I do get the error ORA-06401: NETCMN: invalid driver designator
    I did try using the SQLPLUS \NOLOG
    Connect username\password@hostname:1521\service_name
    I still get the same error.
    I did manually type all the commands to make sure no additional charaters coming and etc...How shall I overcome this...

    user9103174 wrote:
    Hi All,
    Im trying to connect to Oracle database from my windows command prompt, these are the steps I followed:
    1) cd C:\oracle\product\11.2.0\client_1\sqlplus
    2) sqlplus username\password@hostname:1521\service_name
    I do get the error ORA-06401: NETCMN: invalid driver designator
    I did try using the SQLPLUS \NOLOG
    Connect username\password@hostname:1521\service_name
    I still get the same error.
    I did manually type all the commands to make sure no additional charaters coming and etc...How shall I overcome this...do you desire/plan on using EZCONNECT or tnsnames.ora entry?
    EZCONNECT sample is below
    sqlplus user1/pass1@'dbserver:1521/orcl_sid'

  • How to read multiple lines from a command prompt?

    I usually read from a command prompt like this:
    String answer;
    System.out.println("Please enter the required data");
    try {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    answer = reader.readLine();
    reader = null;
    } catch (Exception e) {
    System.out.println("There was an exception trying to read " + e);
    answer = "";
    This has worked fine for years when all I wanted was one line answers.
    Now I am trying to prompt for multiple line answers. Is there a way to read into a string array rather than just a string? What class would I use for that?
    Thanks a lot!

    The easiest approaches would be to read a line at a time until you've read enough lines, whether by a known fixed line count, or a token count, or by reading some sentinel toek, OR read a token at a time using Scanner.next() until you've determined you're done. Which one is more appropriate depends on your situation.

  • How to execute ODI scenarios from command line in Unix

    Hi Friends,
    I am using ODI 11g.
    I want to execute ODI senarios using the command line argument in Unix.
    Please let me know how to proceed with this.
    Thanks,
    Lony

    Hi,
    unser the /your_ODI_HOME/agent/bin folder.
    Excute this
    sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
    REFRESH_ID=Your Scenario name
    001:Version
    GLOBAL:Context name
    5=Log Level
    agent_ODI=Your agent name
    Regards

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • How to execute a Scenario from an HTTP URL

    Hi All,
    I tried to execute an ODI Scenario from an html page following the guide (all parameters are correct), but the result
    is:
    snps_exe_ok: false
    snps_session_no: -1
    snps_error_msg: MY_AGENT_NAME
    When I try to start a Scenario from MDN the agent works fine.
    Any suggestions?
    Thanks in advance,
    Ant

    <html>
    <head>
    <title>Script Example of HTTP StartScen</title>
    </head>
    <body>
    <form action="http://MYSEVER:8080/oracledimn/startscen.do" method=post>
    <input type="hidden" name="agent_name" value="MY_AGENT">
    <input type="hidden" name="agent_port" value="20910">
    <input type="hidden" name="master_driver" value="oracle.jdbc.driver.OracleDriver">
    <input type="hidden" name="master_url" value="jdbc:oracle:thin:@AAAAA:1521:BBB">
    <input type="hidden" name="master_user" value="odim">
    <input type="hidden" name="master_psw" value="f8ypcHkKOSTrI6Qmd1wKRXWwy">
    <input type="hidden" name="work_repository" value="WORKREP1">
    <input type="hidden" name="snps_user" value="SUPERVISOR">
    <input type="hidden" name="snps_psw" value="hZyHziYac7NsnHMh7Su9Js">
    <input type="hidden" name="scen_name" value="MY_SCENARIO">
    <input type="hidden" name="scen_version" value="001">
    <input type="hidden" name="context_code" value="GLOBAL">
    <input type="hidden" name="log_level" value="5">
    <input type="hidden" name="http_reply" value="HTML">
    <input type="hidden" name="MYPRJ.CompanyCode" value="485">
    <input type="hidden" name="MYPRJ.YearPrompt" value="2008">
    <input type="hidden" name="MYPRJ.PeriodPrompt" value="10">
    <input type="hidden" name="MYPRJ.RunningMode" value="H">
    <input type="hidden" name="MYPRJ.VersionMode" value="N">
    <input type=submit>
    </form>
    </body>
    </html>

  • Pass UTF character literal from Windows command prompt

    I'm trying to pass \u00fd (� - 0253) via the windows command line as a parameter to a java app. "DOS" is converting it to a superscripted 2. Any ideas on how to work around this? It works fine if I pass the parameter via a windows program.
    Thanks

    \00fd is "Latin Small Letter Y With Acute" according to my Unicode crib. But your DOS window doesn't use Unicode, it uses CP437 or CP850 depending on where in the world it thinks you live. (Both of them have the superscript-2 character at the FD code point.) I don't see the y-acute character anywhere in CP437, so if you're in North America (or maybe Britain too?) you can't do that. In CP850 the EC (decimal 236) code point is y-acute.
    However you aren't out of luck in either case. There is a DOS command "chcp". If you type "chcp" at the command line it tells you what your code page is. If you type "chcp 850" at the command line it will change your code page to CP850, if it can.
    (I am getting all this information from my MS-DOS 5.0 User's Guide and Reference, by the way. I may put it up for sale on eBay.)

  • How to execute sql script from linux command line

    Hello everyone !
    Just short question. On my server I must install script in crontab which will eexecute some sql statements.
    How can I write command which will execute script from file without asking about password ?
    sqlplus user/pass ... and then what ?
    thanks
    dlugasx

    user10064952 wrote:
    Just short question. On my server I must install script in crontab which will eexecute some sql statements.
    How can I write command which will execute script from file without asking about password ?Crontab does not run your local shell profile - which means no valid Oracle environment for SQL*Plus to execute in.
    On newer cron versions, you can add an environment to the crontab file itself that needs to be set before executing the scheduled command.
    Whatever method - make sure you have ORACLE_HOME set, that the path includes ORACLE_HOME/bin, that ORACLE_SID is set (if not using a TNS alias) and so on.
    But I agree with Sybrand... crontab is not the best place for running SQL or PL/SQL code. That should reside in the database as named code (e.g. stored procs) and be executed via DBMS_JOB or DBMS_SCHEDULE.
    Less moving parts that way. No external dependancies. And will work on any Oracle server, irrespective of the o/s used and whether or not the relevant o/s user has batch/cron/etc privs to do the deed.

  • Log ConsoleHandler + Windows Command Prompt

    Having really strange problem:
    Program started from Windows Command Prompt.
    Logging with ConsoleHandler.
    If select something with "Edit->Mark" in this Command Prompt, process stop responding.
    Has anybody seen such behavior?

    Correction:
    Looks like anything writing to stdout/stderr hangs in Windows Command Prompt "mark" mode.
    Could not find anything about how it works.

  • How to get no. of rows of Windows Command Prompt in java

    hi all,
    can anybody tell me that is there any java utility avalilable throght I can find the how many rows avalilbe on currently executing command prompt, and also how can i clear the content of command prompt (result of 'cls' command).
    Currently execting command prompt means from where I have run my java program.
    any reference is also welcome.
    thanks in advance.

    Clearing the screen is trivial, as long as you're OK with making your program specific to Windows only (i.e. you never hope to run it on any other OS ever):
    Runtime.getRuntime().exec("cmd /c cls");As to figuring out how many lines your command window's screen buffer has - good luck with that. I'm not familiar enough with the Win32 API to get this info, but you'll have to figure out what that is, and call it via JNI.

  • How to execute SAP Transaction from cmd

    Hi, Dear All,
    How can we execute an SAP Transaction from the command prompt.
    Your inputs are highly appreacited.
    regards

    Go to the command prompt (CMD) and change to the directory where the SAPGUI software is located. Then, run: sapgui <hostname> <instance> Example: sapgui sapprd 00 This is a very fast way to start a SAPGUI session against the indicated SAP system and instance number.
    another way is to locate the file of logon pad
    in my system it was at C:\WINDOWS\SAPwksta\setup\SAL
    after that type saplogon.sal
    It will take you to the logon pad.

Maybe you are looking for