Professional Documents
Culture Documents
Forms and Reports Conversion Step
Forms and Reports Conversion Step
$ more convertreport.sh
# CONVERT REPORTS
for i in `ls *.rdf`
do
echo Convert Report $i ...
rwconverter.sh userid=username/password@dasar batch=yes
source=$i stype=rdffile dtype=rdffile overwrite=yes
compile_all=yes
done
$ . /convertreport.sh
Step 12. Convert *.pll report files using batch file - compilelibrary.sh
$ more compilelibrary.sh
# COMPILE LIBRARY
for i in `ls *.pll`
do
echo Compile Library $i ...
frmcmp_batch.sh userid=username/password@dasar batch=yes
module=$i module_type=LIBRARY compile_all=yes
window_state=minimize
done
$ . /compilelibrary.sh
Step 13. Convert *.mmb report files using batch file - compilemenu.sh
$ more compilemenu.sh
# COMPILE MENU
for i in `ls *.mmb`
do
echo Compile Menu $i ...
frmcmp_batch.sh userid=username/password@dasar batch=yes
module=$i module_type=MENU compile_all=yes
window_state=minimize
done
$ . /compilemenu.sh
Step 14. Convert *.fmb report files using batch file - compileform.sh
$ more compileform.sh
# COMPILE FORM
for i in `ls *.fmb`
do
echo Compile Form $i ...
frmcmp_batch.sh userid=username/password@dasar batch=yes
module=$i module_type=FORM compile_all=yes
window_state=minimize
done
$ . /compileform.sh
Step 15. Convert *.rdf report files using batch file - compilereport.sh
$ more compilereport.sh
# COMPILE REPORTS
for i in `ls *.rdf`
do
echo Convert Report $i ...
rwconverter.sh userid=latihan/password@dasar batch=yes
source=$i stype=rdffile dtype=repfile overwrite=yes
compile_all=yes
done
$ . /compilereport.sh
Step 16. Check log file. If error modify using form builder or report builder and
compile again until no more errors. You need to set oracle environment before run the
following command (Step 10).
Open Oracle Form Builder to modify library, menu and form
$ frmbld.sh&
You can compile library, menu and form in form builder using Ctrl-T
Open Oracle Report Builder to modify report
$ rwbuilder.sh&
Open Oracle Report Converter to compile report
$ rwconverter.sh&
Compile .pll using command line
$ frmcmp_batch.sh userid=username/password@dasar batch=yes
module=filename.fmb module_type=LIBRARY compile_all=yes
Compile .mmb using command line
$ frmcmp_batch.sh userid=username/password@dasar batch=yes
module=filename.fmb module_type=MENU compile_all=yes
Compile .fmb using command line
$ frmcmp_batch.sh userid=username/password@dasar batch=yes
module=filename.fmb module_type=FORM compile_all=yes
Compile .rdf using command line
$ rwconverter.sh userid=latihan/password@dasar batch=yes
source=reportname.rdf stype=rdffile dtype=repfile overwrite=yes
compile_all=yes
Step 17. Connect to Oracle Application Server. Create new directory.
$ ssh 192.168.1.213
$ pwd
/home/oracle
$ ls appl_directory
If exist then rename appl_directory to old_appl_directory
$ mv appl_directory old_appl_directory
If not exist then create appl_directory
$ mkdir appl_directory
$ exit
Step 18. Transfer local linux files to application server
$ scp *.pll *.plx *.mmb *.mmx *.fmb *.fmx *.rdf *.rep
oracle@192.168.1.213:/home/oracle/appl_directory
Step 19. Convert *.ico to *.gif using IrfanView. eg: C:\dbp\gif\*.gif
Step 20. Create jar file for *.gif
C:\dbp\gif>C:\<Oracle Home>\jdk\bin\jar.exe cvf <new file name>.jar *.gif
Step 21. Use Filezilla to ftp .jar to
oracle@192.168.1.213:/u01/app/oracle/OraHome_1/forms/java/
Step 22. Modify form and report configuration files in application server
$ ssh 192.168.1.213
$ pwd
/home/oracle
$ . envIAS
$ cd $ORACLE_HOME/forms/server
$ vi default.env add appl_directory into forms_path separate by :
$ vi formsweb.cfg create new configuration for appl to be access by user eg:
dbp-hr
$ cd $ORACLE_HOME/bin
$ vi reports.sh add appl_directory into reports_path separate by :
Step 23. Stop and Start Application Server (only if default.env and reports.sh is
modified)
$ opmnctl status check status appl server
$ opmnctl stopall stop appl server
$ opmnctl status check status appl server make sure already down
$ opmnctl startall start appl server
Step 24. Open Notepad with run .exe as Administrator. Open file
C:\windows\system32\drivers\etc\hosts. Add the following command:
192.168.1.213 dbpmid.dbp.gov.my dbpmid
Step 25. check your appl. Using the following url
http:192.168.1.213:7777/forms/frmservlet?config=dbp-hr
Step 26. Test your appl. If your applications return error then repeat step 16 to step
18.