Ora-01654 error

Hi all,
We are getting this following short dump in our system.
ora-01654 unable to extend index sapsr3.d010inc~1 by 8192 in the tablespace psapsr3701.
When i checked in the db02 the tablespace was having sufficient space.I tried to add another data file to it.
I was getting the below error then.
ORA-01119: error in creating database file
'/oracle/DS3/sapdata1/sr3701_9/sr3701.data9'
ORA-27040: file create error, unable to create file
Could someone help us in understanding the issue.Thanks.

Hi,
Eventhough u seem to have enough space at the OS, the actual disk space might have been occupied if the datafiles are set to auto extend. Try to turn off the auto extend so that u can gain some space at the OS level. Then try to extend the tablespace by adding a new datafile.
Steps to turn off the auto extend.
Login to the server as ora<SID>
Execute BRTools
2 - Space Management
5 - Alter data file
c - cont
c - cont
4 - Turn off autoextend
Select the datafile for which u want to turn off the tablespace by entering the corresponding number(for example 1).
c - cont
c - cont
Repeat the steps mentioned above till u gain space at the OS level.
Hope this will resolve ur issue.
Regards,
Varadharajan M

Similar Messages

  • ORA-01654 error message when inserting multiple records

    Hello all,
    I have a Test table with attributes TEST_ID, TEST_NAME, TEST_DATE, STATUS, and want to insert multiple records into this table based on user input form. If user select a value from the drop down list, and the number of records to insert into the Test table, the application should insert that many into the Test table with the same TEST_DATE, STATUS, but TEST_NAME should be the drop down list value + i (1....the number of inserted records). I manually created the form, and wrote a sql for the process.
    For example if the user select MUSIC, 3 then data should look like this
    TEST_ID TEST_NAME TEST_DATE STATUS
    1 MUSIC1 04/06/2010 Y
    2 MUSIC2 04/06/2010 Y
    3 MUSIC3 04/06/2010 Y
    I got the error ORA-01654: unable to extend index TEST_TOOL_ID.TEST_PK by 128 in table space FLOW_13120862905990037739.
    The process query
    DECLARE IDTEST NUMBER := 1;
    BEGIN
    WHILE (IDTEST < :P1_COUNT + 1) LOOP
    INSERT INTO TEST ( TEST_NAME, TEST_DATE, STATUS )
    VALUES ((:P1_TEST_NAME || ' ' ||IDTEST), SYSDATE, 'Y');
    END LOOP;
    END;
    Here is the link to this application
    http://apex.oracle.com/pls/apex/f?p=4000:1:3173416575551580::NO:RP:FB_FLOW_ID,F4000_P1_FLOW:32828,32828
    Any help would be appreciated.
    Thanks,
    Karoline

    This is the output i get when i change the getMessage with printStackTrace.
    String getMessage() replaced with printStackTrace:
    G:\studies\Chapter11\MakeDB.java:33: 'void' type not allowed here
                   System.out.println("Could not drop primary key on UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:43: 'void' type not allowed here
                   System.out.println("Could not drop UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:54: 'void' type not allowed here
                   System.out.println("Could not drop Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:64: 'void' type not allowed here
                   System.out.println("Could not drop Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:83: 'void' type not allowed here
                   System.out.println("Exception creating Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:102: 'void' type not allowed here
                   System.out.println("Exception creating Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:119: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:133: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks index: "
    ^
    G:\studies\Chapter11\MakeDB.java:159: 'void' type not allowed here
                   System.out.println("Exception inserting user: "
    ^
    9 errors
    Tool completed with exit code 1

  • Recurring error ORA-01654

    Dear all
    We are running a batch process and consistently getting this error. (Unexpected error in package pk_rts_con_daily_rates, program "p_create_cpr_record". Error is "ORA-01654: unable to extend index RTS.CRP_CPA_FK_I by 1280 in tablespace RTS_INDEX_LARGE".).
    The DBA has extended the table space but the error still comes up. Is this error a problem with amount of data being collected at the process level or is there a problem with the extended table space reverting to it's original size after backups finish or some other process finishes?
    Cheers .

    Hi,
    Did you verify how much space was left in the tablespace when the error occurred ?
    This error is a "no space" error, so the only way to resolve it should be to resize the tablespace.
    When you resize a tablespace, the change is permanent, and not dependent on any process.

  • Error: ORA-01654: unable to extend index APPLSYS.SYS_IOT_TOP_34179 by 16 in

    Hi,
    I am using Oracle API (HzLocationV2Pub.LocationRec) to update record and getting the following error message in JDeveloper log and couldn't able to update.
    x_return_status : U
    x_msg_data : Unexpected SQL error encountered during synchronization:
    Procedure: sync_party_site
    Error: ORA-01654: unable to extend index APPLSYS.SYS_IOT_TOP_34179 by 16 in tablespace APPS_TS_QUEUES
    Please contact the system administrator.
    x_msg_count : 1
    What is the reason behind this error?
    How to resolve this?
    Thanks & Regards,
    Sagarika

    Hi,
    You need to add more space to your datafile/tablespace, or extend the index.
    SQL> alter index APPLSYS.SYS_IOT_TOP_34179 storage (maxextents unlimited);
    SQL> ALTER TABLESPACE <tablespace name> ADD DATAFILE '<full path and file name>' SIZE <integer> <K|M>; Note: 1025288.6 - How to Diagnose and Resolve UNABLE TO EXTEND Errors
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1025288.6
    Note: 19049.1 - OERR: ORA 1654 unable to extend index by for tablespace
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=19049.1
    Note: 762273.1 - ORA-1654: unable to extend index
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=762273.1
    Regards,
    Hussein

  • ORA-01654: unable to extend index user.index_x by 16 in tablespace tablespa

    Hi all,
    I get the error message : ORA-01654: unable to extend index user.index_x by 16 in tablespace tablespace_t after an insert into table table_x(having the index index_x ).
    Could you please help me ? Should I add new datafile? Is there any other solution
    I have get this message before, I have added new datafile to this tablespace,
    ALTER TABLESPACE tablespace_t ADD DATAFILE 'C:\APP\...\ORADATA\MABASE\S_TAB_user02.DBF' SIZE 500M
    AUTOEXTEND ON NEXT 100M MAX SIZE 1000M;
         TABLESPACE_NAME     ALLOUE     OCCUPE     LIBRE
    1     tablespace_t     5720     5421     297

    i think that would work.. And also if the error still persists then you have to tune the queries which are cost effective..For that you have to wait until you get the same error after addition of the datafile..Cheers!

  • ORA-01654 unable to extend index

    Hello,
    while inserting a new record with this statment:
    INSERT INTO vocc.VOC_CM_ANNUNCIO ( ID_RECORD, TIPO_AZIONE, ID_VOC_OPERATORE, ID_ANN_FONTE, COD_NAZIONE,
    COD_REGIONE, COD_PROVINCIA, COD_COMUNE, LOCALITA_ESTERA, DATORE_LAVORO, FLG_PUBBLICA_DATORE,
    TELEFONO, FLG_PUBBLICA_TELEFONO, FAX, FLG_PUBBLICA_FAX, EMAIL, FLG_PUBBLICA_EMAIL, SITO_INTERNET,
    FLG_PUBBLICA_SITO_INTERNET, CLASSIFICAZIONE, POSIZIONE, NUMERO_POSTI, COD_CONTRATTO,
    COD_ORARIO_LAVORO, DURATA_CONTRATTO, NOTE, ETA_MINIMA, ETA_MASSIMA, COD_MILITARE, COD_AUTOMUNITO,
    COD_DISPONIBILITA_TRASFERTA, COD_DISPONIBILITA_TURNI, COD_DISPONIBILITA_FORMAZIONE,
    COD_FIGURA_PROFESSIONALE, COMPETENZE, DATA_PUBBLICAZIONE, DATA_SCADENZA, TIPO_RAPPORTO,
    FLG_FORMA ) VALUES (
    14781, 'ins', '20', '1', NULL, '01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
    , NULL, NULL, NULL, NULL, NULL, NULL, '3', NULL, NULL, NULL, 'Disponibili immediatamente'
    , '20', '50', NULL, NULL, NULL, NULL, NULL, '122504', NULL, '01/01/2006', '31/01/2006'
    , 'CLI', 'D');
    I got the following error.
    ORA-01654: unable to extend index VOCC.PK_VOC_CM_ANNUNCIO by 128 in tablespace VOCC_IDX
    Instead if I execute this statment:
    INSERT INTO vocc.VOC_CM_ANNUNCIO ( ID_RECORD, TIPO_AZIONE, ID_VOC_OPERATORE, ID_ANN_FONTE, COD_NAZIONE,
    COD_REGIONE, COD_PROVINCIA, COD_COMUNE, LOCALITA_ESTERA, DATORE_LAVORO, FLG_PUBBLICA_DATORE,
    TELEFONO, FLG_PUBBLICA_TELEFONO, FAX, FLG_PUBBLICA_FAX, EMAIL, FLG_PUBBLICA_EMAIL, SITO_INTERNET,
    FLG_PUBBLICA_SITO_INTERNET, CLASSIFICAZIONE, POSIZIONE, NUMERO_POSTI, COD_CONTRATTO,
    COD_ORARIO_LAVORO, DURATA_CONTRATTO, NOTE, ETA_MINIMA, ETA_MASSIMA, COD_MILITARE, COD_AUTOMUNITO,
    COD_DISPONIBILITA_TRASFERTA, COD_DISPONIBILITA_TURNI, COD_DISPONIBILITA_FORMAZIONE,
    COD_FIGURA_PROFESSIONALE, COMPETENZE, DATA_PUBBLICAZIONE, DATA_SCADENZA, TIPO_RAPPORTO,
    FLG_FORMA ) VALUES (
    1999, 'ins', '20', '1', NULL, '01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
    , NULL, NULL, NULL, NULL, NULL, NULL, '3', NULL, NULL, NULL, 'Disponibili immediatamente'
    , '20', '50', NULL, NULL, NULL, NULL, NULL, '122504', NULL, '01/01/2006', '31/01/2006'
    , 'CLI', 'D');
    I have no problem.
    select max(ID_RECORD) from vocc.VOC_CM_ANNUNCIO = 14785
    Could anyone please explain, how to solve this problem.
    Thank you,
    Regards,
    Lavinia

    Okay,
    this is table structure:
    CREATE TABLE VOC_CM_ANNUNCIO
    ID_RECORD NUMBER NOT NULL,
    TIPO_AZIONE VARCHAR2(3),
    ID_VOC_OPERATORE VARCHAR2(10),
    ID_ANN_FONTE VARCHAR2(20),
    COD_NAZIONE VARCHAR2(4),
    COD_REGIONE VARCHAR2(2),
    COD_PROVINCIA VARCHAR2(3),
    COD_COMUNE VARCHAR2(4),
    LOCALITA_ESTERA VARCHAR2(100),
    DATORE_LAVORO VARCHAR2(305),
    FLG_PUBBLICA_DATORE VARCHAR2(1),
    TELEFONO VARCHAR2(20),
    FLG_PUBBLICA_TELEFONO VARCHAR2(1),
    FAX VARCHAR2(20),
    FLG_PUBBLICA_FAX VARCHAR2(1),
    EMAIL VARCHAR2(50),
    FLG_PUBBLICA_EMAIL VARCHAR2(1),
    SITO_INTERNET VARCHAR2(105),
    FLG_PUBBLICA_SITO_INTERNET VARCHAR2(1),
    CLASSIFICAZIONE VARCHAR2(4),
    POSIZIONE VARCHAR2(300),
    NUMERO_POSTI VARCHAR2(3),
    COD_CONTRATTO VARCHAR2(4),
    COD_ORARIO_LAVORO VARCHAR2(3),
    DURATA_CONTRATTO VARCHAR2(2),
    NOTE VARCHAR2(200),
    ETA_MINIMA VARCHAR2(2),
    ETA_MASSIMA VARCHAR2(2),
    COD_MILITARE VARCHAR2(1),
    COD_AUTOMUNITO VARCHAR2(1),
    COD_DISPONIBILITA_TRASFERTA VARCHAR2(1),
    COD_DISPONIBILITA_TURNI VARCHAR2(1),
    COD_DISPONIBILITA_FORMAZIONE VARCHAR2(1),
    COD_FIGURA_PROFESSIONALE VARCHAR2(6),
    COMPETENZE VARCHAR2(300),
    DATA_PUBBLICAZIONE VARCHAR2(10),
    DATA_SCADENZA VARCHAR2(10),
    TIPO_RAPPORTO VARCHAR2(3),
    FLG_FORMA VARCHAR2(1)
    TABLESPACE VOCC_TBL
    PCTUSED 40
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 168K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    LOGGING
    NOCACHE
    NOPARALLEL;
    The PK is:
    CREATE UNIQUE INDEX PK_VOC_CM_ANNUNCIO ON VOC_CM_ANNUNCIO
    (ID_RECORD)
    NOLOGGING
    TABLESPACE VOCC_IDX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 32K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    And the tbl:
    CREATE TABLESPACE VOCC_IDX DATAFILE
    MINIMUM EXTENT 512K
    LOGGING
    DEFAULT STORAGE (
    INITIAL 1M
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    ONLINE
    PERMANENT
    EXTENT MANAGEMENT DICTIONARY;

  • ORA-01654: unable to extend index DRM_DB.IDXREL02 by 1024 in tablespace DRM_INDEX

    Hi
    I am running an action script in DRM 11.1.2.1 and I received the following error on some of the lines of the script: ORA-01654: unable to extend index DRM_DB.IDXREL02 by 1024 in tablespace DRM_INDEX.
    Does anyone know what this means, and what is the fix?
    Thanks,

    The issue was caused because the  DRM_DB.IDXREL02 tablespace was maxed out.
    Add the datafile to existing 'IDXREL02' tablespace to increase the size.
    example -
    sql> alter tablespace DRM_DB.IDXREL02 add datafile 'file>/IDXREL02.dbf' size 500M autoextend on;
    Thanks,
    ~KKT~

  • ORA-01654: unable to extend index BNE.BNE_CONTENT_COLS_B_UK2 by 15 in table

    Dear Gurus:
    Following workers fail during upgrade from 11.5.10 to 12.1.1, i am u6678700.drv :
    ATTENTION: All workers either have failed or are waiting:
    FAILED: file pqpzzossempintg.ldt on worker 1.
    FAILED: file pqpzzflxcnt.ldt on worker 2.
    FAILED: file pqpzzflxmap.ldt on worker 3.
    FAILED: file pqpzzossempmap.ldt on worker 4.
    Adworker Log file Details:
    Loading data using FNDLOAD function.
    FNDLOAD APPS/***** 0 Y UPLOAD @BNE:patch/115/import/bnecont.lct @PQP:patch/115/import/US/pqpzzflxcnt.ldt -
    Connecting to APPS......Connected successfully.
    Calling FNDLOAD function.
    Returned from FNDLOAD function.
    Log file: /data/oracle/PRD/apps/apps_st/appl/admin/PRD/log/US_pqpzzflxcnt_ldt.log
    Error calling FNDLOAD function.
    Time when worker failed: Sat Oct 17 2009 16:53:51
    Now i have alos checked the US_pqpzzflxcnt_ldt.log details are mention below:
    Current system time is Sat Oct 17 14:39:52 2009
    Uploading from the data file /data/oracle/PRD/apps/apps_st/appl/pqp/12.0.0/patch/115/import/US/pqpzzflxcnt.ldt
    Altering database NLS_LANGUAGE environment to AMERICAN
    Dumping from LCT/LDT files (/data/oracle/PRD/apps/apps_st/appl/bne/12.0.0/patch/115/import/bnecont.lct(120.0), /data/oracle/PRD/apps/apps_st/appl/pqp/12.0.0/patch/115/import/US/pqpzzflxcnt.ldt) to staging tables
    Dumping LCT file /data/oracle/PRD/apps/apps_st/appl/bne/12.0.0/patch/115/import/bnecont.lct(120.0) into FND_SEED_STAGE_CONFIG
    Dumping LDT file /data/oracle/PRD/apps/apps_st/appl/pqp/12.0.0/patch/115/import/US/pqpzzflxcnt.ldt into FND_SEED_STAGE_ENTITY
    Dumped the batch (BNE_CONTENTS PQP PQP_FLEXI_WEBADI_CNT , BNE_CONTENT_COLS 286 ) into FND_SEED_STAGE_ENTITY
    Uploading from staging tables
    Error loading seed data for BNE_CONTENT_COLS: CONTENT_ASN = PQP, CONTENT_CODE = PQP_FLEXI_WEBADI_CSV_CNT, SEQUENCE_NUM = 26, ORA-01654: unable to extend index BNE.BNE_CONTENT_COLS_B_UK2 by 15 in tablespace BNEX
    ORA-06512: at "APPS.BNE_CONTENT_COLS_PKG", line 25
    ORA-06512: at "APPS.BNE_CONTENT_COLS_PKG", line 441
    ORA-01403: no data found
    Concurrent request completed
    Current system time is Sat Oct 17 14:39:53 2009
    After looking at the error i did the following:
    alter database datafile '/data/oracle/prddata/benx01.dbf' resize 2G;
    alter database datafile '/data/oracle/prddata/benx01.dbf' autoextend on next 100m maxsize 3G;
    ALTER TABLESPACE BENX ADD DATAFILE '/data/oracle/prddata/benx02.dbf' size 500m AUTOEXTEND ON;
    But still the issue remains, please help in resolving the same
    Thanks & Regards
    Kiran Rana

    Dear Guru,
    Followed both the documents which i have already followed, but no much of use as following query alos does not return any rows:
    select segment_name, owner, extents, max_extents
    from dba_segments
    where segment_type = 'INDEX' and
    (extents +1) >= max_extents;
    Any other thing which i need to check
    Regards
    Kiran Rana

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

  • Ora-00604,ora-01422 error while dropping the table

    Hi gurus,
    I am using Oracle 10g R2 on windows 2000 platform,while dropping the table the following error occured.
    ORA-00604 : error occurred at recursive sql level 1.
    ORA-01422: exact fetch returns more than requested number of rows.
    Need urgent help.
    Thanks in advance

    Is there an AFTER EVENT trigger defined on this database? Can you check that?
    Secondly, was this database migrated from earlier version? I remember having seen this problem on 9i (it was 9.2.0.1 or 9.2.0.2; I can't recall exactly).

  • Ora 600 error  Arguments [25012] [11]

    hi,
    i've an ORA-00600: error Arguments [25012], [2], [11], [], [], [], [], [] by DELETE FROM table WHERE filed = :b1
    ther are only 8 file in database. (not 11)
    Can anybody help, or give me an information about Bug number: 742709
    OS NT 4 / SP6 ORACLE RDBMS Version: 8.0.5.2.1.
    Thank in advice
    JFA

    Trace File Contents:
    ============================================================================================
    [oracle@oem trace]$ more /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
    Dump file /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /d01/app/guest/product/11.2.0/dbhome_1
    System name: Linux
    Node name: oem.tap.com
    Release: 2.6.18-164.el5xen
    Version: #1 SMP Thu Sep 3 02:41:56 EDT 2009
    Machine: i686
    Instance name: db11g
    Redo thread mounted by this instance: 1
    Oracle process number: 13
    Unix process pid: 4198, image: [email protected] (SMON)
    *** 2010-10-15 12:05:24.395
    *** SESSION ID:(16.1) 2010-10-15 12:05:24.395
    *** CLIENT ID:() 2010-10-15 12:05:24.395
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-10-15 12:05:24.395
    *** MODULE NAME:() 2010-10-15 12:05:24.395
    *** ACTION NAME:() 2010-10-15 12:05:24.395
    Dump continued from file: /d01/app/guest/diag/rdbms/db11g/db11g/trace/db11g_smon_4198.trc
    ORA-00600: internal error code, arguments: [13013], [5001], [267], [8444108], [2], [8444108], [17], [], [], [], [], []
    ========= Dump for incident 191809 (ORA 600 [13013]) ========
    *** 2010-10-15 12:05:24.399
    dbkedDefDump(): Starting incident default dumps (flags=0x2, level=3, mask=0x0)
    ----- Current SQL Statement for this session (sql_id=dma0vxbwh325p) -----
    update smon_scn_time set time_mp=:1, time_dp=:2, scn=:3, scn_wrp=:4, scn_bas=:5, num_mappings=:6, tim_scn_map=:7 where scn = (sele
    ct min(scn) from smon_scn_time)
    ==========================================================================================

  • Ora-01008 error with bind variable

    Hi,
    We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable. The program returns error in one of the databases but all others are successful. We've checked the column is same in all of them.
    Exception in thread "main" java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01008: not all variables bound
    Could you please advise how to troubleshoot this issue?
    Regards

    We aren't going to be able to help you if you won't post the database code that is giving the error.
    And now we need the Java code that is constructing the query that you are using.
    Your error is saying there is a second variable that you are not providing a value for.
    And you said
    >
    We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable.
    >
    But you are using a string that is 23 characters long
    "a3g34-b13fd-efaie-f83fk"How does 23 go into 20?

  • Getting error-ORA-24381: error(s) in array DML

    Hi i have written the following code to bulk insert into a database table.
    I am getting an error while returning the result of the bulk insert query into the collection
    I have tried to track it by using sql%bulk_exceptions.error_code.
    But the error code that it is showing is just 1.
    I trapped it using sqlerrm.
    and that is showing-error(s) in array DML
    What do i do?
    DECLARE
       CURSOR temp_rec_tap_cur
       IS
          SELECT *
            FROM temp_records_tap;
       TYPE temp_rec_tab IS TABLE OF temp_rec_tap_cur%ROWTYPE;
       v_test_tab   temp_rec_tab;
       v_rec_num    num_tab;
       v_filename   temp_records_tap.file_name%TYPE;
       v_error_code tap_reject.error_code%type;
       v_rej_value  tap_reject.field_rej%type;                      
       v_errors number;   
    BEGIN
       SELECT file_name
         INTO v_filename
         FROM table1
         WHERE ROWNUM<2;
       OPEN temp_rec_tap_cur;
       LOOP
          BEGIN
             FETCH temp_rec_tap_cur
             BULK COLLECT INTO v_test_tab LIMIT 1000;
             FORALL i IN v_test_tab.FIRST .. v_test_tab.LAST SAVE EXCEPTIONS
                INSERT INTO tapdetail_tapin
                     VALUES v_test_tab (i)
                  RETURNING record_num
                    BULK COLLECT INTO v_rec_num;
          EXCEPTION
             WHEN DUP_VAL_ON_INDEX
             THEN
                NULL;
             WHEN OTHERS
             THEN
             v_errors:=sql%bulk_exceptions.count;
             for i in 1..v_errors
             loop
             dbms_output.put_line(sql%bulk_exceptions(i).error_code);
             p3_errorlog ('TAPINDETAWARE', SQLERRM, v_filename);     
             end loop;
             END;
                --RAISE;
          EXIT WHEN temp_rec_tap_cur%NOTFOUND;
       END LOOP;
    INSERT INTO table2
    SELECT file_id, file_name, sender_pmn, recipient_pmn, call_date,
                 call_date_only, call_type, call_number, FIRST_RECORD,
                 service_type, service_code, home_bid, serve_bid,
                 chargeable_subs_type, imsi_min, msisdn_mdn, air_charges,
                 air_charges_sdr, air_time, national_call_charges,
                 national_call_charges_sdr, national_call_time,
                 international_call_charges, international_call_charges_sdr,
                 international_call_time, dir_assist_charges,
                 dir_assist_charges_sdr, dir_assist_time, other_charges,
                 other_charges_sdr, other_time, volume_charges,
                 volume_charges_sdr, volume_units, tot_charges, tot_charges_sdr,
                 tot_duration, state_tax, state_tax_sdr, local_tax,
                 local_tax_sdr, state_and_use_tax, state_and_use_tax_sdr, va_tax,
                 va_tax_sdr, other_tax, other_tax_sdr, charge_refund_indicator,
                 advised_charge_currency, advised_charge, advised_charge_sdr,
                 advised_charge_commission, advised_charge_commission_sdr,
                 exchange_rate, mcc, mnc, process_date, chargeable_units,
                 record_num, mscid,null,null,decode(call_type,0,'250',1,'251',5,'255'),null,'Duplicate Call'
                 from temp_records_tap
                 where record_num not in (select column_value from table(v_rec_num)) ;
    EXCEPTION
    WHEN OTHERS THEN
    p3_errorlog ('TAP', SQLERRM, v_filename);  
    END;Edited by: user8731258 on Sep 14, 2010 2:58 AM
    Edited by: user8731258 on Sep 14, 2010 3:01 AM

    What is the type declaration of num_tab and how is record_num defined?
    ORA-24381: error(s) in array DML
    Cause: One or more rows failed in the DML.indicates that you fail on the insert itself. Are the table definitions the same? Same primary/unique keys?
    Edited by: MBr on 14-Sep-2010 03:16

  • PL/SQL: ORA-04052: error occurred when looking up remote object.

    Hi All,
    I'm getting the following error message while executing a PL/SQL Block.
    PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FTSStatement
    declare
    v_coun number;
    begin
    select count(*) into v_coun
    from updluser.filestatushistory@fts;
    end;Back ground of the situation as follows,
    My DataBase version 10.2.0.3 DB Name :DB1
    Table Owner : UPLDUSER
    Table Name : FILESTATUSHISTORY
    I have a report user on the same database and I have grant all on the above table to report user
    Report User : RPT_FTS
    SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
    Database version : 9.2.0.8
    DB Name : DB2
    User Name : RPT_REPORTS
    I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
    but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Now the strange about this is that I have Created a new table on DB1 db like below;
    SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
    To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
    SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
    Just wants To know what whould have been the cause for this .
    Cheers
    Kanchana

    Hi Kanchana,
    Perhaps following link of google search has answer to your query
    ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
    HTH!
    *009*

  • ORA-1555  ORA-3136 errors:: elapsed time vs Query Duration

    Dear all,
    - My Database version is 11.2.0.2, Solaris.
    - We have been having a problem in the production database where the front end nodes start going up and down for couple of hours sometimes. ; When node flapping is going on we get connection timed out alerts.
    WARNING: inbound connection timed out (ORA-3136) opiodr aborting
    process unknown ospid (4342) as a result of ORA-609 opiodr aborting
    process unknown ospid (4532) as a result of ORA-609 opiodr aborting
    process unknown ospid (4534) as a result of ORA-609 opiodr aborting....
    Since this week node flapping is happening every day. Since past 2 days after or during node flapping we are getting ORA-1555 error.
    Extract from alert log error:
    ORA-01555 caused by SQL statement below (SQL ID: g8804k5pkmtyt, Query Duration=19443 sec, SCN: 0x0001.07bd90ed):
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.parentDeviceId, d.created, d.lastModified AS devLastMod, d.customerId, d.userKey1, d.userKey2, d.userKey4, d
    .userKey5, d.firmwareFamily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.userKey6, d.provisioningId, d.status, d.classification, d.population, d.name, d.ipRe
    solver, d.ipExpirationTime, d.geoLocationId,contact.firstContactTime, ifaces.id, ifaces.type AS ifaceType, ifaces.lastModified AS ifaceLastMod, ifaces.timeoutname, ifac
    es.username1, ifaces.password1, ifaces.username2, ifaces.password2, ifaces.connReqUrl, ifaces.connReqScheme, ifaces.srvNonce, ifaces.deviceNonce, ifaces.phoneNumber,ifa
    ces.bootstrapSecMethod, ifaces.srvAuthentication, ifaces.deviceAuthentication, ifaces.userPIN, ifaces.networkID, ifaces.omaSessionID, ifaces.portNum, ifaces.mgtIp, ifac
    es.cmtsIp, ifaces.mgtReadCommunity, ifaces.mgtWriteCommunity, ifaces.cmtsReadCommunity, ifaces.cmtsWriteCommunity, devto.name AS devtoName, devto.rebootTimeout, devto.sessionInitiationI run Statspack report from the whole day duration, and looking into the elapsed time in seconds no more than 3739.61 sec (too lower than run duration in the alert log file of 19443 sec); So I would like to know if there is any co-relations between the ORA-3136 errors and the ORA-1555 errors?
       CPU                  CPU per             Elapsd                     Old
      Time (s)   Executions  Exec (s)  %Total   Time (s)    Buffer Gets  Hash Value
    tTime <= :3 ) AND (endTime IS NULL OR endTime >= :4 )
       2773.77    7,787,914       0.00    3.4    3739.61     112,671,645 1909376826
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
    SQL> show parameter UNDO_MANAGEMENT
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    SQL> show parameter UNDO_RETENTION
    NAME                                 TYPE        VALUE
    undo_retention                       integer     10800BR,
    Diego

    Thank you. Please let me know if it is enough or you need more information;
    SQL ordered by Gets  DB/Inst: DB01/db01  Snaps: 14835-14846
    -> End Buffer Gets Threshold:    100000 Total Buffer Gets:     677,689,568
    -> Captured SQL accounts for   73.6% of Total Buffer Gets
    -> SQL reported below exceeded  1.0% of Total Buffer Gets
                                                         CPU      Elapsd     Old
      Buffer Gets    Executions  Gets per Exec  %Total Time (s)  Time (s) Hash Value
         21,286,248    2,632,793            8.1    3.4   666.73    666.76 3610154549
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
         17,029,561    1,176,849           14.5    2.7   417.32    416.73 1909376826
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
         17,006,795           37      459,643.1    2.7   367.61    368.95 4045552861
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.userAnother Statspack report for the whole day shows;
    SQL ordered by CPU  DB/Inst: DB01/db01  Snaps: 14822-14847
    -> Total DB CPU (s):          82,134
    -> Captured SQL accounts for   40.9% of Total DB CPU
    -> SQL reported below exceeded  1.0% of Total DB CPU
        CPU                  CPU per             Elapsd                     Old
      Time (s)   Executions  Exec (s)  %Total   Time (s)    Buffer Gets  Hash Value
    tTime <= :3 ) AND (endTime IS NULL OR endTime >= :4 )
       2773.77    7,787,914       0.00    3.4    3739.61     112,671,645 1909376826
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
    SQL ordered by Gets  DB/Inst: DB01/db01  Snaps: 14822-14847
    -> End Buffer Gets Threshold:    100000 Total Buffer Gets:   1,416,456,340
    -> Captured SQL accounts for   55.8% of Total Buffer Gets
    -> SQL reported below exceeded  1.0% of Total Buffer Gets
                                                         CPU      Elapsd     Old
      Buffer Gets    Executions  Gets per Exec  %Total Time (s)  Time (s) Hash Value
         86,354,963    7,834,326           11.0    6.3  2557.34   2604.08  906944860
    Module: JDBC Thin Client
    SELECT d.devId, d.vendor, d.model, d.productClass, d.oui, d.pare
    ntDeviceId, d.created, d.lastModified AS devLastMod, d.customerI
    d, d.userKey1, d.userKey2, d.userKey4, d.userKey5, d.firmwareFam
    ily, d.softwareVer, d.serialNum, d.ip, d.mac, d.userKey3, d.user
    .....BR,
    Diego
    Edited by: 899660 on 27-ene-2012 7:43
    Edited by: 899660 on 27-ene-2012 7:45

Maybe you are looking for

  • Version 31.3.0 not compatible with 24.6.0

    Error: platform version 31.3.0 not compatible with minVersion 24.6.0 / maxVersion 24.6.0. I have no idea why this message appeared or how to restore email function.

  • Nikon D4 raw files don't show on iMac with os 10.6.8 Finder.

    Hello, I am using an iMac with OSX 10.6.8. I can't view my Nikon D4 raw files on my Finder. I have tried to install the Digital Camera RAW Compatibility Update 3.10, but got a massage saying I can't install because I don't have Iphoto 9 or Ilife 11.

  • LR5 Export to Nik HDR Efex Pro 2

    Win 7, 64 bit, LR5.2RC, Nik HDR Efe Pro 2.... From Export > HDR Efex Pro 2 it used to pause at a screen providing three choices (from memory), "as copy with LR adjustments", "as copy without LR adjustments" or "as orignal".  Now it skips that screen

  • CF MX7 and MySQL 5

    Hey, I just reinstalled ColdFusion (Developer Edition) and I had to reinstall the mysql-connector-java-3.1.12-bin.jar file into the WEB-INF\lib directory for added connectivity with MySQL 5. Problem is, I can't find that directory anymore... I am run

  • Incredible 2 - battery charge or lack thereof

    Our 4th incredible 2 will not charge. We had one battery and two phones replaced & now it has happened again!!! I would call but no tech after 11 pm. I do NOT recommend this phone but do give Verizon credit for making it right so far - we will see if