Lock On OBJ$ Dictionary Table

Hi,
I am running a create table as select * from table_name using a database link.
The statement runs ok when I run it from sqlplus, but when we run it from a java client (oci / thin), there is a lock on a dictionary table OBJ$.
The result is that I can't even describe the specific table, even as sysdba.
Any action against this table is waiting on the dictionary lock.
Has anyone experienced this issue? Any thoughts?
Thanks,
Idan.

Here is some info pointing to the same..[SAP Help|http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/21f1ab446011d189700000e8322d00/frameset.htm].
Regards
Narasimhan

Similar Messages

  • On DML operations Locked held on Parent tables.

    Hi All,
    Am trying to delete records from a table such as
    DELETE /*+ index(EVENT_JOURNAL row_ts_idx) */  FROM EVENT_JOURNAL WHERE trunc(ROW_TS)= TO_date('09/05/2012','DD/MM/YYYY');table has function based index on row_ts column
    Plan
    DELETE STATEMENT  ALL_ROWSCost: 138  Bytes: 502 K  Cardinality: 8 K             
        3 DELETE BENCHMARKDEV.EVENT_JOURNAL        
            2 TABLE ACCESS BY INDEX ROWID TABLE BENCHMARKDEV.EVENT_JOURNAL Cost: 138  Bytes: 502 K  Cardinality: 8 K     
                1 INDEX RANGE SCAN INDEX BENCHMARKDEV.ROW_TS_IDX Cost: 23  Cardinality: 8 K  Above delete operation takes much time to delete 273 rows
    I have check that above DML perform getting locked on its parent table. such as
    select    OS_USER_NAME os_user,
        PROCESS os_pid,
        ORACLE_USERNAME oracle_user,
        l.SID oracle_id,
        decode(TYPE,
            'MR', 'Media Recovery',
            'RT', 'Redo Thread',
            'UN', 'User Name',
            'TX', 'Transaction',
            'TM', 'DML',
            'UL', 'PL/SQL User Lock',
            'DX', 'Distributed Xaction',
            'CF', 'Control File',
            'IS', 'Instance State',
            'FS', 'File Set',
            'IR', 'Instance Recovery',
            'ST', 'Disk Space Transaction',
            'TS', 'Temp Segment',
            'IV', 'Library Cache Invalidation',
            'LS', 'Log Start or Switch',
            'RW', 'Row Wait',
            'SQ', 'Sequence Number',
            'TE', 'Extend Table',
            'TT', 'Temp Table', type) lock_type,
        decode(LMODE,
            0, 'None',
            1, 'Null',
            2, 'Row-S (SS)',
            3, 'Row-X (SX)',
            4, 'Share',
            5, 'S/Row-X (SSX)',
            6, 'Exclusive', lmode) lock_held,
        decode(REQUEST,
            0, 'None',
            1, 'Null',
            2, 'Row-S (SS)',
            3, 'Row-X (SX)',
            4, 'Share',
            5, 'S/Row-X (SSX)',
            6, 'Exclusive', request) lock_requested,
        decode(BLOCK,
            0, 'Not Blocking',
            1, 'Blocking',
            2, 'Global', block) status,
        OWNER,
        OBJECT_NAME
    from    v$locked_object lo,
        dba_objects do,
        v$lock l
    where     lo.OBJECT_ID = do.OBJECT_ID
    AND     l.SID = lo.SESSION_ID
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     Transaction     Exclusive     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNIT
    oracle     6624     BENCHMARKDEV     216     DML     Row-X (SX)     None     Not Blocking     BENCHMARKDEV     BUSINESS_UNITI don't know on what basis parent tables are get locked?
    Please help me out to resolve..
    Thanks & Regards
    Sami
    Edited by: Sami on May 16, 2012 3:14 PM
    Edited by: Sami on May 16, 2012 3:15 PM

    Hi Sami,
    Your dont event need Function Based Index on ROW_TS. A normal B*Tree index on ROW_TS will do the trick and also reduce the time for index sorting.
    DELETE FROM EVENT_JOURNAL WHERE ROW_TS >= TO_date('09/05/2012','DD/MM/YYYY') AND ROW_TS < TO_date('10/05/2012','DD/MM/YYYY');
    {code}
    {code}
    Above delete operation takes much time to delete 273 rows
    {code}
    # Is EVENT_JOURNAL parent table and has foreign key references from other tables ?
    # How many records are there in EVENT_JOURNAL ?
    # Check data dictionary view - DBA_WAITERS to see waiting/holding session                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to see lock status of a table ?

    Hi,
    My question is : how to see the lock status of a table ?
    and how to lock a table except run the FM ENQUEUE_TABLENAME?
    Is there any transcation that can lock a table ?
    thx in advance.

    Hi Vincent
    Via transaction SM12 we can check the lock entries at a particular point of time...
    Kind Regards
    Eswar

  • How to find out the aligning Data dictionary table for a structure.

    Hi
    As the table controls are associated with strucures, the data input goes to the data dictionary table aligned to that structure. Is there any way we can find out the table related to that particular structure ?
    Thanks,
    Dhareppa

    Hi,
    The structure and its fields may be associated with multiple database tables.
    You can try by where-used list of the structure/field and then you can look and determine the table by hit and try method.
    Also as suggested above you can try get the SQL trace and then ypu can look for table associated behind the structure/fields I believe this is the best way to find the DB table.
    Thanks,
    Ravi

  • Help required in creation of Dictionary table dynamically

    Hello All,
    I have created DDIC table created dynamically.
    But what i require is! the dictionary table which i have created should be under the package name as given by the customer.
    I have seen in FM DDIF_TABL_PUT  the parameter dd02v-APPLCLASS is the write parameter to create the table under the required package. This field is of length char 4 only.
    Normally the package name will be greater than char4 and also it happend in my case that the package name is more than char4.
    Now i am unable to create the table dynamically under the specified pacakage of the customer
    How can i solve this problem?
    Can any one help me in this issue?
    Regards,
    Gupta

    Hi Lakshman,
    Thank you for your reply,
    I have used the FM which you have mentioned but i didn't work. I mean when i see the attributes of the table, package is still empty.
    Can you help me to solve the problem.
      CALL FUNCTION 'TR_TADIR_INTERFACE'
        EXPORTING
    *     WI_DELETE_TADIR_ENTRY                = ' '
    *     WI_REMOVE_REPAIR_FLAG                = ' '
    *     WI_SET_REPAIR_FLAG                   = ' '
    *     WI_TEST_MODUS                        = 'X'
          wi_tadir_pgmid                       = 'R3TR'
          wi_tadir_object                      = 'TABL'
          wi_tadir_obj_name                    = lv_objname
    *     WI_TADIR_KORRNUM                     = ' '
    *     WI_TADIR_SRCSYSTEM                   = ' '
    *     WI_TADIR_AUTHOR                      = ' '
         wi_tadir_devclass                    = 'ZV/HF/PLANNING'
    *     WI_TADIR_MASTERLANG                  = ' '
    *     WI_TADIR_CPROJECT                    = ' '
    *     WI_TADIR_VERSID                      = ' '
    *     WI_REMOVE_GENFLAG                    = ' '
    *     WI_SET_GENFLAG                       = ' '
    *     WI_READ_ONLY                         = ' '
    *     IV_SET_EDTFLAG                       = ' '
    *   IMPORTING
    *     NEW_GTADIR_ENTRY                     =
    *     NEW_TADIR_ENTRY                      =
       EXCEPTIONS
         tadir_entry_not_existing             = 1
         tadir_entry_ill_type                 = 2
         no_systemname                        = 3
         no_systemtype                        = 4
         original_system_conflict             = 5
         object_reserved_for_devclass         = 6
         object_exists_global                 = 7
         object_exists_local                  = 8
         object_is_distributed                = 9
         obj_specification_not_unique         = 10
         no_authorization_to_delete           = 11
         devclass_not_existing                = 12
         simultanious_set_remove_repair       = 13
         order_missing                        = 14
         no_modification_of_head_syst         = 15
         pgmid_object_not_allowed             = 16
         masterlanguage_not_specified         = 17
         devclass_not_specified               = 18
         specify_owner_unique                 = 19
         loc_priv_objs_no_repair              = 20
         gtadir_not_reached                   = 21
         object_locked_for_order              = 22
         change_of_class_not_allowed          = 23
         no_change_from_sap_to_tmp            = 24
         OTHERS                               = 25
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards,
    Lisa
    Edited by: Lisa Roy on Apr 9, 2008 11:37 AM

  • How to store variable length of data in data dictionary table

    hi friends
        i want to store variable length of text in one of field of table which is created in data dictionary.
        i tried it by declaring table field type as string,
    include that table using table statement and try to insert data in abap program . but it gives error something
    "cannot use table having deep structure " i don't remember it exactly.
          can you help me how to insert variable length of data in text data dictionary table.

    Hi,
        define field with type LRAW in your table to store
        string more than 255 characters.
          LRAW                                                                               
    Uninterpreted byte string of arbitrary length, but with a minimum                   
          length of 256. Fields of this type must be located at the end of                    
          tables and must be preceded by a length field of type INT2. LRAW                    
          fields cannot be used in the WHERE condition. LRAW is functional from               
          Release 3.0.                                                                        
    Regards
    amole

  • Icons in data dictionary table

    how do i get icons in a data dictionary table.
    i make this:
      DATA: BEGIN OF ls_structure,
            list TYPE TABLE OF dictionarytable,
            END OF ls_structure.
      DATA: wa_list LIKE LINE OF ls_structure-list.
      LOOP AT ls_structure-list INTO wa_list.
        wa_list-zdate = wa_list-datatime(8).
        wa_list-ztime = wa_list-datatime+8.
        wa_list-zlights = '@5C@'.
        INSERT dictionarytable FROM wa_list.
      ENDLOOP.
    my dictionary table has a field with zlight which is type icon_d.
    but when i look in the table the column is empty..........

    Hi,
    I wrote a sample code for your reference:
    include <icon>.
    tables zicon.
    zicon-id = '111111'.
    zicon-icon = icon_checked  .
    insert into zicon values zicon.
    for icon, I also used the type icon_d.
    Hope it helps.
    Regards,
    Chris Gu
    Edited by: Gu Chris on Nov 20, 2008 3:33 AM

  • Collection of stats prior to 10g upgrade for dictionary tables

    Collection of stats prior to 10g upgrade for dictionary tables is required? I thought if you are upgrading from 9i to 10g the stats in 9i become stale in 10g.
    I read a document that says you need to collect stats prior to upgrade and import them once your upgrade is done. Can someone guide me?

    I don't know where did you get these? There's some optimizer improvement and new feature in 10g. Collecting stats before upgrade and import later is unheard of.
    I suggest you check this article
    Choosing An Optimal Stats Gathering Strategy
    http://structureddata.org/2008/03/26/choosing-an-optimal-stats-gathering-strategy/
    and the white paper mentioned,
    White Paper entitled Upgrading from Oracle Database 9i to 10g: What to expect from the Optimizer.

  • Problems with Java Dictionary Tables

    Hi Experts,
    I have some problems with the Java Dictionary tables that I have created for my
    application. There are around 15 dictionary tables, each one of them having
    several hundred records, added in due course.
    As much as I understand these tables (created using the dictionary perspective)
    are stored in the default schema of the J2EE engine where the dictionary project
    is deployed and there is no direct way to insert records into these tables, we have
    to separately write methods to insert, update and delete records.
    I've already done this. Now the problem is that i have moved my project DC from
    development to testing. Now here the tables are existing, but not the data that i
    inserted during development.
    NOW, the main question: IS THERE ANY WAY IN WHICH I CAN TRANSFER
    THE CONTENTS OF THESE JAVA DICTIONARY TABLES??
    I have tried solutions like creating a DBLINK between the databases, but it is
    tedious, and unpredictable in behaviour. Also Please do not advise to first
    download them to excel and then upload using jxlapi, etc.
    Thanx in Advance.
    Alka.

    Hi Alka,
    The dblink is a good solution, but just a bit slow. You can also use a SQL Loader, first export the data from the source table in a text file (i.e. using a tool like TOAD), then sql loader loads the data in the destination table. This is more fast.
    Hope this help,
    Vito

  • Dictionary table showing history of parameter changes ... fact or fiction?

    Guten Tag
    I understand there is a dictionary table/view/object that tracks changes to database parameter values but I can't seem to be able to find it.
    A co-worked mentioned that information is available in OEM so I figured there must be a table somewhere that is storing it.
    Any thoughts or documentation references are most welcome.
    Thanks very much!
    -gary

    >
    I assume the SNAP_ID in that table must be a reference to an AWR snap of database information?
    >
    Why assume? Not the definitive source but see this blog about the dba_hist tables
    http://it.toolbox.com/blogs/living-happy-oracle/oracle-the-dba_hist-tables-30168
    >
    The information in most of the DBA_HIST tables corresponds to the AWR snapshots (the SNAP_ID column tells us to which snapshot the information is relevant to) so they are populated with new information when a snapshot is taken and old information is purged along with the AWR snapshot according to the AWR retention settings.
    >
    The last bullet point in the article may answer your initial question. This is just the start - there is also a query you can use
    >
    ■Did you ever wonder if someone had changed a system parameter and did not inform you? No more, the DBA_HIST_PARAMETER keeps system parameter information for all snapshots and helps the DBA track any parameter.

  • ALV fields which are not referenced to data dictionary table fields

    Hello,
    I am using function module reuse_alv_popup_to_select.
    How do I display fields in ALV which are not referenced to
    data dictionary table fields.
    I am showing 4 columns in alv out of which first column is checkbox
    and remaining 3 columns are from data dictionary and it works fine.
    Now I need to add one more column which is of type checkbox.
    I have added this field in my ITAB as flag(1) type C.
    When I add this flag field in the field catalog, I get exception.
    Regards,
    Vishal.

    Hey guys,
    Finally I got rid of such a stupid problem.
    There were no problem in the code.
    while assigning fieldname to field catalog I had given fieldname
    in lowercase.
    I changed it to uppercase and problem got solved.
    Thanks,
    Vishal.

  • Accessing dictionary tables from dynpro?

    Hi all
    As far as i know, there are 4 approches to access dictionary tables from webdynpro.
    -entity bean
    -sqlj
    -jdbc
    what are the advantages and disadvantages for all above?
    and which one to go for?

    Hi swathi
    See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
    Relational Persistence
    =================
    SQL-based coding: expressive!
    SQLJ: for static SQL, checked at design time,
    recommended
    JDBC: for dynamic SQL, can be combined with SQLJ
    =======================
    Object-relational Persistence
    ======================
    SQL-free! Portable!
    JDO: light-weight object persistence, Java-like dynamic
    query language
    EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
    Regards,
    Venkata Kalyan Karanam

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Lock and Unlock a table:AFVU

    Hi Folks.
    I want to modify a standard table (AFVU )  with new user dates from User.For this,First I need to lock and unlock the table.
    When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
    Is there any way to find out the lock object for a particular table?
    How to proceed for this?
    Any Pointers are much helpful.

    Hi,
    Go to SE11 and display your table - do a where used list and select lock objects.
    I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
    Gareth.

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

Maybe you are looking for

  • ICloud mail sync between iPhone 4S and Mac Book

    I am new in the Apple world. I have a brand new Apple MacBook Pro right out of the box and an older iPhone 4S, using a Pop3 mail account (and for various reasons I do NOT want to change to IMAP, e.g. storage space issues on the server). I do not use

  • Powerbook G4  HD SMART Status: Failing

    My powerbook G4 (1.5GHZ, 1GB RAM, OS 10.3.9)recently runs very slowly, sometimes freezed up during power off process. I checked the activity monitor to see none program hogging the cpu and memory, There are about 37GB free space on the hard drive. Ch

  • IndexOutOfBounds exceltion when opening a workitem in non english user

    Hello, On an english user I perfectly open a workiten in the UWL, But if a change the language to NL, DE, FR, other than english, when I try to open a workitem I get a IndexOutOfBoundsException, This is happen with standard task of Leave Request (LEA

  • My browser is stuck on the opening page.

    It does not seem to matter what website I tried to reach or what website I have set as my homepage. I get no response. The problem seems related to the scorpion saver program that has affected my computer. Is there a way to remove this?

  • Dynamic Adobe forms

    Hi All,    In dynmic adobe forms  how we will  identify the first page and last page. if we have more than one page based on this condition i need to display few fields. could any one mention that how we will handle this in script. Thanks for your re