Need to batch compile 6i forms in 9i

I have a batch program that will compile libraries, menus & forms but I need to have it also report programs that would not compile and I need to have the output in 1 file. We have over 500 forms so I do not want to be opening every .err file that gets created. This is on windows 2000 so the following is what I have in a batch file called compile.bat:
@echo off
if "%1" == "" goto ERROR
REM WINDOWS COMPILE LIBRARIES
cls
echo compiling Libraries.....
for /R %%F in (*.pll) do call ifcmp90 userid=%1 batch=yes module=%%F module_type=library window_state=minimize
echo Finished compiling Libraries!
REM WINDOWS COMPILE MENUS
echo compiling Menus.....
for /R %%F in (*.mmb) do call ifcmp90 userid=%1 batch=yes module=%%F module_type=menu window_state=minimize
echo Finished compiling Menus!
REM WINDOWS COMPILE FORMS
echo compiling Forms.....
for /R %%F in (*.fmb) do call ifcmp90 userid=%1 batch=yes module=%%F module_type=form window_state=minimize
echo Finished compiling Forms!
goto EXIT
:ERROR
echo Userid/password MUST be supplied!
pause
:EXIT
Can someone help me please? I've been going crazy! Thanks in advance.

Check all the properties of :ctl.descr item. It should be varchar2.

Similar Messages

  • Shell script for batch compilation of forms 10g on AIX 5.3L AS

    Hi All,
    Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
    Regards,
    SAM

    Hi Alex,
    I tried with the below script as well as the one you had posted.
    ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin
    export TNS_ADMIN
    LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
    ssic:$LIBPATH
    export LIBPATH
    cd ../forms
    for i in `ls *.pll`
    do
    echo Compiling Library $i ....
    $ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
    batch=yes module_type=library
    compile_all=yes window_state=minimize
    done
    export ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_TERM=vt220
    export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
    ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
    cd ../forms
    for i in `ls *.pll`
    do
    echo "Compiling Library $i ...."
    /opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
    module=$i batch=yes compile_all=no
    window_state=minimize upgrade=no
    done
    echo "PLL Compilation done"
    But there was a same kind of error thst turning up all the time.
    Compiling Library Agf.pll ....
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-10043: Cannot open file.
    Form not created
    I hence updated the permissions on the pll as below
    -rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
    But the problem is still persisting.
    My environment details are as below.
    I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
    Is there any thing more that I need to do? If so then let me know.
    Regards,
    SAM

  • Forms 11g Batch Compilation Script

    Hi,
    I have seen few threads in this forum on the topic "Batch Compilation of Forms"
    For instance batch file to convert fmb to fmx
    But i could not find a way to do the batch compilation in Forms 11g?
    How do I batch compile my Forms in 11g?
    Thanks,
    Ram

    Nothing has changed from the old versions to version 11. Compilation is done the same way as it always has in the past. The only difference (depending on which version you start from) is the the name and location of the compiler executible. The new file name is frmcmp (.exe if you are using Windows and .sh for Unix). All old example scripts should work in the new version as long as you make this change.

  • How to batch compile Oracle Reports ?(just like the code for compiling forms)

    The following is for Batch compiling forms..
    IF %1=="" GOTO END
    DEL *.FMX
    FOR %%F IN (*.FMB) DO START /W Ifcmp60 USERID=%1 BATCH=Y MODULE=%
    %F
    :END
    Any idea for compiling all reports using a technique just like
    this..

    User dbms_ldap package in the database to use PL SQL to create your database
    account and then an OID account with a RAD to match the database login. If you
    You may have to load the DBMS_Ldap package from the database ADMIN directory first to be available in the database.
    LDAP SQL Ex.
    user_username := LOWER(new_user) || '@domain.com'; -
    retval := dbms_ldap.search_s(my_session, ldap_base,
    dbms_ldap.scope_subtree, 'uid=' || user_username, my_attrs, 0,
    my_message);
    retval := dbms_ldap.count_entries(my_session, my_message);
    my_entry := dbms_ldap.first_entry(my_session,my_message);
    my_dn := dbms_ldap.get_dn(my_session,my_entry);
    dbpassword := 'PASSWD01';
    isvalidrad := forms_rad.newraddefinition(radname,new_user,dbpassword,
    dbtnsnames,errormessage);
    sessionestablished := forms_rad.createoidsession(ldap_user, ldap_passwd,
    ldap_host, ldap_port, ldap_base);
    radcreated := forms_rad.createradforcn(my_dn, 'false', errormessage);
    -- Create new user's database account same as RAD account.
    v_sql := 'CREATE USER "' || new_user || '" IDENTIFIED BY ' || dbpassword ||
    ' DEFAULT TABLESPACE JLIM TEMPORARY TABLESPACE TEMP';
    EXECUTE IMMEDIATE v_sql;
    v_sql := 'GRANT CONNECT TO ' || new_user;
    EXECUTE IMMEDIATE v_sql;

  • Compile multiple forms or reports

    I have almost 100 forms and 100 reports developed in 6i. Now I need to compile these in 10g. How can I compile several forms or reports by a single command in 10g. Please help me.

    Hello,
    Here is a batch file example:
    @ECHO OFF
    cls
    Echo libraries compilation....
    for %%f IN (*.pll) do frmcmp userid=%1 module=%%f batch=yes module_type=library compile_all=yes window_state=minimize
    ECHO libraries compilation finished ---
    Echo menus compilation....
    for %%f IN (*.mmb) do frmcmp userid=%1 module=%%f batch=yes module_type=menu compile_all=yes window_state=minimize
    ECHO menus compilation finished ---
    Echo forms compilation....
    for %%f IN (*.fmb) do frmcmp userid=%1 module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    ECHO forms compilation finished ---Francois

  • How to compile all forms in a directoy at time?

    Hi friends, thank for your replies for the previous questions.
    Now
    How to compile all form modules located in a directory
    at a time? usually what I know is opening form one by one
    and compile it. But I want to compile all forms and create
    executable files at a time.
    Is project Builder helpfule to achive this??
    thanks
    madhu

    Yes, his file is useful -- it should run on Windows XP. You need to copy the above text into a file using a standard text editor, something like Notepad. To run it, you open a Cmd.exe DOS window on your pc, change directory (CD) to the folder where your forms are, and enter the command script file name.
    Here are several more links to other topics in this forum asking how to do the same thing:
    Re: How To Compile 370 forms ?
    Re: Creating Oracle 10g Forms and Reports Builds

  • How to compile a Form in Unix

    Dear all
    I am using forms 10G.
    I have a form and I want to compile it in Unix .
    Can you please tell me the solution step by step .
    I was reading the old blogs here ,and tried the same but did not get the solution .
    Please help me .

    for %%f IN (*.fmb) do frmcmp.sh userid=userid/password@DB1 module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    Is this comand will work ?On Windows yes, on Unix no, that's the Windows syntax.
    How can I give the fmb name instread of "compile_all=yes " ?"compile_all=yes" doesn't mean compile all forms, but compile all Pl/Sql code within the form. On Linux I use something like the following :. $HOME/.bash_profile
    export Filename=$1
    if [ "$Filename" ]
    then
      Filename=`echo $Filename | cut -f1 -d"."`
    else
      Filename=*
    fi
    for FRM in $Filename.fmb
    do
            echo $FRM
            $ORACLE_HOME/bin/frmcmp.sh $FRM username/password@DB module_type=form 1>$FRM.log 2>&1
    doneIf you execute the script with a form name as argument, only that form will be compiled, otherwise all forms within the directory will be compiled.

  • How to compile a form built in forms 10g on windows platform?

    Hi All,
    I have built a 10g form on my local desktop on windows 7 and compiled/deployed it in apps on linux server.
    I need to deploy the same form fmb on oracle apps hosted on windows platform. Please let me know if fmb works fine or not. And also provide how to compile form in windows platform..like frmcmp_batch command
    Thanks,
    Veena

    The fmb, mmb, and pll files are portable to any platform where Forms can be installed. Every installation that supports running Forms comes with the necessary components to generate the executible files (fmx, mmx, plx). On your Windows machine, if you have the Builder installed, you can generate an FMX using the Builder. If not, you can directly use the compiler. The compiler has a gui option and a command line option. If you do not pass any arguments into the executible (frmcmp.exe) the GUI will start. Alternatively you can generate from the command line (DOS). You may need to set PATH, ORACLE_HOME, TNS_ADMIN, and possibily some others in the DOS shell in order for it to work.
    If you have access to MyOracleSupport, refer to the following note:
    <blockquote>Moving Forms Applications From One Platform Or Machine To Another (Doc ID 299938.1)</blockquote>
    Example:
    <blockquote>frmcmp.exe module=myForm module_type=form userid=scott/tiger@orcl compile_all=yes</blockquote>
    More options are discussed in the Builder Online help and the compiler help.

  • Compile all forms 6i in Unix

    i am able to compile one form at a time but how do I compile all forms, for some reason I created a new form, ftp it, then compiled it , it runs in Oracle Apps environment however all other forms are inactive, I believe I have to recompile all forms (am i right?) but I dont know how to do this , here is the code I have to compile one form
    $ ls -l /u01/app/appl/au/11.5.0/forms/US/BGQTRAIN.fmb
    $cp /u01/app/appl/au/11.5.0/forms/US/BGQTRAIN.fmb /u01/app/appl/au/11.5.0/forms/US/BGQTRAIN.fmb_070415
    $ ls -l /u01/app/appl/xxbsi/11.5.0/forms/US/BGQTRAIN.fmx
    $ cp /u01/app/appl/xxbsi/11.5.0/forms/US/BGQTRAIN.fmx /u01/app/appl/xxbsi/11.5.0/forms/US/BGQTRAIN.fmx_070415
    $ put the form source onto this host in the following directory
    $ cd /u01/app/appl/au/11.5.0/forms/US
    $ $ORACLE_HOME/bin/f60gen module=/u01/app/appl/au/11.5.0/forms/US/BGQTRAIN.fmb userid=apps/dbaapps output_file=/u01/app/appl/xxbsi/11.5.0/forms/US/BGQTRAIN.fmx module_type=form batch=yes compile_all=special
    $ more BGQTRAIN.err
    <no errors found>

    Try out
    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

  • How to compile many forms in a HP-UX

    Hi,
    to compile a form i use
    f60gen module userid
    but this work for one form at a time
    i would like to generate for all form in a script

    Yes, his file is useful -- it should run on Windows XP. You need to copy the above text into a file using a standard text editor, something like Notepad. To run it, you open a Cmd.exe DOS window on your pc, change directory (CD) to the folder where your forms are, and enter the command script file name.
    Here are several more links to other topics in this forum asking how to do the same thing:
    Re: How To Compile 370 forms ?
    Re: Creating Oracle 10g Forms and Reports Builds

  • Batch Compilation Problem(Migration)

    Hiiiiiiiiiii Gurus..
    I am on Migration Project...... and for batch compilation of Reports do any one give me the Script.. Because whatever I have is not working.
    I have no errors but also I can't get the error file,log file,output file.
    (Migration is from 5 to 10g)
    Can any one help me.........
    Regards Madhav

    Here is what I use on windows (file is called genforms.bat):
    echo "Generating PLSQL libraries"
    echo "Generating abc10.pll"
    ifcmp90.exe module=abc10.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating abc20.pll"
    ifcmp90.exe module=abc20.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating abc30.pll"
    ifcmp90.exe module=abc30.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating menus"
    echo "Generating abc10.mmb"
    ifcmp90.exe module=abc10.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating abc20.mmb"
    ifcmp90.exe module=abc20.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating abc30.mmb"
    ifcmp90.exe module=abc30.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating forms"
    echo "Generating abc101.fmb"
    ifcmp90.exe module=abc101.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=y
    echo "Generating abc102.fmb"
    ifcmp90.exe module=abc102.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=y
    echo "Generating abc103.fmb"
    ifcmp90.exe module=abc103.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=yUsage is:
    C:\dev><b>genforms.bat > genforms.log</b>For unix you will have to use (file is called genforms.sh):
    echo "Generating PLSQL libraries"
    echo "Generating abc10.pll"
    ifcmp90 module=abc10.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating abc20.pll"
    ifcmp90 module=abc20.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating abc30.pll"
    ifcmp90 module=abc30.pll userid=hr/hr@db module_type=library logon=y batch=n build=y compile_all=y
    echo "Generating menus"
    echo "Generating abc10.mmb"
    ifcmp90 module=abc10.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating abc20.mmb"
    ifcmp90 module=abc20.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating abc30.mmb"
    ifcmp90 module=abc30.mmb userid=hr/hr@db module_type=menu logon=y batch=n build=y compile_all=y
    echo "Generating forms"
    echo "Generating abc101.fmb"
    ifcmp90 module=abc101.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=y
    echo "Generating abc102.fmb"
    ifcmp90 module=abc102.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=y
    echo "Generating abc103.fmb"
    ifcmp90 module=abc103.fmb userid=hr/hr@db module_type=form logon=y batch=n build=y compile_all=yUsage is:
    server:/u1/app/oracle% <b>genforms.sh >> genforms.log</b>Not sure what version you are migrating from, I don't think version 5 of reports exists.

  • Excute Batch command in FORM

    How can I call external batch command in FORM?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kanekan ([email protected]):
    How can I call external batch command in FORM?<HR></BLOCKQUOTE>
    G'Day,
    Okay, you don't say if you need to do this in the Unix environment or Windows. I guess you mention 'batch' so it must be Windows. Try using the API (DDE.App_Begin(...)) function.
    HTH
    Regards,
    Ivor
    null

  • Do object libraries need to be compiled?

    Hi,
    I've created an object library. I then drag the object from the library to 20 different forms using the subclass option, regenerate them and then try to run the application using any of these 20 forms. I then made a mod to the object library, updated it and moved it back to our solaris server. Now, my 20 forms don't recognize the change that I made in the object library. My question is do I have to "compile" the object library in order for the application to "see" the changes I made? It's my understanding that an Object library is read in at runtime, but wouldn't it need an executable version of the object library. If I do need to compile it, how do I do it?
    Thanks
    --Joey                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    object libraries don't need to be compiled. It seems that you broke the inhertitance between the items and the object library. Try and go to one of the itemens and check if this items still shows to be subclassed. Redo the inheritance and see if this works.
    Frank

  • I need available batch quantities

    Hi,
    I need help to compose this query below:
    When there is a goods receipt (PO) the system should send a message to user about the items ready to release to fulfill open quantities. The problem comes from batch numbers as we use them at every item. I need available batch quantities that may cover open quantities of an order (pick & pack manager).
    Thanks for any help.

    Hi, I did the query with the tables you suggested to compile the list of buyers' orders that contain material not currently on stock. This is unfortunately unacceptably slow. Do you have any idea how to speed up this query a bit? 40 lines are checked in 43 seconds.
    Thanks
    USE [u2026]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE FUNCTION [dbo].[functionName] (@PDocNum int, @PItemCode as nvarchar(20))
    RETURNS varchar(50)
    AS
    BEGIN
         DECLARE @ResultVar  varchar(50)
         select top 1 @ResultVar =  BaseNum from IBT1 where ItemCode=@PItemCode and BaseNum =@PDocNum  and basetype = 17
         RETURN @ResultVar
    END
    select top 20 t1.DocNum, t0.ItemCode
    from RDR1 t0 left join ORDR t1 on t0.DocEntry = t1.DocEntry
    where  t0.LineStatus ='O' and dbo.functionName(t1.DocNum, t0.ItemCode) is null
    select top 20 t1.DocNum, t0.ItemCode
    from RDR1 t0 left join ORDR t1 on t0.DocEntry = t1.DocEntry
    where  t0.LineStatus ='O' and dbo.functionName(t1.DocNum, t0.ItemCode) is null

  • Error ORA-00600 internal error code during compilation of forms 6i

    Hi Dears:
    I have recently migrated my Oracle 9i database to Oracle 10g(10.2.0.2). Now when I recompile any of my 6i forms, the error occurs as below:
    ORA-00600 internal error code, arguments: [17069], [60658452], [ ], [ ], [ ], [ ], [ ],
    NOTE:
    1. queries run fine in SQL Plus.
    2. Already compiled forms (fmx) run fine.
    Please help me to resolve the problem.
    Inayatqazi

    Hi
    u should specify what u were trying to do while getting this object.
    u need to install the latest Forms 6i path 17 to fit for the new db 10g.
    if u have access to MetaLink there u can down load it easily...
    if u have a db link then i suggest creating a view or public synonym and give the user all the privilages require on the new db connected to form 6i while connecting or accessing to previous user with old db.
    Hope this help
    Regards,
    Amatu Allah.

Maybe you are looking for