Urgent!!!How to check if my table is locked?? - Page 2
DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Urgent!!!How to check if my table is locked??

  1. #11
    Join Date
    Jun 2004
    Posts
    125
    Actually, I was in a hurry. I meant the object does not exist in the database when I desc it in SQL Plus. Thanks a lot for all of your help and responses I am greatful for such a great repsonse. I am very new to Oracle DBA stuff. I would like to ask you guys for another favor. I have searched books on the same matter, such as oracle tuning and dynamic tables and views in oracle. Would you guys recommend a good book which has good reviews for someone like me who wants to delve into V$ views? Thank again.

  2. #12
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    V$ views mean nothing until you understand what is going on. Reading most books out there will lead you down the path of measuring by ratios and counts and when you think you know something we'll blow you out of the water. I suggest reading the Concepts manual twice before even thinking about the v$ views.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #13
    Join Date
    Jun 2004
    Posts
    125
    Thanks for your advice. I am actually reading a lot and trying to get the concepts straight on Oracle and the nuts and bolts of oracle. Before I go into the details of that I have another problem that I am facing.

    Yesterday, my table got locked up. And I was trying to find:

    1. what table was locked?
    2. what locked it up?

    when I restarted my server and rollback the database before the lock up actaully happened. When it restarted, it showed me the BEFORE Trigger that caused the lockup on my SHIPMENT TABLE.

    This BEFORE trigger which updates another table in our database. Btw, we are using Oracle forms6i for the front-end.

    ---------------------------------------------------------------------
    declare
    USER1 VARCHAR2(30);
    TQAP_CNT NUMBER := 0;
    HOLD_CHANGE VARCHAR2(1000) := null;
    begin
    SELECT USER INTO USER1 FROM DUAL;
    SELECT COUNT(*) INTO TQAP_CNT FROM TQAP_SCORES WHERE REG_NUM = :NEW.REG_NUM;
    IF :NEW.SHIPMENT_CODE IN ('MM','FM','RN') AND
    :OLD.ACT_DELIVERY_DATE IS NULL AND :NEW.ACT_DELIVERY_DATE IS NOT NULL AND
    TQAP_CNT = 0
    THEN
    INSERT INTO TQAP_SCORES
    (REG_NUM,
    GBLOC_SCORED,
    PRIORITY,
    RECEIPT,
    SHIPMENT_STATUS,
    ORIGINAL_1840)
    VALUES
    (:NEW.REG_NUM,
    :NEW.ORIGIN_GBLOC,
    'N', 'N', 'A', 'X');
    END IF;
    end;
    ---------------------------------------------------------------------

    The thing, that I want to know now is what application that the user was using that locked my table up. I know the sid and session but is it possible to find out what application that is doing this lock up on our table. In here, users have different application screens that they are using but we don't know what screen or the application that is causing the lockup when we are trying to UPDATE the SHIPMENT Table but no problem on INSERT though. I am not sure of you would be able to come up with the solution or if there is even a way to find what I am wanting. Anyways, I just thought there might be somoene out there who can shed some light. Thanks again to all of you.
    Last edited by see_one; 07-14-2004 at 09:25 AM.

  4. #14
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    It's like deja vu all over again. When you are experiencing the locking, look at dba_waiters and dba_blockers.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  5. #15
    Join Date
    Jun 2004
    Posts
    125
    It's okay now.
    Last edited by see_one; 07-14-2004 at 11:27 AM.

  6. #16
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    What's the error in your alert.log? Did everything create successfully? Did you run them as sys?
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  7. #17
    Join Date
    Jun 2004
    Posts
    125
    I checked the script and I realized that it was creating the synonyms based on tables that does not exist in our database. I think if i need to create the views I need to make sure that all the tables that the views require exists on the database. I think to do something like this, is a little bit risky esp. messing around with databases. I simply want to learn more and test those things on my own machine.

    But, I still want to find out the solution for the problem that our aplication my be causing to the table's trigger. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width