the use of this procedure.

HelloW everyone.
I created the following procedure in sql > but now I want to use in the form, please how to use the following procedure in form?
SQL > DECLARE
2 v_Calc NUMBER: = 0;
3 BEGIN
4 while IN v_Calc < = 10 LOOP
v_Calc 5: = v_Calc + 1;
6 DBMS_OUTPUT. Put_line ('the value of v_Calc is' | v_Calc);
7 END OF LOOP;
8 END;
9.

Tic Tac Toe

Tic Tac Toe,

Check the p_hiredatesetting. Now, he is regarded as parameter . And in the process, its an OUT parameter. So to change the procedure declaration line of

create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate date, p_sal out number) is

TO

create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate out date, p_sal out number) is

And to call the procedure try,.

DECLARE
   Num_p_empno number;
   Str_p_ename varchar2;
   Str_p_job varchar2;
   Dt_p_hiredate date;
   Num_p_sal number;
BEGIN
   Num_p_empno := ;
   Str_p_ename := ;

   emp_query(, Num_p_empno, Str_p_ename, Str_p_job, Dt_p_hiredate, Num_p_sal);
END;

Kind regards

Manu.

Published by: Manu. July 27, 2010 13:54

Tags: Oracle Development

Similar Questions

  • What is config.version = 8 parameter. VMX file and what is the use of this parameter

    What is the use of this parameter

    . VMX contains an entry called config.version which will specify a Version number of the vmware product that came with.

    1. Config.version = 7 - jobs of VMware version4/GSX Server 3.x
    2. Config.version = 8 - version of VMware Workstation 5 and 5.5

    If you have a copy of the virtual hard disk only. VMDK and you don't know that generation of equipment it is, then you can search the file for the appropriate string. Identification of material is stored in the first. VMDK file of the defined virtual disk.

    Widnows:

    Find "virtualHWVersion".

  • What is the problem with the format of this procedure

    on the page of the apex I displays a record based on the record number of user input. Now, I need to convert the process in a procedure.

    treat before heading in the apex:
    Select emp_id, emp_name in (: p1_emp_id,: p1_emp_name) of employees where emp_id =: p1_entered_id;




    My unsuccessful attempt of conversion:

    treat before heading in the apex:
    p_find_emp_data (p_emp_id = >: p1_emp_id,)
    p_emp_name = >: p1_emp_name,.
    p_entered = >: p1_entered_id);


    procedure:
    create or replace procedure P_find_emp_data
    (p_emp_id number,
    p_emp_name in varchar2,
    P_entered number)
    is
    Start
    Select emp_id, emp_name in: p_emp_id,: p_emp_name form employees where p_emp_id =: p_entered;
    end

    issues related to the:
    1. to help ' = > ' in a process call, this means match and assign the value? ex: p_emp_name will have p1_emp_name value\data. If Yes
    2. why the compiler of procedure do not like my select statement on: P_emp format, it's like I need to redefine the variables.

    Can you help me? It must be that I misinterpretate the ' = > ' but has not found this notation in doc. This notation was an employee now disappeared.

    Thanks in advance a lot.

    wanwan63,

    First of all, for notation, using the '=> '...

    Means what is pairs name / value. Using this, you can call your procedure with the parameters in any order that you like. Some examples of the appeal of your home with this notation.

    P_find_emp_data (p_emp_id => 1 , p_emp_name => 'DOUG', p_entered => 123232);
    p_find_emp_data(p_emp_name => 'DOUG', p_emp_id => 1, p_entered => 123232);
    

    Two of these calls are equivalent.

    Now, the reason why your selection... in does not work.

    You have all your settings specified as part of the definition, which means that they are used ONLY to pass information in the procedure.

    If you mark as IN OUT or OUT (depending on their use) you'll have better luck that of why, based on the code that you included, the signature of your procedure should be

    create or replace procedure P_find_emp_data
    (p_emp_id OUT number,
     p_emp_name OUT varchar2,
    P_entered IN number)
    is
    begin
    select emp_id,emp_name into p_emp_id, p_emp_name form employees where p_emp_id = p_entered;
    end;
    

    Also note that I removed the colon before the references to parameters. They are not needed, referring to the parameters of the procedure.

    Hope that helps,

    -Doug-

    http://sumnertech.com/

  • What is the use of compiling procedures?

    Hi people,

    I want to know the use of the package, namely, DBMS_DDL.
    It's what is the utility of this statement for example,
    DBMS_DDL EXEC. ALTER_COMPILE('PROCEDURE','OWNER','OBJECT_NAME);

    This procedure has been compiled.but can u please explain under what circumstances this pack is useful. Khalil.

    Concerning
    VIDS

    wrote: user_7000007

    Hi people,

    I want to know the use of the package, namely, DBMS_DDL.
    It's what is the utility of this statement for example,
    DBMS_DDL EXEC. ALTER_COMPILE('PROCEDURE','OWNER','OBJECT_NAME);

    This procedure has been compiled.but can u please explain under what circumstances this pack is useful. Khalil.

    Concerning
    VIDS
    It is possible that a procedure becomes invalid for any reason any (database to load opposed dropped and re-created, etc.) so that the procedure can be recompiled to make valid again once all dependent objects are put back in place. Generally however, the objects of database automatically attempts to recompile if they are not valid and something trying to run them. If it cannot then be compiled because it is not valid, then an error is raised.

  • The use of this site

    I could have said something that I said something after I asked a Question in the past makes them think I didn't need or deserve to be helped.

    But, of course, I want to help! And I want to help everyone who publishes the answers on this site. That's why I'm here - I'm here want and need help.

    I deeply apologize if I said anything on this site that seemed even remotely arrogant or rude to someone, I sure that really didn't want to be rude.

    Hi Jeff,

    As I find that you received responses from various members of the community in most of your discussions.

    If you aren't able to find your previous posts, you can click on this link.

    http://answers.Microsoft.com/en-us/profile/a945895a-cf97-49f9-A748-c3e552341736

    Hope the helps of information.

    Please post back and we do know.

  • G25-AV513: Questions about the use of this device

    I recently bought the Qosmio G25-AV513 but it was an open box, so I went back there and has been convinced, it was beautiful... so I started to set up at home and low and behold... bad pixels. So I went back and asked when would happen more... and I was told no more are regular and doubtful if they will be. But they have another oped model that runs like new...

    So the question I have. I'll buy this mainly for use high game... dunno if I should adjust for this model... now that I know, that a newer version came in the second week of January... but if it is not suitable for use games and audio/video I lost out on the G25.

    All recommendations... ?
    Do you think that this new model would be the next progression or and a good bet... or just different and not worth risking the g25 on.

    Hello Kerry

    Of course, you have an American machine and the hardware configuration is not known to me. The fact is that each new unit has especially more recent pieces of material (more MB on graphics card) or more of RAM. Qosmio G20 G25 United States is a great unit. A friend of mine has one and the game works fine.

    In my view, you can compare your device with a newer version, but if you like playing games, in my opinion, the G25 is the right one.

    Good bye

  • Y at - it a tutorial for the use of this software together? Is there a "workflow" for different tasks?

    That's all.

    Think about it and how incredibly intuitive, it would be for Creative cloud create and make the tutorial videos on how to make the best use of all the software together.  They should say what you use and define a workflow of software.

    Hello

    Learn team studying all means to grant your wish. Stay tuned.

    Thank you

    Preran

  • What is the problem with the use of 'this' here?

    <?xml version="1.0" encoding="utf-8"?>
    <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Script>
              <![CDATA[
                   import mx.core.IVisualElementContainer;
                   public function set thingHolder(value:IVisualElementContainer):void
                       { _thingHolder = value; }
                   protected var _thingHolder:IVisualElementContainer = this;
              ]]>
         </fx:Script>
    </s:BorderContainer>
    
    

    The error I get on the "protected var..." line is:

    1067: constraint implied a value of class type to a type unrelated to mx.core:IVisualElementContainer.

    I want the object to initialize the property thingHolder to himself and also to support the property defined by the component that includes this one to something else.

    This seems to work:

    
    
      
        
      
    
    

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.stardustsystems.com
    Adobe Flex development and Support Services

  • Can limit us the use of cpu/memory of a procedure?

    Hello!

    We have a custom procedure that takes a long time to complete and consumes a lot of cpu/memory resources because it creates many jobs treatments leader (ORA_Jxxx). Indeed, the whole system becomes slow because of these processes to work queue. Is there a way to limit cpu/memory resources used by this procedure?

    Thanks in advance.

    Jon

    Hello

    You can use the Oracle Resource Manager, but first of all, you should be aware of the bugs with RM

    What is your version of oracle?

    http://docs.Oracle.com/CD/E11882_01/server.112/e17120/DBRM.htm#ADMIN027

    Concerning

  • Open and close the connection in oracle procedure

    Here is the procedure I'm in I insert data into the table temp_soap_monitoring using the select statement. I have soap_monitoring table FONIC_RETAIL database where I want to take the data and insert into the table temp_soap_monitoring. I play the position of planner of all 5 minutes for this procedure so that I get always the latest data in soap_monitoring@fonic_retail table. The problem of this procedure is that it takes too much cost and the query execution time to perform this procedure. Whenever he tries to extract the data from db link and save my local database. I remember in Java, php, and other programming languages, we have method in order to open the db connection when we tried to extract data from db link and then once integration is complete, we can close the db connection. So the performance improves and also has no load on db link. In this method, we have to assign link db to retrieve the data. So I think is it possible to apply this logic in my oracle procedure. The question arises because at this moment I am hard code the link db, but now I have 3 db more links and I will not reproduce the same procedure by assigning diffferent db links.

    PROCEDURE  "EXT_SOAP_MONITORING" AS

    LAST_SM_ID Number
    := 0;
    LAST_CAPT_DATE DATE
    ;

    BEGIN

    SELECT LAST_TASK_ID INTO LAST_SM_ID FROM CAPTURING where DB_TABLE='TEMP_SOAP_MONITORING';

    insert into TEMP_SOAP_MONITORING(ID,REQUEST_XML,RESPONSE_XML,WEB_SERVICE_NAME,WEB_METHOD_NAME,CREATE_DATE,ERROR_CODE,ERROR_MESSAGE)
    select ID,REQUEST_XML,RESPONSE_XML,WEB_SERVICE_NAME,WEB_METHOD_NAME,CREATE_DATE,ERROR_CODE,ERROR_MESSAGE from
    SOAP_MONITORING
    @FONIC_RETAIL WHERE WEB_SERVICE_NAME ='RatorWebShopService'  and WEB_METHOD_NAME = 'placeShopOrder' and ID > LAST_SM_ID order by ID desc;

    update
    CAPTURING
    set LAST_TASK_ID=
    CASE WHEN ((SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL) AND (LAST_TASK_ID  IS NULL)  THEN (SELECT MAX(ID) from SOAP_MONITORING@FONIC_RETAIL)
    WHEN (SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL THEN LAST_TASK_ID + 1
    ELSE (SELECT MAX(ID) from TEMP_SOAP_MONITORING) END,
    CAPTURING_DATE
    = CURRENT_TIMESTAMP, LAST_CAPTURED_DATE = LAST_CAPT_DATE where DB_TABLE='TEMP_SOAP_MONITORING';

    END EXT_SOAP_MONITORING;

    I have it here is the procedure which I insert data in

    temp_soap_monitoring table by using the select statement. I have

    soap_monitoring table of FONIC_RETAIL database where I want to take the data and insert into the table temp_soap_monitoring.

    WHY? Why you are moving the data? Why not just use it table, is it already?

    The problem of this procedure is that it takes too much cost and the query execution time to perform this procedure.

    The solution is to FIND THE PROBLEM. Troubleshoot the code and find out where is the problem, if any.

    Based SOLELY on what you have posted the solution might be to add just an appropriate index.

    Whenever he tries to extract the data from db link and save my local

    database. I remember in Java, php, and other programming languages, we

    method to open the db connection when we tried to extract data of

    DB link and then once integration is complete, we can close the db

    connection.  So the performance improves and also has no load on db link.

    What? The LAST thing you want to do is keep the closing and opening of the connections. I don't know how 'remember you' from Java or other languages. The main reasons pools of connections were invented to AVOID have to repeatedly open and close connections.

    A db link not a NOT a "charge" - the "charge" is the query is made. If you write a poor query or have a poor data without the necessary index model, or have missing statistics, then you will get poor results.

    In this method, we have to assign link db to retrieve the data. So I have
    is it possible to apply this logic in my oracle procedure to belive. The
    question arises because at the moment, I'm hardcode db link but now I
    have more ties db 3 and I will not reproduce the same procedure by
    assigning diffferent db links.

    You can certainly write Java code to connect to each database with a direct connection. But all write code PL/SQL must include the database link. And the only way to avoid hard-coding the link is to keep the names of link in a table and use dynamic sql statements to build and run the query. This isn't what you want to do if you're looking for performance.

    SELECT LAST_TASK_ID INTO LAST_SM_ID FROM CAPTURING where DB_TABLE='TEMP_SOAP_MONITORING';

    For all we know which could be the WHOLE CAUSE of your problem. If there is no index on the table, you could do a full table to a table with lines scan 800 billion;

    We have NO WAY of knowing since you haven't posted info. Please read the faq to find out how to post a request for tuning and the info you provide.

    1. the query

    2. the table and index DDL

    3. the execution plan

    4 RowCounts for tables and query predicates

    5. the info on the stats: how you collected them and if they are up to date

    update
    CAPTURING set LAST_TASK_ID=
    CASE WHEN ((SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL) AND (LAST_TASK_ID  IS NULL)  THEN (SELECT MAX(ID) from SOAP_MONITORING@FONIC_RETAIL)
    WHEN (SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL THEN LAST_TASK_ID + 1
    ELSE (SELECT MAX(ID) from TEMP_SOAP_MONITORING) END,
    CAPTURING_DATE = CURRENT_TIMESTAMP, LAST_CAPTURED_DATE = LAST_CAPT_DATE where DB_TABLE='TEMP_SOAP_MONITORING';

    My guess is that TERRIBLE method of trying to get a 'LAST ID' is what's causing ALL your problems of performance. This method will not scale, and it will NOT properly work in a multiuser environment.

    You need create a good BATCH_CONTROL table that all processes use during the creation and execution of lots.

    The MASTER of the process batch:

    1 Gets a new BATCH_ID using a sequence

    2 locks the current row in the table control and uses / change the value "last".

    3 creates a new line in the control table for the new batch process

    4. the line of control to date with the start time, end time, result State, County, etc. for the batch

    Your likely PROBLEM of has NOTHING to do with the links of the db.

  • The use of Teamviewer for remote access to another PC from a PC

    Hello

    I have TWO PC, but unfortunately two PC has the same IP I checked ipconfig.

    I called ISP regarding on the same IP between two PCs.

    Is it possible that a PC can access second tool PC remotely using the Teamviewer software, even if TWO PC IP addresses are the same now?

    Your comments will be appreciated.

    Thank you

    Hi Altman,

    TeamViewer is a third party software. For support on the use of this product go to TeamViewer Support Center.

    Note:   software use of third parties, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • What is the position of Microsoft on the use of "RunDll ClearMyTracksByProcess"

    For many years users use RunDLL to DLL system from a command line or a batch file.  This has been useful for the automation of many tasks in versions of WIndows to WIndows NT at least.

    There has always been some controversy on the use of this to make things as clear the cache of the browser.

    Since there are now likely to be more than 1 million systems by using the following command, I want to know what Microsoft has to say about its use.

    RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 8

    Should we continue to use it, or its use should be discontinued?

    It is worth noting that there is no specific documentation, although CPL/DLL entry points are documented in the Win32 API, and in other places.  I even had Microsoft Engineers perform many calls RunDLL by compensation or train to solve a problem.

    Thank you

    Hi quides.

    The TechNet here community would be probably better suited to answer your question.  I would say it is repost.

    Thank you!

  • Why HP advises against the use of virtualization (AMD - V)

    I have the HP dm1, which is kind of a netbook. It comes with 64-bit AMD e-450 (a low-power CPU clocked at 1.6 Ghz dual core). Windows 7 starter edition is installed by default. I did a dualboot with Linux 64-bit Kubuntu. the two operating system seem to work well.

    In any case I do some tests in virtualbox and a 64-bit image requires this funciton (AMD - V) .with virtualisaiton this virtual machine can access CPU directly (rather than through software).

    However, I noticed in the bios HP recommends to avoid using it unless you use the software drive (i.e. the Oracle virtualbox). I wonder why HP advises against the use of this function? This is for security reasons? Is this because windows 7 starter edition can not handle? Or it may degrade faster hardware? or is it because of the possible extra power drain (although I have not noticed this).

    I ask because I have no such warning in BIOS of my office mashcine.

    With AMD - V active for some reason probably does increase the risk of a virus by getting direct access to the CPU. The warning is for people who wander in the BIOS and tinkering without really knowing what they are doing, to prevent consumption machines.

  • What is the use of the InfoBundleR12.zip file in the Patch Wizard


    Dear Experts,


    Can someone please help me understand what is the use of the file InfoBundleR12.zip for the Patch Wizard in an environment of R12.

    I've seen a lot of metalink notes and documents that refers to downloadind this file and place it in the staging directory.


    However impossible to find any documentation on why it is necessary or the use of this file.


    Thank you

    Neeraj.

    Neeraj,

    This is used to update offline (i.e. don't want to access the MOS Web site), you can download the latest version of the file that contains the list of patches that helps you to analyze your existing and recommend with patches that must be downloaded/applied.

    Patch Wizard FAQ [video] (Doc ID 976688.1)

    How to use the Patch wizard without configuring the connection Internet (Doc ID 741129.1)

    Thank you

    Hussein

  • What is the use of snapshots of consolidation?

    I've read up, but I'm still not really what is the usefulness of this feature.

    Please can someone enlighten me?

    Also please correct if my train of thoughs is wrong:

    i. instant aren't really backups

    II. the Snapshots are supposed to be taken so that the virtual machine can be recovered at this point in time (for example, before the Windows Update)

    III. snapshots are "integrated" with dare the virtual machine (via VMware Tools), which means that we can make the Brownie when virtual machines are on the rise.

    -Windows 2008?

    -Microsoft SQL?

    IV. Snapshots would take place outside the VMs

    -The data store should be much larger then the VMS (for example if the virtual machine is 200 GB, datastore shd be 300 GB to VMDK + Snapshots)

    -Snapshot sizes would grow as time passes (eg. instant 100 days ago risked increasing from 10 GB to 20 GB according to the changes made to the virtual machine)

    v. recommendations (by VM)

    -Do not to keep snapshots to extend the periods of time

    -Do not keep too many clichés

    -"consolidate" snapshots

    So, what is the difference between "Consolidate" and "Delete All"?

    I think you may have the wrong idea of the snapshot...

    I would like to use Windows update + service pack installation for example.

    VM with MS svr 2003 running... you can install SP1, and then test, can install updates to Windows, and then test.

    -snapshot 1 (sn1): Win2003 Updates & SP

    -Install of Win2003 SP1 (with reboot etc.)

    -snapshot 2 (sn2): Win 2003 SP1

    -Install Windows updates current on Win2003 SP1

    -snapshot 3 (sn3): Win 2003 SP1 with updates

    -svr stable for 5 days (eg. installing Acrobat reader, Microsoft office)

    So u shd have 3 pictures... who all "grows" that you test your DVS.

    But your VM will be 4 types of main file (with respect to this context)

    1. basis of files of the virtual machine (vmdk, vmx, memory of the computer virtual, swp files etc.)

    2 VM snapshot file

    3 VM snapshot files swp (swap is maybe not correct name... but I do think that the proper name)

    In terms of logic...

    -'sn1' is the basis of the snapshot

    -"sn2" is "sn1" + "data1."

    -"sn3" is "sn1" + "data1" + data2.

    "- VM1 is sn1' + 'data1' + data2 ' + data unnamed swap

    The 5th day of test, the virtual machine will have files for

    ' '- sn1', "sn2", "sn3", 'data1', 'base VM,' data2 ' and unnamed swap data that are generated during the 5 days of tests.

    Then from the right 'consolidation' will convert the name in "data3" swap so that

    -'sn1' is the snapshot of base + 'data3 '.

    -"sn2' is 'sn1' + 'data1', 'data3 '.

    -"sn3" is 'sn1' + 'data1' data2' + 'data3 '.

    "- VM1 is sn1' + 'data1' + data2 ' + 'data3 '.

    In a way layman... Virtual machines with snapshot are VMs who have ΘtΘ divisΘs into multiple files.

    "" When you remove stereotypes (please do not try everything remove), what you do is merge sn1 "+"data1"+ data2 ' + data not named swap or 'data3' in a virtual machine.

    Sorry... I forgot to add... Please do not receive or keep snapshots VMware for long periods of time.

    The snapshots are not backup. They can line up while you have yourself photographed... soon...

Maybe you are looking for