ORA-000060 (dead end) while inserting

Dear all,

I am currently faced with a problem:

-We get ORA-000060
-the trace file generated by the error, shows an INSERT operation as the current operation
-The table on the INSERT operation above was below the properties:
-NO BITMAP INDEXES
-The table is PARTITIONNEE of RANGE
-A UNIQUE PARTITIONED LOCAL INDEX
-DB version is Oracle 9.2.0.6 on HP - UX

My question is why an insert operation will lead to blocking (bitmap index)?
Or it occurred to other operations, if that's the case, then why the trace file shows the operation of insertion as the current operation?
Help, please.

BR
Obaid

OK, according to the deadlock graph event, what are the TX enqueues, as well, it is certainly NOT a nonindexed foreign key problem. Locking not indexed because FKs cause TM enqueue waits, not TX enqueue.

Since this is a S mode waiting on TX and the statement in question is an insert, the most likely cause is superimposed on the index of the unique values.

Assume that you have:
create table testit (a number);
create an index only uniq_ind on testit (a);

Now, if you have two sessions inserting testit:

session 1:
insert into testit values (1);

session 2:
insert into testit values (2);

session 1:
-the following insert statement will start to hang, waiting for session 2 to commit or rollback
insert into testit values (2);

session 2:
-the next session hangs for three seconds, then Oracle can detect a blocking and session 1 will get an ORA-00060.
insert into testit values (1);

Then, if you have two concurrent sessions that overlap on the values of the non-validated unique values, you will see S mode TX enqueue waits.

Hope that helps,

-Mark

Tags: Database

Similar Questions

  • ORA-00060: Deadlock detected while you wait resource

    Hello

    I have a trigger to an underlying table. It fires after that insertion of the events in the underlying table. When I try to update some columns in a table underlying even within the trigger, I get the error below.

    ORA-00060: Deadlock detected while you wait resource

    Can anyone clear or correct me.

    Thank you

    Ignore the Aurélie. It is just a spammer who is trying to promote some criminal website.

    A deadlock occurred if two different sessions lock resources. Each session can wait the other session ends.

    I suppose that you set up a trigger and use the 'autonomous transaction' wrongly to a commit. This function creates a new session. Now you have two (or more) session that could create deadlock. Committing inside a trigger from the table is ALWAYS bad (with some exceptions).

    Solution: remove the pragma of your relaxation. Then the other problems you get with it.

  • ORA-00060: Deadlock detected while you wait the cursor CLOSE resource

    Hello

    I am a new Member of this forum. I work with a problem that we have obtained a few weeks ago. It runs in the lot C Pro executable on 10 threads dealing with > 800 data accessed from more than one table. The error, such as reported was a package.function call.

    This is the error I encountered:
    process_item ~ G *, D * ~-60 ~ ORA-00060: Deadlock detected while you wait resources ~ PACKAGE ERROR = cursor CLOSE C_ * in the R package *. I * 7641

    The slider is a simple SELECT without Table or record locking.

    My questions are:
    * During the occurrence of this error, execution is already in the line of the CLOSE cursor or did the error has occurred between the OPEN and the CLOSE slider? There are several lines of code between the OPENING and CLOSING:
    -one who calls to a package.function that simply stores the values of parameter to a variable
    -another one that retrieves the cursor. The group that contains the values of the cursor is used only by a single function in the package

    * Is it possible for this CLOSE cursor cause a deadlock? What could have caused this?

    * From what I know, Oracle treats blocks by abandoning the blocking process, while others continue, but this impasse caused our program to hang. How is that possible? The origin of the impasse might be our Threading program? This is a rare event and has past that twice this year.

    Thank you
    RAF

    RAF Serrano wrote:
    I see, so it be that blocking has occurred before the CLOSE cursor or it occurred during CLOSING? The cause could be executable ProC

    first cause is NOT ProC

    or is it really an error in PL/SQL

    first cause is NOT PL/SQL.

    cause of ORA-00060 is DML (INSERT, UPDATE, or DELETE)

  • I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I have the effect on this model beach ball

    I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I now have the beach on this computer ball effect.  Are there places I can delete cookies etc to help out?  Thank you for your help.

    horse8905

    Don't know what's happening, you do not give a lot of information, but if you have the constant beachballing (spinning wait cursor), which could mean that the hard drive is dying.

    Open Console.app in Applications > utilities. Filter, called "String Matching," right, high enter "I/o" without the quotes. What happens when you do this?

  • DEAD-END ADOBE FLASH PLAYER 11 BUT NO PIC.

    DEAD-END ADOBE FLASH PLAYER 11 BUT NO PIC.   ALL THE PROGRAMS I'M LOOKING AT SAYS I NEED FLASH PLAYER 11, I HAVE SO INSTALLED SUCCESSFULLY BUT STILL ASKING ME TO INSTALL PROGRAMS.

    Hello

    Check with Support Adobe and their forums.

    Adobe - Support
    http://www.Adobe.com/support/

    Adobe - communities
    http://www.Adobe.com/communities/

    Adobe - Forums
    http://forums.Adobe.com/index.jspa

    ------------------------------------------

    You may need to uninstall Flash Player and reinstall.

    How to uninstall the Adobe Flash Player plug-in and ActiveX control - download utility uninstall
    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Troubleshoot Flash Player installation | Windows
    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Or

    Download Revo Uninstaller - free Version - and use it to uninstall Flash
    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    Reset

    Now try Flash:

    Download Flash Player (do not install the Google toolbar unless you really want to).

    http://get.Adobe.com/flashplayer/

    or:

    Test of Shockwave and Flash players
    http://www.Adobe.com/Shockwave/welcome/

    http://www.Adobe.com/software/Flash/about/

    ---------------------------

    If there are still problems when running Flash Player:

    Troubleshooting drive stabiility and performance
    http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

    Flash Player Support Forums<-- more="" knowledgeable="" flash="" player="" help="" available="">
    http://forums.Adobe.com/community/webplayers/flash_player

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • ORA-04052: error occurred while the remote object by raising

    Please help I m this error

    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-04052: error occurred while the remote object by raising
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Tom wrote:
    Please help I m this error
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Well, what part of the name of user and password invalid needs to explain?

    SY.

  • SUPERIOR service... ORA-00921: unexpected end of SQL command

    Hello

    get the below error.

    SQL > @c:\test_user.sql;

    Enter the user name value: mapple
    old 1: DROP USER UPPER(&&USERNAME) CASE
    new 1: DROP USER UPPER (mapple) WATERFALL
    DROP USER UPPER (mapple) WATERFALL
    *
    ERROR on line 1:
    ORA-00921: unexpected end of SQL command


    you want to convert to uppercase in user input.

    cant we use UPPER() function here?

    How can we do?

    Regarding

    No, you can use the UPPER part.

    Or do you need it. Oracle will automatically translate all identifiers (table names, column names, etc.) in uppercase, except if you wrap them in double quotes.
    If you insist on the use of capital letters:

    Set sqlcase higher

    send all your statements translated into letters on the server.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • Help with 14400 ORA error while inserting data

    Hi all

    I am facing an error ora-14400 in the following scenario, please help.

    I created a table using the syntax:

    CREATE TABLE insert_table
    (
    NUMBER OF GRPKEY (20, 0) NOT NULL,
    N NUMBER (10, 0),
    JOVAN VARCHAR2 (250 BYTE),
    APC VARCHAR2 (2 BYTE),
    SID VARCHAR2 (65 BYTE),
    RDATETIME VARCHAR2 (BYTE 19),
    NUMBER OF CKEY (20, 0),
    AVER VARCHAR2 (25 BYTE),
    VARCHAR2 (250 BYTE) CVER,
    TNOM VARCHAR2 (50 BYTE),
    SCODE VARCHAR2 (30 BYTE),
    PTAPEZ VARCHAR2 (50 BYTE),
    NUMBER OF FILENUMB (10, 0),
    NUMBER OF LINENUMB (10, 0),
    DATE OF ENTRY_CREATEDDATE
    CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION OF RANGE (ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN (TO_DATE (' 2009-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN ')))
    );


    When I try to insert data using the:


    insert into insert_table values
    (1, null, null, null, null, null, null, null, null, null, null, null, null, null, November 1, 2010 "");

    I get the following error output:
    Error report:
    SQL error: ORA-14400: inserted partition key is not mapped with any partition
    14400 00000 - "inserted partition key is not mapped to any partition.
    * Cause: An attempt was made to insert a record into a beach or a Composite
    Range object, with a concatenated partition key that overflows
    the concatenated partition bound list of the last partition - or-
    An attempt was made to insert a record into a list object with
    a partition key that does not match the specified literal values
    for all partitions.
    * Action: Do not insert the key. Add a partition capable of accepting
    the key, or add values corresponding to the key a partition specification

    Hi Chaitanya,

    Change your table script to

    CREATE TABLE temp_table
    (
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P1 VALUES LESS THAN(MAXVALUE)
    );
    
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    1 row inserted
    

    or refer the question about the "Date of partitioning of a table"
    * 009 *.

    Published by: 009 November 3, 2010 23:29

  • SSL from end to end with insertion of Cookie for config sticky help

    Good day to all,

    Received a new request from my customer to provide the SSL (front-end and Back-End) endpoints on the ACE module.

    Here is the list of requirements:

    (1) stop of SSL customer to the AS - key size 2048

    (2) introduction to the real servers - key size 1024 SSL

    (3) Insert cookie for sticky - provided by ACE

    (4) predictor - Leasconn

    (5) mode - bridge

    I searched the Forum and other sites, and I would like to get clarification on a few things that I understand the problem;

    Thank you in advance for taking the time to read and give me your comments/suggestions:

    (1) my client has provided the certificate for their application, I need to import about ACE. question about it, do I need a certificate for each VIP I configure on the ACE for termination for all future requirements?

    (2) do I need to install a certificate on the ACE to (initialize) the real servers? If so, first generate the key and follow up the instructions to ask CSR?

    (3) to create the Insert for the sticky cookie, is the following commands all that I need to apply:

    ACE-Insert cookie http-post-it web-sticky

    browser-expiration of cookie insert

    Timeout 5

    Serverfarm my_server_farm

    (4) if I lab, a lab environment, can the certificate be exported first and then imported to the ACE of the Production, or each environment should have its own certificate?

    An example configuration that someone could share would be also greatly apprecaited.

    Thank you

    -Raman

    Hello Raman,

    In fact, there is a small typo. Correct your understanding about the probe. The port of the probe must be 443 as you pointed out or one probe https http and no probe, if port 80 is used.

    In addition, it is not mandatory to have two serverfarm in the case of end to end ssl (if that's what you ask after referring to the example). In short:

    SSL---> customer termination---> ace---> RSERVERS.

    Communication between the client and ACE is encrypted. Rservers ACE is clear. So here you have rservers to listen on port 80 or 8081 etc. Survey should be on port 80.

    Initiation of SSL---> in this case communication between ACE and rservers is encrypted. Therefore the probe should be port 443.

    End to end SSL---> in this case that you must book for listening on 443 and front end as backend is encrypted. Survey should be on 443.

    Also, troubleshooting ssl commands would be:

    show stats client crypto

    show crypto server stats

    I hope this helps.

    Kind regards

    Kanwal

  • ORA-01460: dead letter or unreasonable conversion requested

    Hello

    I use

    Database: Oracle Database 11 g Express Edition Release 11.2.0.2.0

    APEX: Oracle Application Express Release 5.0.1.00.06

    When I passing parameters in my query for report error: ORA-01460: letter dead or unreasonable conversion requested

    My source of query report shown as below:

    Select cat_desc, brand_desc, sum (dirty) in the sale of salesview

    where date between to_date(:sdate,'DD-MON-YYYY') and to_date(:edate,'DD-MON-YYYY')

    Group of cat_desc, brand_desc

    I also use > = and < = operator but even the results

    Kind regards

    Jamil

    Jamil Malik wrote:

    Yes, it uses a database link and regret not mentioning the error ORA-02063: preceding MY_LINK line.

    My remote database is 9i

    This is caused by the #12728440 of the database bug, for which there is no documented fix or workaround. Your options are limited:

    • Upgrade the remote database to a compatible version.
    • Try to copy the remote data to the local database outside of the APEX and interrogate him there.
  • Getting error while inserting data from source to the target in the procedures?

    Hello

    I want to insert the data from the source to the target in the procedures, have the same schema.

    For this, I did as follows

    Command on the source:

    Technologies: oracle

    Schema: EDWHCMB

    Command:

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY

    Command on the target:

    Technologies: oracle

    Schema: EDWHCMB

    command:

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    COMPANY_CODE,

    COMPANY_NAME)

    I have run the procudere then I got error as follows

    ODI-1228: SAMPLE1 (procedure) task fails on ORACLE EDWH connection target.

    Caused by: java.sql.BatchUpdateException: ORA-00984: column not allowed here.


    How to insert the data from the source to the target in the proceedings?

    Please send any document to this...

    Please help me.

    Thanks in advance,

    A.Kavya.

    Hi Bruno.

    If your tables are on the same schema then why do you use command on the source and the command on the target? You can simply do the following on the command on the target

    INSERT INTO EDWHCMB. TEMP

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY


    If you really want at all to use the command on the source and target both then I think you need to change the following code on your order on the target

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    : COMPANY_CODE,.

    (: COMPANY_NAME)

    Hope your TEMP table has only these 2 columns.

    Thank you

    Ajay

  • Error while inserting data with DBMS_RANDOM

    Hello
    I tried the following insert command in the link http://www.oracle-base.com/articles/misc/RollupCubeGroupingFunctionsAndGroupingSets.php
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    SQL> INSERT INTO dimension_tab
      2  SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
      3         TRUNC(DBMS_RANDOM.value(low => 1, high => 6)) AS fact_2_id,
      4         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_3_id,
      5         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_4_id,
      6         ROUND(DBMS_RANDOM.value(low => 1, high => 100), 2) AS sales_value
      7  FROM   dual
      8  CONNECT BY level <= 1000;
    SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
                                       *
    ERROR at line 2:
    ORA-00907: missing right parenthesis
    Could you please advice me to get the correct records

    >
    You cannot use named parameters for the function/procedure calls in SQL up to version 11.
    >

    You cannot use a procedure in SQL even in version 11.

    For the OP,.

    The named parameters in the functions not suitable for versions of oracle less than 11 in what Tubby said.

    Try the following.

    INSERT INTO dimension_tab
    SELECT TRUNC(DBMS_RANDOM.value( 1,  3)) AS fact_1_id,
           TRUNC(DBMS_RANDOM.value( 1,  6)) AS fact_2_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_3_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_4_id,
           ROUND(DBMS_RANDOM.value( 1,  100), 2) AS sales_value
    FROM   dual
    CONNECT BY LEVEL <= 1000;
    

    G.

  • ORA-01776: I can not insert a view consisting of two tables

    Hello:

    I'm doing an insert on a view composed by the join of two tables (services and employees) and it failed.

    The view is the following:

    CREATE OR REPLACE FORCE VIEW 'EMPDPTO' ('EMPLOYE_ID', 'LAST_NAME', 'EMAIL', 'HIRE_DATE', 'JOB_ID""DEPARTMENT_ID","DEPARTMENT_NAME") AS
    (
    SELECT employe_id, last_name, email, hire_date, job_id, d.department_id, department_name
    E employees, departments d
    WHERE e.department_id = d.department_id
    );


    My insert command

    INSERT INTO empdpto
    VALUES (743, 'Bermejo', '[email protected]', 12 December 09 ', 'IT_PROG', 10, 'Administration');

    get an ORA-01776: it is not possible to modify more than one table of base through a union to join.


    On the other side, I saw in the documentation which, in certain circumstances, can do an insert on a complex view.

    Is it possible to do an insert on a view consisting of two tables? Under what conditions?

    Thank you

    Reference of SQL CREATE VIEW http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8004.htm#i2065510 views editable Notes section

    >
    If you want a view of join to be updated, then all of the following conditions must be met:

    *

    The DML must assign only one underlying table of the join.
    *

    An insert, the view does not create WITH CHECK OPTION, and all columns in which the values are inserted must come from a key preserved table. A key-preserved table is one for which each primary key or unique key in the base table value is also unique in the view of the join.
    *

    For an UPDATE statement, the view does not create WITH CHECK OPTION, and all updated columns must be extracted from a preserved key table.

    >

    The first condition is not true for the view that you created.

    Edited by: P. Forstmann on 26 Jan. 2010 20:17

  • Merger with subquery causes ORA-38101 invalid column to INSERT the VALUES C

    What follows is a slightly shortened version of a SQL statement that causes the error.
              MERGE INTO applicant_matches m_table USING
              (
                   SELECT DISTINCT
                               s.student_id,
                               a.term_scope_id,
                               a.first_name,
                             a.last_name,
                             a.ssn_visa,
                             a.birth_date,
                             ...     
                         
              ) m_list ON
              (m_list.student_id =     m_table.student_id AND
                   m_list.first_name     =     m_table.first_name AND
                   m_list.last_name =     m_table.last_name AND
                   m_list.birth_date     =     m_table.birth_date AND
                   m_list.ssn_visa =     m_table.ssn_visa AND
                   m_list.term_scope_id =     m_table.term_scope_id)
    
              WHEN NOT MATCHED THEN
                     INSERT (m_table.student_id, m_table.term_scope_id, m_table.ssn_visa, m_table.first_name, m_table.last_name,
                           m_table.birth_date, m_table.ssn_match, m_table.dob_match, m_table.soundex_match, m_table.name_match, m_table.past_present)
                     VALUES
                        (m_list.student_id, m_list.term_scope_id, m_list.ssn_visa, m_list.first_name, 
                             m_list.last_name, m_list.birth_date, m_list.ssn_match, m_list.dob_match, m_list.soundex_match, 
                             m_list.name_match, 
    
    
                             (SELECT                    
                   'A'
                        FROM  term_scope ts
                             JOIN campus_term ct ON ts.campus_term_id=ct.campus_term_id
                             WHERE
                             ts.term_scope_id = 5  )
               
               )
               
    I've simplified the request a bit to see what combination of things are the cause of the problem, that is why she always inserts 'A' in m_list.past_present (a CHAR (1)) and always use 5 for the term_scope_id.

    On the SELECT subquery I get one
    ORA-38101 invalid column in the INSERT VALUES Clause: string "ts". "" term_scope_id ".

    However, if I leave the
    JOIN the ct campus_term ON ts.campus_term_id = ct.campus_term_id
    Then, the query works fine.

    Anyway, it must be insert 'A', so I can't imagine what that JOIN has to do with anything anyone. The term_scope_id is valid. It won't let you do a join in a subquery for a merge insert?

    BTW: I'm using Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - Production

    Try using the old join syntax

    Select 'x '.
    from t1, t2
    where t1.col = t2.col
    and t2.other_col = using_set.other_col

  • Satellite L310-D4010: OS became dead slow while using the CD/DVD drive

    Hi all

    I bought Toshiba Satellite L310-D4010 in chennai, India.

    It has 2 GB of RAM and processor 1.83 GHz Intel Core 2 Duo.

    But my system became * slow * while I use the optical drive, that is, when I write a disk and copy the content form the drive.

    I was not able to open any application while I am using the DVD player.

    Please guide me to solve this problem.

    Thanking you.

    This is nothing unusual.

    My windows system is also busy when burning the CD or DVD!
    The point is that most of the resources of mobile phone as a disk, CD/DVD player, RAM, CPU, etc. are necessary and run it with maximum performance during this procedure and to be honest not advisable to work with the laptop during a burning, because this may affect the quality of combustion.

    In my opinion there is noting wrong with your laptop, but if you want you could check if some process is not required are running in the background of the OS.
    In addition, you may disable auto-start for some non-material applications while the Windows start the process.

Maybe you are looking for