Bind variable only can take valor one time?

Can you help me about the different results in "SQL Developer" and "SQL*Plus" with bind variable's management?
I execute next code. My table emp have 14 records.var n_fetch number;
var n_rowcount number;
declare
cursor S is
select emp_no from emp;
v_emp_no emp.emp_no%type;
begin
:n_fetch := 0; -- (1)
open S;
fetch S into v_emp_no;
while S%found loop
:n_fetch := :n_fetch + 1;
fetch S into v_emp_no;
end loop;
:n_rowcount := S%rowcount;
close S;
end;
print n_fetch n_rowcount
In SQL*Plus, the result is:N_FETCH
14
N_ROWCOUNT
14
In SQL Developer, the result is:n_fetch
0
n_rowcount
14
If I change instruction (1) for: :n_fetch := 100;
then, in SQL*Plus the result is correct (n_fetch=114 and n_rowcount=14) but in SQL Developer, attention, the result is:
n_fetch
100
n_rowcount
14
Conclusion: Bind variable only can take valor one time !!!
What happen's in SQL Developer? I work with Oracle SQL Developer 1.5.1.
Thanks, very much
Isidre Guixà

Isidre,
This is the same problem as I just highlighted on your other thread (Error in dbms_output with bind variables ? - basically only the first assignment per PL/SQL block seems to have an effect.
theFurryOne

Similar Messages

  • What do I do if someone is hacking into my Game Center so I can't play clash of clans anymore because only one person can play at one time?

    What do I do if someone is hacking into my Game Center so I can't play clash of clans anymore because only one person can play at one time? I changed the password but soon discovered it didn't help. I want to play Clash of clans but every so often the person comes back on. is there a way for Game Center to log off all the accounts, so the hacker will be gone?
    Please help me with this problem

    Your iPad can be hacked only if it's been jailbroken.  Has it?

  • How do I set up a rating scale so that respondents can only select each option one time?

    How do I set up a rating scale so that respondents can only select each option one time?

    hi there,
    in the LV VI, function & how-to help open the item
    Building the front panel -> Front panels controls and indicators -> Array & Cluster controls and indicators -> Arrays -> Tabbing through Elements of an Array or Cluster
    or see attachment
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    TabbingThroughArrays_Help.jpg ‏96 KB

  • HT201250 Can I use one Time Capsule to back up two iMacs?

    Can I use one Time Capsule to back up two iMacs using Time Machine? Both are running Mountain Lion.
    Fouind the answer in other questions. Don't know how to remove this message. Sorry, Des

    Yes, if you use an application like Genie Timeline Pro, which was designed for this type of purpose.  Genie Timeline will make a complete copy of your Dell on the first backup. After that, it will only backup the changes that have occurred since the last backup.
    Genie Timeline Pro | Overview | Time Machine Backup Software for ...

  • Is there a limit to how many files bridge can view at one time?

    Our company works with high volumes of images and we would like to use Bridge to organize, search, and view these images prior to working on them in Adobe Photoshop/Premiere ETC..  Is there a limit to how many files that Bridge can handle at one time?  We have hundreds of thousands of videos and photos.

    Many have found that using more then 5000 files per folder can slow down performance but this depends on system resources (fast processor and much RAM). However Video is not always the strongest point of Bridge as it seems due to some other posts.
    And since you talk about a company, you have to be aware that Bridge is not designed nor official supported for use over a network. A dedicated DAM like Canto Cumulus or Portfolio Server might be more suitable for this tasks but they also come with a price I'm afraid.

  • How many character my iphone 4S can send at one time

    How many characters my iphone 4s can send at one time?

    A lot.  I'm not aware of any upper limit in an iMessage.
    For text messages, that would be a function of the carrier, I would think.
    And if you did send a message that was longer than the maximum amount ofr a single message, it would simply break up into two smaller messages.

  • Passing value to bind variable of another table from one table

    hi,
    I have a multi select table. When one row is selected from this table (no button is clicked, only selection is done), an attribute from that selected row (say userid) should be passed to the bind variable of another table and the corresponding details of that particular userid should be displayed in the other table. When more than one row is selected, the other table should display no rows.
    My main problem is what code has to be written to pass value to bind variable and where it should be written.
    Please give me a detailed explaination as soon as possible.
    Thank you.

    Sorry, didnot add this. The table is multi select table.

  • So i have the ipod touch 4thgen and the speaker stoped working right after i got it and i was dumb and didnt return it because it started to work. but now about a year in it only randomly works like one time every month. that lasts for 10min then stops?

    so i got a new ipod touch 4th generation and about three days after the internal speaker stopped working. i was dumb and didn't return it because it worked again for about a month and then stopped. and i was pass the 90 day return time. so i am screwed and now the speaker will work for about 10 minutes every two months so it isnt that handy to me. i know it isn't blown because it will randomly work and when it does i hope it doesn't turn off. i have seen allot of things about this and i think that it is a apple ipod think because allot of other people have this problem. so i think it is great that apple has made these products it is just sad that u pay 200$ for something that breaks after two months. i think they should do a free replacement for any product that has a malfunction because it isn't my fault it is broken and then they expect u to pay another 75$ so they can take it just to give u a refurbished one that will do the same thing.

    Walk it into the nearest Apple Store, politely describe your issue and see what they say there.

  • Multi-provider can't add one time dimension

    I have created one multi-provider, saved. I can't activiate it, so I try to add one time dimension characterstic,. for example :
    Calendar Year/Month
    I right click the "Time" dimension, only I can change description. the " insert" menuitem is greyed out. so how to add one time characterstic?

    thanks.
    during activiation of multi-provider, another error below:
    Assignments for InfoObject 0VALUE_LC have not yet been maintained -> Long text
    Message no. R7645
    Diagnosis
    The MultiProvider definition contains an InfoObject that has not been assigned to the relevant InfoProviders.
    Procedure
    Choose Identification and highlight the assignment for InfoObject 0VALUE_LC, or remove the InfoObject from the MultiProvider.
    but I can't find "identification" , where is it?
    Edited by: Splinter on Nov 3, 2011 9:08 AM

  • Query with bind variable, how can use it in managed bean ?

    Hi
    I create query with bind variable (BindControlTextValue), this query return description of value that i set in BindControlTextValue variable, how can i use this query in managed bean? I need to set this value in String parameter in managed bean.
    Thanks

    Put the query in a VO and execute it the usual way.
    If you need to, you can write a parameterized method in VOImpl that executes the VO query with the parameter and then call that method from the UI (as a methodAction binding) either through the managed bean or via a direct button click on the page.

  • Report queries and bind variables - only header printing to PDF

    Hi,
    I created a simple report query for printing to PDF with 2 bind variables. I created a link to this report like this
    Print - the header information prints but none of the data.
    What am i doing wrong? I'm pretty sure it has s/t to do with the bind variables.
    IF a/o can please help, i'd really appreciate it.
    Thanks,
    Hindy

    is it possible to export your application page to apex server and you shall also create a userid as demo/demo and post the url so that we shall try the debug

  • HT5549 I am trying to find out if I can download Java6 update 11 to my OSX 10.6.8 an how to do it. I only need it for one time use, so  could I delete it after Im done for safety. y

    Can anyone help me to download Java 6 update 11 to my OSX 10.6.8 Mac Mini? Where do I find the software on the Apple site?

    Clone your system.
    Install the 10.6.8 Java update.
    Clone back from your clone you made before installing the update when finished.

  • Variable Selection option takes lot of time

    Hi All,
    One of my variable for the info object "0GL_Account" is taking lot of time while displaying the list for selection options (almost 12-13 mins for 950 records). I tried bmany changes in the info object properties.....but in vain........moreover, many other variables with equal no. of records are all performing properly. Please suggest the remedy...

    Hi,
    It depends how are you reading your InfoObject master data in the query.
    You can read the values that exist in the InfoProvider, or you can read the values that exist in the master data of the InfoObject.
    Both options take different time in reading the values.
    You can try both options in transaction rsd1 tab Business Explorer in the option "Query Execution Filter Val. Selectn".
    Diogo.

  • Can I use one Time Capsule to backup two MacbookPro in the same house?

    Can a Time Capsule backup more than one Mac? Or do I need to buy one TC for each Mac I have ?

    Apple does not provide a specific number of Macs that can back up to a single Time Capsule, but realistically it would be in the 6-8 range. 
    I''ve had 4 Macs backing up to the same Time Capsule for a few years with no issues at all.

  • Threads from the corba threadpool can take a long time killing

    I'm using the bounded threadpool (well, actually, I have changed the default unbounded threadpool to a bounded one and injected it using the endorsed dir mechanism - but the behaviours was the same before I did that - except that I then had 32000 threads in some cases) for handling corba events I receive from an ORB. I can see the number of threads increase and decrease as expected based on the load.
    However, sometimes everything hangs: The GUI freezes, I start loosing network packages and other unfortunate things occur. This coincides with the removal of threads (according to YourKit), e.g. last evening the removal of 14 threads took ~30 seconds and during that time absolutely nothing else appeared to happen. My two other Java processes were also for all intents and purposes dead (also according to YourKit) during that period.
    Is this related to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=1194877 in any way? This seems such a long standing issue that I find it hard to understand that this has not been resolved in any way. Is there a way around this problem?
    If it's not related, what can it then be? I'm not even sure where to look? Is it the Java implementation, the linux kernel, some combination with the hardware?
    I'm using SUNJava 1.5 u10 on Fedora Core 5 linux kernel 2.6.18-1.2239.fc5 on AMD64 hardware.

    Follow-up to myself since no-one else has replied:
    Could it be related to this bug [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6372405] and if it is, does the poster mean JDK 6, NOT 7?

Maybe you are looking for