How to printing oracle report by specific printer name on solaris?
When running reports
-http://host/reports/rwservlet?destype=PRINTER&desname=printername&desformat=dflt.prt&report=test.rdf&userid=test/test@TEST&MODE=CHARACTER
report with destype=printer desname=printername, the report fails with REP-50159 Executed successfully but there were some errors when distribute the output
if set default printer by add PRINTER=printername export PRINTER; in uiprint.txt
it can print to printer.
i found document id 394554.1 in metalink but it can't fix problem.
https://metalink.oracle.com/metalink/plsql/f?p=130:14:342229662272785964::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,394554.1,1,1,1,helvetica
To fix the problem, execute the following steps:
1. Take a backup of opmn.xml
2. Edit opmn.xml and include the path information of the new printer:
For In-process report server add the path information within <OC4J_BI_Forms>
Eg:
<process-type id="OC4J_BI_Forms" module-id="OC4J">
<environment>
<variable id="DISPLAY" value="localhost:0"/>
<variable id="LD_LIBRARY_PATH"
value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
<variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;................./>
</environment>
Here //printserver is the network drive where is printer is installed.
For standalone report server add the path information within <reportservername>
Eg:
<ias-component id="standalonerepsvr01" status="enabled" id-matching="false">
<process-type id="ReportsServer" module-id="ReportsServices">
<process-set id="standalonerepsvr01" restart-on-death="true" numprocs="1">
<environment>
<variable id="DISPLAY" value="localhost:0"/>
<variable id="LD_LIBRARY_PATH"
value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
<variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;........../>
</environment>
3. Reload opmn : opmnctl reload
4. Restart opmn: opmnctl stopall , opmnctl startall
5. Run the report with destype=printer and desname=newprintername
my config (solaris)
oracle application server release 2 (10.1.2.0.2)
i used axis printserver name is SZ_R02.
<process-type id="OC4J_BI_Forms" module-id="OC4J">
<environment>
<variable id="DISPLAY" value="localhost:0"/>
<variable id="LD_LIBRARY_PATH_64" value="/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparcv9"/>
<variable id="LD_LIBRARY_PATH" value="/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
<variable id="PATH" value="/SZ_R02:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
</environment>
how to print to printer by specific printer name?
thank you very much
khun
if submit url with parameter
http://hostname:7778/reports/rwservlet?destype=PRINTER&desname=lpSZ_R02_2&report=sticker.out
error
REP-50159: Executed successfully but there were some errors when distribute the output
How to Solution?
Similar Messages
-
How to embedded oracle report data in email body from forms?
Hi,
I am working on oracle forms and report 10g and i am new to this. I want to knw How to embedded oracle report data in email body ?
Regards
ShrutiI have uploaded a sample . This might help
http://www.alexyscorp.com/send_report_email.zip -
How to Start Oracle Report in Unix?
hi
Does anyone know how to start oracle report in unix? I was
told to try this (r60desm) but that did not work. We are on 11i
and 6i. Please help
alphaI don't have Forms/Reports 6i for UNIX. Have you tried typing "r60" and typing tab twice?
-
How to print names all files from a given folder into a file??
Hi,
Given is folder which contains folder's n files. the same is wd every folder.
How to print names of all files in parent dir.
ex: C drive
1) windows 2)prog files 3) Documents 4) a.txt
1.a) cursors.........
2.a) netbeans.....
3.a) rcm_b05
output:
c:\windows\cursors\s.txt
c:\progfiles\ram\m.tc
a.txtHi,
look at http://exampledepot.com/egs/java.io/TraverseTree.html, copy the "visitAllFiles" method and implement the "process" method as follows:
public static void process(File f) {
System.out.println( f.getAbsolutePath());
}- Michael -
How to convert Oracle Report Output to Excel Spread Sheet..
Hello Sir,
How to convert Oracle Report Output to Excel Spread Sheet..
Thanks..Hello,
Please give us more information what kind of report(s). Sample example etc.,
Sri -
How to convert Oracle reports previewer output into delimited file.
How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
I observed that this option is not working for more than 400 pages.
I am using Oracle reports 6i version.
Plz suggest me to generate .TXT file from Report previewer.You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
On the command line using the DELIMITER keyword.
In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
for further information goto this link
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760 -
How to connect oracle report to e-biz suit
Hi gurus,
Can some one pls explain to me how to connect oracle reports to e-biz suit or any link to get apps technical , pls not the user guide.- Install Oracle Developer 6i (Forms/Reports) on the client
- Add an entry to tnsnames.ora (Or copy it directly from the server, located under $8.0.6_ORACLE_HOME/network/admin/<SID_hostname>/tnsnames.ora)
- Connect to Oracle Apps from Reports Builder using "apps/apps@<SID>" -
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 -
Can any 1 pls help how to execute the report from plsql or scheduled job and not from a form
I have a report that works fine, The concern now is that somebody will have to manually run this process. It should be something automated, wherein it will run on it's own
Some batch job which will trigger automatically as per the pre defined schedule
Thx in advance
ImranHi Imran,
If the job is to be scheduled on unix... do you have an report server rwrun60 on your unix machine? (in other words can you deploy your reports on unix?) If so it will be a lot easier not to use dbms_job but just schedule it with the unix scheduler CRON.
Then you can create a shell script (.bat is used in windows , on unix it should be , actually you even don't need an extention, .unx or .sh)
eg for your script
#!/bin/ksh
ORACLE_HOME=<path to your oracle home on unix>
ORACLE_SID=<SID of the instance your report needs to run on>
PATH=$ORACLE_HOME/bin:$PATH
WORKINGDIR=<your directory where your reports are
export ORACLE_HOME PATH ORACLE_SID WORKINGDIR
cd WORKINGDIR
# if you want more than one report to run at the same time you can use this loop
for i in `ls *.rep`
do
rwrun60 module=$i userid=..... destype=printer (you can of course use other parameters too)
done
*If you want just a single report leave the loop out and put name of report afeter module=
if you save the file ask your unix admins to make it executable and to schedule it with cron on the unix machine
That's all
I have several hundreds reports running this way (on Linux with 10g report server)
Hope it helps
Erwin
In answer to you latest question to run from pl/sql it can but you need to be able to run a "host" command from your database
one way to do it with java class
install these two java sources on your instance
(you can leave the FEP1_ out of course)
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "FEP1_CaptureStream" AS
import java.util.*;
import java.io.*;
class FEP1_CaptureStream implements Runnable {
private final InputStream is;
private final String type;
private final OutputStream redirect;
private boolean redirected = false;
FEP1_CaptureStream(InputStream is, String type, OutputStream redirect)
this.is = is;
this.type = type + ">";
this.redirect = redirect;
FEP1_CaptureStream(InputStream is, String type)
this(is, type, null);
FEP1_CaptureStream(InputStream is)
this(is, " ", null);
public void run()
try {
PrintWriter pw = null;
if (redirect != null) {
pw = new PrintWriter(redirect);
redirected = true;
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null) {
System.out.println(type + line);
if (redirected) {
pw.println(line);
if (redirected) {
pw.flush();
pw.close();
br.close();
isr.close();
} catch (IOException ioe) {
ioe.printStackTrace();
second source
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "FEP1_ExecOSCmd" AS
import java.util.*;
import java.io.*;
public class FEP1_ExecOSCmd {
public static void main (String args[])
int rc = 0;
if (args.length < 1) {
System.out.println("USAGE: java ExecOSCmd \'cmd\' ");
System.exit(1);
try {
String cmd = args[0];
FileOutputStream fos = null;
if (args.length == 2 ) {
fos = new FileOutputStream(args[1]);
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
FEP1_CaptureStream err = new FEP1_CaptureStream(p.getErrorStream(), "ERR");
Thread e = new Thread(err);
/* NOTE we do not join the error thread. If there was no
Error it may never return. We would wait forever for it to
return thus janging this process */
e.start();
FEP1_CaptureStream out = new FEP1_CaptureStream(p.getInputStream(),
"OUT", fos);
Thread o = new Thread(out);
o.start();
try {
rc = p.waitFor();
/* Handle exceptions for waitFor() */
} catch (InterruptedException intexc) {
System.out.println("Interrupted Exception on waitFor: " +
intexc.getMessage());
if (fos !=null) {
o.join(); // need to wait for the output to finish.
fos.flush();
fos.close();
System.out.println("ExitValue: " + rc);
} catch (Throwable t) {
System.out.println("ExitValue: " + rc);
t.printStackTrace();
Now create a package or standalone procedure to wrap this code
PROCEDURE EXECUTECMD
(CMD VARCHAR2
IS
LANGUAGE JAVA NAME 'FEP1_ExecOSCmd.main(java.lang.String[])';
put security ok and then you can use this procedure in a another
eg
EXECUTECMD('/mybin/start_reports.sh');
this will start the sh script
or
eg
EXECUTECMD('/Oracle/bin/rwrun60 module=.....');
or create a string with all your params and pass it to the command
Be aware that this command executes on the server where your instance is running!
Message was edited by:
Irvine74 -
How to install Oracle Report Services in Oracle Application Server 10.1.3.1
My project is running on Oracle Application Server(OAS) 10.1.3.1, and I need to develop some Oracle Reports for my client.
But I find out there is not "Oracle Report Services" component in OAS 10.1.3.1 like OAS 10.1.2.
Is there Oracle Report Services for OAS 10.1.3.1? How to get it?Max Yuan wrote:
You mean I need to install 2 OAS(10.1.2 for report, 10.1.3 for my project), or deploy my project to 11g? For the Reports reporting project, you'll need a version/edition that includes AS Reports Services.
In "10gr2" that means AS 10.1.2.0.2 (plus Patch set): AS Infrastructure + AS BI&Forms installation (enterprise edition) or the standalone Forms and Reports installation (EE or separate licensing). You also need the Developer Suit (Reports Builder). OFM "11gr1" suite has some version of Reports Services but I don't know the available packages and installation types. -
How to start Oracle Report Builder in Linux
Hi all
Can someone please help by telling how can i start Oracle Report Builder in Linux????
Thank you and best regards to allHello,
there should be a script rwbuilder.sh
in ORACLE_HOME/bin for 10.1.2.
in ORACLE_INSTANCE/config/reports/bin for 11g
Of course, you need to have a "X Display Server " up and running and the variable DISPLAY must be set to this "X Display Server "
Example :
export DISPLAY=123.456.789.12:0
$ORACLE_HOME/bin/rwbuilder.sh
Regards -
How to install oracle report builder in windows 7
Hi Team,
Could you guide me to install oracle report 11g in my PC . Previously i was using 10g .
OS : win 7
DATABASE : 11gFollow How to install forms builder? | Oracle Community
Hope read all and give a try.
Hamid -
How to run Oracle Report in new window
Hi,
There appear to be many threads regarding this issue, but so far I've been unable to piece together a solution to my problem.
My requirements are quite simple really.
- Invoke an Oracle Report from an HTMLDB page
- Pass parameters form the page to the report URL
- Run the report in a new window
I have created a simple example at:
http://htmldb.oracle.com/pls/otn/f?p=36506:1
Page 1 contains the following HTML Header attribute
<script language="JavaScript" type="text/javascript">
function callMyPopup (url){
w = open(url,"winLov","");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
The URL i wish to invoke is
http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.
My question is, where would I put the code to invoke the URL? I'm trying to use the following code
javascript:callMyPopup('http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.');
I've tried putting this in a branch but I get a 'Page can not be displayed' error.
Any help would be appreciated.
Thanks
AndrewHi,
I'm trying to invoke an oracle report through a button in apex2.2. Please let me know how to display the report in a new window.
I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
I've read some of the posts and put the URL as the target of the button instead of a branch and also used the javascript:popupURL(), but it still doesnt work for me. The URL works fine without the javascript.
I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
Thanks in advance,
Priyanka -
How to display Oracle Report in portal
How can I have a link in the portlet, and then after clicking a link, it will open an oracle report in the browser (in pdf format) ?
I am using win2k as my OS....Hi,
For Developer 6i reports you can
create the link (ie http://<host>/dev60cgi/rwcgi60.exe?report=abc.rdf&userid=un/pw/@cs&.....
Pass the parameter required for output format in the URL .
Thanks
Vineet -
How to work Oracle report in Forms
Hi Everyone.
I am new to Oracle Forms and reports.
I just created i Oracle report based on emp table and saved as stud_rept.rdf and imported in forms under reports object namely 'REPORT2' in object Navigator and changed their properties as
file name: G:\Projects\emp_report.rdf
Execution mode : runtime
communication mode: synchronous
datasourceblock : null
report destination type:screen
then i created one datablock based on emp table, created one button then written a trigger code under when_button_pressed as
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT2');
v_rep := RUN_REPORT_OBJECT(repid);
END;
when i click the button in browser i'm getting error as
frm-41211 integration error: SSL failure running another product
can any1 tell me how to run a report in Oracle Forms? i am new to this one..Hi denis..
thanks for your reply..
I added Report server property to 'REPORT2'. i am getting the runtime error as
FRM-41213 Unable to connect to the report server 'REPORT2'.
can u pls tell me how to solve this?
Maybe you are looking for
-
I am new to working with Adobe Acrobat Pro XI and Adobe Reader XI. Based on research I have done and questions answered in the Adobe Communities and Forum, I wanted to make sure I understand the limitations of these two products before I report back
-
Problem in getting appraisal template
Hi All, I am facing a problem in template configuration. The appraisal template created in PHAP_CATALOG_PA is released but it is not getting created when i use transaction APPCREATE.It gives an error saying "NO APPRAISAL MODEL DEFINED IN THE SYSTEM.
-
Can iDevice connect to 2 WiFi units simultaneously?
I have a TC in the front of the house and AP Express in the back of the house. The two units are ethernetted together. I was using AP Utility to check something, and noticed my iPhone and iPad (in my office in the front of the house) are connected
-
FI-CA SD billing generated Reconciliation Key Correction
Hello Friends: I would appreciate your pointers on the following situation: - SD Billing generated recon key has been closed - GL trf for this key is failing, reason being a wrong profit center got defaulted for a billing document for a revenue accou
-
Difference between sap xi 3.0 and sap pi 7.0
hi guys, what is the difference between SAP XI 3.0 and SAP PI 7.0,and R/3 4.7 and ECC 6.0 regards, subba reddy