How to execute oracle reports file from jsp using WL as an app server

I plan to use jsp to accept IN parameters and later want to execute oracle
          report execute stored in some directory and provide results back to the
          client browser window. Is this possible in JSP + WL? If yes, can you
          provide some tips on the code?
          Thanks.
          

Try
sqlplus "sys/oracletest as sysdba" @bpk.sql
Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
Remember to put an exit at the end of the bpk.sql script.

Similar Messages

  • How to call Oracle Report 6i from a java swing/ejb codes (client server)

    Hi to all.
    We now have to do reports using Oracle Reports that have to call from Java Swing (interface) / EJB (Backend).
    How can we call the Oracle Reports 6i from Java Swing?
    Do anybody done that?...Any ideas? Where should we find the resourse, if any?
    Thanks in advance and best wishes to all,
    Rushdan.

    Hi,
    6i
    1) One way
    Runtime.getRuntime().exec("rwcli60 report=test.rdf .... server=server_name ...<cmd line params>...");
    2) From swing, open a browser and submit request programmatically
    Re: Calling reports6i reports from java swing client serve application
    Thanks
    Ratheesh

  • How to execute a  .sql file from a batch file

    Hi all
    I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
    now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
    i created a batch file prod.bak with the following lines
    @echo off
    set oracle_sid=testdb
    set oracle_home=d:\oracle\ora92
    sqlplus /nolog
    connect sys as sysdba/oracletest@testdb
    this batch file when eexecuted connects me to sql prompt.
    Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
    (i tried with these lines in the above batch file...
    call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
    start bkp.sql---same as call
    connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
    At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
    Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
    I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
    Thanks
    Tripti

    Try
    sqlplus "sys/oracletest as sysdba" @bpk.sql
    Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
    Remember to put an exit at the end of the bpk.sql script.

  • How to execute SQOOP.cmd file from SSIS execute process task?

    How to execute SQOOP.cmd file from SSIS execute process task?
    What is argument need to be prefixed in the arguments property
    Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd
    Arguments: /C "sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp  -target-dir /user/emptable -m 1"
    Thanks
    Durga

    Hi Durga,
    SQOOP.cmd must be no different than any other .cmd/.bat I assume, your question is more about setting the parameters up I guessed.
    So unless the arguments change dynamically you can call SQOOP.cmd from yet another .cmd that has its parameters passed to it and the former you simply set to run without the arguments in Execute Process Task.
    Otherwise, in general to set a bat/cmd file to run in SSIS one needs to do this:
    PS: It is a good idea to populate the working directory with the path to the .cmd
    Arthur My Blog

  • How to execute java batch file in JSP

    Kindly give a solution. I want execute a batch file which gives a preview window ,. I want call that batch file in my jsp, .I am using Tomcat 5.5, I have tried that using a Process object and Runtime.getRuntime().exec(path) , where path is location of my batch file. As a java class i could execute the batch file, but when i import the method in JSP nothing is happening (even no jsp error).
    Is it possible to execute the batch file in JSP?
    Can any one help me?

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to call java class file from jsp

    hi
    we need to call java classes (which are written separately in .java file )from jsp file. we need it for our project if anyone knows about please reply us.
    bye
    siva sankari

    you can call the methods in a lot of ways. you could use scriptlets with the
    <%@ page import="package.class"%> and then inside instantiate an object
    <%
         MyClass mc = new MyClass(parameters if any);
         mc.theMethodYouWantToCall();
    %>or as Madathil has stated,
    or use the JSP tags
    <jsp:useBean id="anyname" class="classname"/>and then use the getProperty tag
    or even Custom Tags

  • How do I retrieve a file from Trash using Time Machine in Mavericks?

    Is it even possible to retrieve a file from Trash from a Time Machine backup? Does Time Machine even back up the Trash? I've been told a total restore from a Time Machine backup will put the past Trash back on the Mac, but what if I just want to restore an individual file?
    Shortly after emptying my Trash on my Mac (10.9.4) for the first time in weeks, I realized I needed one of the files I'd just erased. Trying to retrieve with Time Machine was not fruitful, however, because I couldn't find the file on any of the past backups using the normal Enter Time Machine interface. However, I know it would have been in the Trash during all of the most recent backups.
    So I researched how to find the backups of Trash with Time Machine, but I think all of the solutions I found on various online forums were pre-Mavericks and do not seem to work now. I've basically tried 2 things:
    Show Trash in Finder using the Terminal command: open ~/.Trash
    It shows the hidden Trash folder in Finder, located in Macintosh HD/Users/User. For easy access, I added the .Trash folder to the Finder Sidebar. But I can't get to it in the backups. The Trash shortcut in the Finder Sidebar is always grayed out in the old backups using the Time Machine app. And it does not show up in ~ when looking through the backups.backupdb folder on my external HD.
    I also tried the Terminal command to show all hidden files in Finder: defaults write com.apple.finder AppleShowAllFiles YES
    But while many hidden files do suddenly appear in Finder, curiously, the User's .Trash folder is not one. This is true for the Finder of the Mac, the backups.backupdb folder on the External HD, and Time Machine app.
    Thanks.

    How do I retrieve a file from my backup in Time Capsule?
    It depends on the type of file that you are trying to retreive.
    In general.....
    Open Time Machine by clicking on the clock icon on the dock
    Wait a few minutes for Time Machine to fully load
    Use the timeline at the far right of the window to go back in time to a date when the file was still on your Mac
    Click that date
    Navigate using the Finder interface to locate the file that you want
    Click on the file to highlight it
    Click Restore at the lower right of the window to be brought back to the present
    You have to retrieve other types of files differently. For details, see:
    http://pondini.org/TM/28.html

  • Questions on how to utilize still/ Video files from 3Gs using iLife 09?

    Hi,
    Just got back from a trip where I took a bunch of stills and videos using the my 3Gs. I just downloaded them onto my Mac using iPhoto.
    1. How do get the video files from iPhoto into iMovie as it seems that iPhoto imported it all.
    2. How do I get the images that were taken with Location services turned "ON" to display the location they were taken?
    3. Will location mapping also work with iPhone video files?

    Maybe someone in the iMovie discussion forum would know some of the specifics from iPhoto to iMovie. I thought I remember seeing a way to import straight from my iMove.
    Here is the discussions link
    http://discussions.apple.com/category.jspa?categoryID=141

  • How to call cystal report8 report file from jsp page

    hi guys
    present i am using cystal report8 already i am having ReportViewer.jar and ReportviewerBean.jar files
    using that please send me sample code how to call that report from jsp page..
    and how to pass the parameters from jsp page to crystalreport8 report file.
    it was very urgent task to me..so please send sample code on above topic..
    or send me crystalreport8 API
    thanks
    regards

    Hi,
    I also want to work on crystal report but i dont have the ReportViewerBean.jar and ReportViewer.jar. So, please tell from where will i get those jar files.
    Thanks in advanced.

  • How do I save multiple files from database using oracle forms?

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Hello,
    I have a form containing a block of records with files set up in a tabular layout. Each row has a checkbox to indicate if that row is selected. What I want to do is allow the user to save each file from checked rows to a directory of their choice on their machine when a button is pressed. Is it possible to do this in one command at the same time using WEBUTIL_FILE to save all the selected files to the same directory, or would I need to loop through each row and call the save dialog each time?
    Thanks.

    I'm not sure I follow. The SAVE_DIALOG is building the path including the filename where the files will be saved. If I have 5 different files I want to save at the same time and only show the dialog once, I will only have a path for one of the files. How could I loop through the rest afterwards?

  • How to execute Pro*C file from form

    Hi All !
    I have one pro*c file(.pc & .exe) . How I can execute this file from form.
    Regards,
    Neeraj

    I think you could use Ora_Ffi package too. Make sure that you use correct version of Pro/C.
    I think you should use Pro/C version 8.0.x with Forms 6.0. I don't use Forms 6i, but I think it is the same for it too.

  • How to remove Oracle reports banner from portal

    Hi,
    I tried to rerun the rwaddpag.sql script. I tried to delete Reports security pages,Reports security Banner,
    ORACLE Repots security provider. I Succefully deleted Oracle Reports Security and Oracle Reports Security provider.
    But Oracle secutity Banner not deleting. I tried so many times it's not deleting. Please give me a solution
    for deleting Reports Banner from protal,without deleting this one I can't run rwaddpag.sql successfully.

    Hi,
    I am using Oracle 9iAS Release 2(9.0.2.0.1)
    Portal Version 9.0.2.2.22
    Following steps taken for deletion
    1)Removing Reports Security Pages
    Log on to Oracle 9iAS portal,Click Builder to go to Oracle 9iAS Portal Builder. Click Navigator. In the find filed, search for %reports security%. Deleted the pages named Oracle Reports Security.
    2)Removing the Reports Security Provider.
    Log on to Oracle 9iAS portal,Click Builder to go to Oracle 9iAS Portal Builder.goto Build tab. In the provider portlet , typed ORACLE REPORTS SECURITY in the Name filed. Clicked Delete.
    3)Same procedure I done for Oracle Reports Security Banner
    but it is not deleting.
    The Oracle report Security and Oracle Reports Security provider deleting time it will ask confirmation for delete. But Oracle Reports Security Banner Delete clicking time nothing showing just a blank screen
    Best Regards
    Satheesh Kumar

  • How do I move AVI files from iPhoto to an AVI player app?

    I have transferred some files from an SD card on to my iPad. They're stored as AVI files in iPhoto but I can't get them to play. I've downloaded an app called Playable which can play AVI but don't know how to transfer the files in to the app.

    Are you able to play them? If not and the fact that the Show File gets you nowhere indicates that those video files are missing from the hard drive. Download Find Any File and search for one of the avi files by full name including extension.
    OT

  • How to print a local file from jsp

    Hi,
    I want to print a local file(eg. .doc,.pdf) from a jsp.
    Please help me with any answer or any example code
    Thanks in advance
    Regards,
    Sanjeev

    Try this:
    index1.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <Link rel='alternate' media='print' href=null>
    <script Language=JavaScript>
    function setPrintPage(prnThis){
    prnDoc = document.getElementsByTagName('Link');
    prnDoc[0].setAttribute('href', prnThis);
    window.print();
    </script>
    </head>
    <body >
    <a href="#" onclick="setPrintPage('index.jsp');"> Click to Print </a>
    </html>This will print index.jsp without opening it in browser. Hope this helps!

  • How to create a text file from jsp?

    In JSP, what is the command to create a text file and dump a variable in it?

    You mean StringBuffer?

Maybe you are looking for

  • Subscribing to a Resource in iCal

    I have been trying to figure out how to subscribe to the resources I have created on my OS-X server. According to the documentation, this should be possible. "A read-only delegate is another user who can see your calendar items, including free-busy t

  • Steps to get deleted photos back

    Is there any steps to getting your deleted photos recovered???

  • Trick to remove duplicate entries from tables ?

    hi. i have 53tables which are having duplicate entries and names of all 53 tables r listed in top_t table ? can any1 provide me solution to show and if possible ask for remove of those duplicates entries from each table if required ? daily i am remov

  • Signature in Mail for Exchange

    I recently updatet the firmware at my Nokia N73 to latest version (V 4.0839.42.2.1) which forced me to reinstall Mail for Exchange. After this update (Mail for Exchange ver. 2.07.000) I am only able to use a signature in outgoing mails limited to 75

  • Start BEX via RRMX doesn't work

    Hello BW 3.5 /SAP GU 6.2 It is possible to access bex via system-> program-> BEx -> analyzer. However transaction RRMX doesn't start BEX . There is also no error message. But the EXCEL Process starts ( seen in the Windows Task Manager) and disappears