Execute script from ODI

Hi ODI Gurus,
I need to execute unix scripts which will internally call java programs from ODI.
I am trying using the packagae - OS Command option but it is saying "Wrong process return code"
Appreciate your inputs ?
Best Regards
Arc

Hi Arc,
Like to contribute some points,
Wrong Process Return Code will be returned due to,
1. ODI cant able to access your script file ie, access permission issues, script reside in some machine where your ODI agent cant find it.
2. Your script itself failed ie, there is some problem in your script and if its failed ODI will retrun the error. So its always a best practice to redirect the output of script to a log file.
Hopes this helps you.
Thanks,
Guru

Similar Messages

  • Executing AIX script from ODI

    Hello -
    I was wondering if I can run a job to execuse an AIX script from ODI. I was looking thru ODI Utilitiies "OdiOSCommand" and "OS Command" - But, I couldn't see where to specify the Server Name. I do see the "Command to Execute" which is good, but I need to tell it which server this command resides in. Unless there is another ODI utility I can use..?
    Thank you for any input you can provide.

    You will need an agent to run these scripts.
    There are 2 ways this can be done.
    1.) You will need to create an agent on the AIX box on which the script needs to be executed.
    2.) If thats not possible, then on the machine on which the "agent" is deployed, the script should live. This script should then ssh/rsh into the AIX box in question and execute it there.

  • Calling UNIX shell script from ODI package?

    Hi,
    How Can we call UNIX shell script from ODI package?
    I have a ftp_ss.sh script which which ftps a file from remote server to local server, archives the last file and renames new file to the standard (ie file data store)name.
    I want to run the above script and interfaces from a package.
    Any help is greately appreciated.
    Thanks,
    RD

    In the package window, put "OS Command" from the toolbox.
    Provide the command parameters to this tool in form of "/path/to/script/ftp_ss.sh"

  • Execute script from AfterFX command line

    Hello all
    I'm trying to run a script from the AfterFX.exe command line and I get a message: "Unable to execute script at line 1. Syntax error"
    If I run the same script file from the AE Script Editor, it works perfectly
    Here is the command line I'm using:
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx"
    Anyone have an idea of what can cause this error? I've tried running the script directly in the command line like
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "alert('1')"
    and it works fine for short script but mine is way to big to do that
    As you can probably guess with the "Watermark" and "Security" in the filename, I cannot post the script file here, all I can say is that the line 1 is:
    var projectName = "D:\\Product\\WatermarkTemplate.aep";
    I've tried to replace the entire script with "alert('1');" and it cause the same error when running it from the command line
    Also, if anyone know where I can find the AfterFX.exe command line arguments description, I would be very happy.. everybody talks about aerender.exe but I need thoses options for AfterFX.exe
    Thanks for your help

    Have you tried to use "-r" instead of "-s"?
    (argument for "-s" is a script; and argument for "-r" is a path to script)

  • Cannot Execute Scripts from UNC Despite GPOs Allowing Me To Do So

    Hello! 
    I'm having an issue getting scripts to execute from a UNC share.
    I have followed in instructions in the below two blog postings:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/29/how-to-run-powershell-scripts-from-a-shared-directory.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/08/10/weekend-scripter-run-powershell-scripts-from-remote-file-share-part-2.aspx
    I have also used Group Policy to set the execution policy to Unrestricted for the MachinePolicy and UserPolicy scopes:
    PS C:\> Get-ExecutionPolicy -List | Ft -AutoSize
            Scope ExecutionPolicy
    MachinePolicy    Unrestricted
       UserPolicy    Unrestricted
          Process       Undefined
      CurrentUser       Undefined
     LocalMachine    RemoteSigned
    Unfortunately, I am still getting the following prompt when executing a script from a remote share:
    \\Server1\Share\Install-Something.ps1 -Parameter1 Value1 -Parameter2 Value2
    Security warning
    Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
    computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
    message. Do you want to run
    \\tlehmann.vcs.coaxis.net\Source\QA_Automation\QA_Repository\Scripts\Installation\AutoBuildv2\Install-AutoBuild.ps1?
    [D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"): r
    I have executed GPRESULT and it states the GPOs are being applied successfully.
    Why am I still getting this prompt? Please help before I go crazy.

    AS IS ALWAYS THE CASE, ONCE I ASK FOR HELP I FIND AN ANSWER ON MY OWN.
    <FrustratedSquabbling>fhj19387ruasd;lkfj rlkghkushdvas907faihsc</FrustratedSquabbling>
    When I entered the UNC path, I was entering an FQDN and not a NETBios name (e.g. \\Server1.domain.com\Share\Script1.ps1 vs \\Server\Share\Script1.ps1)
    Can someone help me understand WHY the FQDN did this to me?
    PowerShell Extraordinaire - The Toddle

  • Agent showing error while executing script from OTM

    Hi Team,
    OTM is installed in a separate server(Windows 2008 R2).
    When I am executing scripts in my client machine from OTM in server , I got the following error in agent....
    17:22:17,192 INFO [Messenger] Try server=t3://10.50.48.29:8088 destination=oracle/oats/queue/AgentManagerStatusQueue
    17:23:04,083 ERROR [Messenger] JNDI Error:
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://10.50.48.29:8088: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at oracle.oats.server.jndi.JndiLookup.createInitialContextInternal(Unknown Source)
         at oracle.oats.server.jndi.JndiLookup.createInitialContext(Unknown Source)
         at oracle.oats.empstart.Messenger.startConnection(Messenger.java:115)
         at oracle.oats.empstart.EmpStartMain.<init>(EmpStartMain.java:500)
         at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:392)
         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:597)
         at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:105)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.net.ConnectException: t3://10.50.48.29:8088: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
         ... 18 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:470)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:198)
         at oracle.oats.server.jndi.JndiLookup.createInitialContextInternal(Unknown Source)
         at oracle.oats.server.jndi.JndiLookup.createInitialContext(Unknown Source)
         at oracle.oats.empstart.Messenger.startConnection(Messenger.java:115)
         at oracle.oats.empstart.EmpStartMain.<init>(EmpStartMain.java:500)
         at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:392)
         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:597)
         at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:106)
         ... 1 more
    Actually my server IP is *10.50.6.38*, then why agent is trying to connect *10.50.48.29* with port 8088. If I restart my machine it works for 4 - 5 scripts again shows the same error in agentmanager.
    Please help me to resolve this issue........
    Regards,
    Deepu M

    anybody have comments on this????????????

  • Execute script from Flash Widget

    Hello everyone,
    I'm on a panel, and I just wanna know:
    is it possible to execute a script from a flash widget, and how?
    I was thinking of Flash' "getURL()" function, without any success.
    The idea is that I want to make some sort of form in flash (since it's the only way to give the user custom input, according to me) and execute a script using the user's input...
    Any ideas??
    TIA, Robin

    Please refer this article
    http://scriptplayground.com/tutorials/as/Creating-Flash-Panels-for-Photoshop-using-Flash-C S4/
    You also can create a Flash Panel which can call extendscript with FlexBuilder/FlexSDK + Adobe Flash Panel SDK.

  • Execute Script from URL

    I think there's probably a security implication, but is it possible to execute a script from a URL - ideally in Safari? I want to be able to store a local file reference ( file://... ) as a bookmark and have this call a script.

    Take a look at http://www.apple.com/applescript/linktrigger/index.html

  • Calling a shell script from ODI tool OS command

    hi,
    I am trying to call a shell script from the ODI tool OS command with the following command "sh /Oracle/ODI/backlog.sh"
    where "backlog.sh" is the name of the shell script. I am redirecting the output of the script to a file called "backlog.out" and this part is done in the script itself.The ODI session is successful and the output file i.e "backlog.out" gets created in the specified location but the output of the script doesnot get written to this output file.Is this the right way of calling the shell script using ODI OS command.

    Hi-
    It seems there is no input parameters for your script. Please check your script file needs any input parameters and try the syntax below:
    path/scriptname.sh input1 input2
    where input1 and 2 are input parameters for the script file which you are calling.
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • URGENT- Need advice on executing scripts from Forms 6i

    Hi all,
    Quick background info:
    I'm working on a conversion project from Forms 4.5 client/server applications to a three tier, web based Forms 6i environment.
    We're running Oracle 8i DB on HP-UX machines, Oracle 9ias on HP-UX machines, and users access forms through Netscape
    on Win2000 platform.
    The problem:
    I have a SQL execution interface form from which users have been able to run dynamic SQL scripts w/o having direct access to
    a SQL Plus prompt (uses the 'HOST' command in 4.5). How can this functionality be implemented in the three tier environment?
    Unless other options are available, my plan is to use a Java servlet to access the 8i database on the UNIX box and display
    output on an html page. Is there a better/easier way?!
    Any advice is appreciated...
    FLM
    Paychex, Inc.

    Thanks for the response,
    I may be able to invoke the script from Forms using the HOST command, but how is the script output
    displayed back to the browser?
    FLM
    [email protected]
    You can probably still use the host to sqlplus, but this time it will run on the Forms Server.
    You just need to make sure that the dynamic SQL files are uniquly identified for each customer.

  • Execute script from an email

    I was wondering if anyone knew how to execute a script that originates from an email. For example, if I were to send an email to [email protected], then an script would get executed.
    I thought about trying to put the script in the aliases file, but I was not sure.
    Thanks.

    I have a text file that is dumped from a program on one server, and I want to get the file to another server, but I did not want to use host-based authentication to get it there. Also, I there is a web server running on the source server, but it is not apache, and I tried to use the webroot of that program and wget to move the file, but I was not able to do so.
    The script on the destination server just parses text and I don't see any security risk. Maybe I am just try to over complicate things. Any ideas?
    I really appreciate all of your responses.

  • 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.

  • Using Jython script in ODI

    Hi,
    I have a requirement where I want to leverage a jython script to solve a business problem (breaking a semicolon separated string into tokens). I will be calling this script from ODI.
    Do I need to download the jython interpreter for testing my script before I use it in ODI?
    How do call the script from ODI ?

    Hi,
    Isn't possible to you create the script at ODI procedure and execute it from ODI? I mean, write the jython code at ODI.
    A good example in how to use jython can be found at the LKM SQL to SQL (Jython)

  • Odi os call with option parameter from odi procedure

    Hi.
    I am calling a shell script from ODI as below inside an ODI procedure P1. The os command below is in 'Command on Target' side.I have defined v_in_param as an 'option' inside procedure P1
    OdiOSCommand sample.sh v_in_param
    i am getting error as 'OS command returned 1'.
    Is it the right syntax to pass an 'option' parameter to an OS call?
    thanks

    you can try OdiOSCommand sh sample.sh <%=odiRef.getOption("v_in_param")%> or even call OS Command in ODI Package and paste the above code.

  • Command to Run Script from File

    Hi,
    I have 20 .sql Files, each one has CREATE script for stored peocedures. I want to run the script for each SP of the file in the database. Instead of copy and paste from each file, is there any command to execute script from each file.
    Thanks,
    Regards,
    Suman S
    Edited by: SSN on Jun 28, 2009 11:41 PM

    Hi,
    You can place that sql script either in drives.
    IF suppose you placed your scripts file in D:\,
    connect to database thru sqlplus and run like this
    SQL>@"D:\sqlstatement.sql"

Maybe you are looking for

  • Adobe Photoshop CS5 for Mac install problem.

    I just purchased Adobe Photoshop CS 5 for Mac and installed it on December 17, 2013. Last week I updated to a new harddrive. I am trying to re-install Photoshop and the disc asks all the usual questions: serial number, Adobe ID, Adobe Password, then

  • Oracle UCM 10gr3 and webcenter 11g, WCM Portlets

    Hi, I have installed Oracle UCM 10gR3, Site Studio 10gR4 and Webcenter 11g. Now my problem is how to get the WYSIWIG (WCM Portlet) created in UCM to be retrieved in webcenter spaces. My understanding after reading some articles is the only way i can

  • An error occurred in system RD2520LS during account assignment

    Dear Experts,     On the subjected message there is mulitple postings in the forum but i dont see any one answered to the querey. can anyone help me to resolve this error message pls. Diagnosis Errors occurred when assigning an account assignment obj

  • PDK & OC4J Standalone Development Environment

    Hello Portal Gurus, I now seek the knowledge of setting up a development environment where I can register and test portlets. As of now I understand that you need to download and install the OC4J Standalone version. Once OC4J is installed follow the d

  • "Firefox Setup Stub 25.0" won't install on standalone system, it keeps trying to download from internet.

    Downloads fine. put onto USB thumb drive and transfer to standalone system (Win 7 Ultra). Go to install and it trys to download something from internet and fails (would since it doesn't have internet access). Is there a standalone version of Firefox