Wednesday, November 28, 2007

Printing in Oracle apps 11i from command line (ar60run):

Printing in Oracle apps 11i from command line (ar60run):

Here are the steps to be followed.
First of all you must be able to print form Linex using lp print command.


1.
chang to $APPL_TOP and source the evvironment by:

cd /d00/oracle/prodappl/

. ./SIIX_ebsiprd.evn
. ./APPSORA.env



2.

The PRINTER environment variable needs to be set. Check this by typing:

echo $PRINTER

If echo $PRINTER returns blank, you need to set a default printer,
by typing:

In Linux PRINTER=(valid printer name)

for example:

PRINTER=xerox-new-235


here xerox-new-235 is the OS name of my printer.
please check with your system administrator for the name of your printer


3.

cd /d00/oracle/siixora/8.0.6/reports60/admin/printer/
change permissions to

chmod 766 spoolcmd.sh
after change permissions

-rwxrw-rw- 1 oracle oracle 866 May 15 1999 spoolcmd.sh


4.
Now try Printing form Command line.

cd to the directory where your rdf file is located.
Complete path must be entered, if you are not in the directory where your rdf are located.

ar60run userid=apps/****** report=SEI-INVMOV8.rdf batch=yes destype=printer desname=xerox-new-235 desformat=wide180.prt errfile=test.log


in the above desname is the name of the printer as i mentioned above.

No comments: