Session Locks... Please help this is urgent...

Hi,
I've created web application in ASP.NET and I'm connecting to one of our Oracle server which resides in other country. I only have read access to it. I can only do select statements.
After couple of months that the application was running, their database admin told me that my application was creating session locks in the database.
I only have 4 select statements that's connection to their oracle server. Below one of the query that I'm using.
IDataReader r = null;
try
using (OracleConnection conn = new OracleConnection(this.ConnectionString))
string _return;
conn.Open();
OracleCommand command = new OracleCommand("select site from mashreq_employees where employee_code='" + emplid + "'", conn);
r = this.ExecuteReader(command);
if (r.Read())
_return = r.ToString();
else
_return = "";
return _return;
finally
if (r != null)
r.Close();
My question is, Can I create Session Locks even if I'm only using SELECT STATEMENT?
They send me the screen shot of their Enterprise Manager but I cannot paste it here. The Lock Type was "TX".
Please help me...
Thanks,
Liezl

I didn't see a FOR UPDATE in the code you posted but I don't know what the rest of your code/application does. For all I know the below code adds a FOR UPDATE at the end?
OracleCommand command = new OracleCommand("select site from mashreq_employees where employee_code='" + emplid + "'", conn); Am trying to say that just because you're using SELECT only doesn't necessarily mean it's non-destructive, in nobody elses way "read-only", it is still possible to do a SELECT FOR UPDATE if you have the SELECT privilege for a table which might explain any TX locks for your session.
SQL> create table a1 as (select * from user_tables);
Table created.
SQL> create table b1 as (select * from user_tables);
Table created.
SQL> select * from b1 where table_name = 'A1' for update;Now go to another session and try to update the table
update b1 set table_name = 'Z';Session will hang, until original session either commits or rolls back. Investigating further:
SQL> select session_id, object_id from v$locked_object;
SESSION_ID  OBJECT_ID
        25      17552
SQL> column object_name format a30
SQL> select owner, object_id, object_name from dba_objects where object_id = 17552
OWNER                           OBJECT_ID OBJECT_NAME
TESTUSER                            17552 B1
SQL> select sid, type, lmode, id1, id2 from v$lock where sid = 25;
       SID TY      LMODE        ID1        ID2
        25 TM          3      17552          0     <---- see the 17552 which is the B1 table and session 25 which is the session that did the FOR UPDATE?
        25 TX          6     589824        424So, see if you can track down which session is creating the locks from the data dictionary tables and whether it is your code.

Similar Messages

  • Activation Problem..i Have Registered for the devolopers account and also paid 99 dollars. how do i open my iphone now? please help. this is urgent!

    this morning my iphone showed up a activation problem then it told me to go to devoloper.apple.com and register for the ios developer program.. it costed me 99 dollars. but i did it.. just a moment ago.. how do i access my iphone now? please help me this is real urgent.

    this in my problem too apple say : ur request is pending now and it did not activated yet !    ?  
    what should i do?

  • Please help, this is urgent

    Hi
    I have created a grid using JSP and HTML which has three columns and multiple rows. The cells are actually the text boxes and their names are EmpNo, Value1, and value2.
    And every row's column's control name is same.
    They display like this
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    Can anybody guide me how can I access a value from a specific row and specific control. I am having problem because each column control name is same.
    I know its possible in ASP using count method, because in ASP when you create a control with a same name, the ASP generates an array and it keeps the array name as control name, so that you can access the value through its subscript number. I was trying to do the same thing in JSP but couldn't do that.
    Please help me, I will really appreciate that.
    Thanks

    Can anybody guide me how can I access a value from a
    specific row and specific control. I am having
    problem because each column control name is same.
    I know its possible in ASP using count method,
    because in ASP when you create a control with a same
    name, the ASP generates an array and it keeps the
    array name as control name, so that you can access
    the value through its subscript number. I was trying
    to do the same thing in JSP but couldn't do that.HTML creates the array, so it works the same in JSP. Need to see your code to suggest why this might not be working for you.

  • My iPad refuses to turn on... HELP THIS IS URGENT!

    Just thismorning i had my iPad 2 working fine... until it ran out of charge. Yes, I put it on the charger. Once it had been charging for about 30 minutes, i attempted to switch it on, but the apple logo sign never moved. At some times, the iPad returned to the normal unlock screen, but when i did, it froze and the frozen apple sign appeared again.
    I thought that maybe plugging it into my computer backup source would help... Well, it kinda helped but the iPad is reacting as if it is brand new and its name is now ''iPad'' when clearly, before i had this problem, it was named ''Nicole's iPad''.
    Please help, this is urgent! I have school on Tuesday and if it is not repaired by then, my assignments and homework will be lost. Thankyou

    Try to hard boot it by pressing home key and power key at same time  and keep them pressed to the count of one to fifteen. 
    And wait for few minutes it will work
    If its not working yet then connect it iTunes and update it to iOS 6,
    Before updating do not forget to back up your iPad 

  • Tried synching iphone for the first time on new PC and got error followed by itunes logo and USB cable picture. No idea what went wrong and now phone is in this screen locked. please help!

    tried synching iphone for the first time on new PC and got error followed by itunes logo and USB cable picture. No idea what went wrong and now phone is in this screen locked. please help!

    I tried connecting to iTunes and neither the PC nor iTunes recognizes the device. I went through all the troubleshooting on the Apple website for this issue and nothing worked. I've reinstalled iTunes, the driver, everything and still can't get either the PC or iTunes to recognize the phone.  I don't know what else to do :-( any help or suggestions are highly appreciated!
    I would hate to have lost all my info, especially contacts and calendar items since I have no idea what was backed up prior to the phone getting locked on this screen. I've been told that my only option is to go to the phone carrier and they will reset it for me, but that means it will wipe out all the info.
    I hope someone has a fix other than that one.

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • Bios locked, please help

    bios is locked on hp 14-b017cl,  the code its showing is  [ 51389507 ]. please help  
    This question was solved.
    View Solution.

    Hi,
    Enter:      44081529
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I can't forcequit firefox and shutdown my computer, nor can I open up any other programs or applications. Does anyone know how to fix this? please help this poor soul.

    I can't forcequit firefox and shutdown my computer, nor can I open up any other programs or applications. Does anyone know how to fix this? please help this poor soul.

    You can force quit applications
    >Force quit
    if that does not work you can force quit a computer shut down by hold the power button for an extended period.

  • I have windows 7 and every time I try to play or add a song. It says itunes has stopped working. Please help this is frustrating.

    I have windows 7 and every time I try to play or add a song. It says itunes has stopped working. Please help this is frustrating.

    a further message  box states that Data Execution Prevention has closed the program.
    Try updating your QuickTime to the most recent version. Does that clear up the DEP errors in iTunes?

  • Please help this: JNLP association extensions confict with arguments

    Hello, Please help this:
    I use <argument> tag to transfer some parameters to JWS application.
    I also use <associatio> tag to associate a specila file(such as .zzz) to JNLP. But when I doulbe click .zzz file, my application only get "-open" and file path as argument, those parameters in <argument> tag in my jnlp are lost!
    What should I do

    ..Is this a bug for JWS? No.
    ..association extensions tag conflicts with <argument>?Quoting the 'JNLP Specification', section 3
    'JNLP file', part 5 'Descriptor Information', under
    association element/mime-type attribute
    "An application making such a request
    should be prepared to have its main
    method invoked with the arguments
    -open filename and -print filename
    instead of any arguments listed with
    the application-desc element."

  • Hello My account is locked Please help me Thank you

    Hello
    My account is locked
    Please help me
    Thank you

    You've asked in the forum for creating podcasts: you don't specify what account you mean but I'm guessing that it's the iTunes Store and I've asked the Hosts to move it to that forum.

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • HT1339 my ipod nano 7th generation....works fine as long as it's on the docking station. when off the station, the display goes dark after a few seconds. it's fully charged. please help. this is the heartbeat of my business. thanks

    my ipod nano 7th generation....works fine as long as it's on the docking station. when off the station, the display goes dark after a few seconds. it's fully charged. please help. this is the heartbeat of my business. thanks

    In the worst case, it's still under warranty (all 7th gen nanos are still under one year from purchase).
    So, you disconnect it from power, and it almost immediately goes dead?  You can try a Restore... but it doesn't sound like the type of problem a Restore will fix.
    You should probably have it looked by Apple Tech Support.  If there's an Apple Store nearby, you can take it to the store's Genius Bar.  To avoid waiting, you can make a reservation at the store's web page
    http://www.apple.com/retail/

  • My Iphone 4s Will not delete the songs I want it to. I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw)

    I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw) It only does this for some of the songs, but the rest of them I can delete. This is really annoying, please help me ASAP. Thank yall for your time

    I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw) It only does this for some of the songs, but the rest of them I can delete. This is really annoying, please help me ASAP. Thank yall for your time

  • Someone please help this is getting irritating!

    how do I fix the system overload erra audio engin was not able to process all required data? someone please help this is getting irritating!

    You have a few options:
    1- Increase the Buffer Size in the Logic Devices Preferences to the maximum (1024)
    2- Freeze some Tracks with CPU intensive plugins
    3- Buy a faster computer
    Hope that helps
    Edgar Rothermich 
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

Maybe you are looking for

  • Is there any way to set the default for *.doc document so that Pages opens them automatically?

    I have a number of Ms Word documents because I used to have Word for Mac before the last OS release.  Now, of course, when I double-click on them, I get a message saying that PowerPC isn't supported. Now Pages will open these files.  Is there any way

  • Sound card fails when modem taken out- no longer wo

    My OS is Windows 98 First Edition. I recently replaced an internal, PCI slot LT Winmodem and put in a USR internal, ISA slot modem. I didn't follow exact instructions for this sort of change but the Creative website says that one of their sound cards

  • Issue Linking FB 3 app to other apps

    When prompted to enter email and password for several apps that can be connected with Facebook, I am brought to a screen with a FB icon, name of the app and 2 buttons, cancel and install. Neither of which respond and I am forced to back out of the sc

  • Bug in exporting Products list

    Hi, I use this feature all the time and today when I go to Products - Export and open the file it comes up one cell with "Special Custom Order" in it - no products or anything else. (image attached). Has anyone else had this issue? There's no way to

  • Question - report formatting

    Hello, Any idea how can i build an update form, but not formatted as a table... So.. instead of : column_name1, column_name2, column_name1 value 11, value12, value13 (editable) value 21, value22, value23 (editable) to present the data in a nicer form