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;

Similar Messages

  • 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 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 expose ODI scenario as a web service

    How to expose ODI scenario as a web service?
    Can we generate wsdl of ODI scenario if yes then how?

    SSZ wrote:
    Yes.But couldn't understand where to start.In that case use the magic wand.
    Ask specific questions, Many of your posts have an underlying tone , that of you not having read any documentation of bothered to research anything yourself I havent got the time to tell you how if you havent got the time to tell me what you have read , what you grasp and what you do not grasp.

  • How to run ODI scenario from java?

    I am new to java, need to do some testing on how to invoke ODI scenarios from java.
    Can somebody drop me some simple code?
    Thanks a lot,
    Lei

    Hi there
    1. Start your agent (double click agent.bat)
    2. generate scenario for ur package(right click ur package , select generate scenario)
    3. Add the odi-sdk-invocation.jar file to your java project
    ODIcmdScenario=new OdiCommandScenario();
    ODIConnection=new OdiRepositoryConnection();
    ODIConnection.setOdiUser("ur-username");
    ODIConnection.setOdiPassword("ur-password");
    ODIConnection.setJdbcDriver("Driverdetail");
    ODIConnection.setJdbcUrl("url-details");
    ODIConnection.setJdbcUser("dbusername");
    ODIConnection.setJdbcPassword("dbpass");
    ODIcmdScenario.setScenName("scenarioname");
    ODIcmdScenario.setScenVersion("scenarioversion");
    ODIcmdScenario.setLogLevel(5);
    ODIcmdScenario.setContext("context");
    ODIConnection.setWorkRepositoryCode("repository");
    ODIInvocation = new OdiInvocation("hostname", 20910); //20910 default port
    OdiInvocationResult result=ODIInvocation.invokeCommand(ODIcmdScenario,ODIConnection);
    Hope this helps!
    Cheers

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • How to invoke odi scenario from bpel without passing plain text password

    Hi
    We have following requirement,we would like to invoke odi scenario from oracle bpel process.But one problem is we dont want to pass the odi password as plain text.Please let me know how do i achive this task.
    Thanks
    Baji

    Hi,
    Thanks its working now. I am facing another issue. I do not use parameters in my Scenario. Now when i run my scenario i m getting the following error. I think its because i have not assigned anything to the Variable element. I guess its taking null value for Variable element here and cheking if such a variable exists. Have you come accross such an issue? If so, please sugest remedy.
    java.lang.Exception: Specified variable not found in the Repository : null
         at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:619)
    Edited by: silas.john on May 13, 2009 1:29 AM

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

  • How to call a report from a web application

    Hi,
    I have a web server in wich is installed Reports 6i. My question is how can I call reports 6i to generate a pdf using a .rep file from my web application (built with java)?

    Hi,
    The below link will be very useful for one who need idea on calling Oracle Report from Java Application,
    http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/reportswebservice/index.html
    Thanks & Rgds,
    M T

  • Error while executing ODI scenario from command prompt

    Hi all,
    I am trying to execute a scenario of a package( that I have created in designer) in OS command prompt in Windows in the following way-
    C:\ODIHOME\oracledi\bin>Startscen DIM_TECHNOLOGY_PACKAGE 001 Global LEVEL5
    However I am getting the following message:-
    OracleDI: Starting scenario DIM_TECHNOLOGY_PACKAGE 001 in context Global ...
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    Please tell me what can be the possible reason?
    Thanks in advance
    PB

    Hi PB ,
    Use the following syntax
    C:\ODIHOME\oracledi\bin>startscen DIM_TECHNOLOGY_PACKAGE 001 <CONTEXT_CODE> "-v=5"
    Also make sure that the repository connection details are all correct before running scenario via startscen script
    Thanks,
    Sutirtha
    Edited by: Sutirtha Roy on May 14, 2010 12:18 PM

  • How to access an EJB from a web application deployed in the same server

    Hey All,
    I deployed an EJB named EventServerBean to Sun Application Server 9.0, and put the client side jar file (named eventserver.jar which is generated by Sun Application Server) to C:\Sun\AppServer\lib. Now, I have a web application which is a simple jave file -- lookup EventServer EJB and invoke a remote method in this EJB. However, the web application always throws an exception "java.lang.NoClassDefFoundError: eventserver/EventServerRemoteHome"
    Here is my java class that access the ejb:
    public class Post_Event {
        public HashMap<String, String> getEventInfo(String event_name, String site) {
            System.out.println("Post_Event, the class path: " + System.getProperty("java.class.path"));       
            System.out.println("Post_Event, user.dir: " + System.getProperty("user.dir"));
            System.out.println("Post_Event, java.library.path: " + System.getProperty("java.library.path"));
            HashMap<String, String> result = null;
            EventServerRemote remote = null;
            StringTokenizer st, st2;
            // here get the event information from host
            try {
                String lookupStr = "corbaname:iiop:" + site + ":3700#ejb/EventServerBean";
                InitialContext initialContext = new InitialContext();
                EventServerRemoteHome remoteHome = (EventServerRemoteHome) javax.rmi.PortableRemoteObject.narrow(initialContext.lookup(lookupStr), EventServerRemoteHome.class);
                if (remoteHome != null) {
                    remote = remoteHome.create();
            } catch (javax.naming.NamingException ne) {
                ne.printStackTrace();
                return null;
            } catch (javax.ejb.CreateException ce) {
                ce.printStackTrace();
                return null;
            } catch (java.rmi.RemoteException re) {
                re.printStackTrace();
                return null;
            } catch (java.io.IOException ioe) {
                ioe.printStackTrace();
                return null;
            System.out.println("look up remote event server successfully.");
         result = remote.getEvent(event_name);
            return result;
        } I output the class path in this java file, and the class path DOES include the path C:\Sun\AppServer\lib where eventserver\EventServerRemoteHome.class is.
    Does anyone know why it happens? Why a java class can't find a class that is in its class path?
    appreciate any help!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Wael Abbas ([email protected]):
    Thank you for your great topic.
    I think you need to copy the snippet code and past it to every application, applet, servlet or JSP every time you need to use your EJB.
    Its better to include this snippet code in a simple JavaBean and use this bean as a bridge to your EJB, you may include a connect method in your JavaBean or but the connection code in the constructor and include a setters, getters and other methods to encapsulate your EJB methods.
    You can use your JavaBean in any application, applet, servlet or JSP just create an object form it and call its methods.
    Its just an idea
    I hope it will be useful.
    <HR></BLOCKQUOTE>
    null

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

  • Drill down problem when execute CR Viewer from Sap Web Application Server

    Hello,
    We are using Sap  Was 7.01.
    The report viewer jar files deployed to the j2ee engine , and I am using j2ee servlet application to execute the report.
    Everything works OK, but when I am trying to drill down to the next sub report the screen become blank.
    I checked with httpwatch and it seems that there is no response from the server , after DD.
    The web.xml file look like this:
    <web-app>
         <display-name>WEB APP</display-name>
         <description>WEB APP description</description>
         <context-param>
           <param-name>crystal_image_uri</param-name>
           <param-value>./CrystalReports/crystalreportviewers</param-value>
          </context-param>
          <context-param>
           <param-name>crystal_image_use_relative</param-name>
           <param-value>server</param-value>
          </context-param>
          <context-param>
           <param-name>crystal_servlet_uri</param-name>
           <param-value>/CrystalReportViewerHandlers</param-value>
          </context-param>
         <servlet>
                <servlet-name>CrystalReportViewerServlet</servlet-name>
                <servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
        </servlet>
         <servlet>
              <servlet-name>reportviewerClient.jsp</servlet-name>
              <jsp-file>/reportviewerClient.jsp</jsp-file>
         </servlet>
         <servlet>
              <servlet-name>ReportViewerSrvlt1</servlet-name>
              <servlet-class>com.illumiti.demo.ReportViewerSrvlt1</servlet-class>
         </servlet>
        <servlet-mapping>
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <url-pattern>/CrystalReportViewerHandler</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>ReportViewerSrvlt1</servlet-name>
              <url-pattern>/jRun</url-pattern>
         </servlet-mapping>
    </web-app>
    There are no javascript errors and I can see that the following JS files exist on the browser cache:
    allInOne.js
    allStrings_en.js
    crv.js
    Also the dynamic rendering of the graphic objects working,  for exampale:
    http://sapdevpor.themigroup.net:52000/ReportViewerNwds/CrystalReportViewerHandler?dynamicimage=crystal1258027361240644774257355486184.png
    sapdevpor is the Sap application server.
    Need help with this asap.
    Thanks
    Nir

    Hello,
    to which directory have you unzipped the Files? I would suggest C:\temp because there are problems with long filenames. Have you tried to reboot and then disconnect Drive M:?
    Regards
    Gregor

  • How to access MDB database from JSP Web Application?

    hi
    i am using tomact and developing appplication in which i have to insert data into MDB database and read/Update/Delete Data in MDB DataBase.
    could any help in this issue?
    Thanks
    Regards
    Oersla Afroze Ahmed

    Hi,
    For accessing MDB database, you must have a jdbc:odbc driver, u can get it from sun site.
    just put it into the lib folder of web server.
    or
    just follow the following link:
    http://www.developer.com/db/article.php/3571661
    keshri

  • How to execute *.BAT file from  the Java Application

    Hello to all.
    I wants to run *.BAT file form my applicaion.
    Can u give the code of that two-four line,please
    Wating four your replay.
    Yours Friend
    Bhavin Shah.....

    pr = rt.exec("cmd.exe /c start " + yourProgramName)The exec() method executes the command you specify in the argument and returns a process. In this example, it's telling Windows to run "yourProgramName".
    HTH

Maybe you are looking for

  • Progress Bars

    Hello All I've been trying to get a progress bar to appear in a cell in a JTable. The Progress bar is to monitor the progress of a file copier i have written. At the moment i have a class that does the copying with a ProgressMonitorInputStream <- pre

  • ODBC mapping in asp script

    How do I code for oracle database in asp to interact with database? I know I may sound stupid in this. DSN: Set Conn = server.createobject("ADODB.Connection") Conn.Open "dsn=oradb;uid=test;pwd=test" Set Res = Server.CreateObject("ADODB.RecordSet") ab

  • Upgrading from CS3 to CS5.5 on a new Macbook Pro

    Does anyone know how simple this is to achieve? I'm upgrading to a new Macbook Pro. I have CS3, but want to upgade to CS5.5. I really don't want to re-install CS3 onto my new mac in order to upgrade to CS5.5, or can I just do it using the serial numb

  • I need a new gfx card

    Hi I have an ati 5870 card and i use 3 screens with DVI ports incl 1 display port adapter for the third screen. And now i want a new gfx card but i dont know what to chose because i need to connect my 3 screens with DVI The card i am looking for must

  • I'M TRYING TO PURCHASE SONGS THROUGH ITUNES AND IT KEEPS TELLING ME MY USERID IS DISABLED, BUT IT WON'T LET ME CREATE A NEW ONE???? ANY SUGGESTIONS?

    I'm trying to make a purchase, but it tells me my Apple ID has been disabled, it will not let me create a new one-just a new password. Any suggestions????