You are on page 1of 5

In this Document Goal Solution SCRIPTS FOR UNIX SCRIPTS FOR WINDOWS Applies to: Oracle Forms !

ersion: "#$#%#&"#$ to ''#' In(ormation in this )ocument applies to an* plat(orm# Forms ''+, '$+R&, '$+ an) "i Goal This )ocument contains sample Uni- an) Win)o.s scripts that can /e use) to /atch compile Forms 0o)ules 1Forms, 2i/raries or 0enus3 an) Reports 0o)ules# Solution

WARNING: The sample scripts in this article are pro4i)e) (or e)ucational purposes onl* an) are NOT supporte) /* Oracle Support Ser4ices# The* ha4e /een teste) internall* an) .or5 as )ocumente)# We can not +uarantee the* .ill .or5 in all possi/le con(i+urations, so /e sure to test thorou+hl* in *our test en4ironment# Please note the (ollo.in+ concernin+ these scripts: a# These scripts re6uire rea) pri4ile+es in the source an) )estination )irectories# The .a* the scripts are .ritten, the source an) )estination )irectories are the same# /# The scripts shoul) /e place) in the same )irector* as the (orms mo)ules 1#(m/, pll, mm/, etc# (iles3 an) reports 1#r)( (iles3 that *ou .ish to +enerate# The +enerate) (iles (or (orms 1#(m-, pl-, mm-, etc# (iles3 an) reports 1#r)(3 (iles .ill /e create) in the same )irector*# c# When creatin+ or cop*in+ the scripts /e sure that no carria+e returns or line (ee)s e-ist in the list o( parameters (or the e-ecuta/les# I( *ou simpl* cut an) paste these scripts (rom this note into a te-t e)itor there is a chance e-tra carria+e returns or line (ee)s .ill /e inserte)# I( this happens, the scripts .ill NOT run# )# When (tpin+ the scripts, /e sure to )o so in ASCII mo)e#

SCRIPTS FOR UNIX Note: These scripts ha4e /een )esi+ne) to run in the 7ourne an) 7ash shells# Note &: I( *ou )on8t .ish to use the X Displa* then *ou can use (rmcmp9/atch#sh, (:$+en, or ("$+en 1)epen)in+ on *our 4ersion3 .hen compilin+ Forms# 0a5e sure T;R0, ORAC2;9T;R0 an) N2S92ANG 4alues are properl* set#

FOR0S < R;PORTS ''G='$+R& >UNIX Forms Compile >compile9(orms#sh (or i in ?ls @#(m/? )o echo Compilin+ Form# Ai #### (rmcmp9/atch#sh useri)Bscott=ti+erC4''+ /atchB*es mo)uleBAi mo)ule9t*peB(orm# compile9allB*es .in)o.9stateBminimiDe )one >UNIX CO0PI2; R;PORTS >compile9rep#sh (or i in ?ls @#r)(? )o echo Compilin+ Report Ai ### r.con4erter#sh useri)Bscott=ti+erC4''+ /atchB*es sourceBAi st*peBr)((ile )t*peBrep(ile 4er.riteB*es compile9allB*es )one FOR0S :#$#E >UNIX Forms Compile >compile9(orms#sh (or i in ?ls @#(m/? )o echo Compilin+ Form# Ai #### (:$+en#sh useri)Bscott=ti+erC4%'F /atchB*es mo)uleBAi mo)ule9t*peB(orm# compile9allB*es .in)o.9stateBminimiDe )one FOR0S < R;PORTS "i Note: Unli5e Forms :#$#E, '$+R& an) ''+, "i )i) not come .ith a #sh script# to set up the en4ironment# There(ore, *ou .ill ha4e to set up *our en4ironment 4aria/les correctl* 1ORAC2;9GO0;, PATG, etc#3 .hen runnin+ this script# The easiest .a* to 4eri(* it .ill .or5 is to attempt to compile a speci(ic (orm# in non /atch mo)e prior to runnin+ the script# For e-ample H ("$+en useri)Bscott=ti+erC4%'F mo)uleBI(orm# nameH mo)ule9t*peB(orm# compile9allB*es >UNIX Forms Compile >compile9(orms#sh (or i in ?ls @#(m/? )o

echo Compilin+ Form# Ai #### ("$+en useri)Bscott=ti+erC4%'F /atchB*es mo)uleBAi mo)ule9t*peB(orm# compile9allB*es .in)o.9stateBminimiDe )one >UNIX CO0PI2; R;PORTS >compile9rep#sh (or i in ?ls @#r)(? )o echo Compilin+ Report Ai ### r.con"$ useri)Bscott=ti+erC4%'F /atchB*es sourceBAi st*peBr)((ile t*peBrep(ile 4er.riteB*es compile9allB*es )one SCRIPTS FOR WINDOWS Note: For .in)o.s, /oth '$+R& an) ''+ ha4e the same name (or the e-ecuta/le (rmcmp#e-e# There(ore, i( *ou ha4e /oth 4ersions on *our s*stem it is imperati4e that *our en4ironment 4aria/les /e set correctl* to ensure *ou are compilin+ the inten)e) 4ersion# See /u+ :$&"'"$# All o( these scripts assume that the correct ORAC2;9GO0; an) PATG to the Forms e-ecuta/les are set up correctl* /e(ore the scripts are run# FOR0S < R;PORTS ''+='$+R& ::compile9(orms#/at cls ;cho compilin+ Forms#### (or JJ( IN 1@#(m/3 )o (rmcmp useri)Bscott=ti+erC4''G mo)uleBJJ( /atchB*es mo)ule9t*peB(orm# compile9allB*es .in)o.9stateBminimiDe ;CGO FINISG;D CO0PI2ING R;0 WINDOWS CO0PI2; R;PORT ::compile9report#/at cls ;cho compilin+ Report ##### (or JJ( IN 1@#r)(3 )o r.con4erter useri)Bscott=ti+erC4''G /atchB*es sourceBJJ( st*peBr)((ile DTKP;BR;PFI2; compile9allB*es !;RWRIT;B*es lo+(ileBlo+#t-t ;CGO FINISG;D CO0PI2ING FOR0S :#$#E R;0 WINDOWS CO0PI2; FOR0S ::compile9(orms#/at cls ;cho compilin+ Forms#### (or JJ( IN 1@#(m/3 )o i(cmp:$ useri)Bscott=ti+erC4%'F mo)uleBJJ( /atchB*es mo)ule9t*peB(orm# compile9allB*es .in)o.9stateBminimiDe ;CGO FINISG;D CO0PI2ING

FOR0S < R;PORTS "i Forms=Reports "i R;0 WINDOWS CO0PI2; FOR0S ::compile9(orms#/at cls ;cho compilin+ Forms#### (or JJ( IN 1@#(m/3 )o i(cmp"$ useri)Bscott=ti+erC4%'F mo)uleBJJ( /atchB*es mo)ule9t*peB(orm compile9allB*es .in)o.9stateBminimiDe ;CGO FINISG;D CO0PI2ING R;0 WINDOWS CO0PI2; R;PORT ::compile9report#/at cls ;cho compilin+ Report ##### (or JJ( IN 1@#r)(3 )o RWCON"$ useri)Bscott=ti+erC4%'F /atchB*es sourceBJJ( st*peBr)((ile DTKP;BR;PFI2; O!;RWRIT;B*es lo+(ileBlo+#t-t ;CGO FINISG;D CO0PI2ING ADDITIONA2 US;S The scripts can /e mo)i(ie) to con4ert li/raries 1#pll (iles3 an) menus 1#mm/ (iles3 to e-ecuta/les #plan) # mm- (iles respecti4el*# Gere are t.o e-amples (or ''+ an) '$+R& on UNIX: 2i/raries >UNIX Forms 2i/rar* Compile >compile9li/#sh (or i in ?ls @#pll? )o echo Compilin+ 2i/raries Ai #### (rmcmp9/atch#sh useri)Bscott=ti+erC4''+ /atchB*es mo)uleBAi mo)ule9t*peB2I7RARK compile9allB*es .in)o.9stateBminimiDe )one 0enus >UNIX Forms 0enu Compile >compile9menu#sh (or i in ?ls @#mm/? )o echo Compilin+ 0enus Ai #### (rmcmp9/atch#sh useri)Bscott=ti+erC4''+ /atchB*es mo)uleBAi mo)ule9t*peB0;NU compile9allB*es .in)o.9stateBminimiDe )one

The scripts can also /e use) to con4ert Forms /et.een /inar* an) te-t# Gere are t.o e-amples: Con4ertin+ a Form# to Te-t >UNIX Forms to Te-t >con4ert9to9te-t#sh (or i in ?ls @#(m/? )o echo Con4ertin+ Ai #### (rmcmp useri)Bscott=ti+erC4''+ /atchB*es mo)uleBAi mo)ule9t*peBFOR0# scriptBK;S .in)o.9stateBminimiDe )one Con4ertin+ a Form# (rom Te-t to 7inar* >UNIX Te-t to 7inar* >con4ert9to9/in#sh (or i in ?ls @#(mt? )o echo Con4ertin+ Ai #### (rmcmp mo)uleBAi useri)Bscott=ti+erC4''+ parseBK;S /atchB*es .in)o.9stateBminimiDe )one

You might also like