How to call cmd commands in OS COMMAND

Hi
I need the syntax for calling a cmd commands using OS Command tool.
Thanks
sri

I was trying to say you incase you are using the xcopy using the server agent when you mention the path please specifiy the complete directory path , since ODI run the scripts from oracledi/bin path .
Now when you are running cezar command , you dont need to have the file . it copy the directoy liste into that txt file.

Similar Messages

  • How to call a ODI Job using Command line?

    Hello All,
    Please help me on this..
    How to call an ODI Job using Command line?
    Thanks
    Ravikiran

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • How to Call variable value in OLEDB Command SSIS

    Hi ,
    I am facing one issue in SSIS OLEDB Command.under OLEDB Command there is sql update query
        UPDATE dbo.ArchiveBBxFbapp
        SET LatestVersion = 0
        WHERE BBxKey = ?
    dbo.ArchiveBBxFbapp is the name of the table, which I want to change by dynamically on fly.
    table name I am getting from variable .
    I want to take same variable value instead of hard coded table name in update statement.
    suggest me the correct command
    thanks and regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    For that you've to first store the query itself inside a variable after setting EvaluateAsExpression as true.
    Then use expression as below
    "UPDATE dbo." + @[User::TableName] +
    "SET LatestVersion = 0
    WHERE BBxKey = " + @[User::ColumnValue]
    Use option as SQL command from variable for data access mode property
    Then map the variable containing query above inside this OLEDB command.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to call a cross platform OS command in Scenario?

    Dear all,
    I have two servers, server W & server L, which is in Windows & Linux platform respectively. I installed ODI agents in both servers. Then I created a scenario which contains a procedure with a Windows OS command. I run it successfully if I kick start the scenario (using startscen.bat) from the Windows server (server W). However, I must kick start it from the Linux server (server L). But then the scenario failed with error message "java.io.IOException: java.io.IOException: cmd: not found". I tried to put parameter "-NAME=WINDOWS_AGENT" to specific the windows agent to run the scenario but got the same error.
    Anyone knows if my requirement is feasible? If yes, how to do it? Or I must run it in the same platform? Millions Thanks.
    Regards,
    Ricardo

    When you execute a scenario with a startscen command, it runs the scenario in that process, the NAME= parameter is just reflected in the execution log as the name of the agent which runs the scenario.
    If you run a scenario from a OdiStartScen tool in a package, then you can specifiy the AGENT_CODE which delegates the execution to that specific agent. (if you don't specify an AGENT_CODE it defaults to the same agent running the parent)
    Hence, if you want to run a command from the OS which initiates the execution on a remote agent, you will need to do one of the following:
    - create a scenario which uses an OdiStartScen command to start the scenario (held in a variable) with the parameters (held in a variable) on the agent (from a variable)
    - create a java program which utilizes the OdiInvocation API to initiate the excecution of your scenario on remote agents
    - If you have the ODI Public Web services deployed, you could even use some tool to use the web service to invoke the execution.
    For completeness, you should also refer to the documentation of the odioscommand tool, which will invoke an os command (in the appropriate way on a variety of operating systems.

  • How to call operating system(windows) functions like sutdown,refresh,et

    Hello,
    I am new in Oracle D2k.I want to know that how to call windows XP/7 shell commands(operating system functions) or windows function key(like F5 for system refresh in windows xp/7) in an Oracle Form.
    Actually I have to make a trigger which can fire at pressing a particular key and execute appropriate action of Windows7 like shutdown,F5(function key of windows to system refresh).
    thank you
    regards
    aaditya.

    Just for future reference, regardless if you are posting in the Forms area of the forum or any other, terms like Forms 11g, Oracle 11g, etc are parts of product names. They are not version numbers although they do offer a slight hint. It is very important that when posting you include the complete version number of any products related to the problem or question you have. For example, you said you are using Oracle Forms 11g. Look at how many possible versions "Forms 11g" could possibly be:
    11.1.1.1
    11.1.1.2
    11.1.1.3
    11.1.1.4
    11.1.1.6
    11.1.2.0
    11.1.2.1
    With each new patch release and major release, a large number of bug fixes are included. In the case of new major releases, in addition to bug fixes, many new features are added. So knowing the version number is important.
    Beyond that, it would appear that you have many questions:
    1. How to copy and paste
    2. How to execute a system shutdown
    3. How to force the browser into full screen mode
    4. Refresh - this one is unclear. What do you mean by "refresh"?
    Let me answer those that I can:
    <blockquote>o Functions like cut/copy/paste are available directly from your Forms code. For these I would recommend referring to the Builder's Online Help. Look for CUT_REGION, COPY_REGION, PASTE_REGION. It might also be helpful to understand SELECT_ALL. For example you may want to code a Copy button like this:
    GO_ITEM('some_text_field);
    SELECT_ALL;
    COPY_REGION;o To execute a system shutdown on the client machine, you would first need to WebUtil enable your form. Refer to the Forms Builder Online Help for information about how to use WebUtil. You can also find lots of information in this forum about WebUtil. Once enabled, you can execute a Windows shutdown in various ways. Here one option:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'cmd /c start "" "' || '"shutdown -s -f -t 1"' || '"';
         WEBUTIL_HOST.HOST (my_cmd);
    End;Refer to the Microsoft documentation for more information: http://technet.microsoft.com/en-us/library/bb491003.aspx
    o I'm not sure what you are attempting to do with the F11. I understand that this function key sets the browser to full screen, but the form will not exactly adjust for this change in browser size. You can adjust the applet size dynamically, but not the form. For that you would need to code the behavior yourself. So, before I can offer something specific, it would be helpful to understand what you expectation is and if what you want is to set the browser to full screen, why not just allow the end user to do it? You could easily have a java script popup displayed before the form starts which might say something like "To maximize your browser, press F11"
    o Finally, "refresh". I don't know what you mean here. Refresh what? The Windows desktop, browser, Oracle Forms.....
    </blockquote>

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • Hi There, Any one Know How To Call Workflow Process From Special Menu.

    Hi There,
    Any one Know How To Call Oracle Workflow Process From Special Menu.
    I mean Tool -> Special Menu 1-45
    Or How to call Oracle Workflow Process From Command Button.
    Thanks
    Bachan.

    Can u give me some examples.
    Second thing we can add special action (special Menus) from Form Personaliztion.
    But how to add launch wft through Personalization
    Please Give me a breaf detail.
    Thanks
    Bachan

  • How to call  file .hlp file with oracle

    i work with devloper 6
    my question is how to call file .hlp by pressing command buttoon ?
    thanks

    What's your module written in?
    Cheers, APC

  • How to call linux command ?

    hi all,
    I wanna make java application which display the ouput of linux command (eg. ps -ax output in JTextArea).
    The problem is how to call "ps,kill,etc" ?

    JTextArea txtOutput = new JTextArea();
    String cmd = "ps -a";
    Process proc = Runtime.getRuntime().exec(cmd);
    BufferedReader buf = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    String out;
    while ((out = buf.readLine()) != null){
    System.out.println("Output: "+out);
    txtOutput.append(out+"\n");
    }

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How to call unix script/command in ODI

    Hello Gurus,
    Please let me know how to call unix script/command in ODI?
    Thanks
    Shridhar

    you can call shell script using the OS command found in Package.
    Step 1. Drag the OS Command in the Packgae
    Step 2. In the Text mentiond call the script say for ex sh /opt/path/script.sh
    Step 3. Execute.
    Note : Make sure the User through which ODI is triggering does have the required permission to execute shellscript , also always provide the full path , since scripts are execute from the oracldi/bin folder so its necessary to provide the complete path of the script location.
    Hope this helps.

  • How to call gnuplot command from java

    Hi there,
    In our course, we are required to develop an GUI for gnuplot. In case you don't know about gnuplot, it's a plotting program and has lots of command. We want to use java and swing, but now we don't know how to call gnuplot command from java, or how to execute a shell command(script) from java.
    By the way, since we need read in files with several columns of data and allow user to select a column, we want to use JTable. Is that reasonable?
    Thanks a lot for any suggestions!
    Jack

    Hi, there:
    Will using JTable add much overhead? I may have to use several JTables and switch among them. I can add scroll bar to or edit JTables, right?
    BTW, do you have experience about gnuplot? Can I find the command tree of gnuplot somewhere? Or do you know a better place to post question about gnuplot? unix/linux group, maybe.
    Thanks,
    Jack
    P.S. Would you guys answer my question after I use up my duke dollars? :- )

  • How to call systems commands

    Hello guys,
    I will like to know if there is a way of calling system command and shell commands in windows without making use of the Runtime Class in java.
    Also when ever i call a system command or shells commands from my java application using the runtime class, it open the a new shell(Command Prompt) before executing the command.
    I await your response. Thanks in advance.
    Joe.

    How about this? http://onesearch.sun.com/ClickThru?qt=without+command+window&url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jsp%3Fforum%3D31%26thread%3D440546&pathInfo=%2Fsearch%2Fdevelopers%2Findex.jsp&hitNum=2&col=devforums

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • How to call the javascript through Command prompt?

    I need to call the .js file through command prompt. And also through programming language like c++, java. Could you please advice me with samples.This is for "illustrator cs".

    You can also look into use of COM scripting interface to the Adobe programs. Unfortunately, this means you have to do some programming/scripting to create a (command line) script that you can execute like
    cscript C:\somePath\myScriptLauncher.vbs  C:\somePath\anAdobeScript.jsx
    or
    cscript C:\somePath\myScriptLauncher.js  C:\somePath\anAdobeScript.jsx
    the scripts can be written in VBScript (*.vbs) or Microsoft JScript (*.js) which can access COM objects thus the Adobe program's COM APIs.
    Nothing purely simple as a command line option in this solution. But it does offer customization as an advantage.
    This might be a slightly useful reference.
    http://stackoverflow.com/questions/3846626/is-it-possible-to-execute-jsx-scripts-from-outs ide-extendscript
    there's one post mentioning COM in there.
    And of course, you can also use COM through C++, Java, C#, Visual Basic, etc. as well, not restricted to VBScript and JScript, though I've found it's easier to use the latter two for COM.

Maybe you are looking for