Problem with calling out parameter

create table ee(id number,name varchar2(10))
insert into ee values(1,'o')
create table ee1 as select * from ee where 1=0
CREATE OR REPLACE PROCEDURE p(OUT_count OUT NUMBER)
AS
CURSOR cur1 IS
SELECT id, name from ee1;
v_count NUMBER := 0;
BEGIN -- MAIN
FOR row1 IN cur1
LOOP
BEGIN
INSERT INTO ee
( id,name)
VALUES ( row1.id,row1.name);
v_count := v_count + 1;
EXCEPTION
WHEN OTHERS THEN
null;
RAISE;
END;
END LOOP;
OUT_count := v_count;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
null;
     RAISE ;
END;
begin
scott.p;
end;
i get error

Hi,
Whenever you have an error, post the full eroor message, including the line number.
Indent your code, to show the scope of BEGIN, IF, LOOP, and other statements.
When you post code on this site, type these 6 characters
{code}
(small letters only, inside curly brackets) before and after the actual code, to preserve spacing.
If the procedure is defined as having one argument, an OUT argument, then you must call it with one argument, and it must be a variable (not a literal) of the correct type (NUMBER, in this case).
What is the point of
EXCEPTION
    WHEN OTHERS THEN
        null;
        RAISE;? Why catch the exceptions at all?
Edited by: Frank Kulash on Mar 30, 2009 5:14 PM

Similar Messages

  • Problem with call out

    Hi there,
    I have just bought a PAP2T unit and configured this unit. I can hear the dial tone but when I try to call a number, I get the warning as "This account number is not valid"
    Please  help fix this problem. I am trying to use pennytel.com as my service provider. I have use the correct account number but not sure why I above warning.
    Thank you.
    Jaliyan

    check it with your provider.
    if the message is voice type then it's not generated by PAP2T but by your provider.
    if any doubts install syslog (for example kiwi ones) and activate syslog and debug features of PAP2T; then consult the logs with your provider.

  • Lync 2013 I have a strange problem concerning group call pickup in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having about 5-7 second Anybody out there having similar problems with call pickup Groups?

    HI
    I have a strange problem concerning  group call pickup  in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having  about 5-7 second
    Anybody out there having similar problems with call pickup Groups?

    Hi,
    Did you meet any other call delay when you using Lync?
    As the issue happen for Lync desktop client, it can be performance issue. Please check if there is any error message from FE Server when the issue happen.
    Also please check if you have updated Lync Server to the latest version, if not, update it and then test again.
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

  • Problem with Call Transaction opt-RACOMMIT = 'X'.

    Hello Experts
    I am having a problem with call transction. I am calling a Z transaction in function module. Within the Z transaction I am furhter calling some function modules and doing commit work and then some more processing  after the comit work inside  So to make sure the code after comit work is fired I am using opt-RACOMMIT = 'X' in call transaction. Whenever I set this parameter opt-RACOMMIT = 'X' call transaction fails and gives error saying No batch Input data for screen XXXX. However the Z tcode processed succesfully.
    By changing the Mode to E i found that it remians at the last screen of call transction after executing the Z transaction and never comes back 
    But if I donot use RACOMMIT = 'X'  everything is fine. Please let me know if anyone came across such problem. Any help will be apreciated.
    Thanks,
    kamal

    Hello,
    as you said, if there is more than commit statement in your ztransaction, then you should put RACOMMIT to 'X'.
    I think the problem is in your bdcdata: change it to be sure to get back to the 1st screen of your ztransaction. Then, at this point (1st screen) hit "back" button.
    Cordialement,
    Chaouki

  • Problem with calling onApplicationStart() method

    Hi all,
         I have a problem with calling application.cfc's methods from coldfusion template. The problem is like when i am calling "onapplicationstart" method inside a cfml template i getting the error shown below
    The onApplicationStart method was not found.
    Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
    My code is like below.
    Application.cfc
    <cfcomponent hint="control application" output="false">
    <cfscript>
    this.name="startest";
    this.applicationtimeout = createtimespan(0,2,0,0);
    this.sessionmanagement = True;
    this.sessionTimeout = createtimespan(0,0,5,0);
    </cfscript>
    <cffunction name="onApplicationStart" returnType="boolean">
        <cfset application.myvar = "saurav">
    <cfset application.newvar ="saurav2">
        <cfreturn true>
    </cffunction>
    </cfcomponent>
    testpage.cfm
    <cfset variables.onApplicationStart()>
    I have tried to call the above method in different way also like
    1--- <cfset onApplicationStart()>
    i got error like this
    Variable ONAPPLICATIONSTART is undefined.
    2---<cfset Application.onApplicationStart()>
    The onApplicationStart method was not found.
    Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity
    Please help me out.
    Thanks
    Saurav

    You can't just call methods in a CFC without a reference to that CFC. This includes methods in Application.cfc.
    What are you trying to do, exactly, anyway? You'd probably be better served by placing a call to onApplicationStart within onRequestStart in Application.cfc, if your goal is to refresh the application based on some condition:
    <cffunction name="onRequestStart">
         <cfif someCondition>
              <cfset onApplicationStart()>
         </cfif>
    </cffunction>
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • How can I Create function with an  out Parameter

    how all
    how can I Create function with an out Parameter
    I try to create it it sucess but how can I CALL it , it give me error
    please I want A simple example
    thanks

    3rd post on same question by same user :
    Re: how can I Create function with an  out Parameter
    how can I Create function with an  out Parameter

  • Problems with calls and Answering Machine

    I have a problem with calls on my Z3 dual and the Answering Machine after the update to L.I don't have Smart Answer enabled -gesture to answer calls- but when I answer a call too close to the time set to the Answering Machine to kick in, when the call reaches this time (say 25 seconds) the call will be interrupted for about 2 to 5  seconds where I can't hear the other party and they can't hear me, and then the call will resume.If I disasble the answering machine, this bug is gone.I have cleared data of the phone app but still this issue persists.

    I suggest that you try to repair the phone software using PC Companion..
    Before repairing your device you may want to backup your information first. Check out this topic for more information on how to.
    How to backup?
    Let us know if the problem persist after you've repaired the software.

  • Problem with calling on some numbers

    Hi my mum has problem with calling on my number. She is in the USA and has a lof of money on her Skype account. When she was in Poland (country when I am now) she could without any troubles calling on my number. What is wird now in the USA she can call on some other polish numbers (I think that Skype doesn't support connection with my mobile operator).
    I fell deceived because I created Skype account and transfered some money on it for my mum to give her possibility to call to me. Is possible to fix it? Is somewhere table with can help me check which one numbers (mobile operators) Skype supports in the USA?
    My mom used Skype from Android smartphone.

    Hi my mum has problem with calling on my number. She is in the USA and has a lof of money on her Skype account. When she was in Poland (country when I am now) she could without any troubles calling on my number. What is wird now in the USA she can call on some other polish numbers (I think that Skype doesn't support connection with my mobile operator).
    I fell deceived because I created Skype account and transfered some money on it for my mum to give her possibility to call to me. Is possible to fix it? Is somewhere table with can help me check which one numbers (mobile operators) Skype supports in the USA?
    My mom used Skype from Android smartphone.

  • Problems with TV Out signal after upgrading to iOS 5.1

    Has anyone experienced problems with TV Out signals on their iPad 2 using the Apple HDMI Adapter after upgrading to iOS 5.1?  I am trying to connect to my HDTV after upgrading and cintunally receive an "Unsupported Video Signal" message with a blank/back screen.  Prior to upgrading, I had no connection problems and could view TV Shows, Movies, Music Videos, Keynote, etc...without problems.  I've been unable to find any resolution to this problem, even followed Apple guidance to detach and reattach the HDMI adapter without success.  Seems like a software bug to me and it's a major problem when trying to conduct business or personal activities.  Hopeing Apple has a fix in work already...anyone else have any ideas?  Thx in advance...

    Try a reset. Press & hold the Power and Home buttons together for 10+ seconds, ignoring the red power-off slider, until you see the Apple logo. It is safe to do, there should be no content loss. It is the same as rebooting your computer.
    If that does not work, restore the iPad to the factory settings.

  • Problem with call forwarding. Calls can not be forwarded for incoming external calls

    Hi Everybody, how are you?
    I have a problem with call forwarding. Everything was fine but now is not working.
    In the reception of an office, the receptionist activate the call forward option to an internal extension. If somebody, internal in the office, call to the reception, the call is forwarding to the extension configured. But if I call from the outside (in example, from my cellphone) the call is not forwarded to the extension configured and continue ringing in the reception phone. Why this behavior? Any idea?
    If you know something please tell me.
    Thanks. Best regards.
    Andres Collazos.

    I encounter a similar problem with 9.1.1.
    My problem is link to this bug ID : CSCtq10477.
    Mathieu

  • Problem with fading out particles in cs5

    I have a problem with fading out particles or anything for that matter in my CS5 after effects!  I set up the key frames right.  O opacity at first and whatever number at next and it fades in fine,  But when I try to do the reverse it will not fade out and only stops the effect if I cut its durration at the red par representing it on the top of the time line. This produces and rough aburpt cut of the effect which will not due.  Please can anyone tell me what I am doing wrong that I can't fade out particles with opacity?

    First question: What OS and what's the build of CS5.5?
    Second question: What effect are you using? There are a bunch of ways to generate particles.
    Last question: if you turn off the effect can you get the layer to fade out? Pressing Alt/Option + t will set a keyframe for opacity on your layer and reveal the keyframe in the time line. Do that, set the value to 0, then move down the timeline a few frames and set the value to 100. This should generate another keyframe. Now move down a few more frames and press Alt/Option + t or change the value for opacity to anything and then back to 100, or copy the previous keyframe and paste to set a 3rd keyframe. Finally move down a few more frames and set the value to 0. You should have 4 keyframes in your tlimeline for opacity. If you want to clean up the layer press Alt/Option + ] to set the out point for the layer.
    Everything should work just fine. Turn on the effect and your layer and the effect should fade out.
    If you want to do something else with the particles, like fade out a particle over the lifetime of the particle we'll need to know which plug-in you're using.

  • Problems with filling out PDF forms

    We have problems with filling out PDF-forms. Aotomatic filling of forms is deactivated and we use the Adobe Reader 11.0.05. The problem is: After some time the inputs are wrong put down in the form. For example: I write 120 and in the form stands 125. We have already extinguished the cache. Thanks for your help in advance.

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • My sister had a problem with call volume being too low on the iPhone 5S.  Is the iPhone 6 louder?  Is anyone else feeling that call volume on iPhone 5S isn't loud enough?

    My sister had a problem with call volume being too low on the iPhone 5S.  Is the iPhone 6 louder?  Is anyone else feeling that call volume on iPhone 5S isn't loud enough?

    I personally haven't experienced much of the "reverberation/feedback" when using a headset on the i4S...
    Yes, I have near-perfect hearing too (for scope, squeaky brakes hurt my ears) I come from many conversations on many phones and types and first off, CDMA technology is great for coverage, terrible for voice quality. HD Voice in Europe made for some of the best phone conversations I've ever had.
    Back on track, feedback is most noticable (similar to the landline phone) when using the iPhone without a headset, but for me it's not an absolute criticality mainly because I use VoIP apps alot, so maybe it has desensitized me some over the past year.
    But whenever I'm on a call, and the other person has me on speakerphone, I have alot of trouble talking because of the feedback loop caused. So the less of my voice I hear the better I can talk.
    Have you tried a bluetooth headset yet?

  • Has anybody had a problem with greyed out wifi on i phone 4 gs

    Has anybody had a problem with greyed out wifi setting on iphone 4gs

    Forty four in the last week.
    wifi greyed out

  • Methods of OLE-objects with IN OUT parameter

    How can I invoke a method of an OLE-object with IN OUT parameter?
    Trying
    obj := CREATE_OLEOBJ(localobject VARCHAR2, TRUE);
    INIT_OLEARGS (n+1);
    ADD_OLEARG (newvar_1 NUMBER/VARCHAR2, vtype VT_TYPE := VT_R8/VT_BSTR);
    ADD_OLEARG (newvar_n NUMBER/VARCHAR2, vtype VT_TYPE := VT_R8/VT_BSTR);
    CALL_OLE(obj OLEOBJ, memberid PLS_INTEGER);
    newvar_x := GET_OLEARG_<type>(x);
    I get the old value of newvar_x, but it must be changed
    Methods with only IN parameter work fine.
    I've tried this with OLE2-package, but it hasn't worked too
    Can somebody help
    Thanks

    Hi Gurus
    I know this is very old post.
    but dose anybody know the answer.
    thanks

Maybe you are looking for

  • Validate Method doesn't fire in insert - is it a bug ?

    I tried to use the validate method in a VO based upon 2 Entities. It works but when I insert a new row it doesn't fire. Is it a bug ? If not what's explanation for that behaviour ? Tks Tullio

  • How to set a date string in a textbox which bind to a Date type datasource

    Hi, I found i can't set a default date value in a textbox which bind to a Date type datasource. Even i tried copying a date string which is picked by the calendar date picker and copy the exactly same string into my source code. It just doesn't work

  • No PDF conversion with FlashPaper 2

    I just installed FlashPaper 2 on my Windows PC (XP) and also on my Mac (OSX). On both systems the interface of FlashPaper 2 does not offer the conversion to PDF, which is described in the link "features overview" on http://www.adobe.com/products/flas

  • Left mouse click does not work

    I have a mid-2010 Mac Book Pro 15", 8GB, Samsung 840 500GB SSD, w/ Mountain Lion. About four to six months ago I started having issues where the left mouse button would stop working when I left the computer on unattended (but not asleep) for extended

  • Display of messages in the message area of pop up twice.

    Hi All, I am facing v.strange problem in pop up. The error messages in the message area are getting diaplayed twice even though i am reporting  the message only once. Regards, Arti.