To find the table lock

Hi
When i try to update a able it is locked.
May i know how to find out by whom was the lock created.
Thanks in advance
Mary

No that's not possible, because Oracle doesn't keep track of all the individual locks. Oracle doesn't have a lock manager and they are not a scarce resource in Oracle.
There are two thing you can do, although both are probably not what you want:
1) Examine the table locks, and if there is only one on the table you are working with, you have a chance that the session you find is the one you are looking for. But this is only true when the lock is held for quite some time. Otherwise you risk the situation that the session you were interested in, has released the lock and a new session has a new lock on the table. So handle with care.
2) When your session is waiting for a lock, there will be a record in v$lock. Use a third session to examine which session is holding the lock.
Regards,
Rob.

Similar Messages

  • How to find the tables which are the candidates for gathering stats in 10g

    Hi,
    In 10g how can we find the tables, partitions which are the candidates for gathering the stats.
    I want to findo those tables, partitions and gather the stats on daily basis.
    Thanks,
    Mahi

    The probem you describe has been posted about before. There are known issues with the default dbms_stats parameter settings for some environements.
    What you can do is just go ahead an manually submit dbms_stats commands with appropriate parameters for tables that have not been analyzed or modify the maintenance window to give it more time.
    I would rather just generate the missing statistics myself then the job can continue to run in the normal maintenance window. Since the job should be looking only for tables that meet the stale requirements then once everything is analyzed it is likely the job can keep the statistics updated in the default time allowed.
    Be warned that the default parameter settings do not work well for some tables in some environments and if that proves true for your shop you can generate workable statistics on a table and then lock them so the nightly job ships regenerating the statistics for that table. You would then manually unlock, generate, and lock that statistics for that table as necessary.
    HTH -- Mark D Powell --

  • Crystal Reports Cant Find the table

    Hello ,
    I have a problem when i try to preview a report Crystal Reports says that cant find the table , it happend when add a table that in his name has an underscore example "SALES_REP" , im working with CR 2008 and open access ODBC driver.
    Can you help me with the problem?
    Thank you
    Manuel

    Hello,
    Try installing all CR patches and then test using OLE DB. If not an option we need to know more details of the database and driver/client?
    I recall this may be an issue and not sure if it's been patched or not. Try searching here to see if anyone else has had this problem.
    Thank you
    Don

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • Regarding finding the table name for a field in R12 forms

    Hi all,
    I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
    Thank you,
    raj

    Please see these threads.
    How to find table name in ebs
    How to find table name in ebs
    E-Business tables
    E-Business tables
    Thanks,
    Hussein

  • How to find the tables in OM

    Hi All,
    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OM
    Thanks & Regards
    srikkanth.M

    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OMeTRM
    http://etrm.oracle.com
    Thanks,
    Hussein

  • Find the Table of Content in Pdf

    Hi,
    How can i find the Table of Content in a particular PDF?.
    Is this possible in itext?
    Thanks,
    nithi.

    When converting a FrameMaker book to PDF, the PDF may include bookmarks for additional paragraph tags (on top of those specified in the book's PDF setup)
    The workaround is to specify PDF Setup in the individual file. For example, open your TOC, select Format > Document > PDF Setup, and make sure that the Heading1TOC, Heading2TOC... paragraph tags are not included in the bookmark setup.
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker training & consulting * FM-to-Acrobat TimeSavers
    "Improve Your FrameMaker Skills" live web-based training sessions

  • Is it possible to find the  table based on the Date ?

    Dear Team ,
    Is it possible to find the table based on the Date ?
    I have created an table ,But forgot the Table Name .
    Is it possible to find the Tables created on particular Date .
    Regards ,
    Augustine

    as date is record the time also below query will work.
    select * from user_objects
    where
    object_type = 'TABLE' and
    to_date(created,'DD-MON-YYYY') =to_date('<your date value in DD-MON-YYYY format>','DD-MON-YYYY');
    Edited by: shaileshM on Feb 24, 2010 9:39 PM

  • Basic technique to find the tables that get AFFECTED

    5.can anyone please explain tables that get affected when we create sales order.
    similarly like this we have many,,,is there any basic technique to find the tables that get AFFECTED.

    Steps :
       Execute ST05  and activate trace
       and Create VA01 tran(sales order)
      And Deacftivate ST05(SQL Trace)
    U can know All tables Afftected .
    Thanks
    Jagadeesh

  • How can i find the tables which dont contain any data under my database ?

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    Regards,
    Renu

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    For the schema that you've logged in to, you could do something like this:
    test@XE>
    test@XE> @test
    test@XE> --
    test@XE> set serveroutput on size 1000000
    test@XE>
    test@XE> declare
      2    n_count  number;
      3  begin
      4    for rec in (select object_name from user_objects
      5                where object_type = 'TABLE')
      6    loop
      7      execute immediate 'select count(*) from '||rec.object_name
      8      into n_count;
      9      if (n_count = 0) then
    10        dbms_output.put_line(rec.object_name);
    11      end if;
    12    end loop;
    13  end;
    14  /
    BONUS
    RUN_STATS
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
    HTH
    isotope

  • I can't find the Scroll Lock button on my notebook

    was in a program when something happened to the box I had up on screen, was told to hit the scroll lock key, but I can't find the scroll lock key - can anybody help me??
    This question was solved.
    View Solution.

    Hi I was out in the world when I ran into the "No Scroll Lock" key / function on mt HP DVP Laptop.  Really, HP could not add a ctrl + function key for this? 
    There is an easier solution than hooking an external keyboard, especially if you are not in the home/office. 
    USE THE WINDOWS ON SCREEN KEYBOARD!  I found this on another post on the HP board. In Windows 7 you can easily find the On Screen Keyboard  by pressing the windows globe on the bottom right corner that brings up your 'Start Menu" and type in "On Screen" in the search box at the bottom.  You should see "On Screen Keyboard" app come up at the top.  Alternately, go to Control Panel, Ease of Access, and you will see "Start On Screen Keyboard".  Once enabled when you select the on screen application it comes right up.  You can leave the on screen minimized at the bottom if you need to toggle Scroll Lock on and Off. 
    So there is a solution that does not include finding an external keyboard.  But HP, this can't be a difficult thing to add to the bios, no?  Like Alt + Fn Num Lock? 

  • Where can I find the Tables script that are used in the Documentation

    Hello All,
    Where can I find the Tables script that are used in the Documentation, Like Sales, Customers, employee, department.......
    Appreciate any Help
    Thanks & Regards
    Madhu K

    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/scripts.htm#sthref77
    9i
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96539/scripts.htm#4216

  • To find the tables

    Hi Folks,
    In my schema several times several inserts are performed on tables. I want to find the tables in which the records inserted recently
    is alert log file helpful?
    but i dontknow how to check in toad
    please shed some light
    thanks

    assuming you have aforementioned timestamp
    (ours is a column called create_dt on the majority of our tables )
    and you wanted to see the number of inserts as of a given time.
    WITH t AS (SELECT DISTINCT table_name
                 FROM all_tab_columns
                WHERE column_name = 'CREATE_DT')
    SELECT table_name,
           TO_NUMBER (
              EXTRACTVALUE (
                 xmltype (
                    DBMS_XMLGEN.
                     getxml (
                          'select count(*) c from '
                       || table_name
                       || ' where create_dt > trunc(sysdate-1)')),
                 '/ROWSET/ROW/C'))
              num_rows_inserted_yesterday
      FROM t
    ORDER BY num_rows_inserted_yesterday DESC;we also have one called delete_dt but I everytime I query this column I get no rows returned :)
    Edited by: pollywog on Jun 23, 2011 4:55 PM

  • Urgent-How to find the tables which are used in  DB02 transaction

    Hi,
    Can anybody help me in finding the tables  in Tablespaces tabstrip & Tables n Indexes tabstrip  in DB02 transaction??

    Hi,
    open the following link.
    http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
    Master data load failure
    Reward if Helpful
    Jagadish

  • Find the table names in a package body

    How to find the table names in a package body in single query .(SQL).

    Hi,
    you can find dependent objects of a package from below query
    select distinct referenced_name ,REFERENCED_TYPE from ALL_DEPENDENCIES where name = 'PACKAGE' and  referenced_owner not in ('SYS','PUBLIC') and referenced_type = 'TABLE';
    Thanks
    Handle: user12057782
    Status Level: Newbie
    Registered: Oct 13, 2009
    Total Posts: 5
    Total Questions: 4 (4 unresolved)
    mark answered if helpful/correct
    Edited by: CKPT on Nov 22, 2010 1:21 PM

Maybe you are looking for

  • Problem with ![CDATA inserted from Oracle Service Bus business service

    Hi All, Dear Experts I have inserted an XML as string in another XML message. The problem is that when the XML is passed to a business service the business service sends the string surrounded with the CDATA (i.e.) : <h> <e><![CDATA[<a><b>X</b><b>Y</b

  • Nano Not Connecting to Windows

    I think i have tried everything now. i did all the troubleshooting on Apple.com/support, tried resetting my nano re-installing all of the software. i just cannot get my computer or even Itunes to recognize that my nano is there. 1 time my nano said d

  • Connect Wi Fi to TV with Satellite P305-S8832

    I have  Satellite P305-S8832 which is still running strong, running Windows 7.  I want to connect it wirelessly to an older large screen Samsung TV (not a Smart TV) which has an additional HDMI input that's not being used. My goal is to stream video,

  • Problem in download of JDeveloper

    Hi, this is sonal.I have placed problems in sownloading the JDeveloper10g. The files downloaded are corrupted.please check it out and give me a solution thanks and regards Sonal

  • Import, wma to acc?

    I'm trying to import some songs from a flash drive to my library that are in wma format.  I follow the steps: iTunes>Edit>Add to Library>(New window opens)Selected the flash drive>selected the folder the album is in>selected the album folder>selected