Oracle Form - use in batch mode

How could I launch a procedure triggered by a form in batch mode, without the need of interactive operations.
I should be able to pass all the parameters that can be set in interactive mode
Is there any standard way to do that?
Nicola

One of our customer have a huge amount of forms, and they want to automate them using a job scheduling solution, but they don't want to rewrite all the code of forms
The problem is that it seems impossible to launch them using any kind of command mode / non interactively
Thanks

Similar Messages

  • Forms 6i in Batch Mode - I need help..

    Hello ALL.
    Before I proceed migrating our 4.5 to 6i, I would like to know
    how to run forms/reports 6i in batch mode. I have RDBMS 8.1.6.
    running on HP-UX 11.0 and the plan is to deploy the
    forms/reports6i to browser or intranet via the OAS9i/NT Server -
    already installed. Currently, 60% of our applications are in
    batch mode and 70% of our reports are in character mode and I
    use a script to run them. Batch job example:
    echo 'Job Myjob"
    sqlplus -s @cretables
    f45run myform term=vt220
    r25run myreport paramform=NO batch=yes desttype=file
    desname=myrep.lis indate=10222001
    np -qhp2564 *lis <--- HP Line Printer
    How do I run the above batch job using the OAS9i/NT Server?
    Whar are my options? Can somebody show in me in detail/script
    how to run the "example" batch job with forms 6i and reports
    6i. Also, I need a detail instruction/script how to print the
    reports in character mode using a local printer such line
    printer.
    My enourmous thank you to all of you.
    Myrna Diaz
    [email protected]

    There is no other way.
    Sorry

  • Search option using a new small window in oracle forms using pl/sql

    Hai Friend,
    Iam Navya Jeevan,regarding Oracle Forms and Reports Doubts.
    Our project is developed using Forms and Reports
    In Forms for triggers we are using Pl/SQl language.
    DOUBT
    IN a form we require an option like search button when we press the search button a small window must be opened.This window should contain details from database(ie an entire column of database,must be displayed in the window ) and the user selects the value from the window.
    If u got any sample code related to this subject please mail to me.
    ....................................VERY URGENT............................................................................
    thankyou,

    Hello,
    The LOV is made for this.
    Francois

  • Access Flat Files From Oracle Forms Using Simba

    Hi,
    I need to access Flat Files using Simba and display the data using Oracle Forms on Solaris. The Flat Files, Simba and Oracle Forms is on Solaris.
    Thanks.
    Sanjay R Naidu.

    Hi,
    not knowing the flat file's format and why you need SIMBA for it, Forms provides a text_io package that can read from files. You need to parse the file's content and then bring this to a datablock.
    Frank

  • Problem Querying Oracle Forms Using a Date Field and a Format Mask

    Hello,
    We are experiencing a problem with Oracle Forms that I was wondering if you can help me with.
    We have several Forms that have single database blocks assigned to Oracle tables. The Forms are queryable and one of the fields we’re querying on is assigned to a field on the base table which is Not Null and has a Type of DATE. We are storing date/time information in this field on the database table. The item on the form is set up as a Date field with a Maximum Length of 7, a Format Mask ‘MMDDYY’ and having a Query Length of 10.
    We’ve seen a discrepancy in how these fields are used to query the base table block. On some user’s computers they are able to enter a 6 digit date followed by the % sign (e.g. ‘091808%’) and they get the expected results. Other users get ‘FRM-40301: Query caused no records to be retrieved. Re-enter’. Do you know why we are experiencing this difference?
    - The Oracle Database version we are running is Release 10.1.0.5.0.
    - The Forms Developer version that we’re experiencing the problem with is 4.5.10.15.2
    Thanks,
    Kris

    There is no obvious reason that I can see.
    Version 4.5 is very old so you might have problems calling Oracle Support. If you can reproduce the same problem o0n 10.1.2 you should call have them analyze the problem.

  • Executing oracle form using .BAT file

    I have written one batch file to run oracle form
    FILE START.BAT :
    ifrun60 D:\DEPLOY\USER_INPUT.fmx scott/tiger@HOSTDB
    when I give command on DOS prompt.
    D:\deploy>start and press ENTER
    it doesn't work. Would you please suggest any solution to this?
    Thanks in advance.
    Shailesh

    hi dear
    user this code ur batch file
    @echo off
    :: COMPILE_FRM.BAT
    cls
    ECHO Compiling forms
    FOR %%f IN (*.fmb) DO ifcmp60 userid=scott/tiger@db module=%%f
    ECHO Finished compiling
    M Rizwan

  • Call Oracle forms using web application

    Hi,
    I am newbie for configuring oracle forms with web application.
    what are all the steps needs to be done for calling oracle forms 6i from web application.
    Thanks
    Raj

    In which case I would suggest you go to 10g or 11g of Forms since 6 is no longer supported.
    then check out
    http://www.oracle.com/technology/documentation/forms/index.html
    http://download.oracle.com/docs/cd/B25016_04/doc/dl/web/B14032_03/B14032_03.pdf
    http://otn.oracle.com/formsupgrade
    Its all documented here
    Regards
    Grant

  • Oracle Forms using call_forms

    I am modifying a form to add call_forms. While running the form in query, it displays an error for calling a form. If I commit the form before calling the
    new form, it works ok. Any idea how to call the form without committing.
    Thanks

    Hello,
    What you mean by running form in query ? As far as i am getting you is that you are opening your form in enter query mode and from there you are trying to call a another form.
    If this is the case then you are lacking in concepts. You can never move out of block in the enter query mode. For performing any other operations besides making query, you have to come out of the query mode.
    You can coem out out of query mode by pressing button with proper code of pressing "X" on the corner of forms window.
    In your case i asume that you are coming out of enter quey mode by pressing the commit button. But this should be displaying message "NO CHANGES TO SAVE". So, by this way you come out of enter query mode and hence able to call a new form.
    For solving this problem first come out of enter query mode and then call other form.

  • Running Oracle Forms as a Batch Process

    HI All,
    I want to create a form and run that form a batch report...how can i do it???
    As in report we were doing it using the command rwrun

    Hi,
    Forms doesn't run as a batch job and always requires a user interface to be open up.
    Frank

  • How do I call a SAP RFC from an Oracle Form using webutils CLIENT_OLE2?

    Hi guys,
    Your help on this problem would be greatly appreciated.
    We have an older forms 6i application which we are currently updating to 10g (which is a pain itself... but that's a different story.) which currently uses unssupported c++ routines to connect to the SAP system, we want to do away with this c++.
    What I have so far is the following test code:
    PROCEDURE cmd_summary
    IS
    o_sap_log client_ole2.obj_type;
    o_sap_conn client_ole2.obj_type;
    o_sap_rfcc client_ole2.obj_type;
    -- o_sap_rfcx client_ole2.obj_type;
    -- o_sap_rfc client_ole2.obj_type;
    v_args ole2.list_type;
    v_logon BOOLEAN := FALSE;
    BEGIN
    :block3.txt_result := 'TEST Started!';
    --create logon control object
    o_sap_log := client_ole2.create_obj ('SAP.logoncontrol.1');
    --create the function object
    o_sap_rfcc := client_ole2.create_obj ('SAP.Functions');
    --create a new connection object
    o_sap_conn := client_ole2.invoke_obj (o_sap_log, 'NewConnection');
    --set the connection properties
    client_ole2.set_property (o_sap_conn, 'System', caps$get_sys_param ('SAP_DST'));
    client_ole2.set_property (o_sap_conn, 'MessageServer', caps$get_sys_param ('SAP_HST'));
    client_ole2.set_property (o_sap_conn, 'GroupName', 'DEVELOP');
    client_ole2.set_property (o_sap_conn, 'client', caps$get_sys_param ('SAP_CLT'));
    client_ole2.set_property (o_sap_conn, 'SystemNumber', caps$get_sys_param ('SAP_SYN'));
    client_ole2.set_property (o_sap_conn, 'User', caps$get_sys_param ('SAP_USR'));
    client_ole2.set_property (o_sap_conn, 'Password', caps$get_sys_param ('SAP_PWD'));
    client_ole2.set_property (o_sap_conn, 'language', caps$get_sys_param ('SAP_LNG'));
    --set up the logon arguements
    v_args := client_ole2.create_arglist;
    client_ole2.add_arg (v_args, 1);
    client_ole2.add_arg (v_args, TRUE);
    --run the logon function
    v_logon := client_ole2.get_bool_property (o_sap_conn, 'logon', v_args);
    client_ole2.destroy_arglist (v_args);
    IF v_logon
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Worked!!';
    ELSE
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Failed!!';
    END IF;
    :block3.txt_result := :block3.txt_result || CHR (10) || 'TEST Ended!';
    EXCEPTION
    WHEN OTHERS
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || SQLERRM (SQLCODE);
    END cmd_summary;
    NOTE: the get_sys_param functionis returning text from a table.
    This seems to work okay, the logon command returning a TRUE. All good so far.
    However, when I try to then use this connection for anything then I stumble and fall!
    I've seen an example in VB where the SAP RFC object is "assigned" the connection object by simply stating:
    Set oSAPrfc.Connection = oSAPconn
    Where oSAPconn is setup in a similar way to my o_Sap_conn in the above example.
    I have tried using the CLIENT_OLE2.SET_PROPERTY procedures but I don't think that's quite right.
    I've tried using invoke, to try and "run" the method like:
    v_args := CLIENT_OLE2.CREATE_ARGLIST;
    client_ole2.add_arg_obj(v_args,o_sap_conn);
    client_ole2.invoke(o_sap_rfcc,'Connection',v_args);
    client_ole2.destroy_arglist(v_args);
    but it fails.
    I have also tried using the actual Connection function directly:
    SAP_ISAPFUNCTIONS.connection(o_sap_rfcc, o_sap_conn);
    But that just causes the Forms Server to crash... :?
    Has anyone connected to SAP via Forms? I noticed one post on this forum which an example of some code using a SAPBAPI control but not WEBUTIL (Which I think I'd need to use because we are running 10g)
    As a side note we are also looking into SAP Adapter as a possible "other" route but this too is getting very complicated... And I can't see a way of connecting a form to the Adpater anyway :(
    Any advice would be very much appreciated.

    Can anyone help?
    Mike

  • Check for Oracle Service using a batch

    Hi,
    I am using Oracle XE 10g as the database for my project.
    I have a custom service to be started only if Oracle service is up and running. Currently i am checking for the service as below:
    +:WHILELOOP+
    net start | find /i "oracleservicexe" >nul
    IF not "%ERRORLEVEL%"=="0" GOTO :WHILELOOP
    SLEEP 60
    start javaw -Xmx1024 com.startup.StartServer
    But when i use the above script, the java command for StartServer is called as soon as the service is started; but in reality the Oracle service takes around 30-50 secs to go in to RUNNING state and because of that i get an error when starting my server. "*ORA-01033: ORACLE initialization or shutdown in progress.*" Hence i added that SLEEP 60, to avoid the error, but at times it takes a bit longer than 60 secs then i get the error.
    Can anybody suggest me a better way apply the required check which will not depend on having a wait period and will actually check if Oracle service is actually RUNNING.
    Regards,
    Rahul

    Hello rahul,
    One possible solution to what you are trying to do is to use the Windows command sc like this:
    sc query winmgmt
    SERVICE_NAME: winmgmt
            TYPE               : 20  WIN32_SHARE_PROCESS
            STATE              : 4  RUNNING
                                    (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0in the above example, I queried the status of the service winmgmt. If you piped the output into some file then used Find to check the status as "4 RUNNING" in some loop, once it gets to RUNNING you could proceed with the rest of the commands.
    I don't use Windows CMD, therefore I cannot provide you more help than the above but, with a little work on your part, you can make this work.
    HTH,
    John.
    PS: whatever loop you choose to check for the running status, be careful with creating an infinite loop if the service fails to start.
    Edited by: 440bx - 11gR2 on Nov 12, 2010 3:20 PM - added the caution about creating an infinite loop in some cases.

  • To format an Excel worksheet invoked by oracle form using DDE functions

    I'm exporting data from oracle form6 into excel sheet using DDE functions.
    Is there any DDE functions to format the excel sheet.

    Maybe you can use format commands through DDE (if the DDE server suports them) but I personally don't know.
    My approach is to record an excel macro which formats your sheet and then invoke the macro through DDE. You can fill cells with control numbers (like number of rows, number of cells) so you can make your macro even smarter by reading these numbers.

  • Create a second Oracle db using dcba (command mode)

    Hi,
    I want to create a 2nd db using dbca without using GUI.
    any 'silent' method to do that? Also, should I change the gdbName and sid?
    thx

    intersting!
    I have the scripts generated:
    CreateDB.sql JServer.sql init.ora
    CreateDBCatalog.sql XENA102C.sh postDBCreation.sql
    CreateDBFiles.sql XENA102C.sql
    I assume I start with the XENA102C.sh script that executes the other files. Right?
    In my case, I want to create another db with excatly the same settings except the database file location. Where to edit this parameter?
    thx.

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

  • Inserting dynamic images to excel using oracle forms 6i

    HI All,
       I'm working in project to export data from a table, one of the column has images (Blob). I need to export the data to excel.
       How can I do it?
    Thanks

    Use OLE Functions.
    http://codingwithpassion.blogspot.com/2011/02/plsql-forms-word-and-excel-manipulation.html
    Features of OraOLEDB
    ole - Oracle Forms using OLE2 not saving Excel document on 3-tier setup - Stack Overflow
    Tx

Maybe you are looking for

  • Error MSB3073: The command exited with code -1

    I am getting this error while deploying the biztalk project from visual studio using Deployment Framework for Biztalk (BTDF). Please guide me what needs to be done. Here's the code :- <?xml version="1.0" encoding="utf-8"?> <!-- Deployment Framework f

  • Error while connecting using Papi

    Hi All I facing some issue while connecting to ALBPM Studio 6.x using PAPI. Exception is as follows java.lang.NoClassDefFoundError: fuego/papi/exception/NoPermissionException      at pageflows.bpmRedirect.TestController.begin(TestController.java:67)

  • Webservice access

    Hi , Using WSADMIN, WSCONFIG  I used to test webservice. Now everything changed to SOAMANAGER. If I want to use standard webservice provided by SAP query_view_data using NWDS , Do I need to config PI7.1  system with BI system for ESR? Or How can I ac

  • Use Mac Mini as media server

    I am looking to switch out my old HTPC for a Mac Mini, but I would like to save as much money as possible and keep the options I have with my HTPC. Right now I have a 250GB system HDD and a 1TB data storage HDD. How does it work to use an external HD

  • Ho preso il pacchetto creative cloud  istallato sia cc che lr ma mi chiedono il codice attivazione

    ho comprato il pacchetto Creative cloud istallato creative cloud poi PS CC  e Lr  cc parte e appena ci clicchi si chiude e lr non parte  e chiedono codice attivazione internet presente