Impact of writing more comments in the pl/sql code

What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

Hello

2981581 wrote:

What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

Outside advice, comments have no effect on the runtime.

They can have a big impact on maintenance time.

Tags: Database

Similar Questions

  • Wrap the PL/SQL code

    First of all, Hi everyone.

    I need to encrypt my PL/SQL code at run time. I thought using the wrap.exe, but it won't be a good option, once maybe I need to change something in the code and I'll not can send the code wrapped to the final customer. So, I'll use the DBMS_DDL. WRAP, but I have a doubt, I understand that my object will be encrypted in the database, but how can I prevent software this capture SQL (like SQL STATEMENTS TRACE) get the source when creating the object?


    Thank you very much.

    Agree with SomeoneElse, having a license legally correct contract protects your code.

    The package code is not a bad thing if that's what you are providing to the customer and that you have in place adequate source code controls, so you do not lose the source for yourself.  Although there are "unwrappers" out there, it may depend on the version of Oracle as to how well they work, and if they can achieve.  There are tools out there too which can obscure the PL/SQL code by doing things such as the conversion of all the variable names to things without meaning as a0001, a0002, a0003,... and deletes all comments etc before you wrap, so even if someone manages to undo what they are presented with the code that is more difficult to follow.

    Regarding the customer can see SQL running, you won't really be able to do something that, if the customer has access of type DBA to the database; the only thing you can do to avoid this is to provide a managed service where your company has total control of provides a full support for the server, database and applications and the client does not have access to all but the front end of the application.  Of course, if the customer has access to the database and can see running SQL code, then who can actually be beneficial if they have problems, because they can do their own initial analysis to determine the cause and determine if they should send the question to yourselves.

  • How to see the generated sql code

    Hello

    With the help of obiee 10g, I would like to see the generated sql code.
    I logged in as administrator
    Following manage-> sessions-> view log

    But when I click on connect gives this error ii do me "no logs found.

    The RPD administrator is a user with the recording as a 2 level.

    Thank you

    BI_ORACLE_HOME/server/log/nqquery.log

    to learn more:

    http://gerardnico.com/wiki/dat/OBIEE/nqquery.log

    Another method

    http://varanasisaichand.blogspot.com/2010/04/how-to-set-logging-level-for-users-in.html

    Thank you

    Deva

    Published by: Devarasu on December 6, 2011 17:26

  • Subquery 'WITH SAWITH0 AS' OBIEE 11 g factoring clause contained in the generated sql code

    I have observed that OBIEE 11 g generates in physics request log query using the (subquery factoring) WITH clause to the generated sql code elegantly readable. It's great! Thanks for the developers. However I have a few questions about it.

    __Background__
    Oracle database ' default behavior is that if you have only a subquery in the section, it runs as a perspective in line and he not materialized before the main sql is running. If you have more than one default database engine materializes all the in the order of definition. In some cases, it can completely blow up the SGA and make a query without end. To divert this behavior, you can apply two tips that work both in inline views in subqueries as well: / * + MATERIALIZE * / and / * + INLINE * /, however Analytics 11 g does not seem to have capabilities of Board at the table level logical, only at the level of the physical table.

    If we go with the current default settings, the developers do not know this feature can fall on serious performance problems for the sake of a few sweets of syntax to the generated sql level, I'm afraid.

    __Questions__

    * It is possible to turn the Analytics Server to not use WITH but views inline instead?
    * Is it possible to sneak in a few boards that would the / * + INLINE * / allusion to the proper place in the subqueries generated if necessary
    * Is the Oracle database has any initialization parameter that can influence the behavior of this subquery factoring and divert by default?

    The WITH statement is not added to make the query more elegant, it is added for performance reasons. If your queries slow to run, then you can have a design problem. In a typical DWH DB SGA should be increased seriously given that ran queries are much larger and complex than on an OLTP DB. In all cases, you can disable the WITH statement in the administration tool by double clicking on your database on the physical layer from object in the features tab. The function is called WITH_CLAUSE_SUPPORTED.

  • The call to the Workflow background process explicit in the pl/sql code

    Hi all

    We have a requirement where we need to call the "Workflow background process" explicitly in the pl/sql code.
    Our wish is that we have an application that runs via a competing program, but before the end of this application we want to put that on the wait and run the 'Workflow background process"explicitly in the code itself (user must not go and run it manually).
    Can someone please advice me how to do this in a PL/SQL code that is called via a concurrent program.

    Kind regards
    Shruti

    PL post Details of the operating system, database and versions EBS.

    One solution is to use the FND_SUBMIT API

    The most common FND API in APPS customizations [ID 221549.1]
    Code example for call Customer Interface RACUST program using the Api FND_SUBMIT 11i and R12 [429278.1 ID]

    https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_SUBMIT&objid=C3&DateRange=all&userid=&NumResults=15

    HTH
    Srini

  • output the generated SQL code

    I know that you can build the sql code generated by a query in Coldfusion 7 using the result attribute but it's nto available with Coldfusion MX and unfortunately I'm stuck with MX.

    so is it possible with MX for the SQL code generated from a CFQUERY?

    In the CF administrator, turn on debugging and enter your IP address in the appropriate box. The executed SQL appears at the bottom of the page.

    Another approach would be to do something like the following:

    SELECT a, b, c #myTable # WHERE d = "#dValue #" e = "#eValue #

    The SELECT statement in this example is identical to that of the

  • How to pass the Record of entry to the dynamic SQL Code

    Hi all

    I am trying to run under Oracle applications API on the remote database using DB Link. I try to run using dynamic SQL. Part of the code is given below.

    DECLARE

    l_batch_info_rec wsh_picking_batches_pub.batch_info_rec;

    l_rule_id NUMBER;

    l_rule_name VARCHAR2 (240);

    l_batch_prefix VARCHAR2 (240);

    BEGIN

    l_batch_info_rec.document_set_id: = v_document_set_id;

    l_batch_info_rec.order_type_id: = v_order_type_id;

    l_batch_info_rec. Default_Stage_Subinventory: = v_default_stage_subinventory;

    l_batch_info_rec.pick_grouping_rule_id: = v_pick_grouping_rule_id;

    l_batch_info_rec.pick_sequence_rule_id: = v_pick_sequence_rule_id;

    l_batch_info_rec.autopack_level: = v_autopack_level;

    l_batch_info_rec.autopack_flag: = v_autopack_flag;

    l_batch_info_rec.ac_delivery_criteria: = v_ac_delivery_criteria;

    l_batch_info_rec.backorders_only_flag: = v_backorders_only_flag;

    l_batch_info_rec.existing_rsvs_only_flag: = v_existing_rsvs_only_flag;

    l_batch_info_rec.customer_id: = v_customer_id;

    l_batch_info_rec.order_header_id: = v_header_id;

    l_batch_info_rec.from_scheduled_ship_date: = NULL;

    l_batch_info_rec.organization_id: = v_organization_id;

    l_batch_info_rec.include_planned_lines: = v_include_planned_lines;

    l_batch_info_rec.autocreate_delivery_flag: = v_autocreate_deliveries_flag;

    l_batch_info_rec.autodetail_pr_flag: = v_autodetail_pr_flag;

    l_batch_info_rec.allocation_method: = 'I ';

    l_batch_info_rec.pick_from_locator_id: = NULL;

    l_batch_info_rec.auto_pick_confirm_flag: = 'n';         -The value manually to run Transact order

    l_batch_info_rec.autopack_flag: = 'n';         -Manually configure to perform the manual packaging

    l_rule_id: = NULL;

    l_rule_name: = NULL;

    l_batch_prefix: = NULL;

    v_sqlstmt1: = ' START

    wsh_picking_batches_pub.create_batch' | g_db_link | "(1.0,

    fnd_api.g_true,

    fnd_api.g_true,

    : l_return_status,.

    : l_msg_count,.

    : l_msg_data,.

    : l_rule_id,.

    : l_rule_name,.

    : l_batch_info_rec,.

    : l_batch_prefix,.

    : p_new_batch_id

    );

    END;';

    --

    EXECUTE IMMEDIATE V_sqlstmt1

    With the HELP OF THE l_return_status,.

    ON l_msg_count,.

    ON l_msg_data,.

    BY l_rule_id,

    BY l_rule_name,

    BY l_batch_info_rec,

    BY l_batch_prefix,

    OUT p_new_batch_id;

    --

    END;

    After you run this script, I get below error "PLS-00457: expressions must be SQL types ' for variable l_batch_info_rec which is of type record. can someone please guide me how can I pass variable type dynamic SQL record.

    Thank you

    Priyanka

    Food for thought:

    On remote db:

    SQL > create or replace
    package 2 pkg
    3 is
    4 type r_type is (record
    Number 5,
    6 name varchar2 (10)
    7                            );
    (p) 8 procedure
    9 p_rec in r_type,
    10 p_out out varchar2
    11                  );
    12 end;
    13.

    Package created.

    SQL > create or replace
    package 2 body pkg
    3 is
    4 procedure p)
    5 p_rec in r_type,
    6 p_out out varchar2
    7                  )
    8 is
    9 start
    10 p_out: = "ID = ' |" p_rec.ID | 'Name =' | p_rec. Name;
    11 end;
    12 end;
    13.

    Package body created.

    SQL >

    On local db:

    SQL > set serveroutput on
    SQL > declare
    v_rec 2 pkg.r_type@pdb1sol12;
    3 v_out varchar2 (50);
    4 start
    v_rec.ID 5: = 1;
    6 v_rec.name: = 'XXX ';
    7 immediate execution"
    8                        begin
    9 pkg.p@pdb1sol12 (: 1,: 2);
    10                        end;'
    11 using v_rec,
    12 v_out;
    13 dbms_output.put_line (v_out);
    14 end;
    15.
    using v_rec;
    *
    ERROR on line 11:
    ORA-06550: line 11, column 20:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored

    SQL > declare
    2 number of v_id: = 1;
    3 v_name varchar2 (10): = 'XXX ';
    4 v_out varchar2 (50);
    5. start
    6 immediate execution"
    7 report
    8 v_rec pkg.r_type@pdb1sol12.
    9                        begin
    10                            v_rec.id  := :1;
    11 v_rec.name: =: 2;
    12 pkg.p@pdb1sol12 (v_rec,: 3);
    13                        end;'
    14 using v_id,
    15 in v_name,
    16 v_out;
    17 dbms_output.put_line (v_out);
    18 end;
    19.
    ID = 1 name = XXX

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • Reg: Validation of the PL/SQL codes-

    Hi Experts,

    Need some ideas/advice about a tool " check/validation of the code syntax .

    Is it possible - to create a PL/SQL procedure (for example, ' X') where the i / p will be any creation of the Table or procedure script. X will check the syntax and any other coding loophole postings.
    In fact, we have a lot of overhead of manual checking the code for some best practices of coding. Just so desirable to automate their in a proc X.
    Can be written Regexs or any other way... a few checks as -.
    + 1] + CREATE or REPLACE PROCEDURE < schema_name >. < proc_name >
    Usually developers here avoid the schema name.

    + [2] + good Exception blocks with no. SO that OTHER THEN NULL;

    Is it really feasible or I'm just too think?

    (I have access to 10g and 11g databases).

    Please suggest some ideas. (from now on, I've tried for a windows batch script that will check for the validation of the scripts stored in a folder that + .txt)
    Help much appreciated.

    Vanessa B.

    nordine B wrote:
    The words were really wonderful, Etbin. Thank you!

    But, naming conventions g_ , v_ and . can never (mostly) right change..?
    So just try to find something like that.

    Start a simple tool and gradually increase the complexity.

    Or, do you have any other tool in mind which can reduce the daily effort?
    No matter what tool you find really useful and interesting development - to facilitate the daily efforts

    FYI - we have one tool, input a proc/table gives all other objects related to IT... same indexes, triggers, etc. Something new as this ;)

    When I was a 'Developer' (we called the postion "Programmer/Analyst"), we spent a lot of effort on the naming of standards. And given that the standards have been published and known by all programmers in the shop, catch violations has been easy to do during code reviews, even if it wasn't the purpose of focus or the destination of the revision of the code.

    So, if you are doing critical business logic code and you have a manual of standards published to cover the naming conventions, etc., then standards will be a trivial addition to a revision of the code "business logic". I think that you are pursuing a solution in search of a problem. I know it's hard for the younger generation to accept, but sometimes automation is simply not the solution. Or at least not the optimal solution.

    In fact, there is a little human psychology comes into play. If you have published standards, you don't even have to do "compliance" of the order of the day on a revision of the code "business logic". Developers will be quick to them yelling, and the fear of this will help the grip in the car in the first place. This is a factor that is not understood by computers or human beings who believe that computers are the solution to everything.

    That said, he has there the tools that will help identify some problems. SQL Navigator is one that comes to mind.

    Published by: EdStevens on February 17, 2013 18:19

    Published by: EdStevens on February 17, 2013 18:22

  • Run of the PL/SQL Code in DA

    Hi all

    Please help me to understand the behavior of action DA ' run the Code in PL/SQL.

    I have an element hidden in my area.
    I can put the value using javascript and $s,
    But, if after this, I updated the value in PL/SQL Help: P1_H: = '555'; and in the next action javascript I'm reading using $v I get the previous values established by $s.
    How can I configure the value of the hidden SUMMIT point "Code of PL/SQL Execute" DA action?

    Please take a look at: http://apex.oracle.com/pls/apex/f?p=4550:1:0:F4550_P1_COMPANY:ANDREIDEMO
    User: Pass of dev: dev App: application demo

    Thank you very much
    Andrei

    Fateh, I am not a guru of the Apex, but I use DAs and understand how the options points to submit Page and back Page .
    I recommend reading the documentation at http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_dynamic_actions.htm and other items on these options.
    Kofi

    Published by: Kofi on November 14, 2012 16:45

  • In the PL/SQL Code changes

    Hi all

    I have the code below, and I want to change it according to the questions A and B.

    I'm new to PL/SQL and I do not undestand the terminology correctly. Any sugestion for how to change the code to match question a and b are welcome.



    a. said an INDEX BY type of dept_table_type of table
    departments.department_name. Declare a variable my_dept_table of type
    dept_table_type to temporarily store the name of the departments.

    b. declare two variables: benchmark(loop_count,expression) and type deptno NUMBER. Assign 10 to
    benchmark(loop_count,expression) and 0 to deptno.


    DECLARE
    TYPE departments_table IS TABLE OF departments % ROWTYPE directory INDEX;
    departure of departments_table;
    BEGIN
    SELECT *.
    LOOSE COLLECTION starting
    Ministries;
    BECAUSE me initially. FIRST-... depart. LAST
    LOOP

    DBMS_OUTPUT. Put_line (to_char (departure, (i), .department_id));

    END LOOP;
    END;


    I thank very you much in advance!

    899335 wrote:
    Hi all

    I have the code below, and I want to change it according to the questions A and B.

    I'm new to PL/SQL and I do not undestand the terminology correctly. Any sugestion for how to change the code to match question a and b are welcome.

    a. said an INDEX BY type of dept_table_type of table
    departments.department_name. Declare a variable my_dept_table of type
    dept_table_type to temporarily store the name of the departments.

    The type will be very similar to the INDEX PER table called departments_table. The main difference is that each row of a table departments is a
    % ROWTYPE departments, but each line in a dept_table_type will be a
    Departments.department_name%type.

    The variable my_dept_table will be very similar to the existing variable dept_table.

    Moreover, it would be preferable to use consistent types and variable names.
    Departments_type would be a better name than _table of ministries for the type, because it is a TYPE, not a TABLE.
    If the column in the table is called department_iname, then department_name_type would be a better name than dept_table_type. You're not abbreviate Department in other places, so do not here. Such processes only the deparatment_name, not the whole column.
    My departments_table and my_department_name_table would be better names that leave and my_dept_table.

    b. declare two variables: benchmark(loop_count,expression) and type deptno NUMBER. Assign 10 to
    benchmark(loop_count,expression) and 0 to deptno.

    You can declare a variable anywhen NUMBER in the DECLARE section and assign it a value in the BEGIN section, like this

    DECLARE
        ...
        x   NUMBER;
        ...
    BEGIN
        ...
        x := 10;
        ...
    

    You can also declare a variable and assign a value to it at the same time, in the DRAWING section, like this:

    DECLARE
        ...
        y   NUMBER := 0;
        ...
    
  • Declarations of error in the PL/SQL Code

    Hi all:

    I have a routine of PL/SQL that I need to add "Error Statements" in case something thing errors when it is run, the user will know and be able to solve the problem. Here's a copy of what I need to run. Is a unique it will only be run once and when it is finished without error, it will not be used again, but when it ran inside TOAD / TORA / SQLPlus, how to display an error to the user in case something goes wrong? I know it's probably a very simple thing to do, but I come from SQL Server and only learn PL/SQL - Oracle and I do not know how to do this. Any help would be greatly appreciated.

    DECLARE
    -----------------------------------------------------------------------------------------------
    -Local Variables
    -----------------------------------------------------------------------------------------------
    l_gm_master_label VARCHAR2 (20);
    l_active_flag VARCHAR2 (1);
    l_currdate DATE;
    l_comp_id VARCHAR2 (10);
    l_site_id VARCHAR2 (12);
    l_gm_master_id NUMBER;
    BEGIN
    -----------------------------------------------------------------------------------------------
    -Set default values
    -----------------------------------------------------------------------------------------------
    l_gm_master_label: = 'DMLogic001 ';
    l_active_flag: = 'n';
    l_currdate: = SYSDATE;
    l_comp_id: = 'XE ';
    l_site_id: = "OHIO."
    l_gm_master_id: = 0;
    -----------------------------------------------------------------------------------------------
    -Get the next value
    -----------------------------------------------------------------------------------------------
    SELECT
    trn_gm_master_seq. NEXTVAL
    IN
    l_gm_master_id
    Of
    Double;
    -----------------------------------------------------------------------------------------------
    -Insert generic Gray number master record who will join all the serial numbers DMLogic
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_master
    (gm_master_id,
    gm_master_label,
    active_flag,
    CURRDATE,
    identifiant_composant,
    Site_ID)
    VALUES
    (l_gm_master_id,
    l_gm_master_label,
    l_active_flag,
    l_currdate,
    l_comp_id,
    l_site_id);
    -----------------------------------------------------------------------------------------------
    -Insert the records
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_serial_number
    (gm_serial_number_id,
    gm_master_id,
    gm_serial_number,
    received_by,
    received_date,
    picked_by,
    picked_date,
    ebiz_sku_no,
    identifiant_composant,
    Site_ID,
    ebiz_ord_no,
    interface_date)
    SELECT
    trn_gm_serial_number_seq. NEXTVAL,
    l_gm_master_id,
    S.Serial_number,
    1,
    S.CREATION_DATE,
    1,
    S.CREATION_DATE,
    S.ebiz_sku_no,
    l_comp_id,
    l_site_id,
    O.ebiz_ord_no,
    S.interface_date
    Of
    dmlogic.trn_rm_serial_number S
    INNER JOIN ebiznet.trn_ordhead O ON S.ord_no is O.ord_no;.
    ----------------------------------------------------------------------------------------------
    -Commit the changes
    ----------------------------------------------------------------------------------------------
    COMMIT;
    -----------------------------------------------------------------------------------------------
    -Rollback If an error occurred
    -----------------------------------------------------------------------------------------------
    EXCEPTION
    WHILE OTHERS THEN
    ROLLBACK;
    END;

    Remove WHEN OTHERS will allow exceptions to access the user and halt execution. You get a descriptive message and the line in PL/SQL, where it has occurred.

    In very rare occasions when OTHERS WHEN is inevitable, RAISE re-lift the exception and stop running.

    You can increase your own exceptions to conditions specific to your application with RAISE_APPLICATION_ERROR(). (Syntax and parameters can be found in the documentation)

  • Result passage of PL/SQL code for the page element

    Hello

    I have created a process in after the header to fill data to the page of the form elements.  The pl/sql code is like bellows.  Then I got the error message:

    ORA-06502: PL/SQL: digital or value error: character number conversion

    My question is that I do not see the difference in format between the page element and block pl/sql variables (e.g. : P31_STUDY_ID vs v_P31_STUDY_ID), they are either numeric or text field (in fact I have hidden field, but don't see conversion back to the digital field solved the problem).  And don't see needs to set the format mask.  Is there another way to detect the column that causes the problem, or if there is a syntax error with my assignment (from the variable element on the page)?  Thank you very much!

    ============================

    Declare

    number of v_P31_STUDY_ID;

    number of v_P31_STUDY_SITE_ID;

    v_P31_STUDY_SITE_NAME VARCHAR2 (255);

    v_P31_STUDY_SITE_NUM varchar2 (10);

    number of v_P31_STUDY_SITE_NAME_NUM_ID;

    number of v_P31_STUDY_SITE_OPEN_STATUS;

    v_p31_comments VARCHAR2 (255);

    Start

    Select

    tbl_study_site.study_id,

    tbl_study_site.study_site_id,

    study_site_name,

    study_site_num,

    STUDY_SITE_NAME_NUM_ID,

    STUDY_SITE_OPEN_STATUS,

    Comments

    in

    v_P31_STUDY_ID,

    v_P31_STUDY_SITE_ID,

    v_P31_STUDY_SITE_NAME,

    v_P31_STUDY_SITE_NUM,

    v_P31_STUDY_SITE_NAME_NUM_ID,

    v_P31_STUDY_SITE_OPEN_STATUS,

    v_p31_comments

    of tbl_study_site, tbl_study_site_attrib

    where tbl_study_site.study_id =: p30_study_name

    and tbl_study_site.study_site_id = tbl_study_site_attrib. STUDY_SITE_ID

    and tbl_study_site_attrib. STUDY_SITE_ATTRIB_ID =: P31_STUDY_SITE_ATTRIB_ID;

    : P31_STUDY_ID: = v_P31_STUDY_ID;

    : P31_STUDY_SITE_ID: = v_P31_STUDY_SITE_ID;

    : P31_STUDY_SITE_NAME: = v_P31_STUDY_SITE_NAME;

    : P31_STUDY_SITE_NUM: = v_P31_STUDY_SITE_NUM;

    : P31_STUDY_SITE_NAME_NUM_ID: = v_P31_STUDY_SITE_NAME_NUM_ID;

    : P31_STUDY_SITE_OPEN_STATUS: = v_P31_STUDY_SITE_OPEN_STATUS;

    : P31_COMMENTS: = v_p31_comments;

    end;

    =============================

    Identify the root cause. He's always on the format of the column, there is an error.  Thanks for your help.

  • Node affinity d ' execution for the PL/SQL Packages?

    Colleagues dbas,

    We have a problem of random performance on one of our database RAC 11 GR 1 material due to waiting for IO.

    In fact, we've tracked down the problem and noticed that the sql packages are executed on the bad weather causing node 1 and were executed on node 2 with good results.

    Now the question is how we apply these pl/sql packages, that are called via batch external, must be running on node 2?

    Affinity of the proceeding came to my mind, but I have no idea whatsoever how to apply for parcels and incorporated the pl/sql code.

    Can you please give me an advice?

    Thanks for your comments!

    Best regards

    Sebastian

    You must define a service to run on node 2 with failover to node 1 and give a your batch jobs a string of connection that connects to this service:

    Add srvctl service d a s batchserv - r node2 - a node1

    and in your tnsnames.ora,.

    batchserv =

    (description =

    (address_list =

    (failover = on) (load_balance = on)

    (address = (node1...) (address = (node2...))

    )

    (connect_data = (service_name = batchserv))

    )

    I recorded several demos of this thing of the kind,

    Database Oracle 12 c and g 11 tutorials free for Administration and developers SkillBuilders

    --

    John Watson

    Oracle Certified Master s/n

  • What is the integer equivalent of the t - sql in oracle?

    I heard that oracle is not an ' Integer ' for table structures.

    He took all my fields of integer type and makes them Number (10.0).

    When my program runs, it compares the result in full and fails... If I look at the value it says "1 d" which I assume means 1 decimal Typedonnees.
    I need to return an integer data type. I need to change the Number (10,0) number (10) or something else?

    number (10,0) is an integer type. How do you compare numbers? I suspect a problem of conversion of customer.

    Moreover, this forum is specifically for the SQL Developer tool. You can get more answers in the forum 'SQL and PL/SQL '.

  • want to understand the stages of executing pl/sql code

    Hello all;

    I want to know the logic of programming for the pl/sql code, what I have written;

    because I was late yesterday to resolve the simple error.

    > > It's link https://forums.Oracle.com/thread/2565867

    OK now that I have written my code same lineup, but few changes:

    now it's working.  as I said above, I want to know the programming logic "flow of execution steps" of pl/sql code

    1 DECLARE

    2 a number: = 10;

    3 number of b: = 20;

    Number 4 c;

    5 procedure findmin (x IN number, are there in numbers, number of Z OUT) IS

    6 BEGIN

    7 < < BLOCK1 > >

    8 x if you can

    9 z: = x;

    10 other

    11 z: = y;

    12 end if;

    13 END;

    BEGIN 14

    15 < < BLOCK2 > >

    16 findmin(a, b, c);

    17 DBMS_OUTPUT. Put_line (c);

    18 * END;

    19.

    10

    PL/SQL procedure successfully completed.

    > > Is this process flow?  > >

    1. the declaration part.

    2 during playback findmin online no 5 then control passes to the line not 16.

    3. after receving input values, control passes back to 5

    4. then compiler executes the code accordingly.

    Question: how many compiler Oracle will execute code written?

    8f953842-815B-4D8C-833d-f2a3dd51e602 wrote:

    1. the declaration part.

    2 during playback findmin online no 5 then control passes to the line not 16.

    3. after receving input values, control passes back to 5

    4. then compiler executes the code accordingly.

    Question: how many compiler Oracle will execute code written?

    1. any declaration section is processed in order to declare and allocate the space/memory etc.  Including declaring the procedure in scope in memory (the procedure is not executed)

    2 execution block to get the code begins with the first statement after BEGIN

    3. the procedure is called in memory with the parameters passed to it.

    4. when the procedure completes execution returns to the statement in the main execution block, after the procedure call.

    Note:

    The compiler is not executing code, it compiles just in memory or stored in the database (depending on whether it is an anonymous block or the stored procedure / package etc..)

    The code isn't really jump 'line by line', because at the time when it is run, it is compiled down to a pcode (or native code if this is allowed), and which may contain several intermediate statements to run the underlying process.  The compiled code however keep track of line numbers of source code of error for the purposes of statement internally.

Maybe you are looking for

  • FF does not allow me to update Java or Adobe on vista what I do?

    On a vista machine, I receive guests of Adobe update in FF. I click on the adobe update. A dangerous java message appears asking if I want to up grade. I say yes, update tells me it updated, FF then go to 'check add them on the page' and simply turni

  • Portege M800-105 - output HDMI for XP driver?

    Hello I have a question that belongs to the HDMI output.I put Windows XP Home on my Portege with all the driver from Toshiba support page but my HDMI output does not work. Now, I saw that there is a driver for Vista called output HDMI Toshiba.Anyone

  • Satellite 4080XCDT: need XP driver and software to use the Fn keys

    Hello! I get a software to use the fn Satellite 4080XCDT.I use the laptop under Windows XP.I am looking for a driver package or software for Windows XP. Sorry for my English!

  • Satellite Pro P300-1BD - installation of inappropriate language

    Hello I have a Satellite Pro P300-1BD On the first start, when install us Vista (OEM Business), we made a mistake, and we choose the wrong language (nederlands and we would be in french)How is it possible to fix this? I tried to make a recovery dvd,

  • LabVIEW 64 or 32-bit labview?

    Hello, I have a new 6-bit pc and an old 32-bit pc, and I have to use two of them. If I install on the 64-bit 64-bit machine labview, when I save a vi, it can be opened on the 32-bit computer? With this kind of problem, do you suggest me to install la