How to execute a Perl Script in ODI and Catch error

Hi all

Someone knows how to execute a Perl script in a package? And also how capture/error log when occurs?
Gladly appreciate your answers.

Thank you
Randy

Published by: [email protected] on March 12, 2009 12:29 AM

Hi Randy,

Use the OS command to achieve this. In your package add command OS and in the command line, specify the path of your perl script.

PS: Make sure that your agent may be able to access this location/path specified.

Thank you
G

Tags: Business Intelligence

Similar Questions

  • How to execute a Perl script and returns the value as a string?

    Hi, I am trying to build an application using the eclipse 2.0.0 with the Blackberry SDK 7.1 plug-in. currently I tested Simulator 9900 version 7.1.0.523. I need to use the Perl language to access the raw biological database and returns as a string without having to write a longer program using java.

    In a stand alone Java SDK, I can use the line:

    Process p = Runtime.getRuntime () .exec ("perl script.pl")

    but when I tried to use it on the IDE for a Blackberry project, the project will not compile. It is said:

    Method exec (String) is undefined for the type of Runtime

    Hopes, can someone show me the correct syntex to use, but if no class is available, could someone show me a sample for unified research process? The names of blackberry dev is very complicated, I can't find any samples for her.

    Thank you.

    Seems interesting.

    Your idea was to download the data to the BlackBerry and then directly execute queries.

    Although there are a number of other obstacles, the first fall you in East platforms supporting Perl.  Here is the list:

    http://perldoc.Perl.org/perlport.html#supported-platforms

    BlackBerry OS Java is not included - in fact the only ' included phone OS is Symbian.  Interestingly, it seems likely that PlayBook and BB10, because they are based on the QNX operating system.

    If we discard Perl as a query language, then you will need to provide another option to search.  I think that unified search is an option, but you will have some work to do to use it.  The first thing you should do is find out if in fact, you can download the database on the BlackBerry.  The only available on the Blackberry database engine's SQL, so if you want the database can be exported to a SQL database, there is a chance that it would work.  I had a quick glance around the site, and I can't tell what the "database" is in the format.  Then I suggest that look you at that next.

    I hope this helps.

  • How to execute a JavaScript script associated with interactive field?

    I need to perform a virtual a plugin click. Say a set of 3 button to check/radio fields have the value of exports:

    -Yes


    -No.


    -Maybe

    I have a script which indicates that was clicked almost the button of "Maybe". All I have to do is find which radio buttons:

    radioButton #0

    radioButton #1

    radioButton #2

    contains the export value of "Maybe". So far, this task is very doable. My question is how to do the following:

    I need to call the JavaScript Shell and run it, using as argument the code JavaScript associated with the top of the button mouse.

    Any help will be most appreciated...

    TIA,

    -Ramon

    IF you try to do it from a plugin - I would use just Cos API to obtain the appropriate JS of the action of the field dictionary and then pass it to AFExecuteThisScript().

  • How to consume a web service in ODI and put data into an oracle table

    Hello

    Is someone can please help me with this or just give me some advice.

    Thanks in advance

    You must now read this XML file using XML ODI driver and load the data into tables using interfaces.

  • How can I provide the option inside a perl script?

    Hi all

    Unfortunately, I have to develop a GUI for administration with SDK for perl.

    I get options of the user (user name, password, server) of the connection dialog, so how do I use connect() to connect the vCenter or ESX host?

    Choice of two:

    1 run a script perl, connect.pl say, not what I want.

    2. specify the options of the connect() function. This is what I want.

    Can someone me clear on this?

    Thanks in advance,

    Shawn

    If you look at the VICommon.pm module, you will see the::Connect() Util function analysis actually url, user name, and password.

    Looking at the code, it seems that you can just call Util::Connect ($url, $username, $password); assuming that you do not set the user name, password or url methods described in the Guide to Programming Perl VI (do not set environment variables or set the values of the Options in the script or the command line argv array).

    You can use the sessionfile option to store the session cookie, unless you are already doing your own management of cookies, in which case, you will need to look at some of the features which are not usually used in a standard VI Perl script.  There are some functions of "low level" in VICommon.pm, you can take advantage.  Essentially you'll be bypassing the main option handles the login process.

  • How to create editable text on the path of the perl script

    Hello

    I'm lost. I have exhausted all possible ways but nothing works. My problem is easy to describe: I have a Perl script that creates a design, and the design should be editable in artificial intelligence. Drawing text on a path (curved text - drawing is an access plan).

    Now I don't like how I do - I want to just make it work. I can create all types of file with Perl if someone tells me what it should look like.

    I tried to create a SVG file with text on a path. It works and the resulting file can be edited in an editor like Inkscape SVG, including the full text on the editability of the path. But if I import this file into Illustrator (AI 10 and CS3), the individual letters still sitting on the road, but all of them are facing up (instead of regardless of the direction of the path is). If it does not work. Then I said ok, because the SVG looks fine in Inkscape, let me just export EPS form Inkscape and use in artificial intelligence. Now the file looks good in artificial intelligence, but the text has been converted by trace himself, with each letter on its own session - not editable. Next thing I've tried generates directly from Perl, using a PathText function that I found in the Cookbook of Adobe PostScript EPS. Once again the EPS resulting looks good in artificial intelligence and the text is correct, no curves - but still a time, all the letters is its own, so if you go there with the text and tool removes a letter, it leaves a blank spot, and if you insert a letter, it replaces the next letter. Duh!

    So I tried the opposite: make a text on a path in artificial intelligence and save, with the plan to look at the file and generate what is there with my Perl script later. Unfortunately, the file saved by HAVE contains a chunk of binary garbage (be they saved as editable SVG or as file) that does not lend itself to facilitate the interpretation of yours really.

    I'm really not much. And I'm willing and able to create any type of file. Everything I need is something that I read, and which translates a text on a path that is editable in artificial intelligence.

    Does anyone have a pointer to a documentation, or existing in any programming language, source code that could help me in creating such a file?

    Thank you

    DZ

    I think you should look in the AI7FileFormat.pdf file (available many places online), specifically the pages 85 to 87 and 105 page, who speak of the operators of text, including text on a path.

    If we exclude the 4000 lines or so of boilerplate prolog and procsets, the code base for a text on a path is as simple as that:

    2 to
    1 0 0 1 - 4013.5 4715,5 0.4 Tp
    0 m 0
    0 200 400 200 400 0 c
    TP N
    0 tr
    TF/_Myriad-Roman 12
    (This text is in the path of access. \r) TX
    TO

    Record cleaning (first use cleaning brush/Style/Swatch action) file eps, version 6, and you shouldn't get any binary stuff.

  • How to operate only a calc script using ODI

    Hi John,.

    I would like to run only a calc script using ODi. Could if it you please let me know the process. Is it mentioned in your blog anywhere?

    Awaiting your response

    Thanks in advance
    Sravan

    The km - 'IKM SQL for Hyperion Essbase (DATA)' there is an option 'RUN_CALC_SCRIPT_ONLY', set to Yes and then enter the name of the calc script in "CALCULATION SCRIPT".
    It will take still a source and a target in the interface for it to run, but it will ignore the source and the target and just run the calc script, it is possible to customize the KM so it didn't need a source/target, but you should be fine with the method I proposed.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Unble to call the dbms_scheduler perl script

    Hi all

    I had written a Korn shell script that calls 2 pl/sql procedures. This shell script has been called since the DBMS_SCHEDULER and it worked fine. But later asked me to change it to perl, as we had to move to windows-based computer. The perl script ran fine from the command prompt but when I tried this scheduler, the task failed with ' ORA-27369: jobs of type EXECUTABLE failed with exit code: no such file or directory " error." When debugging, I realized if I commented associate DB command work went very well. I tried, including the path to all libraries (see entries in green), but it fails. I joined to share of my below perl script. Help, please

    Appreciate any help or suggestions.

    Thanks in advance

    #! / usr/bin/perl
    Use DBI;

    use strict;

    $ENV {'ORACLE_HOME'} = ' / product/app/11.2.0/db_1';
    $ENV {'ORACLE_SID'} = 'XXX ';
    $ENV {"LIB_PATH'} = ' $ORACLE_HOME/lib ';
    $ENV {'PATH'} = "$ORACLE_HOME/bin: $ORACLE_HOME/OPatch: / usr/bin: / etc: / usr/sbin: / usr/ucb: $HOME/bin: / usr/bin / X 11: / sbin: /usr/opt/perl5_64/lib/site_perl/5.18.2/aix- "
    thread-multi-64all:. $LIB_PATH
    $ENV {'LD_LIBRARY_PATH'} = ' $GG_HOME: $LIB_PATH: / usr/opt/perl5_64/lib/site_perl/5.18.2/aix-thread-multi-64all';

    #my ($inst, $user, $pass) = @ARGV;
    My $inst = "XXX";
    my $user = "aaa";
    my $pass = "aaa";

    # Then do not check each call DBI we define RaiseError.
    # See the DBI docs, if you are not familiar with RaiseError.
    # AutoCommit is currently encouraged and may be required at a later date.
    print ($user, $pass, $inst, "\n");
    My $dbh = DBI-> connect (' dbi:Oracle: $inst ', $user, $pass,)
    ({Mode AutoCommit = > 0, RaiseError = > 1, PrintError = > 0})
    or die "could not connect: $DBI::errstr";

    Exit 0;


    Hello

    Have you checked the files mentioned in the error? Looks like some files are missing or you don't have permission to access. In order to check these.

  • perl script does not follow the specification sdk?

    Hello

    I'm trying to customize the perl script to retrieve specific information, I need. I'm currently dipping in the specification of the sdk, and something seems strange to me. I can read that:

    A vSphere API client application begins by connecting to a server and obtaining a reference 
    to the ServiceInstance. The client can then use the RetrieveServiceContent method to gain
    access to the various vSphere manager entities and to the root folder of the inventory.
    

    ()http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.ServiceInstance.html( )

    I considered my perl as a client vSphere API script, so I looked for the "ServiceInstance" model in my perl scripts, but only two uses this object... All others have information without using the ServiceInstance... So this last one so useful? (If so, what is for?)

    About the RetrieveServiceContent it is never even used...

    Can someone explain to me my failure?

    Also, I wonder how to get the ServiceInstance.

    It is done when you call Util::connect() (which calls the function of connection).

    Once you have successfully logged in, you can get the ServiceContent object by calling Vim::get_service_content ().  If you enable HTTP mode and capture the SOAP envelopes, you would see the RetrieveServiceContent call.  A non-script, such as Java, C++, gross SOAP SDK, SDK etc., you would have to appeal, set up a sessionId cookie and make a connection in this sessionId cookie to perform most of the duties against the VIM SDK.

    In the Perl SDK you can proceed as follows if you want the ServiceContent (and references the number of objects in the inventory of management):

    $sc = Vim::get_service_content();

    print $sc--> on-> fullName. "\n";

    My $rootFolderMOR = $sc-> rootFolder;

    Also, if I remember correctly, views of the object will be the ServiceContent & Vim as a property in the data of the object.

    print $vm_view-> {'vim'}-> {'service_content'}-> {'about'}-> {'fullName'}. "\n";

    Since the ServiceInstance is worth MOREF regardless, usually you just create a ManagedObjectReference directly and use it as a parameter to RetrieveServiceContent.

    My $ServiceInstance = ManagedObjectReference-> new (type => 'ServiceInstance', value => "ServiceInstance");

    My $ServiceContent = Vim::RetrieveServiceContent (_C-online $ServiceInstance);

    # ... Then, called connection...

    $ServiceContent-> connection (_C-online $ServiceContent-> sessionManager, username-$username password-online $password online);

    In fact, if you look at the login()) function in VICommon.pm in the Perl SDK, you will see that this is exactly the same process (with a different code to handle SDK versions and others).

  • How to execute the method of dialogue of the handler of a button?

    I created my first dialog of the samples, but I can't find how to execute a method in my handler of a button dialog box. Can someone tell me please in the right direction?

    function CreateDialog()
    {
    this.windowRef = null;
    }

    CreateDialog.prototype.run = function()
    {
    .. .floating a lot of vars

    Create a palette type window.
    var win = new window ('dialogue', 'Spray generator Element', [iTop ILeft then, iWidth, ILeft iTop then + iHauteur]);  Bounds = [left, top, right, bottom]
    this.windowRef = win;

    Add a frame to the content.
    win.btnPanel = win.add ("panel", [iPadding, iPadding, iWidth-iPadding, iHauteur-iPadding], "");

    ... Add a bunch of other things...

    win.btnAdd = win.btnPanel.add ('button', [win.btnRemove.bounds.left - iPadding - iButtonWidth, win.lstImages.bounds.bottom, + iSmPadding, win.btnRemove.bounds.left - iPadding, win.lstImages.bounds.bottom + iSmPadding + iTextHeight], "add");

    win.btnAdd.onClick = function() {}
    TODO implement this
    var f is File.openDialog ("open a file");.
    win.lstImages.add ("item", f.displayName);
    This. EnableControls();    <-problem is on this line here!
    };

    This. EnableControls();  <-this works

    Display the window
    Win.Show ();

    Returns true;
    }

    CreateDialog.prototype.EnableControls = function () {}

    var result = true;
    result = result & & (this.windowRef.ddlPaths.selection! = "");
    result = result & & (this.windowRef.lstImages.items.length > 0);

    this.windowRef.btnOK.enabled = result;
    }

    I posted a response to this here: http://ps-scripts.com/bb/viewtopic.php?t=2889

    X

  • Problem in running the Perl script by oracle

    Hello
    I am facing a problem in the perl script.

    «I have a perl script which is interacting with the sybase database.» We have migrated successfully to the sybase database to oracle. Now, I want to change the perl script to interact with the oracle database.
    I use code like this to the interaction of the oracle database

    Old Code with sybase database: use DBI::Sybase:GFAS;
    New oracle database code: use DBI::oracle:GFAS;

    When I execute the script perl, its display of the mentioned below error:

    Cannot find DBI/oracle.pm in @INC (@INC contains: C:\oracle\product\10.2.0\db_1)
    \perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/mswin32
    x 86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product
    \10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\
    5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-thread
    C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1
    \sysman\admin\scripts C:/Perl/lib C: / Perl / site / lib.) on line 4 of the hello.pl.
    BEGIN failed--compilation abandoned at hello.pl line 4.


    Anyone has any idea about this error.

    Thanks in advance.

    If you look in the oracle in the perl\site\5.8.3\lib\MSWin32-x86-multi-thread directory, you will see two directories. Once is DBI and DBD is.

    Everything you need in your perl program is a line 'using the DBI '. It will use DBD automatically as needed. You can specify the necessary connection information when you cause the DBI-> connect statement.

    I managed to connect to the Oracle database and perform DML through the software installed by default. You don't need to download and install anything else.

    I'm no expert, so maybe it lacks some features by using the interfaces supplied by Oracle, but for my needs, it sufficed to perl.

    I hope this helps.

  • I can't get a Perl script

    I can not get a script Perl - the compiler will not accept even the quotes

    Hello Newboy02,

    You will need to provide a little more detail than that. What is this Perl script? What do you mean "the same compiler will not accept quotes? There is no compiler with Perl.

  • How can I use a script to set the variables?

    I have a script to set a few variables and I need to run the script multiple times throughout the form, for different users at different times.  How can I configure the script as an object in the Variables and call it when I need to run it?  Appreciate all help.  I use SS3.

    var emailSubject = "";
    var cleanDate = Page1.EventDetails.Block2.SpeakingDate.rawValue.replace(/[\/]/g, "-");
    var eventName = Page1.EventDetails.Block1.EventName.rawValue;
    var eventCity = Page1.EventDetails.USaddress.CityEvent.rawValue;
    var eventState = Page1.EventDetails.USaddress.StateEvent.rawValue;
    emailSubject = cleanDate + " - " + eventName + " - " + eventCity + " - " + eventState;
    

    To create a function to be able to reuse the code easily right click in your hierarchy (for example, on your "form1"), click "insert a Script object.

    A new script object will be created, just rename it to something appropriate and then create a function both inside and

    function myFunction(var1,var2,var3){
    ' just an example '
    page1.textfield1.rawValue = var1 + var2 + var3
    }
    

    (I didn't fully understand the significance of the date and the event and the city, and exactly what your function is supposed to do, but it's how you declare a function).

    To call this function you simply reference as form1.scriptobjectname.myFunction(123,"asdf",variablename)

    (just one example of the possible arguments).

    I hope that's not too hard to follow,

    Best regards, Mattias

  • How to set a seq.currval in ODI 12 c?

    How can I set the seq.currval in the column of ODI. When I use table.seq.currval in the table is the expression in ODI shows this error java.sql.SQLException: ORA-08002: sequence GL_SEQ. CURRVAL is not yet defined in this session... Can someone help me please?

    Not so much a question of ODI, but an Oracle DB one.

    You must use NEXTVAL on the sequence of initialization CURRVAL in your session - CURRVAL only works after a NEXTVAL

  • How to execute a stored procedure on Sybase with SQL Developer

    We have accessed Sybase 15 with SQL developer.

    We can see the data in the table, if we do not, run the stored procedure (for instance sp_who) developed on Sybase.

    Could you tell me how we execute the stored procedure on Sybase with SQL Developer Sybase?

    Thank you

    Shige

    We will not intended to be a Sybase ASE customer.

    But

    A SQL Developer... @dermotoneill: Workheet advice

Maybe you are looking for