You are on page 1of 3

[scriptname] - [abstract]

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doc...

Batch Compile Script for Forms, Reports, Libraries, Menus and also converting Binary to text and back [ID 191529.1] Modified 20-DEC-2010 Checked for relevance 02-DEC-2008 Title: Batch Compile Script for Forms and Reports Abstract This script code compiles all the Forms and Reports modules residing in a directory. Oracle Forms Developer, 6i, 9.0.X,10.x,11g Product Name, Product Version Oracle Reports Developer, 6i, 9.0.X, 10.x, 11g Type SCRIPT Status ARCHIVED

Platform Date Created Instructions

Platform Independent 25-MAY-2002

Execution Environment: =========================================================================== =========================================================================== Windows command prompt, UNIX shell Access Privileges: Rate thisRequires write privileges in the destination directory and read privileges in the source directory. document Instructions: When copying the script be aware to remove line feeds in the list of parameters for the executables. Please note that if you are FTPing this script from a Windows machine please do it in ASCII mode. PROOFREAD THIS SCRIPT BEFORE USING IT! Due to differences in the way text editors, e-mail packages, and operating systems handle text formatting (spaces, tabs, and carriage returns), this script may not be in an executable state when you first receive it. Check over the script to ensure that errors of this type are corrected. Description The script for Reports 9i will return error 'REP-0202: Attempt to free a null pointer' until Bug 2523785 is resolved. The error can be ignored. References BUG:2523785 RWCONVERTER THROWS REP-202 ERROR MESSAGE Script

For Windows
Forms/Reports 6i REM WINDOWS COMPILE FORMS ::compile_forms.bat cls Echo compiling Forms.... for %%f IN (*.fmb) do ifcmp60 userid=scott/tiger@v817 module=%%f batch=yes module_type=form compile_all=yes window_state=minimize ECHO FINISHED COMPILING REM WINDOWS COMPILE REPORT ::compile_report.bat cls Echo compiling Report ..... for %%f IN (*.rdf) do RWCON60 userid=scott/tiger@v817 batch=yes source=%%f stype=rdffile DTYPE=REPFILE OVERWRITE=yes logfile=log.txt ECHO FINISHED COMPILING Forms/Reports 9.0.X REM WINDOWS COMPILE FORMS ::compile_forms.bat cls Echo compiling Forms.... for %%f IN (*.fmb) do ifcmp90 userid=scott/tiger@v817

module=%%f batch=yes

8/26/2011 11:53 AM

[scriptname] - [abstract]

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doc...

module_type=form compile_all=yes window_state=minimize ECHO FINISHED COMPILING

Forms/Reports 10.X /11

::compile_forms.bat cls Echo compiling Forms.... for %%f IN (*.fmb) do frmcmp userid=scott/tiger@v817 module=%%f batch=yes module_type=form compile_all=yes window_state=minimize ECHO FINISHED COMPILING REM WINDOWS COMPILE REPORT ::compile_report.bat cls Echo compiling Report ..... for %%f IN (*.rdf) do rwconverter userid=scott/tiger@v817 batch=yes source=%%f stype=rdffile DTYPE=REPFILE compile_all=yes OVERWRITE=yes ECHO FINISHED COMPILING

logfile=log.txt

For UNIX
Forms/Reports 6i #UNIX Forms Compile #compile_forms.sh for i in `ls *.fmb` do echo Compiling Form $i .... f60genm userid=scott/tiger@bs817 batch=yes module=$i module_type=form compile_all=yes window_state=minimize done #UNIX COMPILE REPORTS #compile_rep.sh for i in `ls *.rdf` do echo Compiling Report $i ... rwcon60 userid=scott/tiger@bs817 batch=yes source=$i dtype=repfile overwrite=yes compile_all=yes done Forms/Reports 9.0.X, 10.x, 11g #UNIX Forms Compile #compile_forms.sh for i in `ls *.fmb` do echo Compiling Form $i .... f90genm userid=scott/tiger@bs817 batch=yes module=$i module_type=form compile_all=yes window_state=minimize done ( For 10gR1 = forms 9.0.4.x, you can use f90gen also) ( For 10gR2/11g = forms 10.x and 11g, you can use frmcmp.sh or frmcmp_batch.sh) #UNIX COMPILE REPORTS #compile_rep.sh for i in `ls *.rdf` do echo Compiling Report $i ... rwconverter.sh userid=scott/tiger@bs817 batch=yes source=$i stype=rdffile dtype=repfile overwrite=yes compile_all=yes done Note: If you dont want to use the X-Display then you can use f60gen,f90gen and frmcmp_batch.sh for compiling Forms. Make sure TERM, ORACLE_TERM and NLS_LANG values are properly set. ADDITIONAL: You can use the information above to compile libraries or menues or convert files from binary to text and text to binary too. eg: for %%f in (*.pll) do ifcmp60 userid=user/pwd@db module=%%f module_type=LIBRARY batch=yes window_state=minimize compile_all=yes for %%f in (*.mmb) do ifcmp60 userid=user/pwd@db module=%%f module_type=MENU batch=yes window_state=minimize compile_all=yes for %%f in (*.mmb) do ifcmp60 userid=user/pwd@db module=%%f module_type=FORM batch=yes window_state=minimize parse=YES for %%f in (*.mmb) do ifcmp60 userid=user/pwd@db module=%%f module_type=FORM batch=yes window_state=minimize script=YES (and similar loops for Unix). Disclaimer EXCEPT WHERE EXPRESSLY PROVIDED OTHERWISE, THE INFORMATION, SOFTWARE, PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. ORACLE EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ORACLE MAKES NO WARRANTY THAT: (A) THE RESULTS THAT MAY BE OBTAINED FROM THE USE OF THE SOFTWARE WILL BE ACCURATE OR

stype=rdffile

8/26/2011 11:53 AM

[scriptname] - [abstract]

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doc...

RELIABLE; OR (B) THE INFORMATION, OR OTHER MATERIAL OBTAINED WILL MEET YOUR EXPECTATIONS. ANY CONTENT, MATERIALS, INFORMATION OR SOFTWARE DOWNLOADED OR OTHERWISE OBTAINED IS DONE AT YOUR OWN DISCRETION AND RISK. ORACLE SHALL HAVE NO RESPONSIBILITY FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY CONTENT, MATERIALS, INFORMATION OR SOFTWARE. ORACLE RESERVES THE RIGHT TO MAKE CHANGES OR UPDATES TO THE SOFTWARE AT ANY TIME WITHOUT NOTICE. Limitation of Liability IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, ARISING FROM YOUR ACCESS TO, OR USE OF, THE SOFTWARE. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY. ACCORDINGLY, SOME OF THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU.

Related Products Middleware > Developer Tools > Database & PLSQL > Oracle Reports Developer Middleware > Developer Tools > Database & PLSQL > Oracle Forms Middleware > Developer Tools > Database & PLSQL > Oracle Forms Keywords RWCONVERTER; RWCON60; F60GENM; IFCMP60 Errors REP-202; 202 ERROR

Back to top Copyright (c) 2007, 2010, Oracle. All rights reserved. Legal Notices and Terms of Use | Privacy Statement

8/26/2011 11:53 AM

You might also like