Tunning through Forms?

Hi,
I am the student of Oracle Developer forms 6i.
I am using Windows XP O/S and 10 G database with forms 6i.
With regard to SQL Tracing I would like to ask the following please suggest me :
1. I want to enable SQL Tracing through forms 6i, in this regard there is no clear concept coming in my mind that how should I enable SQL Trace for a particular Session from forms 6i.
I read in another book that ifrun60 command with statsistic= yes on command line would enable forms 6i sql tracing. If yes then how should I automize this command in my forms application. I mean where should I place this command in forms 6i in order to start sql tracing of this form application. As well as what should we do if I want to enable tracing for a particular session from forms 6i and the output of a SQL Trace file would be generated on forms screen.
I know there is a Sys.dbms_system.set_sql_trace package and Alter session command available for enabling Sql Tracing, but how should we do that via forms 6i.
I will appreciate if someone on that forum please suggest me and give me the clear picture about what I am wanting. I know there are several GUI tools available in Oracle but I have to do this through forms.
Best Wishes
Malan

You can turn trace on or off in a form by doing this:
Forms_DDL('ALTER SESSION SET SQL_TRACE = TRUE');However, I don't know of any method for displaying the results from Forms. You have to switch to your operating system commands to view the output. Here are the notes I use on my Windows XP platform:
Run TKPROF:
  from Windows:
  start cmd.exe window.
  CD C:\ORA92\admin\ORA92\udump
  -- find name of newest file in window
  TKPROF ora92_ora_???? TKOut explain=scott/tiger
  view file with Notepad or PFE:  C:\ORA92\admin\ORA92\udump\tkout.prf

Similar Messages

  • Problem in downloading a file from AS to client through form using webutil

    I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
    From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
    I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
    I have also tried webutil_file_transfer.AS_to_Client_with_progress
    which results in unsuccessful from server to client.
    I modified the webutil.cfg file as :=
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.workAreaRoot=D:\temp
    transfer.appsrv.read.1=D:\temp
    transfer.appsrv.write.1=D:\temp
    Please help me out from this situation

    hi
    Welcome to OTN.
    try to use.
    Client_host()sarah

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • Report not running through Forms menu

    Hi Gurus,
    In our reports we have used Query PL/SQL to reference cursor. When it is compiled and an executable 'rep' file is created, which when
    called through froms menu generates following error and aborts the report.
    REP-1401:'qr_1refcurds': Fatal PL/SQL error occured.
    ORA-06508: PL/SQL: could not find program unit being called
    The same report when called through forms menu, without the compiled version, executes smoothly. Also it runs through report builder perfectly after compilation and generation of rep file.
    Would appreciate if anyone can provide suitable guidelines to solve this issue.
    null

    hello,
    is the program-unit you are trying to call, in an external plsql-library ? if so, you have to provide the PLX version of this library in order to use it from a REP file.
    however, why are you using the compiled REP version at all ? i would suggest to use the RDF file.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to restrict LOV to a particular project type through form personalize.

    Hi,
    I got a requirement to restrict LOV to a particular Project type through form personalization in project accounting module. form name: PAXPREPR
    i tried the below code in Builtin, but it didn't work
    SELECT distinct PROJ.SEGMENT1, PROJ.NAME,
    PROJ.DESCRIPTION, PROJ.PROJECT_ID
    FROM PA_PROJECTS_ALL PROJ,
    PA_PROJECT_TYPES_ALL TYPES,
    pa_proj_elements ppe,
    pa_proj_structure_types ppst,
    pa_structure_types pst
    WHERE PROJ.TEMPLATE_FLAG <> 'Y'
    AND PROJ.PROJECT_TYPE = TYPES.PROJECT_TYPE
    AND TYPES.CC_PRVDR_FLAG <> 'Y'
    AND proj.project_id = ppe.project_id
    and ppe.object_type = 'PA_STRUCTURES'
    and ppe.proj_element_id = ppst.proj_element_id
    and ppst.structure_type_id = pst.structure_type_id
    and pst.structure_type = 'FINANCIAL'
    and proj.project_type = 'GRANT'
    order by PROJ.SEGMENT1
    please suggest me where i went wrong.
    Edited by: 925049 on Apr 3, 2012 2:49 PM

    In the Control Data of FS00 there is field 'Authorization Group'
    Please Create an Authorization Group for those user ID who can post TDS entries.
    then Maintain this group for TDS related GL.
    Then others will not able to post to this GL.
    Regards,
    Alok

  • Addition of one column in LOV through Form Personalization

    Hi
    While approving a purchase order when we click on Forward check box the forward to field becomes enabled and it has the LOV containing employee names and employee numbers. I want to add another column in this LOV for employee positions through form personalization.
    Can any one guide me how to do this.
    Regards

    Hello,
    To set another LOV, you should change the property of your combobox, named LOV_NAME with Forms perso, but you need some PL SQL code to create a new LOV.
    See this example : [http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/custom-lov-using-custompll-883870]
    One pre-requisite is that your new LOV should have the same number of rows and the same datatype, so I'm afraid you won't be able to do this just using Forms perso
    Kind regards,
    Xavier

  • Store and display word document in database through forms

    how can i store a word document in database through forms 6i or 10g, and display it through forms from database.
    i know how to store a binary file in database through DBMS_LOB package, but i want to do it throug forms. is it possible?
    regards

    Hi Alex
    "Create a datablock and specify the item datatype as blob"
    BUT: How to bring the document to the blob?
    Hi user 611..
    Warning: It is easy if you use an OLE-Object - but OLE is a special format. The result will not be the same as with dbms_LOB.
    We have a application with documents stored via OLE - terrible!
    OLE is no longer supported by forms 10. But webutil would help.
    I asked a similar question and got a good answer:
    OLE-Container and migration to the web
    Wolfram

  • How can i save and retrieve blob data through forms and reports...

    I have blob data type column and I want to save word, html, gif
    document in oracle database through forms 6 and retrieve the
    data into forms and reports.
    Details : I want to open .doc,.html,.gif file through a button
    and save it ..and i want retrieve the data into text item same
    in reports....
    If anybody have the answer then send me at
    [email protected]

    use ole container
    initialize the container with the filename (doc or gif)
    Edited by: arshid on Feb 8, 2009 1:57 PM

  • Tabbing through form fields in app doesn't work in Firefox.

    Is there a setting in Firefox that permits tabbing through form fields so that one doesn't have to use the mouse? This works fine in IE. for the same app without any configuration, but not in Firefox.

    Are you really still running Firefox 3.6? Since it hasn't received any security updates for nine months, you may be putting yourself at risk.
    In my experience, tabbing through forms works just fine. Have you tested in Firefox's Safe Mode to see whether the problem is caused by a custom setting or add-on.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.org/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [http://support.mozilla.org/kb/Safe+Mode Safe Mode] by holding the Shift key when you double-click the program icon.
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If tabbing works correctly, this points to an add-on or custom setting as the most likely cause of the problem.

  • Fonts are not reflecting while running Java Applet Through Forms

    Hello Oralce Gurus!!
    I have a Java Applet which has few lines of text in different
    fonts such as AgencyFB, Verdana Ref etc., When I am running this
    applet from console, I am able to see the text in different
    fonts. Where as If I run the applet through forms (as a Bean
    (ViewerBean) ), the fonts are not reflected. The text appears in
    a default font.
    All the fonts are installed on WinNT, where the applet resides.
    I will be greatful if anyone can suggest me a solution.
    Thanks,
    Raghu

    try out this
    ImageIcon img1=new ImageIcon(this.getClass().getResource(imagename));
    for exmaple
    Imageicon img1=new ImageIcon(this.getClass().getResource("name1.jpg"));
    dont 4get to include the image files in the jar file

  • How do i insert into table through forms

    Hi
    I have developed a custom form based on custom table.
    the only way to insert data into database table is through form.
    there are two tables: one table is to store all contract details & second table is to maintain history forthis.
    one condition(col1,col2,col3,col4) are unique combination,we are not creating any PK or FK at database level.evrythng is captured at form level.
    if all 4 columns combination exist thn e should not insert that record.
    if 4 columns combination doesnot exist then insert into table.
    I have used just pre insert,pre update triggers.
    I think its a basic form functionality ,by itself it inserts ,update record.now it is doing the same thng.
    But I have to add the above condition ,how can i do that.
    Pl provide me some ex code .
    Thank you.
    Hope any one can help me

    SQL> create table t
      2  (object_id    number
      3  ,object_name  varchar2(30));
    Table created.
    SQL>
    SQL> create sequence t_seq;
    Sequence created.
    SQL>
    SQL> insert into t (object_id, object_name)
      2  select t_seq.nextval
      3        ,object_name
      4  from   all_objects
      5  ;
    52637 rows created.

  • View BLOB content through Forms 6i URGENT... URGENT...

    I have a table which stores word documents as BLOB. My database is on UNIX machine and I access the database through a Citrix machine through Oracle Forms. My client wishes to open the word document in Forms which is stored in BLOB in the database. My database version is 9.2 which supports me to import and export files from file system to BLOB and vice versa using DBMS_BLOB and UTL_FILE packages. But, my only concern is regarding opening the word document through Forms 6i. Is that possible through OLE or any other means? I've tried all the sources. I know I can do it using Webutil, but it will not work for Forms 6i. Please help me in this regard. I have an urgent release tonight. Please. Please. Please. Please help me. Thanks in advance.

    I know that OLE can solve the problem. But issues is my word document is stored as BLOB in the database. My database is in UNIX. So, I can't export my files into UNIX and open them. I can't view them either from Forms. Please let me know if you have any alternative. Please can you guide me with step by step procedure as to how this can be done if we can do it using OLE.

  • Open word file, stored in database through Forms.

    Assalam-o-Alikum
    to Genius of Oracle's
    I have stored the Word file name "MY_FILE.DOC" in oracle database. Now i want to open the file through Forms, remember i am using forms 6i. is there any body who help me to open the file.
    Best Regards
    Farrukh Shaikh

    Assalam-o-Alikum
    My in tension was not to hurt any body. if it did then sorry for that.
    here is the code through which i stored the file in database
    first create the DIRECTORY CREATE DIRECTORY generic AS 'C:\temp';---- --directory path where your files will be searched for storing.
    THEN
    create table my_blob_table
    pk_name varchar2(20) primary key,
    pk_value varchar2(20),
    col_document blob
    INSERT INTO MY_BLOB_TABLE
    (PK_NAME,PK_VALUE)
    ('A','A');
    COMMIT;
    CREATE OR REPLACE PROCEDURE load_blob_from_file
    ( src_file_name IN VARCHAR2
    , table_name IN VARCHAR2
    , column_name IN VARCHAR2
    , primary_key_name IN VARCHAR2
    , primary_key_value IN VARCHAR2 ) IS
    -- Define local variables for DBMS_LOB.LOADBLOBFROMFILE procedure.
    des_blob BLOB;
    src_blob BFILE := BFILENAME('GENERIC',src_file_name);
    des_offset NUMBER := 1;
    src_offset NUMBER := 1;
    -- Define a pre-reading size.
    src_blob_size NUMBER;
    -- Define local variable for Native Dynamic SQL.
    stmt VARCHAR2(2000);
    BEGIN
    -- Opening source file is a mandatory operation.
    IF dbms_lob.fileexists(src_blob) = 1 AND NOT dbms_lob.isopen(src_blob) = 1 THEN
    src_blob_size := dbms_lob.getlength(src_blob);
    dbms_lob.open(src_blob,DBMS_LOB.LOB_READONLY);
    278 Oracle Database 11g PL/SQL Programming
    END IF;
    -- Assign dynamic string to statement.
    stmt := 'UPDATE '||table_name||' '
    || 'SET '||column_name||' = empty_blob() '
    || 'WHERE '||primary_key_name||' = '||''''||primary_key_value||''' '
    || 'RETURNING '||column_name||' INTO :locator';
    -- Run dynamic statement.
    EXECUTE IMMEDIATE stmt USING OUT des_blob;
    -- Read and write file to BLOB.
    dbms_lob.loadblobfromfile( dest_lob => des_blob
    , src_bfile => src_blob
    , amount => dbms_lob.getlength(src_blob)
    , dest_offset => des_offset
    , src_offset => src_offset );
    -- Close open source file.
    dbms_lob.close(src_blob);
    -- Commit write.
    IF src_blob_size = dbms_lob.getlength(des_blob) THEN
    $IF $$DEBUG = 1 $THEN
    dbms_output.put_line('Success!');
    $END
    COMMIT;
    ELSE
    $IF $$DEBUG = 1 $THEN
    dbms_output.put_line('Failure.');
    $END
    RAISE dbms_lob.operation_failed;
    END IF;
    END load_blob_from_file;
    after create the PROCEDURE run the procedure
    begin
    load_blob_from_file('FILE_NAME.DOC',' my_blob_table','col_document','PK_NAME','A');
    end;

  • Issues in calling Sql Loader through forms developer (10g)

    Hi,
    I am developing a form(in 10g) ,in which I am calling sql loader for loading data onto a oracle database table from external source (e.g. data file is a .CSV file).
    But , somehow the sql loader is not getting executed.
    Here , I am giving the environment settings , approach i am taking;
    This is a distributed system , both the application server,and database server are mounted on two different servers.
    The form is delpoyed on the application server.
    The database table , and the sql loader are configured on the databse side.
    I am using host(<sql loader command>) command to invoke the Operating System command through forms.
    The sql loader is working ok , and the data is getting loaded successfully onto the required database table when I am executing the sql loader command on Unix prompt , but through the forms , it's not working.
    Do I need to change some environmental setting to make this work...
    Any quick help in this regard is highly appreciated.
    Thanks.

    Hi Craig,
    I have already tried out the option of calling sql loader through stored procedure,but this is not working ...
    could you please share any examples to do so ...
    code snippet i am using in forms:
    declare
    usid get_application_property(userid);
    pwd get_application_property(password);
    db get_application_property(host);
    msqlldr varchar2(250);
    begin
    msqlldr:='/u01/oracle/formss/bin/sqlldr' username=<uid/pwd@db> control=<control file name> data=<data file name> log=<log file name>
    hosts(msqlldr);
    end;
    Note that sqlldr command ,for that matter any unix shell command is not working through the hosts() command ...
    could you please suggest any way out ...
    Thanks.

  • Calling SQL Loader through Forms using webutils

    hi all,
    Can anyone tell me how can i call a sqlldr through forms 9i using webutils?Let me know if anyone have a sample script.
    Thanks
    Best Regards,
    Abrar
    [email protected]

    If your middle tier and database server are both unix boxes you could use host(rsh...)
    Are you suggesting webutil because your data to be loaded is on the PC ? If so you probably want to move it then load it as two seperate operations.
    If there isn't too much data you also have the option of using text_io to load it into a forms database block, which has the advantage that the user can see what is happening, and validation rules could be added if required.

Maybe you are looking for