Delete Table

I am trying to delete a table and I get an error
VBO-4562 Table cannot be dropped. ORA-00604: error occured at
recursive SQL level 1
ORA-04052 error occured when looking up remote object

Deepak:
You probably have one or more tables with Foreign keys which
reference the table you are trying to delete. If that is the
case, you first have to delete those tables. Then you can delete
the table you are trying to delete.
Hope this helps.
Jordi

Similar Messages

  • Update or delete table from XML

    Is it possible to update or delete table's row from XML file?
    Thanks
    Prasanta De

    Hi Steve,
    Thanks for your reply but I could not find any example from the documentation for update-request or delete-request. I need your help in this regards.
    1. I have emp table with many rows and the simple structure like this
    DEPTNO NUMBER(2)
    EMPNO NUMBER(2)
    EMPNAME VARCHAR2(20)
    EMPSAL NUMBER(8,2)
    Key is defined on deptno and empno
    2. I have a xml file like this
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <DEPTNO>1</DEPTNO>
    <EMPNO>11</EMPNO>
    <EMPSAL>1111.11</EMPSAL>
    </ROW>
    <ROW num="2">
    <DEPTNO>1</DEPTNO>
    <EMPNO>12</EMPNO>
    <EMPSAL>2222.22</EMPSAL>
    </ROW>
    <ROW num="3">
    <DEPTNO>1</DEPTNO>
    <EMPNO>13</EMPNO>
    <EMPSAL>3333.33</EMPSAL>
    </ROW>
    </ROWSET>
    3. I want that xsql servlet will read this xml file and update EMPSAL column depending upon the value of DEPTNO and EMPNO from xml file.
    Please let me know how I should use update-request in xsql page.
    Thanks
    Prasanta De
    null

  • DELETE TABLE STATEMENT WITHIN A LOOP IN A PROCEDURE

    i am using delete table tablename statement inside a cursor for loop which is inside a procedure
    it is telling error in that delete statement
    can't i put it inside the loop

    you can only run DDL commands like create, drop etc in pl/sql by using "execute immediate" or dbms_sql package. when you use either of the two mentioned , it will work anywhere in PL/SQL , yes even in a loop. Note that the commit on DDL are implicit , so take care of your transactions if any ..
    --Samson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error in code generation for deleting table BUT000_TD

    Hi,
    Did anyone encounter this error while working on EEWB ?
    I created the project extension via EEWB and completed the wizard setting with the package (dev. class) value as $temp as I wanted to test it locally.
    One of the errors, that I got is:
    Error in code generation for deleting table BUT000_TD
        Message no. DA464
    Diagnosis
        This error message indicates that internal inconsistencies exist.
    Procedure
        Please consult SAP.

    Hi,
    As I mentioned in my previous post kindly check the consistency of the structure BUT000_TD.
    Regards,
    Sudheer.

  • After reverse engineering i have still the old deleted tables

    hi ,
    i dropped a table from database schema and go to ODI and run reverse engineering on my model which linked to the database schema through my logical schema, but the deleted table still exist in my model ??? i wish this dropped table automaticly deleted from my model..

    Hi,
    Deletion actual table will not reflect while reverse engineer.
    The Meta data has been taken into ODI. It has become an object of ODI.
    So you have to directly delete the data store to remove it from ODI.
    Hope it helps.
    Regards,
    Gatha

  • How To Restore Deleted Table With It's Data To Specified Time Using 10g

    Hello Everybody
    I would like to gain from your experience in the Felid of DBA so now i am not trying to restore the full database, but i have a stupid user dropped accedintaly a single table from the database. i want to restore this table after being deleted but also i have big problem i dont have any backup for this table so if you please send to me any solution to restore this deleted table
    Notes : I have (Flash backup On , Archive Log Is On)
    it is not that the database is corrupted or anything
    Ramez S. Swires

    Hey N. Gasparotto
    Thank you for replying me. in the first thread you told me
    ( Without any flashback availability, you haven't any other choice than PITR (Point In Time Recovery)).
    i already checked i found that flashback is working and archive log are working and both are working normally and working before dropping the table and also i cant restore the table which is dropped.
    So what can i do?
    Do you have any other idea?
    Ramez S. Sawires

  • How to delete table content for particular filed in a table?

    Hi Experts,
    How to delete table content for particular field in table?
    Thanks
    Ravilla

    Is it a standard or customer table, changing a standard table with non-standard tool can raise database inconsistencies...
    Then use search tool for &SAP_EDIT (*) or look for BAPI/BDC...
    Regards,
    Raymond
    (*) Also look for notes from 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT to 1915828 - CO-OM-Tools: Technical enhancement of SE16N

  • GEt deleted table -Oracle 9i

    How to get deleted table back in 9i?
    Does 9i has Recycle Bin like 10g?

    A drop table is not a recoverable transaction. A delete is.
    You can rollback a delete. Or you can commit a delete. Let's say you commit a delete and afterwards realise that it was a mistake. The undo records for that delete transaction can be mined from the archive logs using LogMiner. You can thus reconstruct the undo from the logs and insert the deleted rows back into the database.
    A drop table has an implicit commit. And it not recoverable, meaning that it cannot be rolled back. There is no undo records created for a drop table. Thus you cannot mine the archive logs to find the dropped rows.
    Enter the recyclebin feature to provide a means to "un-drop" a table. Instead of actually deleting the table, it is simply renamed. The table now looks like it is gone. The data looks like it is lost. However, the table and its data still exist.
    This therefore allows the dropped table to be "un-dropped" - almost like rolling back the the DROP TABLE statement.

  • How to delete table partitions

    Hi all,
    I want to know how can I delete table partitions.I have partitioned table in schema A owned by user A.But I created table partitions in Schema B owned by user B..Now I want the partions from schema B,it says table doesn't exist and when I tried to delete the partitions from schema A ,it says partition doesn't exist,What to do ?
    Regards,
    AA.

    can you give the statements you tried (and as which user)?
    I couldn't follow your actions, sorry.
    Martin

  • Delete tables

    hi all,
    i need delete 1 table but this table have several constraints with other tables. so let said i need delete table1 but how i write my sql command to check for table2, table 3..... etc for constraints before i delete table 1 ?
    tks.

    ooo ic here is my code .
    select * from table1 a where condition in ('...............')
    and not exists (select 1 from table2 b
              where condition in ('................')
              and a.field1=b.field1)

  • Deleted Tables in Java Dictionary

    Hi all,
    I have deleted a table within the Java Dictionary. The documentation tells that it is not possible to reuse the name of a deleted table.
    But unfortunately i have to reuse this name. So my question is:
    Is there any possiblity to undelete the table or to reuse the name?
    Thanks in advance....

    Hi Florian,
    the creation of Java dictionary projects is checked against the name server. That is the reason why you cannot re-use the name just after the deletion of the table, as it could be possible that this table is already transported and re-used in another project.
    If you really know that this table name is not used somewhere else, you can remove the name reservation. This has to be done in the SLD that acts as the Name Reservation Server (in most cases it's the SLD that you also use for creating your SCs).
    There, go to the section "Name Reservation" and have a look at the reserved names of type "DB table". Delete the desired entry.
    Then you only have to restart the NWDS, as this is chaching the info from the name server. 
    On the DB, there is no issue re-using the table. But you have to keep in mind that this will result in a drop of the existing table with all the data before it is recreated.
    Best regards,
    Timo

  • Delete tables (cleanly)

    hi guys,
    How do we (1) delete tables (2) delete table entries
    and together deleting the other entries with corresponding foreign key?
    Thanks
    Message was edited by:
            TY Ng

    Hi ,
    U can delete entries from the table using the following syntax.
    DELETE FROM <TABLENAME>.
    Variants:
    1. DELETE FROM dbtab WHERE cond.
    DELETE FROM (dbtabname) WHERE cond.
    2. DELETE dbtab.
    DELETE *dbtab.
    DELETE (dbtabname) ...
    3. DELETE dbtab FROM TABLE itab.
    DELETE (dbtabname) FROM TABLE itab.
    4. DELETE dbtab VERSION vers.
    DELETE *dbtab VERSION vers.
    Effect
    Deletes lines from a database table (see Relational Databases ). You can specify the name of the database table either in the program itself with DELETE FROM dbtab ... or at runtime as the contents of the field dbtabname with DELETE FROM (dbtabname) .... In both cases, the database table must be known to the ABAP Dictionary. Only data from the current client is usually deleted. You can delete data using a view only if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".
    DELETE belongs to the Open SQL command set.
    Notes
    The DELETE statement does not perform authorization checks. You must program these yourself.
    The final (irrevocable) deletion of lines with the DELETE statement is not performed until after a database commit (see Logical Unit of Work (LUW)). Prior to this, you can reverse any database update with a database rollback (see Programming Transactions).
    You cannot rely exclusively on the locking mechanism of the database system to synchronize several users trying to access the same dataset at the same time. You should therefore use the SAP locking mechanism.
    Variant 1
    DELETE FROM dbtab WHERE cond.
    DELETE FROM (dbtabname) WHERE cond.
    Addition:
    ... CLIENT SPECIFIED
    Effect
    Deletes lines in a database table that satisfy the WHERE clause cond. With this variant, specification of a WHERE condition is obligatory .
    When the statement has been executed, the system field SY-DBCNT contains the number of deleted lines.
    The return code is set as follows:
    SY-SUBRC = 0:
    At least one line was deleted.
    SY-SUBRC = 4:
    No lines were deleted, since no line was selected.
    Example
    Delete all bookings for the Lufthansa flight 0400 on 02.28.1995 (in the current client):
    TABLES SBOOK.
    DELETE FROM SBOOK WHERE CARRID = 'LH'       AND
                            CONNID = '0400'     AND
                            FLDATE = '19950228'.
    Note
    To delete all the lines in a table, you must specify a WHERE condition that is true for all lines. You can achieve this with
    ... WHERE f IN itab
    If the internal table itab is empty, such a condition would select all lines.
    Addition
    ... CLIENT SPECIFIED
    Effect
    Switches off automatic client handling. This allows you to delete data across all clients in the case of client-specific tables. The client field is then treated like a normal table field, for which you can formulate suitable conditions in the WHERE clause.
    You must specify the addition CLIENT SPECIFIED immediately after the name of the database table.
    Variant 2
    DELETE dbtab.
    DELETE *dbtab.
    DELETE (dbtabname) ...
    Additions:
    1. ... FROM wa
    2. ... CLIENT SPECIFIED
    See Short forms not allowed and * work areas not allowed.
    Effect
    These are SAP-specific short forms used to delete one line of a database table. If the name of the database table is specified in the program, the primary key of the line to be deleted is taken from the specified work area - dbtab or *dbtab. If the name of the database table is not determined until runtime ( DELETE (dbtabname) ...), the addition ... FROM wa is obligatory .
    When the statement has been executed, the system field SY-DBCNT contains the number of deleted lines (0 or 1).
    The return code is set as follows:
    SY-SUBRC = 0:
    The line was deleted.
    SY-SUBRC = 4:
    No lines could be deleted, since no line exists with the primary key specified.
    Example
    Delete the booking with the booking number 3 for the Lufthansa flight 0400 on 28.02.1995 (in the current client):
    TABLES SBOOK.
    SBOOK-CARRID = 'LH'.
    SBOOK-CONNID = '0400'.
    SBOOK-FLDATE = '19950228'.
    SBOOK-BOOKID = '00000003'.
    DELETE  SBOOK.
    Addition 1
    ... FROM wa
    Effect
    Takes the primary key for the line to be deleted not from the table work area dbtab, but from the explicitly specified work area wa. Here, the key values from left to right are taken from wa according to the structure of the primary key in the table work area dbtab (see TABLES). The structure of wa is not taken into account. Therefore, the work area wa must be at least as wide (see DATA) as the primary key in the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the primary key in the table work area. Otherwise, you get a runtime error.
    Note
    If a work area is not explicitly specified, the values for the line to be deleted are taken from the table work area dbtab, even if the statement appears in a subroutine (see FORM) or function module (see FUNCTION) where the table work area is stored in a formal parameter or a local variable of the same name.
    Addition 2
    ... CLIENT SPECIFIED
    Effect
    As with variant 1.
    Variant 3
    DELETE dbtab FROM TABLE itab.
    DELETE (dbtabname) FROM TABLE itab.
    Addition:
    ... CLIENT SPECIFIED
    Effect
    Mass deletion: Deletes all database table lines for which the internal table itab contains values for the primary key fields. The lines of the internal table itab must satisfy the same condition as the work area wa in addition 1 to variant 2.
    The system field SY-DBCNT contains the number of deleted lines, i.e. the number of lines of the internal table itab for whose key values there were lines in the database table dbtab.
    The return code is set as follows:
    SY-SUBRC = 0:
    All lines from itab could be used to delete lines from dbtab.
    SY-SUBRC = 4:
    For at least one line of the internal table in the database table, there was no line with the same primary key. All found lines are deleted.
    Note
    If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0.
    Addition
    ... CLIENT SPECIFIED
    Effect
    As with variant 1.
    Variant 4
    DELETE dbtab VERSION vers.
    DELETE *dbtab VERSION vers.
    This variant is not allowed in an ABAP Objects context. See VERSION addition not allowed.
    Note
    This variant is now obsolete, since variants 1 - 3 allow you to specify the database table name dynamically.
    Effect
    Deletes a line in a database table, the name of which is taken from the field vers at runtime. The database table must be known to the ABAP Dictionary and its name must conform to the following naming convention: It must begin with 'T' and can consist of four additional characters. The field vers must contain the table name without a leading 'T'. Only lines in the current client are deleted. The line to be deleted is taken from the statically specified table work area dbtab or *dbtab.
    The return code is set as follows:
    SY-SUBRC = 0:
    The line was deleted.
    SY-SUBRC = 4:
    No lines could be deleted because no line existed with the specified primary key.
    <b>Reward points if this helps,</b>
    Kiran

  • Deleted Table in SQL and DBML still remained relation !!!!

    Hi Dear Experts
    I've faced the serious problem please help me :( !
    I've deleted a table from SQL database and also dbml and i created new table instead
    Also in Store Procedure the new table is used
    I've checked that the old table has completely removed
    but when in want to excecute the solution (the SP it tells me that previous relation (Foreignkey )
    is still remained ?!!!!!!) 
    ***THE OLD TABLE WAS IN RELATION WITH A TABLE IN SP BUT NOW IS IN RELATION WITH NEW TABLE*****
    Why this error occured even i've have removed the table?????
    Thanks a lot

    Error Message
    the insert statment Confilicted with foreign key constarint "FK_<tableName>_<oldtable>".the conflict occurred in database,table<old table>,column'x'
    thanks a lot
    Hi nasringh,
    Could you please check the relationship and the underlying records between foreign key table and primary key table? We must insert Data into the parent table which containing the Primary Key, before attempting to insert data into the child table containing
    the Foreign Key.
    For more detail information, please take a look at the following similar thread:
    http://stackoverflow.com/questions/2965837/insert-statement-conflicted-with-the-foreign-key-constraint
    http://www.codeproject.com/Questions/281774/The-INSERT-statement-conflicted-with-the-FOREIGN-K
    Regards,
    Elvis Long
    TechNet Community Support

  • Delete table in SQL command

    Hello,
    As part of my report I populate a table then reference it in several following subreports.
    The issue I'm having is that I need to clear all the data from my table after using it to allow the report to run again (and not get multiple results)
    To do this I have tried to add a sub report at the very end (and start) of my report with the SQL command truncate table <tablename> or delete <tablename> or delete <tablename> where 1 = 1.
    When I try truncate I get an error saying that I don't have permission (despite granting it but hey...) which is why I switched to delete, this runs fine but the table doesn't get deleted...
    Any thoughts as to why this isn't working/how I can clear my table? I have thought of setting up a separate scheduled job to delete the table contents however I do also need to run the report several times with different parameters so this isn't an ideal solution.
    I have tried adding a select after my delete statement as I thought if it had something to display on the report it would have to look at it but this didn't make any difference.
    Any help will be much appreciated!
    Thanks
    Chris

    Thanks for that!
    I have had a go at this and I can see how it will work although I have limited access on the Crystal userid I have so will need to have the SP created as part of our nightly refresh script I think.
    Is there no way of getting crystal to run my delete statement otherwise?
    Thanks again
    Chris

  • How to track , who has deleted table entry

    Hi Experts,
    Is there any way so that i can know that who has manually deleted few entries(data records) from my table,actually my table has "Display maintenance allowed" property set.
    Can we track it anyway that when and who has deleted that table record.
    Regards,
    Abhishek

    Hi Abhishek,
    Actually the changes made for an entry into table will have two effects.
    Changes at the data element level and another at the entire db table level all these changes will have an entry only if the change documentation is activated.
    Table logging concept wherein SAP records all insertions, deletions, and changes in tables
    OSS note 139418 will gibe you general information on logging user actions.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eaf9446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/Helpdata/EN/7e/c81ebb52c511d182c50000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/7d1020dac8994fa63ff270dbceb87f/content.htm
    revert for further clarification,
    Thanks and Regards
    Srikanth.P

  • Deleting table name containing special characters/length

    hey all -
    a modeling program (erwin) created this table, which i am currently unable to drop. i am using dbvisualizer to connect to the db. the table name is:
    DBDB.BIN$6YefzzGY8ingMAB/AQBlXA==$0
    trying to kill it:
    drop table DBDB.BIN$6YefzzGY8ingMAB/AQBlXA==$0
    ORA-00933: SQL command not properly ended
    drop table "DBDB.BIN$6YefzzGY8ingMAB/AQBlXA==$0"
    ORA-00972: Identifier is too long
    drop table 'DBDB.BIN$6YefzzGY8ingMAB/AQBlXA==$0'
    drop table '"DBDB.BIN$6YefzzGY8ingMAB/AQBlXA==$0"'
    drop table 'DBDB.BIN$6YefzzGY8ingMAB/AQBlXA\=\=$0'
    drop table '"DBDB.BIN$6YefzzGY8ingMAB/AQBlXA\=\=$0"'
    ORA-00903: invalid table name
    i have played with some other things as well. still can't kill it - any suggestions?? tell me how to kill this thing!!

    please read the posting below:
    deleted item in oracle

Maybe you are looking for

  • [sqlplus] - SP2-1503: Unable to initialize Oracle call interface

    Hello, I've just reinstall an new Oracle DB 10.2.0.1.0 and when i type SQLPLUS i've this error: $sqlplus /nolog SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly what's hapening ??? thanks for your

  • CHaRM creators for Gurus.

    Hi, Scenario: CR Creator - A CR Approver - B CD Creator - B (Its the apporover for the CR) In CHaRM there a 2 creators, one of Change Request and one for the Change Document. The CR creator is the person that creates the CR and the CD creator is the

  • System error on 6680

    Today I tried to use the camera and had message "SYSTEM ERROR" and all videos and photos were lost. Does anybody know how to get the camera working again. Many thanks

  • How to list Ciscoworks patches that installed on server

    We have LMS3.2,CS3.3 and RME 4.3.1 on solaris 9 and I want to know what were cisco patches installed on the server in order to install other patches without any problem.

  • How do I convert Word to online PDF accessible via the web?

    How do I convert a Word Document to an online PDF document which can be accessible via the web? I need to upload the document so people can access it via the web.  HELP???