Unable to delete data from a partition

Hi,
Unable to delete data from a partition
I am using the command as:
ALTER TABLE TEST DROP PARTITION DATE_20090820090000
Its giving 0 rows deleted.Bu there are 200 rows for the Partition.
The partition is getting deleted but the data remains.
I want a command where the data in the partition also to be deleted along with partition.
Any help will be needful for me

SQL> CREATE TABLE range_part (
prof_history_id NUMBER(10),
person_id NUMBER(10) NOT NULL,
organization_id NUMBER(10) NOT NULL,
record_date DATE NOT NULL)
PARTITION BY RANGE (record_date) (
PARTITION yr0 VALUES LESS THAN (TO_DATE('01-JAN-2007','DD-MON-YYYY'))
PARTITION yr7 VALUES LESS THAN (TO_DATE('01-JAN-2008','DD-MON-YYYY'))
PARTITION yr8 VALUES LESS THAN (TO_DATE('01-JAN-2009','DD-MON-YYYY'))
PARTITION yr9 VALUES LESS THAN (MAXVALUE) );
Table created.
SQL> INSERT INTO range_part VALUES (1, 1, 1, SYSDATE-720);
INSERT INTO range_part VALUES (2, 2, 2, SYSDATE-360);
INSERT INTO range_part VALUES (3, 3, 3, SYSDATE-180);
INSERT INTO range_part VALUES (4, 4, 4, SYSDATE);
1 row created.
SQL>
1 row created.
SQL>
1 row created.
SQL>
1 row created.
SQL>
SQL> commit;
Commit complete.
SQL> SELECT * FROM range_part;
PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
1 1 1 31-AUG-2007 05:53:22
2 2 2 25-AUG-2008 05:53:22
3 3 3 21-FEB-2009 05:53:22
4 4 4 20-AUG-2009 05:53:22
SQL> SELECT * FROM range_part PARTITION(yr7);
PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
1 1 1 31-AUG-2007 05:53:22
SQL> alter table range_part drop partition yr7;
Table altered.
SQL> SELECT * FROM range_part PARTITION(yr7);
SELECT * FROM range_part PARTITION(yr7)
ERROR at line 1:
ORA-02149: Specified partition does not exist
SQL> SELECT * FROM range_part;
PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
2 2 2 25-AUG-2008 05:53:22
3 3 3 21-FEB-2009 05:53:22
4 4 4 20-AUG-2009 05:53:22

Similar Messages

  • Deleting data from a partition in a table

    There is a requirement to delete data from a particular partition in our PROD Env.
    Please let me know the syntax for the same.
    Also is it possible to truncate a partition?
    The DB version is 10.2.0.4 and OS is Solaris 10
    Regards,
    Narayan
    Edited by: user7202581 on Apr 14, 2013 12:11 AM

    Hi, You can use the following Syntex.
    -- For Truncate
    ALTER TABLE <table_name> TRUNCATE PARTITION <Partition_name>;
    -- For Delete
    DELETE FROM <table_name> PARTITION <partition_name>;

  • Unable to Delete Data from PSA

    Hi Experts,
    I have a process chain which delete data from PSA on weekly basis . it running good . Since one month one of data target PSA data not deleting.
    it gives me error like DDL time(___1): .........2 milliseconds
    Delete request REQU_03RM2LOJ284N3GLM7Q574WLAO from PSA 8Z0MM_O39_OA: Error - subrc: 2
    When i am tring to delete manually it gives me above error only.
    I used programme (RSAR_PSA_CLEANUP_DIRECTORY)
    for deleteting PSA Data this programme gives me errors request already deleted from data base. But still those request available when i am looking into PSA data.
    it's happen only quality system not in the Production.
    Kind Regards,
    ve.

    Hi Srinath,
    when i am looking into system there is no programeme with name(SAP_PSA_ZEROCORREC) But another programme RSAR_PSA_CLEANUP_DIRECTORY is available i tried with these programme for deleting PSA it gives me error like request deleted from database.
    But it gives me an error indicator only.
    i  am tried to delete manually by selectiong those request from PSA it gives me error DDL Time (______1) 2 milliseconds.
    Kind Regards,
    ve.

  • Unable to Delete Data from ODS ---Tricky

    Hi Frds/ BW Guru's,
    I am trying to delete the request from ODS , I could see the job being scheduled for deletion, but finally the request is not deleted. What can be the reason for this and how can I go about from here, we have to do it in production.please respond soon .
    Thanks,
    Krish

    Generally, I wouldn't think the deletion would be impacted by tablespace issues except for two scenarios -
    With Selective Deletion, the BW deteremines how many rows you will be deleting and if it determines that it will be more than 10% of the rows in the tables, the BW decides that it is faster to copy the table, excluding the rows to be deleted, and then drops the old table and renames the copy to the original table names.  In this case, there must be enough freespace in the tablespace to accomodate the temporary copy as well as the original table.  I don't believe applies to deletion of a Request, only a Selective Deletion.
    Request deletion requires temporary space in the Rollback tablespace.  The database must maintain an image of the table before the deletion until the change is committed, so that in the event the deletion process fails or is cancelled, the deletes that were being done can be rolled back to restore the table to its previous state.  Again, unless this Request held a very large amount of data, the amount of rollback space availalbe should not be an issue.
    I would guess Authorizations is a good canidate for the cause.  There was a fairly recent Note 810201 that allows for the creation of a new RSADMIN parameter that is designed to permit deletion of a Request, but NOT a Delete All Data.
    Pizzaman

  • I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear but the phone remains full and the data is still visible on the PC.  I am unable to manipulate the data in any way on the PC.

    I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear when swiping left and deleting but the phone remains full and the data is still visible on the PC. The music was installed on the phone from the backup of a previous model but with the addition of new tracks I am now unable to add more or update to the next operating system as the phone is full.  On my PC the music is still there and but the neither the delete function or any form of sorting/management on the music files is functional. Other Apple products work OK including previous phone, ipad.ipods etc Any advice/help available to get past this would be appreciated.

    I think it is 7.1.1 - there was another update today which I've uploaded but it didn't make any difference. It's just the music libary on the 5 that's causing me problems.

  • Unable to delete photo from ipad

    When I first got my ipad, I synced s photo from My Pictures.  I am unable to delete it from the ipad by using the delete option.  How do I get it off my ipad?

    Go to the folder on your computer that those synced photos are in. Move those photos elsewhere then sync and the photos will go away.
    Alternatively you can connect your device to your computer and open iTunes. Click on the name of your device and navigate to the photos tab. Choose a different folder or deselect any folder then sync. Your device will replace the photos on your device with what's in that other folder, or simply remove them all together if you deselect all photos syncing.
    Given the difficulty of removing synced photos, I stopped syncing photos a long time ago. Instead if I want photos on my iPad I'll just mail them to myself...or you can use any number of photos apps that have the ability to sync/share data, or upload them to something like dropbox and then download them onto your device. Downloaded or saved photos can be deleted from inside the photos app.

  • Unable to delete rows from Target.

    Hello everyone,
    I am unable to delete rows from target data store. Here is what I have done.
    Source Oracle 10g - staging 11g - Target Oracle 11g
    I have implemented consistent set CDC on data model in staging and added 2 tables to CDC and turned on the journals . Both tables A and B are joined together via Column E (primary key of table A). Table A is the master table(has foreign key). Table B is child table. Target column consists of all the columns of both table A and B.
    Following is what I am able to do and not to do
    ABLE TO DO. If data is inserted into both or any of journalized tables I can successfully load the same in target by performing following steps. 1. Extend the consistency window at model level. Lock subscriber. Run the interface with any source table marked as Journalized data only. Unlock subscriber and purge journal.
    ABLE TO DO. If data is updated in any of the journalized table, along with the steps mentioned above I can execute two interfaces. In one Interface table A marked as journalized data only Joined with table B and in second interface table B marked as Journalized data only joined to table a.
    NOT ABLE TO DO If data is deleted from one or both tables it shows up as journalized data in JV$D<tablename> marked as D with date and subscriber name but when i run the interface by extending the window , locking subscriber executing both interfaces, unlock subscriber purge journals. no change takes place is Target. After unlocking subscriber step, journalized data gets removed from JV$D view. Please let me know what I am doing wrong here. How can rows delted from source can also be deleted from TARGET?
    NOTE : In the flow table SYNC_JRNL_DELETES is YES
    In moel under jounalized table tab Table have following order Table A folloed by Table B
    Thanks in advance
    Greenwich

    Sorry I still do not get it. when you say "Its a legacy app", are you talking about the VB.NET app ?
    If so then I repeat my self :-) Why not to connecting to the SQL server directly?
    * even if you need information from several databases (for example ACCESS + SQL Server), in most cases, it is much better to connect directly and get each information to the app. Then in your app you can combine the information and analyse it
    [Personal Site] [Blog] [Facebook]
    Access app is the legacy app. 

  • Unable to delete videos from my iad

    I am unable to delete videos from my ipad.  When I go to Settings - Usage - Storage; the video section will show up as no data in it even if it has multiple videos downloaded from itunes in it.  I am using iOS 7.0.4 on a new iPad mini Retina 64GB.  I am seeing the same problem on my iPhone 5S. 

    I was puzzled by this since ios7 I waited for  7.1 and thought it was fixed as it seems to go away. Now its back in 8.0 and 8.0.2.
    It seems somewhat related to incomplete accounting of downloaded video and music too on the device and applying to storage left on device as these two icons are not showing up under usage in settings, even with show all selected.
    Here is what I did:
    Go to "Videos" under settings, turn off "show all videos", this will show only videos that presumably are on your device.
    Go to Videos" app and you should see video that is presumably downloaded to device, select the cloud icon and as unintuitive as it seems, download the video as if it is not already on the device.
    When one or all of your videos finish, go to "Settings", "General", "Usage", you will see an increase in available storage.
    While there, select "Manage Storage" and "Videos" should show up in usage and an amount of MB or GB.
    Select "Videos" under storage and your videos will present. Select "Edit" in upper right corner.
    Select red "minus symbol", delete.
    As you do this you will see more and more of your devices storage coming back in available storage.
    This is similar to or is a memory leak issue that needs to be addressed. It apparently hasn't yet.
    The same process works with Music. I haven't seen this as an issue in dealing with apps.
    Mitchell

  • Deleting data from SID Table

    Hi,
    I have deleted master data of an info object but it does not remove all the data from the SID table.
    I have selected with SID's option but not all data was removed.
    I am getting the error below when transporting
    "SID Table /BIC/ S2QKHITIND Contains Data : Characteristic ZQKHITIND Cannot be activated. "
    What needs to be done to get the charecteristic activated.
    Thanks
    James

    Hi Selva,
    Thank you for the info. I have deleted data from all the infoproviders but still get the message
    The system is unable to delete all the master data as, because some of it is still in use.  (See log:
    Object RSDMD, sub-object MD_DEL )
    Do you want to delete the data records that are no longer in use?
    What does this mean. is it due to the query open in some place or something else.
    While I am not able to delete the SID table entries as the delete is not active. Please help.
    Thanks
    James

  • Unable to read data from the SAP Service Marketplace issue

    Good morning, experts.
    I´ve just installed the SAP Download Manager, but I can´t get connected to Marketplace.
    First I tried downloading a file I could see in my Basket Download. Then I deleted it from the basket so I could test only the connection. In both situations I got the same error message: "Unable to read data from the SAP Service Marketplace (...)".
    It is probably due to wrong settings, but I can´t figure it out. My settings are:
    Address: https://websmp205.sap-ag.de/
    User name: S0005951541
    Password: (my password)
    Proxy (my proxy settings)
    Any ideas?

    Thanks for your answer.
    I can see my download basket online. I realize I didn´t delete the items so I could test purely the connection. I am going to do it again.
    I found out I dind´t have permission to download those items, and with the right permission I could download them directly online.
    As long as I have more information I am going to repost this issue on a new forum.
    Thanks.

  • Unless I repair my hard drive every other day I am unable to delete songs from iTunes or email messages from Postbox. I've only had an iMac for a few weeks, is this normal?

    Unless I repair my hard drive every other day I am unable to delete songs from iTunes or email messages from Postbox. I've only had an iMac for a few weeks, is this normal?

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Move data from Non Partitioned Table to Partitioned Table

    Hi Friends,
    I am using Oracle 11.2.0.1 DB
    Please let me know how can i copy /move the data from Non -Partitioned Oracle table to the currently created Partiotioned table.
    Regards,
    DB

    839396 wrote:
    Hi All,
    Created Partitioned table but unable to copy the data from Non Partitioned table:
    SQL> select * from sales;
    SNO YEAR NAME
    1 01-JAN-11 jan2011
    1 01-FEB-11 feb2011
    1 01-JAN-12 jan2012
    1 01-FEB-12 feb2012
    1 01-JAN-13 jan2013
    1 01-FEB-13 feb2013into which partition should row immediately above ("01-FEB-13") be deposited?
    [oracle@localhost ~]$ oerr  ora 14400
    14400, 00000, "inserted partition key does not map to any partition"
    // *Cause:  An attempt was made to insert a record into, a Range or Composite
    //          Range object, with a concatenated partition key that is beyond
    //          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 did not match the literal values specified
    //          for any of the partitions.
    // *Action: Do not insert the key. Or, add a partition capable of accepting
    //          the key, Or add values matching the key to a partition specification>
    6 rows selected.
    >
    SQL>
    SQL> create table sales_part(sno number(3),year date,name varchar2(10))
    2 partition by range(year)
    3 (
    4 partition p11 values less than (TO_DATE('01/JAN/2012','DD/MON/YYYY')),
    5 partition p12 values less than (TO_DATE('01/JAN/2013','DD/MON/YYYY'))
    6 );
    Table created.
    SQL> SELECT table_name,partition_name, num_rows FROM user_tab_partitions;
    TABLE_NAME PARTITION_NAME NUM_ROWS
    SALES_PART P11
    SALES_PART P12
    UNPAR_TABLE UNPAR_TABLE_12 776000
    UNPAR_TABLE UNPAR_TABLE_15 5000
    UNPAR_TABLE UNPAR_TABLE_MX 220000
    SQL>
    SQL> insert into sales_part select * from sales;
    insert into sales_part select * from sales
    ERROR at line 1:
    ORA-14400: inserted partition key does not map to any partition
    Regards,
    DB

  • Error  While  Deleting Data  From ODS

    Hi all,
    We are getting short dump while deleting data from a perticular ODS.
    Part of short dump is--
    trigger Location of Runtime Error
       Program                                 SAPLRSAC
       Include                                 LRSACU75
       Row                                     535
       Module type                             (FUNCTION)
       Module Name                             RSAR_TRANSTRUCTURE_ACTIVATE
    help is desperately required
    Regards
    Srini--

    try to activate InfoSource and later delete data.
    Check if all ODS related objects are consistent and active.
    also pls attached the whole dump for more clarity if this does not work.

  • Error while deleting data from a write optimized DSO using a Process Chain?

    Dear Bwers,
    I am facing a strange error while using process chains to delete data from data target which is a write optimized DSO. The process shows as failed but the data gets deleted in the DSO. The error message is as below. Did anybody have a similar problem? Any suggestions.
    Thanks
    Raj
    Error while deleting content of InfoCube/DataStore object ZLSD_G03
    Message no. RSDODSO153

    Please, check if you get any short dump in ST22 related to this issue.

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

Maybe you are looking for

  • HELP! Internal Keyboard doesn't work

    I had my macbook pro 6 months ago, and one month ago I plugged in an imac keyboard for using adobe illustrator and photoshop. When I unplugged the external keyboard the internal keyboard of the macbook pro stopped functioning. The commands buttons, l

  • Difference in SC and FC cumulative balance

    Hi All, After running the conversion difference, there is still a difference between the SC and LC cumulative balance. For ex. LC = 0.33 and the SC = 0 .00 (cumulative balance) Is this correct? I can see a value of 0.05 in SC C/D but in cumulative ba

  • Using ActiveX and DirectShow

    Hello, I need to use DirectShow from LabVIEW, but I can't create the filter graph manager object (DirectShow is Microsofts new architecture for media streaming (audio and video capture, DVD playback etc.). It comes with Windows 98 and is documented i

  • Were do i go on pc to find username and pass for network server?

    i'm trying to network my pc and mac. i'm able to login on pc to access mac files but i dont know were to find username and pass of my pc so as to login from mac into my pc. i know the pass and user on the mac is under  system preferences (user&group)

  • AnyConnect installation issue - Network Adapter is not created - cannot find any error?

    I am a contractor with a Federal Agency that just swithed to using Cisco AnyConnect for VPN access.  I am about the only person with this installation issue, that I know of.  When installing the AnyConnect client on a Windows 7 machine running a 3.X