Partitioned nested table error while dropping one partition

All,
I created a partitioned table which is also a nested table as you can see below. I got FK constraint error while attempting to drop a partition, however, I could not find the FK in order to disable it since it's underlying table emp_list_p which is not visiable to applications. How could I drop the partition in this case?
Thanks,
Jianhui
SQL>desc emp_t
Name Null? Type
ENO NUMBER
ENAME VARCHAR2(30)
SAL NUMBER
SQL>desc emp_list_t
emp_list_t TABLE OF EMP_T
Name Null? Type
ENO NUMBER
ENAME VARCHAR2(30)
SAL NUMBER
SQL>l
1 create table dept_p
2 (dno number,
3 dname varchar2(30),
4 emplist emp_list_t )
5 NESTED TABLE emplist store as emp_list_p
6 partition by range (dno)
7 (
8 partition p1 values less than (2),
9 partition p2 values less than (3)
10* )
SQL>/
Table created.
SQL>insert into dept_p (select * from dept);
2 rows created.
SQL>select * from dept_p;
DNO DNAME
EMPLIST(ENO, ENAME, SAL)
1 HR
EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000))
2 SALES
EMP_LIST_T(EMP_T(3, 'frank', 800))
2 rows selected.
SQL>alter table dept_p drop partition p1;
alter table dept_p drop partition p1
ERROR at line 1:
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
SQL>l
1 select constraint_name, constraint_type, table_name
2 from user_constraints
3 where r_constraint_name=(select constraint_name
4* from user_constraints where table_name='DEPT_P' and constraint_type in ('P','U'))
SQL>/
no rows selected

SQL> create type emp_t as object(
  2  ENO NUMBER,
  3  ENAME VARCHAR2(30),
  4  SAL NUMBER)
  5  /
Type created.
SQL> create type emp_list_t as table of emp_t;
  2  /
Type created.
SQL> desc emp_list_t
emp_list_t TABLE OF EMP_T
Name                                      Null?    Type
ENO                                                NUMBER
ENAME                                              VARCHAR2(30)
SAL                                                NUMBER
SQL> create table dept_p
  2  (dno number,
  3  dname varchar2(30),
  4  emplist emp_list_t )
  5  NESTED TABLE emplist store as emp_list_p
  6  partition by range (dno)
  7   (
  8   partition p1 values less than (2),
  9   partition p2 values less than (3)
10   )
11  /
Table created.
SQL> insert into dept_p values(1, 'HR',
  2  EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000)));
1 row created.
SQL>
SQL> insert into dept_p values(2, 'SALES',EMP_LIST_T(EMP_T(3, 'frank', 800)));
1 row created.
SQL> select * from dept_p;
       DNO DNAME
EMPLIST(ENO, ENAME, SAL)
         1 HR
EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000))
         2 SALES
EMP_LIST_T(EMP_T(3, 'frank', 800))
SQL> alter table dept_p drop partition p1;
alter table dept_p drop partition p1
ERROR at line 1:
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
SQL> select constraint_name,table_name,constraint_type from user_constraints
  2  where table_name = 'DEPT_P';
CONSTRAINT_NAME                TABLE_NAME                     C
SYS_C008224                    DEPT_P                         U
SQL> select index_name from user_constraints
  2  where table_name = 'DEPT_P';
INDEX_NAME
SYS_C008224
SQL> select index_name,column_name from user_ind_columns
  2  where index_name = 'SYS_C008224';
INDEX_NAME                     COLUMN_NAME
SYS_C008224                    EMPLIST
SQL>
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options
If you look closely, there is a unique index on dept_p.  Oracle does not advertise it.
One of the options is that you may have to delete the rows in the partition first,
then drop the partition.

Similar Messages

  • Error while dropping a table

    Hi All,
    i got an error while dropping a table which is
    ORA-00600: internal error code, arguments: [kghstack_free1], [kntgmvm: collst], [], [], [], [], [], [], [], [], [], []
    i know learnt that -600 error is related to dba. now how to proceed.
    thanks and regards,
    sri ram.

    00600 errors should be raised as service request with Oracle as it implies some internal bug.
    You can search oracle support first to see if anyone has had the same class of 00600 error, and then if not (and therefore no patch) raise your issue with Oracle.
    http://support.oracle.com

  • Error while dropping tablespace

    Hi all
    I am getting follwogin error while dropping tablespace.is it memory prob?
    ERROR at line 1:
    ORA-04031: unable to allocate 4180 bytes of shared memory ("shared
    pool","unknown object","sga heap(1,0)","state objects")
    Thanks.

    Your Sga seems too small, you should increase it

  • Getting Portal Runtime Error while accessing one link in Portal Page.

    Hi,
    Can anyone tell why I am getting below error while accessing one of the portal page link:
    " Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 01:19_27/02/09_0046_16441150
    Refer to the log file for details about this exception. "
    Also please let me know how to get rid of this if possible.
    Thanks in Advance
    Vaibhav Srivastava

    Thank you for your prompt reply.
    Could you please elaborate the same.
    I am getting Portal runtime error while I am acessing an iveiw in E-recruiting. We have setup the role and user in both portal and Backend. But still the error. Could you pls send me the setting you have done.
    Portal runtime ERROR
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 02:27_27/04/09_0042_113148050
    Refer to the log file for details about this exception.
    regards
    Justin

  • Error While Drop User

    Dear Experts,
    I got Error While Drop User.
    This is the Error msg.
    SQL> DROP USER FORPROCURE CASCADE;
    DROP USER FORPROCURE CASCADE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []

    ORA-600 is Oracle's generic error code for unhandled exceptional behaviour (a bug to you or me). these things tend to be version and OS specific.
    The standard advice is to contact Oracle Support. Frequently the solution is to upgrade to a later patch version.
    But you might be fortunate. If you tell us your database version and OS platform we might be able to help you. Do you have any wrapped PL/SQL?
    Cheers, APC

  • 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).

  • Severe Pro*C / nested table error

    I am experiencing a nasty error which involves Pro*C accessing nested table columns. I am running Oracle 9.2.0.1.0 on Solaris 2.8 and using the GNU gcc compiler.
    In my examples, I will use the sample data which comes with Pro*C ($ORACLE_HOME/precomp/demo/sql/coldemo1.sql).
    This defines the following types and table (and also populates the table with sample data):
    CREATE TYPE city_t AS OBJECT (name CHAR(30), population NUMBER);
    CREATE TYPE citytbl_t AS TABLE OF city_t;
    CREATE TABLE county_tbl (name CHAR(30), cities citytbl_t)
    NESTED TABLE cities STORE AS citytbl_t_tbl;
    I have no problems running the sample program ($ORACLE_HOME/precomp/demo/proc/coldemo1.pc). Note that you must follow the instructions included in the comments of coldemo1.pc (manually execute the Oracle Type Translator, precompile, compile and link).
    The sample, however, merely retrieves and displays existing data. I would like my program to be able to insert new rows into county_tbl, including the nested table.
    I have the following code (for simplicitys sake, everything is in the main procedure):
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sqlca.h>                                /* SQL Communications Area */
    #include <coldemo1.h>        /* OTT-generated header with C typedefs for the */
                                          /* database types city_t and citytbl_t */
    #define CITY_NAME_LEN    30
    #define COUNTY_NAME_LEN  30
    #define MAXCITIES 5
    void PrintSQLError()
      EXEC SQL WHENEVER SQLERROR CONTINUE;
      printf("SQL error occurred...\n");
      printf("%.*s\n", (int)sqlca.sqlerrm.sqlerrml,
             (CONST char *)sqlca.sqlerrm.sqlerrmc);
      EXEC SQL ROLLBACK RELEASE;
      exit(-1);
    int main(int argc, char *argv[])
      char * uid = "scott/tiger";
      citytbl_t *cityTable;
      OCIInd cityTableInd;
      char county[COUNTY_NAME_LEN + 1];
      city_t *city[MAXCITIES];
      city_t_ind *cityInd[MAXCITIES];
      char cname[CITY_NAME_LEN + 1];
      int cpop;
      int numCities = MAXCITIES;
      int i, tableSize;
      EXEC SQL WHENEVER SQLERROR DO PrintSQLError();
      EXEC SQL CONNECT :uid;
      /* to null-terminate strings */
      EXEC ORACLE OPTION (char_map=string);
      /* Allocate the required descriptors */
      EXEC SQL ALLOCATE :cityTable;
      EXEC SQL ALLOCATE :city:cityInd;
      strcpy(county,"MYCOUNTY");
      /* Create an array of city objects */
      EXEC SQL FOR :numCities OBJECT CREATE :city:cityInd;
      for(i=0;i<numCities;i++)
        sprintf(cname,"city%d", i);
        cpop = (i * 100);
        EXEC SQL OBJECT SET NAME, POPULATION OF :city[i] TO :cname, :cpop;
        cityInd[i]->_atomic = cityInd[i]->NAME = cityInd[i]->POPULATION = OCI_IND_NOTNULL;
      cityTableInd = OCI_IND_NOTNULL;
      EXEC SQL COLLECTION APPEND :city:cityInd TO :cityTable:cityTableInd;
      EXEC SQL INSERT INTO county_tbl (NAME, CITIES) VALUES (:county, :cityTable:cityTableInd);
      EXEC SQL FREE :city;
      EXEC SQL FREE :cityTable;
      EXEC SQL COMMIT RELEASE;
      return(0);
    }This works as expected, inserting one row into COUNTY_TBL, with name=MYCOUNTY, cities being a nested table containing five city elements.
    My problem occurs when I create a trigger on COUNTY_TBL which attempts to modify elements of the nested table column. Heres the trigger (in this case, we are converting each NAME element of the cities table to upper case):
    create or replace trigger biur_county
    before insert or update on county_tbl
    for each row
    when (new.cities is not null)
    BEGIN
    IF(:NEW.cities.COUNT > 0) THEN
    FOR i IN :NEW.cities.FIRST..:NEW.cities.LAST LOOP
    :NEW.cities(i).NAME := UPPER( :NEW.cities(i).NAME );
    END LOOP;
    END IF;
    END biur_county;
    From SQL*Plus, this works as expected:
    SQL> insert into county_tbl values ('ANOTHERCOUNTY',CITYTBL_T(CITY_T('city1',1),CITY_T('city2',2)));
    1 row created.
    SQL> select * from county_tbl where name='ANOTHERCOUNTY';
    NAME
    CITIES(NAME, POPULATION)
    ANOTHERCOUNTY
    CITYTBL_T(CITY_T('CITY1 ', 1), CITY_T('CITY2 ', 2))
    1 row selected.
    Note that the city names have been converted to upper case.
    If, however, I attempt to run the Pro*C program again, with the trigger enabled, I get a severe error:
    ORA-03113: end-of-file on communication channel
    This also creates entries in the alert log:
    Errors in file /space/oracle/product/9.2.0.1.0/admin/ATDEV/udump/atdev_ora_16790.trc:
    ORA-07445: exception encountered: core dump [0000000100C8EF7C] [SIGBUS] [Invalid address alignment] [0x400000006] [] []
    The trace file includes:
    Exception signal: 10 (SIGBUS), code: 1 (Invalid address alignment), addr: 0x400000006, PC: [0x100c8e
    f7c, 0000000100C8EF7C]
    *** 2002-12-11 15:51:25.469
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0000000100C8EF7C] [SIGBUS] [Invalid address alignment]
    [0x400000006] [] []
    Current SQL statement for this session:
    insert into county_tbl (NAME,CITIES) values (:b0,:b1:b2)
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    38421f020 3 SCOTT.BIUR_COUNTY
    If I subsequently disable the trigger (or alter the trigger so that the contents of the nested table are not modified), all is well again.
    Has anyone else encountered a similar problem? I am assuming that the problem has something to do with the objects in Pro*C being transient and held in the object cache on the client. Perhaps I am doing something wrong in my program. Does anyone have any thoughts?
    Certainly there are ways around this problem (remove the trigger, for example, or perform inserts through a view / instead of trigger, etc), but I would like to have an explanation as to why my method is not working.
    Any insights would be greatly appreciated.

    HELLO!!!
    This problem reveals ONLY in DEBUG configuration (in RELEASE - all ok, but DEBUG is very important feature ;)) and operator
    new in my case have not an influence on this situation.
    I found a problem in other place when calling boxes=box.ptr();
    The boxes oracle class have a nested table. In C++ :
    class CBoxes : public oracle::occi::PObject {
    private:
    OCCI_STD_NAMESPACE::string BOXNAME;
    oracle::occi::Number BOXNUM;
    OCCI_STD_NAMESPACE::vector<CWidget*> WIDGETS;
    ptr() function calling readSQL method of CBoxes class:
    BOXNAME = streamOCCI_.getString();
    BOXNUM = streamOCCI_.getNumber();
    oracle::occi::getVector(streamOCCI_, WIDGETS);
    and getVector is:
    //cutted from occiObjects.h------------------------------
    template <class T>
    void getVector(const AnyData &any, OCCI_STD_NAMESPACE::vector<T> &vect)
    {OCCI_STD_NAMESPACE::vector< PObject *> vec_pobj;      
    getVectorOfPObjects( any,vec_pobj);//!!!!!!! :[  ]
    vect.clear();
    int size= vec_pobj.size();
    for( int i=0; i< size; i++)
    vect.push_back( (T)vec_pobj[i] );
    }//<- the destructor of vec_pobj is being called and if vec_pobj not an empty vector, the program crashes.
    I suppose that getVectorOfPObjects( any,vec_pobj) can't correctly allocate memory for vec_pobj elements in DEBUG mode.

  • Error while executing one pl/sql

    i am facing one error while executing a pls/sql
    kindly suggest the possible cause and solution for the same
    declare
    ERROR at line 1:
    ORA-08102: index key not found, obj# 31850, dba 104863849 (2)
    ORA-06512: at "ERP.DELBATCHID", line 24
    ORA-06512: at line 13

    08102, 00000, "index key not found, obj# %s, dba %s (%s)"
    // *Cause:  Internal error: possible inconsistency in index
    // *Action:  <b>Send trace file to your customer support representative, along
    //           with information on reproducing the error</b>

  • When selecting a row from a view with a nested table I want just ONE entry returned

    Does a nested table in a view "EXPLODE" all values ALWAYS no matter the where clause for the nested table?
    I want to select ONE row from a view that has columns defined as TYPE which are PL/SQL TABLES OF other tables.
    when I specify a WHERE clause for my query it gives me the column "EXPLODED" with the values that mathc my WHERE clause at the end of the select.
    I dont want the "EXPLODED" nested table to show just the entry that matches my WHERE clause. Here is some more info:
    My select statement:
    SQL> select * from si_a31_per_vw v, TABLE(v.current_allergies) a where a.alg_seq
    =75;
    AAAHQPAAMAAAAfxAAA N00000 771 223774444 20 GREGG
    CADILLAC 12-MAY-69 M R3
    NON DENOMINATIONAL N STAFF USMC N
    U
    E06 11-JUN-02 H N
    05-JAN-00 Y Y
    USS SPAWAR
    353535 USS SPAWAR
    SI_ADDRESS_TYPE(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NUL
    L, NULL)
    SI_ADDRESS_TAB()
    SI_ALLERGY_TAB(SI_ALLERGY_TYPE(69, 'PENICILLIN', '11-JUN-02', NULL), SI_ALLERGY
    TYPE(74, 'SHELLFISH', '12-JUN-02', NULL), SIALLERGY_TYPE(68, 'PEANUTS', '13-J
    UN-02', NULL), SI_ALLERGY_TYPE(75, 'STRAWBERRIES', '13-JUN-02', NULL))
    SI_ALLERGY_TAB()
    75 STRAWBERRIES 13-JUN-02
    *******Notice the allergy entry of 75, Strawberries, 13-JUN-02 at the
    end. This is what I want not all the other exploded data.
    SQL> desc si_a31_per_vw
    Name Null? Type
    ........ Omitted uneeded previous column desc because of metalink
    character limit but the view is bigger then this.......
    DEPT_NAME VARCHAR2(20)
    DIV_NAME VARCHAR2(20)
    ADDRESSES SI_ADDRESS_TAB
    CURRENT_ALLERGIES SI_ALLERGY_TAB
    DELETED_ALLERGIES SI_ALLERGY_TAB
    SQL> desc si_allergy_tab
    si_allergy_tab TABLE OF SI_ALLERGY_TYPE
    Name Null? Type
    ALG_SEQ NUMBER
    ALG_NAME VARCHAR2(50)
    START_DATE DATE
    STOP_DATE DATE
    SQL> desc si_allergy_type
    Name Null? Type
    ALG_SEQ NUMBER
    ALG_NAME VARCHAR2(50)
    START_DATE DATE
    STOP_DATE DATE

    Can you explain what do you mean by the following?
    "PL/SQL tables (a.k.a. Index-by tables) cannot be used as the basis for columns and/or attributes"There are three kinds of collections:
    (NTB) Nested Tables
    (VAR) Varrying Arrays
    (IBT) Index-by Tables (the collection formerly known as "PL/SQL tables")
    NTB (and VAR) can be defined as persistent user defined data types, and can be used in table DDL (columns) and other user defined type specifications (attributes).
    SQL> CREATE TYPE my_ntb AS TABLE OF INTEGER;
    SQL> CREATE TABLE my_table ( id INTEGER PRIMARY KEY, ints my_ntb );
    SQL> CREATE TYPE my_object AS OBJECT ( id INTEGER, ints my_ntb );
    /IBT are declared inside stored procedures only and have slightly different syntax from NTB. Only variables in stored procedures can be based on IBT declarations.
    CREATE PROCEDURE my_proc IS
       TYPE my_ibt IS TABLE OF INTEGER INDEX BY BINARY_INTEGER;  -- now you see why they are called Index-by Tables
       my_ibt_var my_ibt;
    BEGIN
       NULL;
    END;That sums up the significant differences as it relates to how they are declared and where they can be referenced.
    How are they the same?
    NTB and VAR can also be (non-persistently) declared in stored procedures like IBTs.
    Why would you then ever use IBTs?
    IBTs are significantly easier to work with, since you don't have to instantiate or extend them as you do with NTB and VAR, or
    Many other highly valuable PL/SQL programs make use of them, so you have to keep your code integrated/consistent.
    There's a lot more to be said, but I think this answers the question posed by Sri.
    Michael

  • An error while extracting one of the network connect components

    I was able to connect to my employer VPN ( Juniper) from Macbookpro Maverick.
    After upgrading to Yosimite, I am getting this error. I tried with both Safari and Firefox.

    retrana wrote:
    I made sure the keystore password was set to changeit using the following:
    sudo keytool -storepasswd -new changeit -keystore /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts -storepass changeme
    However, I continue to see "An error occurred while extracting one of the Network Connect components."
    Just a guess, but that looks to be the location for Apple Java 6, which is not replaced when you upgraded to Java 7, rather Oracle stores it in a different location.
    It's also possible that Juniper has not updated their software for Java 7.  I know that's true for at least one other VPN vendor.

  • Error while printing - one solution.

    Folks, I just ran into the "error while printing" priblem this morning and read many of the posts. Some even did a complete OS reinstall.
    Anyhow, all I did was repair disk permissions on my machine and it solved the problem.

    Unfortunately, this didn't work for me, so it doesn't seem to be a universal solution.

  • Error while dropping/creating new queue table

    Hi,
    I am trying to modify an existing AQ setup. In the process, I had to remove a queue and redirect all its subscriptions to another queue.
    I get an oracle "sequence does not exist" while trying to drop the queue table. The sequence of operations that I am carrying out is:
    disable propagation schedule
    unschedule propagation
    stop queue
    drop queue
    drop queue table
    The error occurs when the drop statement is executed.
    I tried restoring the existing configuration, but got the same error message while trying to add a subscription.
    Could you help me with this problem? What am I missing here?
    Thanks,
    Anupama

    In what version of Oracle?
    I see a couple of problems assuming you are working with a currently supported version:
    1. Never grant CONNECT to anyone: Ever. Grant CREATE SESSION.
    2. GRANT CREATE TABLE to AQ;
    Go to Morgan's Library at www.psoug.org and look at AQ Demo 1. You should have no problem cutting and pasting your way to where you are trying to go.

  • Error while dropping a job

    SQL> SELECT JOB FROM DBA_JOBS;
    JOB
    1
    SQL> EXEC DBMS_JOB.REMOVE(1);
    BEGIN DBMS_JOB.REMOVE(1); END;
    ERROR at line 1:
    ORA-23421: job number 1 is not a job in the job queue
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_IJOB", line 529
    ORA-06512: at "SYS.DBMS_JOB", line 171
    ORA-06512: at line 1
    The job wasn't created successfully in the first place, but it wouldn't let me drop it either !! What may be the problem ?
    Thanks

    SQL> SELECT SCHEMA_USER,JOB FROM DBA_JOBS;
    SCHEMA_USER JOB
    SYSMAN 1
    Not sure, what this is. Looks like it is not my job. However, I still have errors executing my procedure...
    Or let me get back to square one.
    What I am trying to do is to execute this :
    The file name is group1_dbms_script.sql (I am trying to just export the group1_tab1 and group1_tab2 tables which are present in the CLIENT schema,,,that's all i needed... but using this dbms_datapump API)
    declare
    l_dp_handle NUMBER;
    begin
    l_dp_handle := DBMS_DATAPUMP.open(
    operation => 'EXPORT',
    job_mode => 'TABLE',
    remote_link => NULL,
    job_name => 'group1',
    version => 'LATEST'
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'group1.dmp',
    directory => 'EXPORT_DIR'
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'group1.log',
    directory => 'EXPORT_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE
    DBMS_DATAPUMP.metadata_filter(
    handle => l_dp_handle,
    name => 'SCHEMA_EXPR',
    value => 'IN (''CLIENT'')');
    DBMS_DATAPUMP.metadata_filter(
    handle => l_dp_handle,
    name => 'NAME_EXPR',
    value => 'IN (''GROUP1_TAB1'',
    ''GROUP1_TAB2'')');
    DBMS_DATAPUMP.start_job(l_dp_handle);
    DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    When i do (in sqlplus)
    @group1_dbms_script.sql
    I am getting
    ERROR at line 1:
    ORA-31634: job already exists
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 911
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 4354
    ORA-06512: at line 4
    Please help. I haven't used this API before, hence not sure if something is wrong with what I wrote, of if some admin sql like catexp needs to be run....

  • I am getting dump error while running one report in one select query

    Hi,
    While running a report program, I am getting a dump error in one select query. So could you please correct the select query so that I can't face the dump error.
    SELECT vbeln parvw kunnr INTO CORRESPONDING FIELDS OF TABLE l_t_vbpa
      FROM vbpa
      FOR ALL ENTRIES IN l_t_backorder_item
      WHERE vbeln = l_t_backorder_item-vbeln AND
      ( ( parvw = c_we AND kunnr IN rng_shipto ) OR  ( parvw = c_ag AND
      kunnr IN rng_soldto ) ) .
    <removed by moderator>
    Best Regards,
    BDP
    Edited by: Thomas Zloch on Apr 30, 2010 12:31 PM

    Hi Bansidhar,
    It would be helpful if you could tell what type of dump it is.
    If it is a timeout you should check whether l_t_backorder_item is empty - in this case ALL document numbers are selected. f you get the timeout with a populated table consider converting the l_t_backorder_item table into one ore more ranges tables - the select with ranges tables is way quicker than 'for all entries'. But take care the ranges table has not to many entries - the SAP SQL converter puts this into one huge SQL statement and this might become too big to be handled by the database (depends on the actual underlying database).
    I would also consider splitting the SELECT into two (2nd one with 'appending into table') to make the code easier to understand It also helps the database system determining a strategy for the select.
    Regards,
    Gerd Rother

  • Error while exporting one user

    Hi all,
    While Exporting on user in Oracle 9.2.0.1 i am getting this error:
    EXP-000008 ORACLE error 600 encountered.
    ORA-00600: internal error code,arguments: [12811], [41965],[]
    ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 248
    ORA-06512 : at line 1
    EXP-00000: Export terminated unsuccssfully
    But this error message comes only for one user not for others.
    Please suggest the solution for this problem.
    Thanks in advance,
    Vipin

    This is a known 9i bug,
    Bug# 2443896, it is documented here --> Metalink Note 2443896.8
    OERI:[12811] from concurrent SELECT and DDL (DROP) with SQL_TRACE=TRUE
    This bug was fixed in 9.2.0.2.0. I strongly suggest you to apply tha last patchset available. Since the terminal patchset available for 9iR2 is 9.2.0.8.0 you will prevent to hit known bugs up to this version.
    This is just my personal recommendation, but Oracle Support Services has the last word on this issue.
    ~ Madrid
    http://hrivera99.blogspot.com/

Maybe you are looking for

  • Archive Link and external URL Link

    Hi, we use Archive Link, NO own documents (like CV01N,..). We want to define different document types (oac2) and link them to via url to an external webserver, the user should see the doc in the normal attachment list. Doc Typ    url DOC1        http

  • Using AX with Linsys router and WEP security

    I have a Dell Inspiron 700m running XP. I use a Linksys wireless router for internet access. I have configured my AX to connect to the router and, with the WEP security turned off, it worked fine. However, when I turned WEP back on, reset the AX, and

  • Subsequent SubReports overwriting earlier parameters

    For some reason any subreports that I add overwrite the parameters of the earlier subreports that are added. I have tried renaming the report name, this happens with totally different subreports... the last one is the only one that the parameters sti

  • Multiple Mobile Clients

    Hi to all. I want to use multiple mobile clients (up to 50) to send data (texts/numbers) to the same server wirelessly. What is the best way to go? Bluetooth or WiFi? Is there any limitation in any of the protocols? Which one will quarantee that the

  • Adobe Reader 8.1.1 gives SIGSEGV when using -toPostScript option

    We just upgraded our Adobe Reader (for linux) to version 8.1.1. Unfortunately, we found the program gives us a SIGSEGV when trying to use the SIGSEGV. This only seems to occur when taking input from stdin; specifying a filename for PDF->PS conversion