Question

Oracle Forms Compile

Asked by: smena

Does anybody know a way of setting up a batch job to compile Oracle Forms.
My idea is to write a scrpot that allows to 1) compile the latest release version from PVCS VM and 2) copy to production built.

thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-05-24 at 13:13:39ID21000522
Tags

oracle

,

forms

,

compile

Topic

Databases Miscellaneous

Participating Experts
2
Points
400
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Oracle under VAX/VMS...compiling with ProC
    Here's the situation.... Oracle 8 was recently installed on our server (I don't know who did the install, and it really doesn't matter...and our DBA is kinda worthless). The problem is that we are not able to compile using ProC. We can access SQLPlus (thats the only thing o...
  2. How to batch compile Oracle reports 6i ? ( in windows …
    How to batch compile Oracle reports 6i ? The following code is for compiling forms .. IF %1=="" GOTO END DEL *.FMX FOR %%F IN (*.FMB) DO START /W Ifcmp60 USERID=%1 BATCH=Y MODULE=%%F :END
  3. Forms Compiling
    I have all forms in Forms 5. I want to go for Forms 6i. Is their any facilty to compile all forms.
  4. Compile All with script (Oracle Forms)
    Hi everyone. I currently have a program that will compile Oracle Forms (6i) from .fmb to .fmx. This script, however needs to be modified to perform a "Compile All" before generating the fmx. Does anyone out there know of a script that can do a "compile all&q...
  5. Oracle package not compiling
    Hi I have a weird problem. One of my packages uses the DBMS_OBFUSCATION_TOOLKIT of oracle. When I try to compile it I get the following error Warning: Package altered with compilation errors. When I do show errors I get No Errors But when I check the user_errors table I ...
  6. PVCS Version Manager
    We just installed PVCS Version Managerin our work shop. Currently we have dedicated network drive for keeping the latest version of our application. PVCS has been installed on different network drive. What would be the best solutions to configue the base line? Just need a f...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: HenkaPosted on 2004-05-24 at 21:38:00ID: 11148766

I hope this note 191529.1 from Metalink will help you.

This script code compiles all the Forms and Reports modules residing in a directory.
Oracle Forms Developer, 6i, 9.0.X
Oracle Reports Developer, 6i, 9.0.X

Platform Independent

Execution Environment:
     Windows command prompt, UNIX shell

Access Privileges:
     Requires write privileges in the destination directory and read privileges in the source directory.

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.

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.

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
    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  OVERWRITE=yes  logfile=log.txt
ECHO FINISHED COMPILING

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  stype=rdffile
    dtype=repfile overwrite=yes
done

Forms/Reports 9.0.X

#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

#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
done

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 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.

 

by: musduPosted on 2004-05-25 at 04:04:54ID: 11150434

Hi,

we use a similar method for compilation.

we have a table named GEN_Object containing form/report/library names.

SQL> desc gen_object;
 Name                            Null?    Type
 ------------------------------- -------- ----
 PROJECTCODE                     NOT NULL VARCHAR2(30)
 OBJECTTYPE                      NOT NULL VARCHAR2(1)       --F/Form, L/Library, R/Report
 OBJECTNAME                      NOT NULL VARCHAR2(40)      -- Name of form without extension
 COMPILENEED                     NOT NULL NUMBER(1)
 PROGRAMMER                      NOT NULL VARCHAR2(6)       -- prefix of e-mail ex. musdu for musdu@kocbank.com.tr
 SEQUENCE                        NOT NULL NUMBER(6)
 BUILDDATABASE                   NOT NULL VARCHAR2(50)      -- connect database for test environment
 SIGNOFFDATABASE                 NOT NULL VARCHAR2(50)      -- connect database for production

Programmers put a tag on formname using CVS (PVCS may have a facility like this) Tags can be BUILD or SIGNOFF. We have a scheduled job on a dedicated pc. It starts automatically and downloads all items tagged BUILD and generates it using builddatabase. Then deletes BUILD tag and create two new tags; TEST and TEST_DDMMYYYYHHMM. So we can use this labels in order to see which version in TEST. Above explanations are valid for SIGNOFF tag. (new tags are LIVE and LIVE_DDMMYYYYHHMM)

if an error occurs during above process, an e-mail is sent to programmer. We coded a forms application for this purpose.

regards.

 

by: smenaPosted on 2004-05-26 at 08:35:16ID: 11162711

Henka and musdu,

are you running compile against workfile directory in PVCS Version Manager?
If that's the case - my understanding that after check in modules become read-only. With read-only I'm getting a compilation errors, since forms can't create an execubles files.

Can you share some information abount the configration management process you have in your work shops,or so to speak the workflow og the development process ?
I will increase pointas for youe answers.
thanks

 

by: HenkaPosted on 2004-05-26 at 23:01:11ID: 11168648

I don't use PVCS.

We use Oracle Designer 6i and our Forms are generated by it. In Designer there is also version control there but we don't use it. We simply create a new folder for archive modules.

We have some archive directories and our archived version (*.fmb) are stored there.

Henka

 

by: musduPosted on 2004-05-26 at 23:05:44ID: 11168662

Hi,

no, after check-out the program, our script (as I said it's a forms application also) copies it to a different working folder (folder structure is the same with production)

Our folder structure like that;

app
      app/form          .fmb, .pll, rep, .mmb files
      app/runtime      .fmx, .plx, rdf, .mmx files
      app/error           compilation outputs, I mean err files

we move checked-out forms to the form folder and compile them. If you want to compile it in PVCS working directory you can change their read-only properties using ms-dos attrib command. But I think moving them into another folder is better than this.

regards.

 

by: smenaPosted on 2004-05-28 at 11:06:59ID: 11182778

musdu,

thanks for your prompt response.

Let me try to sum what my undersdanding of the workflow is:

1. you have production directory where you store your source and executable files on separate machine
      app/form          .fmb, .pll, rep, .mmb files
      app/runtime      .fmx, .plx, rdf, .mmx files
      app/error           compilation outputs, I mean err files
let's call it drive p:

2. you have source control working directory where  the above directory structure is replicated
      app/form          .fmb, .pll, rep, .mmb files
      app/runtime      .fmx, .plx, rdf, .mmx files
      app/error           compilation outputs, I mean err files
let's call it drive s:

3. you have your own development environment  let's call it drive w: and u running batch compilation agains all forms

4. you check out file and run the script that copies files from working directory to a "different working folder"

(script copies all files from s: to w:)

5. you and other programmers  complete development and
a. copy files (source and executbles) back to work file directory
(from w: to s:)
b. check in files into the PVCS Source Manager
c. label for QA testing
d. repeating check outs/check ins until production ready

6. after QA and intergration test are completed - you run batch compilation
7 copy files to
- production directory from w: to p:
- source directory from w: to s: and do final checkin into the PVCS


Sorry if my response is misleading....
or can you put is words the workflow you are currently using.
   

 

by: musduPosted on 2004-05-29 at 04:58:59ID: 11186699

Hi,

it's correct but let me explain detailly;

-we do not use PVCS. We use CVS.
-Our project tree in cvs and  production directory structure are different;

There are several different projects developed in forms. So to arrange accesses to different projects (different forms) we have a lot of project codes in cvs like below;

cvs
       tfs (teller financial services project)
           form   --.fmb, .pll, rep, .mmb files
           ico       -- .ico files
           doc      -- documents about projects
           utility    -- some third party executables


       crd(consumer loans project)
           form   --.fmb, .pll, rep, .mmb files
           ico       -- .ico files
           doc      -- documents about projects
           utility    -- some third party executables

       dlc (documantary collections project)
           form   --.fmb, .pll, rep, .mmb files
           ico       -- .ico files
           doc      -- documents about projects
           utility    -- some third party executables

etc.

we have 2 different folder on our generation pc. (all forms are in the same directory regardless of the project)

test
    app
         ico
         form
          runtime
          error

live
    app
         ico
         form
          runtime
          error

our client  dir structure is below; (they do not need form and error folder)

    app
         ico
          runtime

during BUILD we check-out necessary files to  test folder (in form or ico folder) then compile it in test\runtime (if there's an error, an error file will be placed in error folder)  After a successfull compilation we distribute runtime and ico folder contents to our test clients. All I told is valid for sign-off (production).

regards.



20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...