Home » Fusion Middleware & Colab Suite » Weblogic & Application Server » how to compile .fmb file in HP-UNIX Environment
how to compile .fmb file in HP-UNIX Environment [message #112515] Sat, 26 March 2005 08:10 Go to next message
yang_yingfeng
Messages: 9
Registered: March 2005
Junior Member
i create a form application in Windows2000 or WindowsXP environment, then i compile this .fmb file to .fmx, then i transport this .fmx file to Unix environment which is our Application Server, the Oracle Application Server is in this Unix environment, i put this file in the directory which is directed in the Forms_Path variable, however, when i started to run this application by entering a valid url, the message shows that this fmx file is not runtime file, someone told me that i should recompile the orginal file under unix environment, so i transport the orginal file(.fmb) to unix environment, then i want to use the f90genm tool to compile the .fmb file, however, it shows that this command can not execute, it shows that can not open a lib file under:/project/.../../..,however, this directory does not exist at all, what case this error? i also use f90gen command, it shows: can not execute/finish creation, i want to know, how to use the two commands and what parameters i should set before using the commands? thanks
Re: how to compile .fmb file in HP-UNIX Environment [message #153975 is a reply to message #112515] Thu, 05 January 2006 03:46 Go to previous messageGo to next message
zeshanali76
Messages: 180
Registered: January 2006
Location: Pakistan
Senior Member

create a script in the directory where u put fmbs.

first of all set environment path for f90genm

Script is

for i in `ls *.fmb` (There commas are on ~ key besides 1)

do
echo Compiling form $i...
f90genm userid=<username>/<password>@Database_alias Module=$i Module_Type=Form Compile_all=yes Windows_State=Minimize
done

(here is a care that f90genm command is just one line upto Windows_State=Minimize.

This Script will compile all files that have "fmb" extension.

If U have to Compile one form then

f90genm userid=<user>/<pass>@Alias Module=form.fmb Module_type=Form

for Library
Module_type=Library

for Menu
Module_type=Menu

Zeeshan Ali Awan
zesh76@msn.com
Re: how to compile .fmb file in HP-UNIX Environment [message #311890 is a reply to message #153975] Mon, 07 April 2008 05:07 Go to previous messageGo to next message
gpolelo
Messages: 6
Registered: April 2008
Location: Botswana
Junior Member

I am also trying to compile 9i FMB's, RDF's, PLL's but on SUSE and I get this error. syntax error: `do^M' unexpected.

This is how my script looks like:

#UNIX Forms Compile
#compile_forms.sh
for i in `ls *.fmb`
do
echo Compiling Form $i ....
frmcmp.sh Module=$i Userid=$1/$2@$3 Batch=YES Module_Type=FORM
Compile_All=YES Window_State=Minimize
done

#( For 10gR1 = forms 9.0.4.x, you can use f90gen also)
#( For 10gR2 = forms 10.x, you can use frmcmp.sh or frmcmp_batch.sh)

I don't know what the problem could be because the script looks fine to me. Please help.
Re: how to compile .fmb file in HP-UNIX Environment [message #311950 is a reply to message #112515] Mon, 07 April 2008 08:45 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
This is just a guess.
What the script initially created on a Windoze system?
If so the "^M" does not surprise me.
Re: how to compile .fmb file in HP-UNIX Environment [message #311960 is a reply to message #311950] Mon, 07 April 2008 09:08 Go to previous messageGo to next message
gpolelo
Messages: 6
Registered: April 2008
Location: Botswana
Junior Member

Yes I created the script on windows system and then FTPed it to my linux machine.
Re: how to compile .fmb file in HP-UNIX Environment [message #311963 is a reply to message #112515] Mon, 07 April 2008 09:19 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>then FTPed it to my linux machine.
In BINARY mode which causes the problem.
use ASCII mode instead or just use vi on HP to remove errant "^M"s
Re: how to compile .fmb file in HP-UNIX Environment [message #311986 is a reply to message #311963] Mon, 07 April 2008 11:10 Go to previous messageGo to next message
gpolelo
Messages: 6
Registered: April 2008
Location: Botswana
Junior Member

thanks buddy, you are a guru.Suprisingly i couldnt see tht ^M thing when i VI-ed the .sh script. But anyway i can compile the forms. Laughing
Re: how to compile .fmb file in HP-UNIX Environment [message #311989 is a reply to message #112515] Mon, 07 April 2008 11:37 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
The "^M" would have been visible if you did

od -c compile_forms.sh | more
Re: how to compile .fmb file in SUSE-UNIX Environment [message #312260 is a reply to message #311989] Tue, 08 April 2008 05:37 Go to previous messageGo to next message
gpolelo
Messages: 6
Registered: April 2008
Location: Botswana
Junior Member

I managed to compile PLL but when i try to compile FMB on a 64-bit machine i get this error:

...../bin/frmcmp.sh: line 63: 19210 Segmentation fault

But the script works fine on a 32 bit machine. Is this space issue or what?

Thanks in advance
Oracle Newbie
Re: how to compile .fmb file in HP-UNIX Environment [message #312309 is a reply to message #112515] Tue, 08 April 2008 08:59 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member

>Is this space issue or what?
Yes

>...../bin/frmcmp.sh: line 63: 19210 Segmentation fault
OK, so what EXACTLY is line #63 in ...../bin/frmcmp.sh ?

Re: how to compile .fmb file in HP-UNIX Environment [message #312313 is a reply to message #312309] Tue, 08 April 2008 09:20 Go to previous messageGo to next message
gpolelo
Messages: 6
Registered: April 2008
Location: Botswana
Junior Member

This is what is on line 63 "$ORACLE_HOME/bin/frmcmp $*" and this is the last line in the file.
The problem also occur when i compile RDF,MMB,PLLs too.
Re: how to compile .fmb file in HP-UNIX Environment [message #312327 is a reply to message #112515] Tue, 08 April 2008 10:16 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
9iAS was the most buggy piece of software that I ever had the misfortune to deal with.
I suspect you are hitting a bug; compounded by the fact that you are likely running 32-bit software on a 64-bit hardware.
IMO, your only recourse is to open a Service Request with Oracle & spend months convincing them their software is flawed.

Sorry!

[Updated on: Tue, 08 April 2008 10:16] by Moderator

Report message to a moderator

Previous Topic: SWF files on OAS 10g
Next Topic: FRM-92050 failed to connect
Goto Forum:
  


Current Time: Mon Dec 23 12:39:55 CST 2024