Sql question in oracle forms

i am using a timer to update mutilple records on one form. I amu sing a procedure that updates the databse based on the timer. One requirement is such that i need to show the value on one coulmn after some calculations to the value below it.
It has one to many relationship . For eg A can have mutiple b's and they are in order 1..2..3..
so the first b would always be 0
there is another column in the same table where b is and depending on if the value is more than 0 for first b then it should show in 2nd b and if there is value for the 2nd b , then it should show on the 3rd b and so on ...
thanks
I i am thinking about ..using loop , first record, next record and so on ...please let me know if there is any other way to solve this problem .

Of course you may loop through the records in the form, like you say. Still, I believe it would be better on timer expiry to call a stored procedure that would do the kind of processing that you may do by looping through the datablock's records.
Think that looping through all the records in the datablock you will fetch record by record from the database in case you have post-query trigger (which I believe you have, or bulk by bulk of records in case you do not have post-query trigger). Then, all those processed records would have to be posted to the database and commited.
Say that on timer expiry you call a stored procedure that gets the parameters needed for updating the records you wish. That procedure will work in the database, where the data is, without having to pass the data between the database and the form. Then, after the stored procedure finished its work (and eventually commited the changes), you requery the datablock to see the changes in the form.

Similar Messages

  • Migrating VB Applications on SQL Server to Oracle Forms on Oracle 10g RAC

    Hello All,
    I am looking at migrating a VB application built on a SQL Server database across to an Oracle Forms deployment with the data migrated to an Oracle 10g RAC database environment.
    My first question is whether the SQL Developer Migration Workbench can migrate the SQL Server data to a RAC environment?
    The second question is to ask whether there are any "toolkits" or tips from the community migrating VB applications to Oracle Forms.
    Any advise or suggestions greatly accepted.
    Kind Regards,
    Gary.

    SQL Developer Migration Workbench definitely can migrate SQL Server data to Oracle RAC setup.
    However, I don't think VB application can be easily converted to Oracle Forms.
    You can post your question in Oracle Form forum to double check.

  • How to define the tab space in the PL/SQL editor with Oracle Forms 4.5?

    When I use the PL/SQL editor with Oracle Form Builder, I found the tab space is very long that affects my programs readability quite a lot. Then, I tried to use Textpad to type my program. It looks fine with Textpad. However, when i tried to 'cut and paste' my code back to the PL/SQL editor, all tab spaces (approx. 8-character) are detected and the program looks awful again ~~ Would any one help me to solve my mentioned problem?
    Thanks for any advices!

    In 4.5 you cannot change this. In Forms 5.0 and above there is a registry value DE_PREFS_TABSIZE which allows you to set a value for the tabsize.

  • Questions on oracle forms?!?

    Hi, all.
    I need some help for oracle forms 10g.
    I have some very important questions, pls help.
    1) If i have VBean and say this.getCientProperty(Object o). Is this method returning me the value of property specified in the properties palete in oracle forms builder i.e. if i write this.getClientProperty("Name") -> it returns the name of the bean(is it valid for other components like VTextField for example)?
    2)Could i call methods from the server on the client and how? I read that server method could be wrapped in pl/sql procedure(could you give mi simple example)?
    3)As i understand the only way, that one form can communicate with one bean is with getProperty and setProperty methods, is it?
    Thanks in advance.
    Best regards.

    Hi Francois. First i want to thank you, because you are helping me.
    First to say using ugly tags is not a problem, because this xml is only in the memory(it will be nice to be with good tag names but not mandatory).
    Here is what "sign" process means:
    This process is executed on the client not on the server. So after the xml document is generated it must be signed i.e. with java crypto api and bouncy castle api i create signature from this xml(with algorithms from the api) this signature is like hashcode(String). This string must be passed on the server and there with other algorithms to be verified.
    Imagine you have to sign some bank check(represented as web form for example or electronic file) and send it to some person through internet. How could the bank know that this check is signed from you? So i am working to do this possible to sign electronically documents and data. That is the idea. And i created this as a framework like a lib that only needs to be added and used. But our client wants to do the same for oracle forms applications. Unfortunatly i am not oracle forms developer but no body ask me.
    I read the how to debug guide but i have some problems and cant debug. I am using vista 64, i don't know if this may be a problem. My College managed to run debug with your guide but i am not. When i hit debug debug_pjc.html every thing is ok. The form is shown but the debuger is not started.
    Here is the exception:
    D:\DevSuiteHome\jdk\bin\javaw.exe -ojvm -XXdebug,quiet,port49717 -Xbootclasspath/a:D:\DevSuiteHome\jdev\mywork\WebFormSignerBean\WebFormSignerBean\classes;D:\DevSuiteHome\forms\java\frmall.jar sun.applet.AppletViewer file:/D:/DevSuiteHome/forms/java/debug_pjc.html
    Debugger connected to local process.
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    java.lang.ClassNotFoundException: com/digisign/WebFormSignerBean
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(AppletPanel.java:377)
         at java.lang.Thread.run(Thread.java:534)

  • Calling a pl/sql function from oracle forms

    I have written a pl/sql function in a package.
    package name- sup
    function name - func
    I have written a when-button-pressed trigger .from here I want to call this function.
    How can I do that?
    Please help..

    Thanks a lot..
    User may select 20-30 check boxes for respective name & id...then at the end , user will hit OK...from here when-button-click will call a procedure....that will update/insert/delete a table data.The procedure I have written is:-
    DECLARE
    N_CNT Number(1);
    D_SYSDATE Constant date :=sysdate;
    Begin
    select count(1)
    into N_CNT
    from dbtable L
    where L.land_id = :BLK1.LAND_ID and
    L.Operatoer_id = :BLK1.Operatoer_id and
    L.suppl_id = :BLK1.suppl_id and
    L.suppl_prof_id = :BLK1.suppl_prof_id;
    if ((N_CNT = 0) and (:LANDLISTE.state = 'A')) then
    insert into dbtable
    LAND_ID,
    STATE,
    suppl_prof_id,
    suppl_id,
    OPERATOER_ID,
    SIDST_OPD_DATO,
    SIDST_OPD_INIT
    values
    :BLK1.LAND_ID,
    'Y',
    :BLK1.suppl_prof_id,
    :BLK1.suppl_id,
    :BLK1.Operatoer_id,
    D_SYSDATE,
    :BLK1.SIDST_OPD_INIT
    elseif
    ((N_CNT>0 )and (:LANDLISTE.state = 'A')) then
    update dbtable L
    set L.SIDST_OPD_DATO = D_SYSDATE,
    L.SIDST_OPD_INIT = :BLK1.SIDST_OPD_INIT
    where L.land_id = :BLK1.LAND_ID and
    L.Operatoer_id = :BLK1.Operatoer_id and
    L.suppl_id = :BLK1.suppl_id and
    L.suppl_prof_id = :BLK1.suppl_prof_id;
    elseif ((N_CNT>0 ) and (:LANDLISTE.state = 'D')) then
    delete from dbtable L
    where L.land_id = :BLK1.LAND_ID and
    L.Operatoer_id = :BLK1.Operatoer_id and
    L.suppl_id = :BLK1.suppl_id and
    L.suppl_prof_id = :BLK1.suppl_prof_id;
    end if;
    end;
    Will it be able to load multiple data(20-30 at a time) to the table?
    Should I write anything to commit the data in the table?
    I am very new to oracle forms...please help..

  • Calling Sql*Loader from oracle Form builder

    How do i call sql* loader from my forms to import the external data in different formats into my existing database?
    Specify the flexibility of sql* loader to import external data from .txt files or .xls files.
    Would be thankful if certain examples are given along with the answer.

    Hi,
    1. First you have to create seperate ctl (Control files) which maps to different file formats
    2. Using Oracle Forms,
    2a) You can use the 'HOST' command to execute the command line ie. In this case executing
    SQL*Loader script
    2b) You also have the feature in ORACLE forms to read text files and load the data into
    ORACLE db.
    This can be achieved by using TEXT_IO package which comes with ORACLE Forms.
    Hope this helps
    Ta
    Shailender

  • How to use advanced PL/SQL concepts in oracle forms/reports

    Hi all,
    Can any one suggest me how to use the advanced PL/SQL Concepts(nested tables,PAA,Varrays,Objects...) in Oracle forms.
    Actually i Created a Table having column of Varray datatype. now i want to create a item in oracle forms on this field. can any one suggest me the way to do this.
    Thanks,
    Kumar

    Hello,
    Have a look at this one:
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    particularly the chapter about block that contain a collection (2.3.3). The sample is built around a nested table but you have the idea to adapt it to work with a varray.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • How can I invoke a sql loader from oracle form?

    I'm got a problem on invoking sql loader command from oracle form where the sql loader product has been installed in Window NT.
    Thanks for your help!

    U can use HOST procedure with NO_SCREEN option.
    this will go like
    Host('d:\orant\bin\SQLLDR80 USERID=username/password@connect CONTROL=contril_file.CTL LOG=log_file.LOG discard=discard_file.dis bad=bad_file.bad', NO_SCREEN);
    Hope this will Work
    Good Luck :-)
    Naren

  • Index Usage from SQL query in Oracle Forms

    Would using LIKE/OR in where clause (of an indexed column) will force the the query to NOT use INDEX. We have these where clause in Oracle Forms Records Group.
    Below are two examples...
    1. If we have a where clause with LIKE would that NOT use the index?
    Example: ColumnName like :block.Column||%
    2. How about having an OR clause?
    Example: and (ColumnName = :block.column or :block.column is null)
    Thanks

    Hi
    Answer 1: Where with like clause WOULD use the index.
    In this example index on ColumnName
    Answer 2: Write better where:
    Example: and (:block.column is null or ColumnName = :block.column)
    When :block column is null then statement after 'or' is not used. Index will not be used with RBO, i think.
    The best way to be sure is to look at explain plan on the original query.
    Regards
    Kuba

  • Pl/SQL reqd 4 Oracle forms developer certification ??

    Hi,
    I want to learn forms & reports. I want to learn it & then go for certification.
    But, for this knowledge of PL/SQL is required ????
    Or are they both are totally different ( not related) ??
    Thanks..

    Hi closeguy, an understanding of PL/SQL is pretty key really if you want to work with Oracle products so it is a very good place to start.
    The reason I say 'is pretty key' is that at the end of the day the database stores data. At some point you use SQL to create and modify data in the database. PL/SQL is the Procedural Langauge (PL) for SQL so it allows you to 'program' the use of SQL. When you create/ install a database, PL/SQL scripts will be run as part of the install to create various pl/sql packages, functions etc.
    One easy thing with PL/SQL is that it is a very logical/ procedural language and quite easy to understand once you look at it. For example to read a PL/SQL Package is quite easy once you have looked at a few.
    Another key thing for you to think about is that java is a big component with a lot of Oracle products and increasingly used. This object-orientated language is very different to PL/SQL so if you want to be comfortable with many Oracle products this is a good thing to spend some time on.
    Bear in mind also that Forms and Reports have been around for a long time and there are a few newer technologies used in the Oracle environment. For info on these search for ADF in OTN and also OAF if you are/ would like to work with the current version of Oracle Applications.
    Good luck with Forms
    Cel
    Edited by: Cel on May 1, 2009 10:47 PM

  • How to run a sql script in oracle forms

    Hi,
    For me there is an sql script. I need to run that sql script in forms.
    Actually we will run that sql file in pl/sql developer by giving @and the file name.
    But how to run that file in forms.
    Can any one help on these.Which book I have to look.
    Thanks

    Actually there is a script files which will drop all the indexes and tables.
    DROP querry will be there for each index and each table.
    So I run the script all the indexes and all the tables will be deleted. So using forms I have to run that script.
    Thanks

  • Performance questions in Oracle Forms/Reports of Application Server 10g

    Hello.
    I have a dual Xeon 2.6 computer with 3 GB of memory and 6 GB of cache, running RedHat EL 3 with Oracle AS 10g (9.0.4.0.0).
    Application Server is used to run some applications created with forms, and it generates several reports, but the forms are also used as a front end to another Oracle Database (Oracle 7.0, runing in Sun Solaris 5.6).
    I've notested (and also my users) the application is getting very slow (is running in a dual Xeon, with 2 Gbit nics, in a 3 Gb backbone).
    The speed (or lack of it) is most noted when the forms are generating the reports (it used to be fast - 2 seconds) and now it can take up to 5 minutes.
    The AS 10g, when generating the reports, almost all of the querys go to the other server (in Solaris) and the results return to the server, and then the report is generated. The network has no problems (at least, that i know of), and the network performance is not an issue - both the servers are connected to a Gbit switch.
    Can someone may have an ideia of it can be?
    even in the clients, when running the forms application, the transition of the several menus is slow, and it used to be more fast.
    the 10g is using Java Jinitiator 1.3.18. Can it be from that ? i'm not certain, but i could say this things start happen when we upgraded the jinitiator from 1.3.13 to 1.3.18...
    My users are really getting on my nervers and i cant do nothing, because they have reason...
    any help would be appreciated !
    Cheers
    Bruno Santos

    Bruno, did you solve the performance problem? I'm experiencing the same lack of speed.

  • Loop question in oracle forms

    declare
    v_comment2 varchar2(2000);
    Cursor C3 is select a.comment_pad
    from qc_procedure_results a, qc_procedures b
    where a.procedure_id = b.procedure_id
    and drive_id = :qc_daily.drive_id
    and dept_id = :qc_daily.dept_id
    and qc_type_id = :qc_daily.qc_type_id
    and qc_subtype_id = :qc_daily.qc_subtype_id
    and result_color = 'Red'
    and ASSOC_WITH_EQUIP = 'Y';
    Begin
    Open C3;
    loop
    Fetch C3 into v_comment2;
    :comment_pad := :comment_pad+ v_comment2;
    Exit when :system.last_record = 'TRUE';
    next_record;
    End loop;
    Close C3;
    End;
    I am getting ora06502 error. If I comment the below statement
    :comment_pad := :comment_pad+ v_comment2;
    I am fine. But I need to show this comment pad with the value. I want to grab values in a loop as I will have more than one line

    It's PL/SQL...
    Try ||
    :comment_pad := :comment_pad || v_comment2;
    And make sure :comment_pad is long enough.

  • Urdu support in Oracle Forms 9i

    Requirement:
    ============
    We have an application in Oracle Forms & Report 9i Rel 2 and Database 9i Rel 2.
    There is a client requirement to provide Urdu support in this application.
    We have to enter Urdu data in few forms and print it in PDF reports.
    Problem:
    ===========
    We created new database with AL32UTF8 Character Set with same National
    Character Set for Unicode support.
    Developed a form and report on a table with NVARCHAR2 data type.
    Edited nls_lang entries in Registry to AMERICAN_AMERICA.AL32.UTF8
    Installed Urdu Support in WinXp
    Database stores and retrieves Urdu and displays Oracle SQL Developer.
    Oracle form stores/retrieves Urdu characters but it fails to type
    complete words and sentences.
    On typing 2nd, 3rd characters of a words all characters position mix up
    randomly and produce garbage.
    Oracle report don't show Urdu characters in run-time but it shows the
    same in Report Builder.
    Further more, Our group of applications works in Materialized View Replication environment [5-6 applications consolidate data at a Central Database]. If we change Character Set of one application's database to Unicode then is it must to apply the change in all databases of replication group.
    Please suggest if Oracle IDS 9i or 10g provides support for Urdu. If yes then please suggest solution of the above stated problems.
    Looking forward for your quick response.

    You would have much more possibilities to have your question answered if you posted it in Oracle Forms forum.....
    Greetings,
    Simon

  • Connecting database 11g to Oracle forms 6i.

    Hi guys,
    my previous question was:
    "Hi guys,
    basically, i am using the "run sql command line" from "Get Started With Oracle Database 11g Express Edition ". I have created a database within the command line and now am trying to open it Oracle forms 6i. I have set up the forms in the form builder but when i hit the green traffic light it asks me to log in. I type "system" for the username and then my password. (Not quite sure what the database bit should be. Someone told me XE). Anyway, apparently, you need to connect the sql command line or the sql database to oracle forms 6i. Can someone please tell me how i can link the database from the command line to oracle froms so i am able to log in. If there is anything technical such as "check a port number" or anything like that, can you tell me where i can locate it.
    Thanks in advance "
    Someone replied with:
    irst you have to configure TNSNAMES.ORA file
    copy the tns configuration from database to forms tns file.
    then create a user in data base and give connect and create access and create any table and then try to connect from forms.
    Can someone please tell me where to look for TNSNAMES.ORA file? where it can usuallly be located? or even what it should look like? i found one but i think it is the one for the forms but non for the database.
    Thanks

    TNSNAMES.ORA File Location
    for Forms 6
    C:\ORANT\NET80\ADMIN
    for forms 10g
    E:\DevSuiteHome_1\NETWORK\ADMIN
    for database 11g
    D:\oracle11g\product\11.2.0\dbhome_1\NETWORK\ADMIN
    note that oracle database 11g does't have compatibility to connect with forms 6 version.
    forms 6 version is limited upto 10g database versions.

Maybe you are looking for