Oracle 9.2: Really strange problem so Please Help!

Hi All,
I am having a really strange problem and I don't know why it is so. I have a simple sproc (for testing) that updates one column in a table and the where clause uses two in params and the set clause uses a local variable. I stepped through it in JDeveloper and saw the execute of the update and commit statements and in params' values and the local variable's value, but the row will not be updated! If I changed the where clause to use literal values (303 and '1045225') and the set clause to use 3, then it works. If params and a variable are used for these three values, the row does not get updated! And when I added the dbms_output.put_line to print out the param's value and the variable value, they are all there! Here is the code:
create or replace procedure sprocTestUpdate (
     Action          in varchar2 := 'FETCH',     
     p_QueueID          in number,
     StatusDesc     in varchar2 ,
     p_PK          in varchar2
as
     --- local varirables
     StatusID     pls_integer;
     MessageTypeID     pls_integer;
     EditActionID     pls_integer;
     v_QueueID     pls_integer := 0;
     --- error constants
     Source constant     varchar2(20) := 'RCSO';
     Sproc constant varchar2(50) := 'spCriMNetQueuePublish';
     --- status constants
     StatusUnprocessed constant varchar2(20) := 'UNPROCESSED';
     StatusProcessing constant varchar2(20) := 'PROCESSING';
     StatusProcessed constant varchar2(20) := 'PROCESSED';
     StatusError constant varchar2(20) := 'ERROR';
     v_errorMessage     varchar2(4000);
begin
     begin
          StatusID := fnc_getQueueStatusID (StatusDesc);
     exception
          when others then
               null;
     end;     
     ---set transaction isolation level serializable;
     if Action = 'STATUSUPDATE' then          
          update QueuePublish
          set StatusID = StatusID,
               attemptcount = attemptcount + 1
     where queueid = p_QueueID and PK = p_PK;          
          commit;
          dbms_output.put_line(to_char(StatusID) || ' For ' || to_char(QueueID));
     end if;
exception
     when others then
          rollback;
end sprocTestUpdate;
and here is the test script in SQL*Plus:
declare
     action     varchar2(30);
     QueueID number;
     StatusDesc varchar2(30);
     PK varchar2(30);
begin
     action := 'STATUSUPDATE';
     QueueID := 303;
     StatusDesc := 'PROCESSED';
     PK := '1045225';
     sprocTestUpdate(action, QueueID, StatusDesc, PK);
end;
thanks.
ben

Ghulam, this is what I was talking about:
<<
StatusID := 3;
if Action = 'STATUSUPDATE' then
update QueuePublish
set StatusID = StatusID,
attemptcount = attemptcount + 1
where queueid = 303 and PK = '1045225';
commit;
dbms_output.put_line(to_char(StatusID) || ' For ' || to_char(QueueID));
end if;
and it won't update! but if I say set StatudID = 3 it will work!
>>
might be better to do :
L_STATUSID := 3 ;
ste STATUS_ID = :L_STATUSID
...otherwise you are just replacing STATUSID by itself,
poor RDBMS-engine doesn't know what StatusId you are talking about

Similar Messages

  • Oracle Application Server running demo problem. Please help

    I have installed OAS 4 on my win nt 4.0 with iexplore 4 (5 won't
    work by the way) and install the demo applications, but when I
    run it, it does not output anything from the Oracle database.
    Is there any bug that I should know, or any cartrix that I have
    to add before running the demo? Thanks for any help.
    null

    I have installed OAS 4 on my win nt 4.0 with iexplore 4 (5 won't
    work by the way) and install the demo applications, but when I
    run it, it does not output anything from the Oracle database.
    Is there any bug that I should know, or any cartrix that I have
    to add before running the demo? Thanks for any help.
    null

  • I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    Are you using the Office for Mac 2011 version, as you need to do?  The Office for Mac 2004 is Not at all compatible with Mountain Lion, and the 2008 version has been noted to have some problems running with ML.
    Hope this helps

  • My Mac book pro keeps saying "connection time out occurred" I have a 2011 pro with all the latest updates. It keeps doing it and it really annoys me! Please help!

    My Mac book pro keeps saying "connection time out occurred" I have a 2011 pro with all the latest updates. It keeps doing it and it really annoys me! Please help!

    Take each of the following steps that you haven't already tried, until the problem is resolved.
    Step 1
    Restart the router. Many problems are solved that way.
    Step 2
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 3
    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts.
    Step 4
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 5
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 6
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.

  • P1i memory card 4gb problem.. please help..!

    last week, i bought a new m2 memory card 4gb for my p1i...
    the phone can read that memory card, but one problem has been happen to my p1i..
    the problem is, when i try to open my video that store at my memory card it can open it but only sound that
    can be hear clearly meanwhile the video can't move smoothly... but the sound of that video can be hear smoothly..
    i try to store the video inside my phone memory and then when i open that video again, the video can play smoothly in phone memory
    only in the memory card the video can't play smoothly... the music and picture in the memory card is working fine only the video is the problem
    all video can't play smoothly...
    what should i do...???
    is it phone problem or memory card problem...???
    please help me...
    i already feel like waste of money by buying this memory card, because p1i actually can support fine 4gb memory card...
    only the video is the problem, anything else is working fine..
    please reply and give me a way to solve this problem... thank you..

    i already format the memory card as you say to me... but the problem still i have it...
    nothing change when i format it..
    i really confuse about this problem...
    music, pictures and application that save in the memory card is okay and can open it fine
    just the video is the problem... i don't know what to say...
    please give me another way to solve this problem... i hope you can solve this problem..
    please help me

  • Went to open a file in words and got message. "You need a newer version of Pages to open this document." I have latest version.  All other files open w/o a problem.  Please help.

    Went to open a file in words and got message. "You need a newer version of Pages to open this document." I have latest version.  All other files in words open w/o a problem.  Please help.
    Thank you.
    <Email Edited by Host>

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • Installed successfully but network is not connected. Yet when I go on my Mac network is connected. Is there any other way to solve this problem? Please help.

    Hi,
    I have just installed Windows 7 Home Premium on my Mac book Pro 13inch, it installed successfully but there is no network connection. Yet when I go on my Mac I can get online no problem. Please help or what other way I can do to connect windows online?

    Did you download Windows Support Software when you started installing windows via Bootcamp. If yes you need to then install the Support Software after installing windows which contains Windows drivers for Mac hardware.

  • How come my external hard drive is no longer visible in finder even after ticking it in preferences? it shows in the disk utilities but does not allow me to find a problem or fix the problem? Please help.

    it shows in the disk utilities but does not allow me to find a problem or fix the problem? Please help. also my external hard drive is a seagate free agent go, 500GB. it is visible on my tv but has no files in it… i'm scared i've lost everything?

    Honestly i cannot remember sorry, i got it like 5 maybe 6 yrs ago and just started downloading things to it as the memory on the computer started filling up and when i wanted to see photos/videos on my TV.
    My wife did tell me after i had written this post that she did try and record TV to it as it was plugged in. I think by doing so somehow has deleted everything.   It reads on my TV yet has no files in it but won't show up on my computer. hope this helps.
    Starting to think it is going to cost more to retrieve files on it than it will be to buy a newer and larger one.

  • My new iPhone 5 has black and white lines on the screen. It's not been damaged. I've tried turning it off but this does not solve the problem? Please help.

    My new iPhone 5 has black and white lines on the screen. It's not been damaged. I've tried turning it off but this does not solve the problem? Please help. I can't find my answer on the Internet.

    By far the most common problem hardware-wise seems to be scuffs on the aluminium. Yours is the first report of a faulty screen I've seen.
    If you use the same Apple ID on both devices it'll sync whatever you want it to - music/apps/photos/messages/etc.
    I've just switched from a Galaxy S3 to iPhone 5 (having already owned an iPad for a while) so I'm in a similar position!

  • Adobe Content Viewer problem. Please Help me...

    Hi after updating online. Folio, I tried to update the trial version of the publication on my iPad but I get this message: "the issue isavailable for dowload, but new signing for an application version. Update the application from the App Store. "I went to the AppStore and was not any update of the Content Viewer ... I deleted the version on my iPad I downloaded again ... but without success gives me the same problem ... Please help me ... how can I do??
    thanks

    Hello Bob and thank you for responding so quickly ... Would you be kind enough to send me the link where I can download older versions of Folio Builder and Folio Producers Panel tools for InDesign 5.5. I'm looking for them but I can not find them.
    Thank you for your patience.
    Il giorno 21/gen/2012, alle ore 16:18, Bob Levine ha scritto:
    Re: Adobe Content Viewer problem. Please Help me...
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    As discussed in numerous threads already, the new viewer has not been approved by Apple yet.
    If you’re a pro or enterprise customer you can create your own viewer app. If not, you’ll have to wait or roll back to the older tools.
    Bob
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4155907#4155907
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4155907#4155907. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I kept my iphone on my table so with a half charged battery. I picked it up and it would not turn on then i charged it about an hour but still is not turning on.is it a battery problem? please help!

    i kept my iphone on my table so with a half charged battery. I picked it up and it would not turn on then i charged it about an hour but still is not turning on.is it a battery problem? please help!

    Press and hold both the home and power button until the apple symbol shows up, about 15 seconds.

  • I am not able to sync some videos and apps onto my iphone 3gs. it shows a sync error: 0xe8008001.i updated it but still i am getting the same sync error problem..please help.

    i am not able to sync some videos and apps onto my iphone 3gs. it shows a sync error: 0xe8008001.i updated it but still i am getting the same sync error problem..please help.
    aman

    Are you using Windows...?

  • My IPOD menus suddenly appear in Japanese or Chinese and are impossible to understand for me who is european. Has somebody else had this problem? Please help? The song titles are still in the language they were entered though. /Jane

    My IPOD menus suddenly appear in Japanese or Chinese and are impossible to understand for me who is european. Has somebody else had this problem? Please help? The song titles are still in the language they were entered though. /Jane

    Fingers crossed, the following document might be of some assistance:
    iPod: Changing the display language

  • Tried to access programs and get Error: 16 message. What's the problem? Please help!

    Tried to access programs and get Error: 16 message. What's the problem? Please help! Photoshop, photoshop elements, Dreamweaver - none of my Creative Cloud apps will start-up, since my last update. I need to access these programs for jobs I'm working on.

    Hi wdriver,
    It seems like due to some unknown reason permission from the Licensing folder is removed. Please try launching any of the apps by right clicking and select Run as an Administrator, it should fix the issue by doing that.
    Please let us know if it helps.
    Regards,
    Abhijit

  • Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help Apple support team!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B...)

    Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help !!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B..., and both radio bands)

    Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help !!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B..., and both radio bands)

Maybe you are looking for

  • Placeholders in adobe forms

    Hi, We have placeholders in smartforms or scripts i.e &mara-matnr&.. in the same way do we have anything similiar like that in adobe forms? presently i'm doing that using drag and drop functionality, but that is giving some format problems.. points a

  • Using DBMS_OUTPUT.PUT_LINE() to create a white space

    I had a script that I run on SQL*Plus to create a spool file output. How do I create a white space or skip a new line using the DBMS_OUTPUT.PUT_LINE()? e.g. DBMS_OUTPUT.PUT_LINE('+--------------------+'); DBMS_OUTPUT.PUT_LINE('First Line..........');

  • Shockwave plugin

    I use IE9 and Google Chrome and I am having the same problem on both with the shockwave player plugin. I will be playing a game and then it freezes and says that the shockwave player plugin has stopped working. Have reinstalled Shockwave player and i

  • Flex module crash apache

    hello everybody, i'm using mac os X 10.4.11, MAMP 1.7 with Apache/2.0.59. When i want to start the server i've got this error message : [Wed Jan 16 17:49:45 2008] [notice] caught SIGTERM, shutting down what does it mean ? Anybody know a solution ?

  • Shopping Cart In Purchasers Worklist

    Hi, When I create as hopping cart the same gets approved and when I check the follow on docs the status is Shopping Cart In Purchasers Worklist Where exactly I can find this SC. I have activate No approvals fro SC and  follow on doc as PO. Thanks, Ma