Is it possible to execute a process from BI?

I am implementing in BI a web app which currently relies on calling a local program to get some of its report information. I know BI wants everything to be in a DB, so I'm wondering how to imitate this functionality. I can think of a few hacks (e.g., decorate a BI report w/ JavaScript which calls out via ajax to a server which executes the process) but would like to know if there is some simple supported way to do this.
thanks.

On your first question: no, you cannot start a script from (server side) PL/SQL - you can only do so from client PL/SQL in Oracle Forms.
What you can so is:
- create a stored java procedure that does what you need, wrap it in a PL/SQL wrapper and invoke it from your PL/SQL code
- use UTL_FILE to write a file on the file-system that subsequently can be picked by some polling background process that will trigger execution of the script mentioned in the file you just wrote; note however that this is not only quite awkward, it also means that the script execution happens in a different thread from your PL/SQL code and no direct communication between the two exists. BTW You can also use a database pipe to send out a message to a background process outside of the database to request execution of a script. The same caveats still apply.
There may be other tricks for this challenge. Good luck, anyway.
Lucas

Similar Messages

  • Is it possible to execute SAPGUI scripts from java program?

    Hi everyone..
         I need to develop an java applications that executes the SAPGUI script or any technique that execute set of transaction as client.
         Is it possible to execute SAPGUI scripts from java program? if so, how it can be achieved? is there any other technique to achieve above mention scenario?.
         it will be more helpful, if docs related to that are shared..
         Thanks in advance

    Oh, bummer. Would be much more convenient if I could just use iTunes for everything. Can't stand WMP. I wonder if WinAmp might be a good compromise?
    Thanks for this answer . . .
    Sharon

  • Need to invoke a process from a column link and then redirect to a url

    Is it possible to invoke a process from a column link then redirect to a url
    I want to invoke a process that has a pl sql block of code which will do some table inserts and then redirect the user to an external url.
    Any help would be appreciated.

    Howdy Scott,
    I thought this might help me but I've got a dynamic form with apex_application.g_f01(i) items on it ie tabular form. How can I take the value of these arrays with me to the temporary page with the onload process?
    Thanks
    Gary

  • Is it possible to call an Applescript from a jsx

    I can find lots of discussion around calling a jsx script from applescript - but nothing about the other way round.  Is it possible to execute an applescript from a .jsx script?

    Yes, there are a few ways of doing it, please see...
    http://www.ps-scripts.com/bb/viewtopic.php?t=3109

  • Is it possible to run a report from another machine?

    Lets say you design a report on machine A that contains the CR Developer Software Package.
    Is it possible to execute the report from machine B that does not contain CR Developer Package?
    Is there tool or a command that you can run that will execute the report created in machine A?
    Thanks in advance,
    Zack H.

    Crystal Enterprise (or BOE) will run a report developed on machine A and imported to a repository on the CE/BOE machine.  Is that what you mean?  Or, I suppose anything that can run a Crystal Report given the file name could run it if the UNC path is given for the file name (assuming database connections are set up on the running machine)...
    HTH,
    Carl

  • Start process from JSP which continues running after response is completed

    Is it possible to start a process from within JSP which can continue running after the HTTP response is complete, so the response doesn't time out??

    Your question is a little vague. If I am understanding your question correctly, it sounds like you are starting a process in JSP that takes a long time, and the browser is timing out. If this is your question, then here is my response:
    We've had this situation before. Often times it occurs because the JSP page launches a long database operation that could take an hour. You have a few choices, but one good approach is this (any variation of this works too):
    1. When the page loads and you need the process to start, create a new thread and have the long operation run from this thread. You can put the thread object into a session variable and store it for later use.
    2. Have the JSP code output a META-REFRESH tag on the page so that the page refreshes every 30 seconds or so.
    3. On each refresh, you get the thread object from the session context and check it to see if it is done or still running. If it is, then just output another META-REFRESH and the page will keep refreshing itself. If it is done, you can, of course, output a "finished" message to the user.
    You can also have a stop button on the page that you can use to send a message to the thread to stop.
    Hope that gives you some ideas!
    Michael

  • Execute oracle procedure from SSIS

    is it possible to execute Oracle procedure from within SSIS?
    thanks

    Hi,
    I used
    begin
    test1;
    end;
    and it is giving - SSIS package "Package.dtsx" finished: Success, but it is not doing anything.
    "test1" procedure has couple of insert statements and a commit statements but the package is not inserting anything.
    Also when I use "exec test1;" it is failing with the error mentinoed here in the forum.
    Any idea what is wrong here?

  • Is it possible to excute DB2 function from ODI

    Is it possible to execute DB2 function from ODI.
    If it is could you please help me how to proceed
    Thanks

    if it is a function which is used in SQL, then you just use it in the mapping, as you would normally.
    If it is a stored procedure, then you may need to execute it in a procedure.

  • Killing an exec'ed process from another thread

    Hi all,
    I written an application that executes some external OS - processes. There is a dispatcher thread, that starts the execution threads for some jobs. Every execution thread creates a Processes by calling runtime.exec(), adds this object to a TreeMap ( member of the dispatcher ), creates two threads for reading the output of the process ( sdtout & stderr ) and calls p.waitFor(). From this moment this thread is blocked. After the process is done, the results will be processed by this thread etc. Now I want to go ahead and let the application user kill the process. For them I let the dispatcher - thread, that has also a reference to the executed process to call destroy of it if necessary during the execution thread is blocked by waitFor() and two output threads are reading stdout & stderr. The problem is however that destroy() - call from another thread doesn't kill the subprocess. The subprocess is running until it's done or terminated from out of jvm. Have you an idea or example?
    Thanks a lot & regards
    Alex

    >
    I know you have been discussing your problem is that
    you can't kill a "sleep" process. But just to be
    sure, I tested your description by one thread exec-ing
    a "not-sleep" program, and then another thread had no
    trouble killing it.
    I took your code and wrote a program around it such
    that
    Thread1 :
    - creates a Job (but not a "sleep" job); creates a
    JobMap ; puts Job in JobMap
    - starts Thread2 (passing it JobMap)
    - sleeps 15 seconds
    - calls Job.kill() (your method)
    Thread2 :
    - gets Job from JobMap
    - calls Job.execute() (your method)
    It's quick and dirty and sloppy, but it works. The
    result is when the kill takes place, the execute
    method (Thread2) wakes from its waitFor, and gets
    exitValue() = 1 for the Process.
    so,
    In order to kill the sleep process, which (according
    to BIJ) is not the Process that you have from exec
    call, maybe the only way to kill it is to get its PID
    an exec a "kill -9" on it, same as you said you had to
    do from the commandline. I don't know if you can get
    the PID, maybe you can get the exec-ed process to spit
    it onto stdout or stderr?
    (I am on win, not *nix, right now, so I am just
    throwing out a suggestion before bowing out of this
    discussion.)
    /MelHi Mel,
    yes, it should work right on windows because you created probably the shell by cmd /c or something like this. If you kill the cmd - process, everithing executed by the interpretter will be killed too. My application is running on Windows and unix. On unix I have to execute the process from a shell ( in my case it is the born shell ). The problem is however, that the born shell has another behaviour as cmd and doesn't die. Do you have an idea how to get the pid of the process started by sh without command line? To kill the processes from the command line is exactly what my customers do now. But they want to get "a better service" ...:-)
    Regards
    Alex

  • Is it possible to extract a VI from an executable which has debug mode enabled?

    It is a curiosity question from a client.
    Is it possible to extract a VI from an executable which has debug mode enabled?
    Since the block diagram would not be in edit mode....  Is it possible to "peer" into the executable, look at a VI and recover the block diagram?  This owuld be for a deleted VI that is part of an executable which had debug mode enabled..
    Did anyone try this?
    Curious..

    Extract VIs from an EXE?  No problem.  Even if debugging isn't enabled you can extract VIs, they just won't have block diagrams, and may not have front panels depending on if they were removed in the EXE making process.
    Attached is an example project for making an EXE, the EXE itself, and a VI for extracting VIs from the EXE.  The code is quite primative and it was just meant to demonstrate how this can be done.
    To extract the Main.vi from the Application.exe, run Extract Main.vi from EXE.vi, provide the path to the EXE and the path to where the VI should be saved and then run the VI.  This VI will set keys in the INI file for the application, then run th EXE.  Then it opens an application reference to the EXE, then opens a VI reference to Main.vi.  Then it aborts Main.vi, and extracts it.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Test EXE Extract.zip ‏763 KB

  • Is it possible to execute a stored procedure from application express?

    I have created a pl/sql application now I would like to give it a front end, I am new to application express.
    My application depends on running a couple of pl/sql procedures that modify data.
    What I need is my user to be able to execute the procedures from the application in a browser, is it possible to run a pl/sql procedure from an application express application in a browser?
    how would I go about doing this?
    thank you very much.
    Ramiro

    You sure can.
    If you want to run a PL/SQL procedure/package/function from the URL, create a specific DAD entry just for that (Oracle) user, and give that user EXECUTE permissions on the procedure. Then just use the new DAD with the procedure name, like http://myserver.somewhere.com/MyNewDAD/Schema_Owner.MyPackage.MyProcedure?InParameter=MyParameter)
    Of course, the above line will need heavy modification on your end, but I do this in my app, but I actaully pass it through a javascript attached to a button which then opens it in a new window.
    If instead, all you want to do is execute a procedure with ApEx as part of a validation or process or something, select the PL/SQL 'Region' (or process, whatever it is you want to do), and then write it as an anonymous block:
    begin
    MyProcedure;
    end;
    Bill Ferguson

  • OWB PRO out there : is it possible SQL to execute OMB*PLUS from Database ?

    Hi,
    With 11g out : is there any expert who sucessfully integrate pl/sql routine to call OMB. Here's the point : You have an APEX application and you design your stuff and at one point you wish you just have to press a button and generate a first draft of your design in the OWB repository, and then developpers can have a frame to start designing from your perspective.
    Also, imagine you have an APEX form to approve the testing of a design or process flow or both, and when you press the i approve button, you get call an OMB*Plus routine that do all the export->import reconcile and deploy thing!
    I don't think i'm alone to need this kind of stuff. So since OWB is Java, and Oracle database speek Java : is it possible to think of a quick solution ?
    Thank you all.
    Message was edited by:
    bpaquet

    Hi bpaquet,
    As you know OMB+ is TCL extension, and as i know OMB is not integrated into RDBMS.
    I think, there can be several solutions.
    1. Execute shell scripts from db using dbms_pipe package.
    2. Execute shell scripts using some java external procedure.
    3. Create some OS scheduled job (crontab), which will check some values in DB and execute OMB scripts.
    Regards

  • Execute SSIS Package from JOB which contains Execute Process Task calling a .bat file

    Hi All,
    I have a EXCEL Macro needs to be called from SSIS. We could not use Script task because of some internal reason.
    So we have taken an approach to call a .BAT file using Execute Process Task. This .BAT file will call a .VBS file which will execute the EXCEL Macro.
    The SSIS Package is running good if I execute the package from BIDS.
    But the real problem is with the scheduling this SSIS Package using SQL JOB.
    If i execute this SSIS package from SQL Server Job, its executing the whole package successfully except the Execute Process Task.
    So the overall issue is SQL Server Job is not executing properly if I call any .BAT file from the SSIS Package.
    Please give me suggestion to get rid of the issue. Thanks in advance.

    Hi Sai.N,
    If you run the SQL Server Agent job manually from SSMS, does the package execute properly? If the package executes properly when you run the job manually, the issue should occur due to permission issue. In this case, I suggest that you create a SQL Server
    Agent proxy based on the current Windows account which you use to log onto the operating system, and run the job under the proxy account.
    If it is not the issue, please enable logging in the package as Visakh mentioned and post the warning/error message for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • Is it possible to trigger a bpel process from a database object.

    Hi,
    We want to schedule a bpel process to run daily .So we want to trigger it from a database job.
    Is it possible to call a bpel process from database..?
    Or
    Is there any way to schedule a bpel process from bpel server it self.
    Thank you
    Gayaz

    If you know about DBMS_JOBs then I would say the easiest way to invoke a BPEL process is via the AQ adapter. You just need to populate an AQ and a way you go. The good thing about this is that if SOA SUite is down when the schedule is run you don't need to retry, it will be picked up when it comes online again.
    cheers
    James

  • I am unable to have photos processed from my Photoshop Elements 11 program directly to Costco due to the fact that I am now receiving a error statement saying: "Online services encountered an error. The service will now be terminated or paused if possible

    I am unable to have photos processed from my Photoshop Elements 11 program directly to Costco.  I am now receiving a error statement saying: "Online services encountered an error. The service will now be terminated or paused if possible. 7: NULL ==*in Attributes." How do I get the online services back and running on my PS to allow me to have my photos processed by Costco online? 

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

Maybe you are looking for

  • Problems opening a pdf in Chrome since I upgraded to acrobat reader dc

    I have been unable to open a file using Chrome since I upgraded from Reader XI to Reader DC. Instead of opening the file in Chrome, it wants me to save the file onto my hard drive, from where I can then open it using reader dc. This is true for both

  • Editing RAW files processed in iPhoto in the Windows version of Photoshop?

    Although a fairly competent photographer I am new to digital image making/processing. Happily a professional photographer friend with a great deal of expertise in the digital area has offered to help me make some 13x19" prints I need for a job I'm co

  • Flip Video-AVI files HELP

    We bought our daughter a Flip Video camera for Christmas. I was able to download the videos but now they play with sound and a white screen instead of video. The files are AVI. Someone please help me figure out what the heck to do!

  • How Do I Keep Cover Page Blank?

    I'm running an old version (4.0.3) of Iphoto. I am trying to make a simple book - but do NOT want a picture or text on the cover. I can't seem to get this done. Any suggestions? IBook G4   Mac OS X (10.4.8)  

  • How to join iTunes U

    Hey folks, For quite some time I have been trying to join iTunes U. I am the multimedia coordinator for St. Thomas University. I have not received a call from Apple as the e-mail explains that I should after I register and I don't seem to find a like