How to print all pl/sql code in a form?

Is there a way in Forms 6i to print out all the PL/SQL code in that form without having to open up every trigger, etc. and click Print? I'd like to get a text file dump of all the code for each Form in my application.

Have you tried the Object List Report (under File --> Administration) It will include other information as well as the PL/SQL e.g. properties of items etc, but all the PL/SQL should be there.

Similar Messages

  • How to debug all PL/SQL code.

    Forms 6i.
    I know debugging in general.
    But I want to debug every pl/sql code in my form, not only a certain trigger.
    How to do this?
    I tried: DEBUG -> Trigger -> "Every Statement". Trigger-Body: "raise debug.break;", but I get following error message:
    PDE-IKP008 » The current source location is undefinedEdited by: WoMo on Sep 11, 2012 5:03 AM
    Edited by: WoMo on Sep 11, 2012 5:38 AM

    Hi,
    Have you tried : Tools - Database Unload.
    There are several types of objects which you can choose - package and package bodies.
    I usually put them into a single file. I haven't tried to do so into multiple files.
    If you need to get them into different files, use the Unload feature from the Connection - Package - right click and choose Unload. But you need to do this one by one for each package.
    Btw, it is not Import. The correct term for what you want is to Export, here in SQL Dev refers to Unload.
    Import is used when you want to put something from outside source into the Database.
    Regards,
    Buntoro

  • How to Import All pl/sql code

    Hi All
    What we want is to get the code from data dictionary and save in a file and so on
    e.g. Say i have three packages
    x1
    x2
    X3
    after importing we want the code to be saved in c:/x1.sql and c:/x2.sql like that way..
    Is it possible.
    Regards
    Nikhil wani

    Hi,
    Have you tried : Tools - Database Unload.
    There are several types of objects which you can choose - package and package bodies.
    I usually put them into a single file. I haven't tried to do so into multiple files.
    If you need to get them into different files, use the Unload feature from the Connection - Package - right click and choose Unload. But you need to do this one by one for each package.
    Btw, it is not Import. The correct term for what you want is to Export, here in SQL Dev refers to Unload.
    Import is used when you want to put something from outside source into the Database.
    Regards,
    Buntoro

  • How to find all ORA error code and the message in Oracle10g?

    Does anyone knows how to list all ORA error code and message in SQL Plus or find a full list of ORA error code in documentation?

    If you want ALL Oracle ORA error codes in single page or even downloadable (html or pdf format) then check following post.
    http://www.oratraining.com/blog/2010/08/complete-list-of-all-oracle-ora-errors/
    Regards,
    Tushar
    Edited by: oratraining on Aug 18, 2010 12:20 AM

  • How to print all columns in one page

    Hi,
    Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
    Can anyone explain me  how to print ALL COLUMNS IN ONE PAGE  .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
    Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
    Edited by: kotha123 on Oct 11, 2010 5:58 PM

    Hi,
    Your best bet is to use a workbook template or else Excel to pdf option...Thanks

  • How to print a pl/sql raw or BLOB to html page with htp.p command

    Hi!
    I have a jpeg image I retrieved from the OID and it is stored in an DBMS_LDAP.BINVAL_COLLECTION, which is supposed to be similar to a BLOB or PL/SQL raw collection. What I want to do is to print it to my portal page. I have been using htp.p to print all the other values such as name, department etc, and the only thing I can't get out to the page is the image. How do I do this? I suppose I can just declare a variable of the type BLOB, and give it the binary value I have in the BINVAL_COLLECTION, but then how do I get it to my html code? Do I have to convert it to something, or use some function. I don't know much pl/sql so detailed instructions would be very helpful. Thank you
    /Marie

    I tried that, but I get the error "Wrong number or types of arguments" in the Read method. See my code below:
    PROCEDURE read_image(p_photo DBMS_LDAP.BINVAL_COLLECTION)
    AS
         src_lob blob;
         buffer raw(2048);
         amt BINARY_INTEGER := 2048;
         pos INTEGER := 1;
         doctype number;
         BEGIN
         owa_util.mime_header( 'image/bmp', false );
         owa_util.http_header_close;
         -- the query
         --select into src_lob from where ;
         LOOP
    --THIS IS WHERE I CHANGE THE BLOB FOR MY BINVAL_COLLECTION, BUT GET AN ERROR
         DBMS_LOB.READ (p_photo, amt, pos, buffer);
         pos := pos + amt;
         htp.prn(utl_raw.cast_to_varchar2(buffer));
         END LOOP;
         exception when others then
         NULL;
         END;
    Is there something wrong with this code, or else how do you mean I shold just replace the blob whith the DMBS_LDAP.BINVAL_COLLECTION
    /Marie

  • How to 100% Protect PL/SQL Code By Wrapped in Oracle Database 10g R2

    Hello,
    Is Possible to 100% Protect PL/SQL Code By Wrapped in Oracle 10g R2 ?
    If it is not possible by wrap in oracle 10g R2,
    Please, let me suggest, how i will be able to 100% protect PL/SQL code in Oracle Database 10g R2.
    Because, I have lot of functions, procedures & package's in my project.
    Which is running in field filed.
    So, i have needed to protect 100%.
    Also, will i convert to al functions, procedures & package's to .pll file ?
    And .pll file to .plx file?
    Is it possible to convert .plx file to .pll file ?
    Please, let know any better solutions in this case....
    Regards
    Mehedi

    Hello,
    No, wrapping is not a 100% secure method. It could prevent your code from amateurs, but not from professional hackers. Look at the article http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/wrap.htm#BEHGBJAA
    It says: "•Wrapping is not a secure method for hiding passwords or table names.
    Wrapping a PL/SQL unit prevents most users from examining the source code, but might not stop all of them."
    Edited by: apiminov on 03.12.2012 3:23
    Edited by: apiminov on 03.12.2012 3:24

  • How to print all values in record datatype?

    Hello friends ,
    I wrote one function which returned the  departments record type.
    when  ever I called the function that returned departments record type and stored  in department record type variable..I have to print all the values in record...
    What  can I do???
    My code is like this...
    set serveroutput on
    declare
    type depcur is ref cursor return departments%rowtype;
    dep depcur;
    rec departments%rowtype;
    function ref_cur_demo(ref1  in depcur) return departments%rowtype
    is
    v_dep departments%rowtype;
    begin
    loop
    fetch ref1 into v_dep;
    exit when ref1%notfound;
    end loop;
    return v_dep;
    end;
    begin
    open dep for select *from departments;
    rec:=ref_cur_demo(dep);
    --Here I have to print all the record variables;
    end;

    Hi Gopi,
    You have to write the program in different way. In your case the function always returns only one value. You can see only one department detail as output.
    To display a record type variable you need to use record type variable name .(dot) field name.
    SQL> set serveroutput on
    SQL> declare
      2  type depcur is ref cursor return departments%rowtype;
      3  dep depcur;
      4  rec departments%rowtype;
      5  function ref_cur_demo(ref1  in depcur) return departments%rowtype
      6  is
      7  v_dep departments%rowtype;
      8  begin
      9  loop
    10  fetch ref1 into v_dep;
    11  exit when ref1%notfound;
    12  end loop;
    13  return v_dep;
    14  end;
    15  begin
    16  open dep for select *from departments;
    17  rec:=ref_cur_demo(dep);
    18  --Here I have to print all the record variables;
    19  dbms_output.put_line(rec.department_id||'  '|| rec.department_name||'    '|| rec.manager_id||'    '||rec.location_id);
    20  end;
    21  /
    270  Payroll        1700
    PL/SQL procedure successfully completed.
    Here is the sample code which will demonstrates using ref cursors.
    SQL> create or replace function get_dept_detail
      2  return sys_refcursor
      3  is
      4
      5     x_res sys_refcursor;
      6
      7  begin
      8
      9     open x_res for select * from departments;
    10     return x_res;
    11
    12  end get_dept_detail;
    13  /
    Function created.
    SQL>
    SQL>
    SQL> -- Execution
    SQL>
    SQL> declare
      2
      3      res sys_refcursor;
      4      l_rec departments%rowtype;
      5
      6  begin
      7
      8     res := get_dept_detail;
      9
    10     loop
    11        fetch res into l_rec;
    12        exit when res%notfound;
    13        dbms_output.put_line( l_rec.department_id||'  '||l_rec.department_name);
    14     end loop;
    15
    16  end;
    17  /
    10  Administration
    20  Marketing
    30  Purchasing
    40  Human Resources
    50  Shipping
    60  IT
    70  Public Relations
    80  Sales
    90  Executive
    100  Finance
    110  Accounting
    120  Treasury
    130  Corporate Tax
    140  Control And Credit
    150  Shareholder Services
    160  Benefits
    170  Manufacturing
    180  Construction
    190  Contracting
    200  Operations
    210  IT Support
    220  NOC
    230  IT Helpdesk
    240  Government Sales
    250  Retail Sales
    260  Recruiting
    270  Payroll
    PL/SQL procedure successfully completed.
    SQL>
    SQL> -- In SQL*PLUS
    SQL>
    SQL> var res refcursor
    SQL> execute :res := get_dept_detail;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print res;
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID LOCATION_ID
               10 Administration                        200        1700
               20 Marketing                             201        1800
               30 Purchasing                            114        1700
               40 Human Resources                       203        2400
               50 Shipping                              121        1500
               60 IT                                    103        1400
               70 Public Relations                      204        2700
               80 Sales                                 145        2500
               90 Executive                             100        1700
              100 Finance                               108        1700
              110 Accounting                            205        1700
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID LOCATION_ID
              120 Treasury                                         1700
              130 Corporate Tax                                    1700
              140 Control And Credit                               1700
              150 Shareholder Services                             1700
              160 Benefits                                         1700
              170 Manufacturing                                    1700
              180 Construction                                     1700
              190 Contracting                                      1700
              200 Operations                                       1700
              210 IT Support                                       1700
              220 NOC                                              1700
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID LOCATION_ID
              230 IT Helpdesk                                      1700
              240 Government Sales                                 1700
              250 Retail Sales                                     1700
              260 Recruiting                                       1700
              270 Payroll                                          1700
    27 rows selected.
    SQL>
    Cheers,
    Suri ;-)

  • How to print all the pages in wad

    HI i am having a report with 3000 records when opened in wad, but when we print the Report, it is giving us records(60) on only first page, how do we print all the 3000 records from all the pages by clciking on print only once.
    Thank You,
    Kris.

    i am not able to print any pages after inserting the code, am i placing the code in the right place.
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_2"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_2
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="QUERY" value="ZPARAMTEST"/>
             <param name="INFOCUBE" value="ZEMPPRM"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZEMPPARM"/>
             TEMPLATE PROPERTIES
    </object>
    <td>
    <table class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td nowrap>
    <table border="0" cellpadding="0" cellspacing="1"><tr><td nowrap class="SAPBEXBtnStdIe4">
    <A class=SAPBEXBtnStd title="Print via Web Button" href="<SAP_BW_URL cmd="PROCESS_HELP_WINDOW" help_service="ZPRINTING" item="GR1Table">" target=_blank><nobr> Print</nobr> </A>
    </td></tr></table>
    </td></tr></table>
    </td>
    <td width="100%">  </td>
    </tr></table>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="EMPLOYEE_TABLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="BLOCK_SIZE" value="5"/>
             ITEM:            EMPLOYEE_TABLE
    </object></P>
    </BODY>
    </HTML>

  • How to print in PL Sql using a procedure?

    So how do you create a procedure to print a name in PL Sql ? Here is what I have done so far.
    Create Procedure Print_Info
    ( X_Name IN Varchar2
    ) As
    Begin
    :X_Name:='Anabella'
    DBMS_Output.Put_Line (X_Name);
    End Print_Info;
    thanks

    user8706975 wrote:
    So how do you create a procedure to print a name in PL Sql ? You cannot.
    PL/SQL is a server process. It is not connected or wired to a keyboard, mouse, screen or printer.
    The client process (SQL*Plus, TOAD. etc.) interfaces with the end-user - it is connected to peripheral devices like mouse, keyboard and screen.
    And this is exactly what client-server is. And which is why the task to "+Print data using PL/SQL+" is missing the fundamental concept of what client server is. It is utterly and totally flawed. And should you be doing this as some kind of course, then you should seriously question what they are teaching as the concept of PL/SQL printing anything is just plain bloody wrong.
    So how does DBMS_OUTPUT then works? The DBMS_OUTPUT package has a static buffer area (variable) that you can place data into using the put and put_line procedures.
    A client, like SQL*Plus, can then interrogate this buffer after executing PL/SQL code, and remove and display the content in that buffer to the end-user. This is not "+printing by PL/SQL+" just as running a SQL select from a client and viewing the data (in the client) is not "+printing by SQL+".
    It is very important that you grasp correctly what client-server is and the basics of how it works - as that will enable you to truly understand what PL/SQL is, what Oracle is, and how to correctly use it. It will enable you to understand how to troubleshoot performance problems, how to design systems optimally and so on. One cannot simply learn PL/SQL the language and expect to be a good Oracle developer. Understanding what client-server is and how it works in Oracle, is more important than to be an expert on a specific programming language. Knowing a programming language does not mean being able to architecture efficient and scalable solutions using that language.

  • How to Print all values stored in an Associative array

    DB version:10gR2
    There can be multiple results(multiple rows) for the below query. So, i'll have to declare the variables v_sid_serial, v_orauser, v_objectname,v_objecttype as associative arrays.
    SELECT l.session_id||','||v.serial# sid_serial, l.ORACLE_USERNAME,o.object_name,o.object_type,
           into v_sid_serial, v_orauser, v_objectname,v_objecttype
    FROM dba_objects o, v$locked_object l, v$session v
    WHERE o.object_id = l.object_id
          and l.SESSION_ID=v.sid;But I want to store the results from the above query in flat file. I want the result set to look like
    SID_SERIAL      ORA_USER               OBJECT_NAME           
    742,32914    SCOTT                        EMP
    873,49832    HR                           EMPLOYEES
    893,9437     mytestschema                 emp_dtls
    .            .How can i print the values in Associative arrays in the above manner so that i can spool the result set to a flat file?
    Edited by: user10373231 on Sep 29, 2008 5:19 AM

    user10373231 wrote:
    is there any way to print all values stored in an Associative arrayPrint to where?
    You could use DBMS_OUTPUT to get the output on the screen within SQL*Plus.
    You could also output (pipe) the data from PL/SQL using a pipelined function that you select from SQL. An example of a pipelined function...
    SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
      2  ( col1   VARCHAR2(10),
      3    col2   VARCHAR2(10)
      4  )
      5  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      2    v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      3    v_obj myrec := myrec(NULL,NULL);
      4  BEGIN
      5    LOOP
      6      EXIT WHEN v_str IS NULL;
      7      v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
      8      v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
      9      IF INSTR(v_str,',')>0 THEN
    10        v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
    11        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
    12      ELSE
    13        v_obj.col2 := v_str;
    14        v_str := NULL;
    15      END IF;
    16      PIPE ROW (v_obj);
    17    END LOOP;
    18    RETURN;
    19  END;
    20  /
    Function created.
    SQL>
    SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
    Table created.
    SQL>
    SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
    3 rows created.
    SQL>
    SQL> select * from mytab;
    COL1       COL2
    1          2
    2          3
    4          5... which you can easily adapt to output whatever data you want e.g. you could loop through your associative array and pipe out the values within it.

  • How to print all pages using ALV from CL_SALV_TABLE?

    Dear friends,
    I have a report which displays a dynamic internal table using CL_SALV_TABLE. The display format is normal list.
    And since this dynamic internal table is big, I have divided it into a sub internal table which displays 10 columns in one page at one time. And each page is displayed using a customized button that I set as MyFunction.
    The problem is, when I click List->Print or Ctrl-P, the system will only send to spool the current page even though in the Print dialog box, I choose Print All option.
    Is there a way to rectify this? Thanks.

    Hi,
    Try this..code...the above FM expects purchasing organization..revised code below mentioned..
    please try..
    DATA: kdy_val(8) VALUE '/110'.
      SET PARAMETER ID 'LIF' FIELD 'VENDOR'.   " Pass the vendor
      SET PARAMETER ID 'KDY' FIELD KDY_VAL.
      CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
    Thanks
    Naren

  • How to print all information in the contacts

    does anyone know how to print a concise list of everything in your contacts ?

    Hello emerykt
    You should be able to print a list of contacts and then all you have to do is select the fields that you want to print.
    Contacts (Mavericks): Print contact information
    http://support.apple.com/kb/ht1766
    Regards,
    -Norm G.

  • How to print all data in a table?

    Hello!
      I am doing report with VC. Now I want to print data ,The system action "print" can not print all data,only a page in the table  can be printed. Are there any ways to finishe the print function,Can you help me?
    Thank you very much!

    See this how to guide I put together:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123

  • How to print all columns using af:showPrintablePageBehaviour component ?

    Hi,
    JDev ver : 11.1.1.2.0
    I have 25 columns in my table and table is surrounded by panel collection.
    In panel collection toolbar facet I have added one command button and inside command button I have added af:showPrintablePageBehaviour compoent.
    I can able to see only 15 columns which are fits to entire browser window.
    How can I print all 21 columns using this in new browser window or any other way ?
    regards,
    devang

    Hi,
    showPrintable behavior only removes action components and beside of this renders the screen as you have it. If the screen you have doesn't show all of the columns then show printable behavior doesn't do either and you may need to look for alternative printing/reporting solutions
    Frank

Maybe you are looking for

  • Error in MIGO durng intra-company stock transfer by STO

    Dear gurus, I am facing an error while posting MIGO during intra-company plant to plant STO. Settings for STO: SPRO >IMG > MM >Purchasing > Purchase Order>set up Stock Transport Order Define Shipping Data Define/assign Checking rule Assign Delivery T

  • Upgrade question - Should I upgrade from 10.3.7 to 10.3.9 or jump to Tiger?

    Hi. Thanks in advance for reading my thread. Here's my dilemma. Lately I've been unable to use certain programs and view some web pages which I believe is due to my OS being 10.3.7. For example, I can't upgrade to Quicktime 7 (which I need to perform

  • With large attachments, TB seems to be "loading message" over and over.

    I'm using TB with as POP with a gmail account. I used to use Outlook. When I receive large (20MB) emails with attachments such as .jpg or videos, it APPEARS that TB keeps going out to get the email from the Internet instead of having it locally on th

  • I cant get it to work grrr

    i have an aim name and i can not get ichat to work on my computer i have downloaded aol sevice asisstant and it is stillnot working any suggestions or advice? thanks amanda

  • Time machine reporting impossible needs

    On November 14, Time Machine made its last successful backup. Since then, it reports that there isn't enough space to back up onto, any more. It tells me that it needs over 5 TB of space in the alert window, but on close inspection of the preference