To save oracle report in a given location

Hi,
I want report to be save in d:\dbr location in pdf format .
I am running report through form.
below is the code.
declare
pl_name VARCHAR2(30) := 'tempdata';
pl_id ParamList;
varno number;
VENAME VARCHAR2(30);
VMONTH NUMBER(2);
VYEAR NUMBER(4);
vacname varchar2(100);
vitemgrp varchar2(5);
vfromdate date;
x VARCHAR2(150);
y NUMBER;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT103');
pl_id := Create_Parameter_List(pl_name);
Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'FILE') ;
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'PDF') ;
Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.COMPANYNAME);
Add_Parameter(pl_id,'VLYCOMPANY',TEXT_PARAMETER,:block50.COMPANYNAME);
Add_Parameter(pl_id,'FROMDATE',TEXT_PARAMETER,VFROMDATE); -- vfromdate retrived from cursor
Add_Parameter(pl_id,'TODATE',TEXT_PARAMETER,:BLOCK50.DOCDATE);
Add_Parameter(pl_id,'VACNAME',TEXT_PARAMETER,VACNAME); -- vacname retrived from cursor
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'D:\dbr\'||vACNAME||' '||:BLOCK50.DOCDATE||'.PDF') ;
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property(repid, report_filename,'D:\dbr\'||vACNAME||' '||:BLOCK50.DOCDATE||'.PDF' );
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
x := RUN_REPORT_OBJECT (repid, pl_id);
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet'||SUBSTR(x, y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
Destroy_parameter_list('tempdata');
above code gives following error
frm-93652 the runtime process has terminated abnormally.
I don't want report to be run on browser but, to be store in pdf format in a given location.
Forms & report version 11.1.2
Please help..
Edited by: parapr on Sep 21, 2012 11:43 PM

http://inorasrv-pc:7001/reports/rwservlet/showjobs?server=rep_adminserver_inorasrv-pc_asinst_3
I run above url
It shows status of last run jobs.
It is showing red cross in front of last run job.
I click on red cross sign. It show following error message.
The report terminated with error:
REP-110: File AKASH. cannot be opened. REP-1070: An error occurred while opening or saving a document. REP-0110: File AKASH. cannot be opened.
I run below url
http://inorasrv-pc:7001/reports/rwservlet/getserverinfo
It shows following information
Reports Server rep_adminserver_inorasrv-pc_asinst_3 Information
Server
Name rep_adminserver_inorasrv-pc_asinst_3
Version 11.1.2.0.0
Security Mode Non-secure
Running Mode In-process
Host inorasrv-PC
Process Id undefined
Start Time Sep 24, 2012 10:12:28 AM
Maximum Queue Size 1000
Other Reports Servers in the Same Cluster
Performance
Successful Jobs 704
Current Jobs 0
Future Jobs 0
Transferred Jobs 0
Failed Jobs 296
Response Time(milliseconds) 56855.7
Engine
Name Process Id Status Running Job ID Job Running Time (ms) Idle Time (seconds) Jobs Run Life Remaining (jobs) NLS Total Running Time (seconds) Total Idle Time (minutes)
rwEng-0 4500 Ready n/a n/a 300 4 46 AMERICAN_AMERICA.WE8MSWIN1252 5 5
need help..

Similar Messages

  • Save Oracle Report Output as PDF format in the system folder

    Hi,
    Is it possible to Save Oracle Reports Output as PDF(file_name.pdf) format in the system folder(say C:\temp\file_name.pdf).
    I am using Repors 10g R2.
    Note : i dont want to open the report preview as PDF, just i want to save the PDF file in the a specified location.
    Regards,
    Suresh.V

    Hello,
    Yes, it is possible.
    Execute the Reports passing the parameters :
    DESFORMAT=PDF DESTYPE=FILE DESNAME=C:\temp\file_name.pdf
    Regards

  • Oracle Reports gives : "Failed to locate the Browser" Error. Please help.

    Hello All,
    I am new to Oracle Reports Developer. I followed the "Oracle Reports Tutorials" (Document ID : B14364-01) to build my first report.
    I tried to run the report in web layout mode : I got the following things.
    1) A new blank firefox window.
    2) After a few seconds : A message window in Report Builder with : "Failed to Locate the Browser" Message
    My Machine details :
    Windows XP sp3.
    Oracle Developer Suite 10g.
    Firefox version : 3.5.
    Registry Entries : HKEY_CURRENT_USER|Software|Oracle|Toolkit|TKBrowser. No BrowserName, BrowserPath keys found. So I added these keys manually under the paths :
    HKEY_CURRENT_USER|Software|Oracle|Toolkit|TKBrowser|BrowserName (value = firefox)
    HKEY_CURRENT_USER|Software|Oracle|Toolkit|TKBrowser|BrowserPath (value=C:\Program Files\Mozilla Firefox\firefox.exe)
    Ran the report again. This time also I encountered the same scenarios which I mentioned previously. Also tried with registry setting
    HKEY_CURRENT_USER|Software|Oracle|Toolkit|TKBrowser with value "BrowserName=firefox;BrowserPath=C:\Program Files\Mozilla Firefox\firefox.exe".
    I also ran with the all the settings once without restarting the computer after making the changes. And also ran each time by restarting the computer whenever I changed the value. I could not get a break thourgh.
    Please help me in resolving this issue. Your help is greatly appreciated.
    Thanks in advance,
    Suresh.

    Thanks for replying. I tried the same thing with Netscape 9 now. It is still displaying a blank web page and after a few seconds the same message in Reports Developer : " Failed to locate the Browser".
    Is there any specific setting that I need to customize in order to run the reports? My Forms are being executed without any issues. Where as I have problem with Reports Developer.
    Thanks in advance,
    Suresh.

  • To save oracle Reports 6i in RTF format.

    Hi to all....
    I want t o save a report in RTF format in oracle 6i.Kindly help me to solve the issue.
    Scernario.
    After clicking the button(Ex payroll report button) in oracle forms 6i ,the Save Dialog box should be opened to save the report in RTF format.
    The report previewer should not open. How to avoid the report previewer and call the save dialog box to save the report.
    A timely help needed here....
    With Regards
    Sprity......

    No problem,
    Try 1 of 3 Solutions...
    The First Solution :*
    1.open ur form > drop the pll & Delete it's plx file> save and close the form and builder > sign-in >compile & Run
                          (pls. notice is the internal error exists while compiling or running the form) y/n ?
    2. Then,open ur form > re-attach the library
    3. do the Ctrl-Shft-k and Ctrl-T > save the form > Run it.
                           (pls. notice is the internal error exists while compiling or running the form)  y/n ?If it still fails, close the Form Builder Try...
    The Second Solution :*
    1.open ur form > sign-in > open the d2kwutil library, Ctrl-Shft-K *the library*> save and close it.
    2. drop the attached library from ur form module > reattach it >  sign-in >Pls press  Ctrl-Shft-K, Ctrl-T. with the fresh new compiled version of the pll libery...If it still fails, close the Form Builder then finally Try...
    The Third Solution :*
    1.debug ur form >u will got a message indicating a missing DLL, its name 'd2kwut32.dll'.
    2. Attached this Dll from the following path :  C:ORANT\BIN directory, then the problem will be successfully solved.If it dramatically fails the am sorry .. am out of suggestions :(
    But u can try if the same problem exists for other forms then i recommend to re-install ur Developper < the worest choice i am afraid to do it ...!
    Best Regards,
    Abdetu...

  • How can I use unix commands from oracle report

    I have to use the following command from oracle reports.
    In oracle forms we can use the HOST command but what about oracle reports2.5.
    I have to email the attached file 100245.pdf from oracle reports to the given email id
    uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]

    Hi,
    It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
    So you need to call cmd.exe passing the bat file name as a parameter, something like
    cmd.exe /c batchfilename
    Without the /c you will never get a response.
    However, this brings us to the bizarre conclusion that you are going to:
    call cmd.exe (a shell interpreter)
    to launch a batch file
    that calls cygwin (another shell interpreter)
    which then runs ls
    When shouldn't that just be:
    call cmd.exe to run the dir command
    Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
    HTH
    Chris

  • How to convert Oracle Report into Excel

    Hi,
    Please guide for the following:
    I am using, Report Developer 11g and I want to save Oracle report into Excel format, is it possible ?
    Regards,
    Thanks.

    There is a Reports manual you know!
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i636884

  • How to execute this statement from oracle reports

    have to use the following command from oracle reports.
    In oracle forms we can use the HOST command but what about oracle reports2.5.
    I have to email the attached file 100245.pdf from oracle reports to the given email id
    uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]

    > u can execute any exe using host that host must contain a bat file
    Incorrect. There is no HOST command in PL/SQL.
    And please note that this is the Database » SQL and PL/SQL forum - and not the Oracle Forms or SQL*Plus forum.
    Also, when using the SQL*Plus HOST command for example, you can execute any executable and not just a BAT file. SQL*Plus on Windows uses the Win32 API call CreateProcess() - and it has no limits as to what/which executable can be executed.

  • In oracle 2.5 version report builder how to add option to generate/save the report as pdf file?

    I am working with reports of 2.5 version and i got a requirement for adding an option to save the report in pdf format. Can anybody please help me on this asap
    Thanks & Regards

    Are u sure about  the report version.
    Please do upgrade  while  even in oracle  they almost stopped for new version -Developer suite

  • Obiee 11g report saved in shared location

    Hi Gurus,
    How to save the report (pdf format) in shared location on Unix/Linux
    Note: I know using jsva scrift it is possible on windows.
    The same js scrift will work on Unix/ Lunix.
    Does anybody implement kindly suggest me.
    Advance thanks.
    Award points for any help..

    I didnt implemented on Unix/Linux and I'm not sure that can be done or not.
    Using Java I'm assuming we can do but not sure about it, try to raise SR with Oracle and check.
    Have you tried it using Java?
    For one of the user name 'RAJ' I've given more details how to compile and all.. that guy never turned back on that post... people are 100% just using... forum never care to respond back :)
    I think that might be the reason for most of the gurus are stopped replying...
    all the best

  • Oracle Report Server Not Accessible

    Hi Folks,
    I'm facing a series of issues with Oracle reports server 11g. I'l list the issues one by one.
    1. I'm not able to start the weblogic server from the domain which i've created for Reports. It gives me authentication error. I've tried clearing tmp directory, clearing temp directory and creating a boot.properties in the security folder. But nothin seems to work.
    2. I'm not able to start the report server from the instance path C:\Oracle\Middleware\asinst_1\bin\opmnctl.bat. The contents of opmnctl.bat is as follows
    @ECHO OFF
    SETLOCAL
    set PERL5LIB=
    set JAVA_HOME=C:\Oracle\Middleware\jdk160_29\bin
    set ORACLE_HOME=C:\Oracle\Middleware\Oracle_FRHome1
    set ORACLE_INSTANCE=C:\Oracle\Middleware\asinst_1
    set OpmnService=OracleProcessManager_asinst_1
    "C:\Oracle\Middleware\Oracle_FRHome1\opmn\bin\opmnctl.bat" %*
    when i run this from cmd i get all the components as alive but i'm not able to access the reports path with the url. (http://domainname:7003/console or /em).
    this says connection refused.
    3. When i try to access the url http://domainname:8888/reports/rwservlet gives me apache bridge error. I've been trying all the things given in google for the past 1 week but still its not working.
    This is my Oracle Forms and Repots Installation log:
    Middleware Home Location: C:\Oracle\Middleware
              Oracle Home Location: C:\Oracle\Middleware\Oracle_FRHome1
              Oracle Instance Location: C:\Oracle\Middleware\asinst_1
              Oracle Instance: asinst_1
              Domain Option: Create Domain
              Domain Name: Sapphire
              Domain Home: C:\Oracle\Middleware\user_projects\domains\Sapphire
              Domain Host Name: PC201845.cts.com
              Domain Port No: 7001
              User Name: weblogic
              Automatic Port Detection: true
              Administrator Console: http://PC201845.cts.com:7001/console
              EM Console: http://PC201845.cts.com:7001/em
              EMAgent URL: http://PC201845.cts.com:5155/emd/main
              Forms URL: http://PC201845.cts.com:8888/forms/frmservlet
              Reports URL: http://PC201845.cts.com:8888/reports/rwservlet
    I'm not able to login to any of this url.
    pls help with the issue.
    P.S - I'm able to start weblogic server from base_domain but not from Sapphire domain which i created during installation of reports 11g.
    I need a way to start the Weblogic server from Sapphire Domain and also start reports server and access the reports url.

    TemTesh wrote:
    After machine shutdown without shutdown IAS server, Oracle application server report service can not restart.
    below is the error
    11/2/10 5:26 AM NfsServer: (TCP:Nfs-6) Exception
    oracle.ifs.common.IfsException: IFS-71002: I/O error.
    java.net.SocketException: Connection resetAnd this seems to be the problem. Missing NFS share? TCP=<i>transmission control protocol</i>. NFS=<i>network file server</i>.
    For some reason (very like due to how it has been configured), the s/w attempts to use a NFS share - and uses the TCP wire protocol. This NFS share is not mounted or not available.
    Check the NFS server (it needs to be up and exporting that share), there has to be network connectivity between the report server and the NFS server, and the report server needs to have the required config and access permissions for mounting that NFS share.

  • Where to put jsp web report files on Oracle reports server/ Oracle AS

    Dear All,
    I am trying to deploy my Oracle web reports on Oracle Reports Server 10g.
    I have designed a sample web application for the same and deployed it on Oracle Application Server.
    What is given in the online help:
    Transfer the report file ( RDF, REP, XML, or JSP) and its associated files (for example, PLL, PLX or referenced images) to the deployment directory on your application server.
    Ensure the directory on the application server where you've transferred the file is listed in the Reports Server access path. If it is not, use the REPORTS_PATH environment variable, or set the sourceDir property of the Reports engine element in the server configuration file.
    Now few questions:
    What is the case if Application server and Reports server are different?
    The reports files are to be put on Oracle AS or Oracle Reports server? In my case both are same.
    1. I have tried to put the JSP files in the folder where index.html of web application is located. But it wont work and gives some error. The tld related jar is placed in the WEB-INF\lib directory.
    2. I also tried to put it in a folder and referred that folder by creating an environment variable REPORTS_PATH over Reports server. But Reports server wont find it.
    Please guide me in this issue.
    -Sameer

    Hello,
    Take a look to the thread :
    Re: where to add new jsp reports directory location in path
    Regards

  • Oracle Report Manager & BNE

    Could anybody explain me in shortly what are Oracle Report Manager (FRM) and Web Applications Desktop Integrator (BNE) used for ?
    Thanks,
    Paul

    Oracle Report Manager is an online repository for storing and viewing reports. Report Manager provides a secure and convenient location to access point -in-time reports published or uploaded to a database. You access secured reports through your Personal Home Page (Self Service Applications home page and Oracle Portal page). Public (non-secured) reports can also be accessed through the Report Manager Public Home Page. Oracle Report Manager users can be either report producers or report consumers. Report producing users publish, upload, and set security for reports. Report consumers view, download, and approve reports.
    Oracle® Report Manager User Guide
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/frm115ug.pdf
    Web ADI brings Oracle E-Business Suite functionality to a spreadsheet, where familiar data entry and modeling techniques can be used to complete Oracle E-Business Suite tasks. You can create formatted spreadsheets on your desktop that allow you to download, view, edit, and create Oracle E-Business Suite data. Data entry shortcuts (such as copying and pasting or dragging and dropping ranges of cells) or even using formulas to calculate amounts, can all be used to save time. You can combine speed and accuracy by invoking lists of values for fields within the spreadsheet.
    Oracle Web Applications Desktop Integrator - Implementation and Administration Guide
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115bneig.pdf

  • Unable to integrate Oracle Reports with Express--(To oracle Team also)

    Hi
    Unable to integrate Oracle Reports with Express. While defining
    the Express database connection using the olap connection editor
    iam getting the following error "Error locating the XCONEDIT.INI
    file. Try re-installing the software".
    what should be done?
    Atleat,If anybody has successfully connected to Express via
    Reports6i. Kindly give the details like what softwares to be
    installed in what HOME? and also other steps involved in the
    process.
    YOur help !!!
    kindly respond...(Oracle Team do respond with something)
    with rgds

    hello,
    check out the notes
    Note:112542.1
    Note:167049.1
    on oracle metalink for further information.
    if you still have issues, please contact oracle support services
    for furhter assistence.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Grouping in rtf template like oracle reports - a newbie question

    Hello all
    I am new to BI Publisher and have probablly a silly question to ask.
    I have a basic query that returns a flat xml file which looks something like this. it will have multiple rows.
    <ROWSET>
    <ROW num="1">
    <DATE>01-DEC-2007</DATE>
    <PACKAGE>XXX </PACKAGE>
    <DROP_OFF>Hotel1</DROP_OFF>
    <ROOM>1</ROOM>
    <NAME>Test Customer</NAME>
    <PROBLEM_RECORDED>N</PROBLEM_RECORDED>
    <EXCEPTION>1</EXCEPTION>
    </ROW>
    </ROWSET>
    Because i am fairly new to xml i am at a loss trying to work out how i can form a template that will effectively allow grouping at say
    1. Date Level
    2. Package Level
    3.Drop Off level
    4. put all other data in here
    In reports i would just do groups and alter the layout accordingly. Obviously if i had an oracle report version of the sql that generates the xml then i could just generate the xml from the report and i would get the xml i am looking for .
    But I am working with basic sql not reports and am wondering What do I have to do with my xml to get it looking live the grouping I mention above, given all i have to play with is the example xml I included. I am really bamboozled and think i am missing something simple.
    I dont want to have to write multiple queries with different groupings using cast , multiset as I thought one of the benefits of BI Publisher was one query multiple layouts.
    Thanks
    Lisa

    If you haev word plugin installed,
    please follow the documentation and try using that,
    load the xml in the word plugin
    and then select insert table/form and then you can do the drag and drop,
    and group by each fields.
    http://blogs.oracle.com/xmlpublisher/2006/10/30
    http://blogs.oracle.com/xmlpublisher/2007/10/30

  • Oracle reports 6i to Oracle forms 10g migration

    Hi,
    I have .rdf files which were created on Oracle Reports 6i. I would like to migrate the .rdf files into Oracle Reports module which is present as a part of Oracle Forms 10g to generate PDF output.
    Please let me know the detailed steps to be followed as I am a total newbie. Also I need to generate these reports on demand from a java 5 application (JSF 2.0).
    Currently for ORacle reports 6i, I have the following code in my java application
    rwrun60.exe g:\tomcat33\webapps\reports\web-inf\src\null userid=***/*** destype=FILE desformat="pdf" paramform=NO printjob=NO batch=YES desname=temp.pdf
    1. What would be the equivalent for reports in ORacle Forms 10g ? I know there is an Oracle Apps server where ther report services reside. How to I invoke my report from my java application (residing on a weblogic server 10.3.6)?
    2. What ould I do with the 6i .rdf files to upgrade them to 10g ?

    I am trying to call an Oracle report i.e .rdf (which is located on the Oracle  App Server) from my java EE 5 (JSF) application. The Oracle  App server is Oracle Application Server 10g Release 2. I assume Oracle report generation capability is available in this release.  I need to invoke the report from my Java JSF application on demand (whenever the user clicks a button on the web browser page, the report should appear on the browser as PDF) . My java application resides on Linux weblogic server.
    Please let me know how it can be done ? I see rwclient.sh and another method to directly invoke using a URL. How do I do it on java, would a request.redirect() to the URL work ?
    Also for hiding the params in the URL. keys need to be configured on the Oracle server right ?
    Also if we use rwclient.sh or the URL based invocation, would there be any issue in concurrency when multiple users request the same report at the same time ?

Maybe you are looking for

  • How do I share a playlist from my itunes library with another user on the same computer?

    I would like to share a playlist with another uuser on the same computer.  We have separate itunes libraries on the same computer. How do gey my playlist from my library to hers?

  • Complex issues after new hard drive installed

    I have an older white Macbook (MacBook2,1  2.16 Core 2 Duo  2.16GHz).  The harddrive was failing, so I took it to a local repair shop (not an Apple store). They replaced the hard drive.  I brought it home and restored it from my Time Machine backup.

  • Acrobat pro 9.5.0 crashes when trying to scan

    Hi guys, my acrobat 9.5.0 keeps on crashing whenever i try to scan, what might be the problem? it was working fine a few weeks ago, and the scanner still works with other programmes. please help, many thanks. operating system: Windows 7 scanner: Sams

  • HT202879 new numbers version is a total disaster.... unbelievable ...

    New numbers is a total disaster... I don't know who was the project manager of this new edition but He or She has apparently never been involved into business... Spending so much time and finally realizing that some major features have actually and s

  • IDM Password Reset Authentication Questions

    Hi, We are implementing Password Self Service using IDM 7.1, everything is set up and we have tested and were able to reset password for users to connected target systems. we are now doing some cosmetic changes before going live, like setting up new