I have created TM lock in oracle 9i and 11g databases. by using same query

here is the query uesd for finding a lock in database.
select /*+ RULE */ 'DATAPOINT # ' bpb,
l.sid, ' # ',
s.username, ' # ',
s.sql_address, ' # ',
x.sid, ' # ',
y.username, ' # ',
l.type, ' # ',
l.id1, ' # ',
l.id2, ' # ',
decode(X.LMODE,
0, 'None',
1, 'Null',
2, 'Row Share',
3, 'Row Excl',
4, 'Share',
5, 'Shr Row Excl',
6, 'Exclusive',
decode(L.REQUEST,
0, 'None',
1, 'Null',
2, 'Row Share',
3, 'Row Excl',
4, 'Share',
5, 'Shr Row Excl',
6, 'Exclusive',
from v$session s, v$lock l, v$lock x, v$session y
where l.ctime > 120
and s.lockwait = l.kaddr
and l.type in ('TM', 'TX', 'UL')
and l.id1 = x.id1
and l.id2 = x.id2
and x.sid != l.sid
and x.sid = y.sid
and x.lmode >0;
after doing further investigation i found that for 11g condition s.lockwait = l.kaddr not satisfied where as for 9i it's gives correct results
here are the lockwait and kaddr values for 9i and 11g databases.
for oracle 9i
SQL> select lockwait from v$session where sid in (10,12);
LOCKWAIT
67B4E10C
SQL> select kaddr from v$lock where sid in (10,12);
KADDR
67B4E088
67B4E10C
for oracle 11g
SQL> select lockwait from v$session where sid in (70,134);
LOCKWAIT
070000002FA080D8
SQL> select kaddr from v$lock where sid in (70,134);
KADDR
0700000030C595C0
0700000030C59830
00000001108E3E58
00000001108E3E58
070000002FA6CB30
SQL>
please advise if there is any change for calculations for lockwait,kaddr for 11g.

can you post your query with explain plan for both 9i version and 10g version.
Thanks,
karthick.

Similar Messages

  • Installing oracle 10g and 11g client  on the same Linux RHEL 5.4 host

    Is it possible to install Oracle 10g and 11g client on the same Linux RHEL 5.4 host and have the application switch between 10g and 11g? and how would the 10g and 11g be installed?

    Thanks for your reply.
    Typeically if 10g is installed in /home/roacle/product/10.2.0, are you saying that for 11g, it would be /home/oracle/product/11.0.0 ?
    How about switching the application? Does changing the ORACLE_HOME and PATH environment variable setting enough ? Let's say from
    ORACLE_HOME=/home/oracle/product/10.2.0/client_1 to /home/oracle/product/11.0.0/client_1

  • Oracle 10gAS and 11g Database

    hi,
    I am planning to upgrade our existing Oracle 8i & forms6i to oracle 11g database and 10g AS.
    I have only one server for both. 10gAS has a database along with the installation.
    But i need to use 11g DB. so my questions are
    1.how do we avoid installing 10g databse as a part of AS.
    2. Which one to install first. 11g database or 10gAS(i have only one server).
    3. 10g Developer suite will be in my local PC. is it right ?

    I guess it really depends on what you want to do :
    If you want to change as little as possible, I would advise the Forms and Reports Services Standalone, available from OTN. This version is certified with RDBMS 11gR1 but not with RDBMS 11gR2. Note that additional functionality such as Single Sign-On will not be available in this standalone version.
    Should you want the full blown functionality, I would advise to skip AS10g and go straight for FMW11gR2 (11.1.1.2). You will need an infrastructure but that can be done with Identity Management 10.1.4.3 with an 11gR2 (11.2.0.4) database. The FMW11g documentation will tell you how.
    BTW - the developer suite most likely need to be on your local PC. For FWM 11gR2, the builders are only supported on Linux 32 bits and Windows 32 bits platforms.
    Hope this helps,
    EJ

  • I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    weblogic credentials are different.
    and using thode credentials I am able to login to weblogic server
    the users I am talking about is the process users defined in realm.
    in realm those users are defined as Default authenticator and OID authenticator.
    and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g

  • I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. How can I fix this?

    I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?

    I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.

  • I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image,

    I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • I bought this apple ipad from pawn shop and have receipt. its locked by previous owner and pawn shop had no info on previous owner to contact. how can I delete all content and start fresh so my grandson can use for college?

    i bought this apple ipad from pawn shop and have receipt. its locked by previous owner and pawn shop had no info on previous owner to contact. how can I delete all content and start fresh so my grandson can use for college?

    If it's activation locked, you can't; go back to the shop and ask for a refund.
    (120778)

  • I have created an ibook in ibook author and it appears in ibook on my Mac.  How do I get it on my iPad?  It is too big to email.

    I have created an ibook in ibook author and it appears in ibook on my Mac.  How do I get it on my iPad.  It is too big to email.

    You can install MAMPon you mac (free web server, no configuration needed).
    Put ePub file in Applications/MAMP/htdocs and you can download locally (quicker than Dropbox, Mega, etc...)
    On your iPad's nevigator type:
    http://mac_local-lan_IP:8888/NameOfYourBook.epub
    You can see local IP on: System Preferences/Lan or System Preferences/Sharing
    iPad and Mac must be in the same lan/wifi network.
    Best regards.

  • How do I export photos back onto a camera SD card? I have created a desktop file for photos and SD card in Finder, dragged photos to card, but when I try to view them in the camera, it says "No valid photo to display"

    How do I export photos back onto a camera SD card? I have created desktop files for the photos and the card, dragged photos to the card, but when I replace card in camera, it says "No valid photo to display". I just need to get some prints made and have been struggling with this for hours. Thank you.

    No one can help you any more than has been done
    Your camera is not a general purpuose photo display system - it is designed to take photos, let you look at those photos and allow you to download them to your computer or other places - if you wnat to use it view photos then you have to put the photos in exactly the correct place with exactly the correct names or it will not see them
    And this has absolutely nothing to do with iPhoto in any way - iPhoto sotres and proecesses yoru photos and allows you to export them - once you export them it is totally out of the picture - you can easily get photo prints by using the iPhoto print service, using an internet print service, burning photos to a DVD and taking them to a print service or putting them on a SD card and taking them to a print service - to view them on your camera you have to exactly reporduce what the camera is looking for - not at all sure what the pirnt even is
    LN

  • I have created a narration for a video, and it plays it while in the editer tools, but after saving it to my desktop, that version has no narration. can you help? Please.,

    I have created a narration for a video, and it plays it while in the editor tools, but after saving it to my desktop, that version has no narration , can you help...Please.

    timester
    What version of Premiere Elements and on what computer operating system is it running?
    How did you save your Timeline content which included the narration clip produced with the project's Narration Tool?
    Publish+Share/Computer/ and then what? And, what preset? And, for that preset, did you use the default settings of the preset
    or did you customize the preset under its Advanced Button/Video Tab and Audio Tab?
    What other audio was in the project - any on Audio 1 or Soundtrack? Did you get involved with Smart Mix at all?
    Let us start here. We will be watching for your follow up.
    Thank you.
    ATR

  • I have created a flyer in mac pages and need to get it to a printer to do a mass gloss printing. can someone advise how to do this.. should i burn the document to a cd or dvd?  Thanks

    I have created a flyer in mac pages and need to get it to a printer to do a mass gloss printing. can someone advise how to do this.. should i and can i burn the document to a cd or dvd to give to the printer?
    Thanks

    Some may need a CD while others may need a DVD or can use either medium.  Why not call your printer, tell them what you've got and ask them what they need to do the job you want done?  That way, you'll be working with what he/she needs to complete the job properly.

  • I have created a slide show with pictures and music in Iphoto and when I try export it I get Error You do not have sufficient permission for this operation.

    I have created a slide show with pictures and music in Iphoto and when I try export it I get Error You do not have sufficient permission for this operation.  Try to export to an external HD attached, all help would be gratefully received 

    Have you ever successfully saved anything to that external drive? My first two thoughts are that the drive isn't formatted for the Mac or that you don't have rights to save to the drive.

  • Hi, i am trying to download an ap and it is saying my sercity questions answers are wrong, it has now locked my apple id and wont let me use it. It is saying it is going to send the reset for the passwords to my email adress.

    Hi, i was using my iphone 4 and i was trying to download an app. It was saying i needed a sercity question. I tryed to remember the answers to the questions but i forgot. It was saying it was going to send the correct answers to my email. But the email it has typed in i have never seen before in my life. So i was wondering what to do. It has now locked my apple id and wont let me use it.

    That's not a good sign if it said it was going to send it to an email address you've never heard of. Contact iTunes Support and let them know this: http://apple.com/support/itunes/contact/

  • Important differences between oracle 10g and 11g

    Hi friends, can anyone tell me (pointwise) what are the major (and minor) differences between Oracle 10g and 11g.
    Please point me to some documents if possible.
    Thanks in advance

    The name of the link says it all: "top_features."
    In short it is Oracle's list of what they have for marketing and sales reasons designated "top features."
    It is not intended to be, and is not, a complete list of features. Often the features Oracle does not
    talk about are the most important.
    Let me give you some examples. I have never seen Oracle announce DBMS_XPLAN as a new feature
    yet you should not run an explain plan without it. Neither have I ever seen Oracle announce the new
    NO_DATA_NEEDED predefined exception. I have listed literally hundreds of new features you will not
    find in Oracle's new features docs.
    I did a presentation at OpenWorld this year as part of the unconference titled "New Features in
    Database 11gR2 that Oracle will not announce." It was easy to prepare a one hour presentation with
    little fear of being proved incorrect. As I turned out only one of the features I presented was mentioned
    by Oracle.
    You can find the presentation slides here:
    http://www.morganslibrary.org/pres/oow09_ucnf.pdf

  • Differences between Oracle 9i and 11g

    Hi,
    We are planning to migrate various PLSQL objects from Oracle 9i to Oracle 11g.
    We have around 200 packages and Staored procedures Oracle 9i, can some one let me know if there are any specific items to look before we migrate from Oracle 9i into 11g so that everything works fine after the migration.
    Please let me know major differences amognst in-built functions between Oracle 9i and 11g.
    Thanks.

    Oracle 11g has many advanced features in PL/SQL over Oracle 9i.
    refer here,
    http://www.oracle.com/technetwork/database/features/manageability/9i-to-11g-real-world-customer-exper-133754.pdf
    http://www.oracle.com/global/de/upgradecommunity/artikel/upgrade11gr2_workshop2.pdf
    http://www.compuworks.com/events/view/233.pdf
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getCourseDesc?dc=D52601GC10&p_org_id=15942&lang=US
    Thanks

Maybe you are looking for