How to truncate the Table Subpartition ??

Hi,
I have 3 tables on my Oracle 10g database. They are interrelated as 1 --> 2 ---> 3,
Table 1 & 2 are composite partiitoned with Partition By Rage and Sub Pratition by list. Now i have to truncate few listed subpartitions i.e
Say If Subpartition ( 200501, 200601, 200701) , In this subpartition , I want to truncate only the values of say 200501 & 200601 ,
How can i do that ?? I have gone throgh the documentation, i have'nt fot any solution for this.
Chowdary K

Let me more clear about the problem .,
There are 3 table each one with interrelated as 1 --> 2 --> 3 , Now i have to truncate the old partitons. I can easly truncate the partitons of table 3 as it does'nt have any child tables and it's straight partitoned table. The problem is , 1 & 2 tables are composite partitioned with Partition By Range & subpartitioned by list., Now i have to truncate the few elements of subpartition of 1 & 2 tables.,
Ex.,
CREATE TABLE CUST_INVC
MRKT_ID NUMBER NOT NULL,
CUST_INVC_ID NUMBER NOT NULL,
INVC_CMPGN_NR NUMBER(6) NOT NULL,
CREAT_USER_ID VARCHAR2(100 BYTE) NOT NULL,
CREAT_TS DATE NOT NULL,
LAST_UPDT_USER_ID VARCHAR2(100 BYTE) NOT NULL,
LAST_UPDT_TS DATE NOT NULL,
ACCT_NR NUMBER(15) NOT NULL,
CUST_ID NUMBER(15),
ORD_CREATR_CD VARCHAR2(15 BYTE),
CMPGN_YR_NR NUMBER(4),
CMPGN_NR NUMBER(2),
INVC_DT DATE,
ORD_SBMSN_DT DATE,
AVON_ORD_ID NUMBER,
AVON_STOR_CNFRMTN_NR VARCHAR2(100 BYTE),
MRGD_INVC_ID NUMBER,
INVC_TYP VARCHAR2(15 BYTE),
CUST_SERVC_CHRG_AMT NUMBER(15,2),
TOT_INVC_AMT NUMBER(15,2),
TOT_ITEM_CNT NUMBER(8),
CUST_INVC_TAX_PCT NUMBER(8,3),
CUST_INVC_TAX_AMT NUMBER(15,2),
INVC_ADJSTMT_PCT NUMBER(8,3),
EMAIL_ADDR_TXT VARCHAR2(100 BYTE),
BILNG_ADDR_CARE_OF_NM VARCHAR2(100 BYTE),
BILNG_STR_ADDR_TXT VARCHAR2(100 BYTE),
BILNG_CITY_NM VARCHAR2(100 BYTE),
BILNG_PRVNC_NM VARCHAR2(100 BYTE),
BILNG_ST_CD VARCHAR2(5 BYTE),
BILNG_PSTL_CD VARCHAR2(15 BYTE),
BILNG_CNTRY_CD VARCHAR2(5 BYTE),
SHPNG_STR_ADDR_TXT VARCHAR2(100 BYTE),
SHPNG_CITY_NM VARCHAR2(100 BYTE),
SHPNG_PRVNC_NM VARCHAR2(100 BYTE),
SHPNG_ST_CD VARCHAR2(5 BYTE),
SHPNG_PSTL_CD VARCHAR2(15 BYTE),
SHPNG_CNTRY_CD VARCHAR2(5 BYTE),
CUST_PRMRY_PHON_NR VARCHAR2(20 BYTE),
SHPNG_FEE_AMT NUMBER(15,2),
REFRG_REP_PHON_NR VARCHAR2(20 BYTE),
PROMTNL_CPN_CD VARCHAR2(50 BYTE),
APLCTN_SRCE_CD VARCHAR2(15 BYTE),
INVC_PRSNL_CMNT_TXT VARCHAR2(500 BYTE),
INVC_MRKTG_CMNT_TXT VARCHAR2(500 BYTE),
READY_TO_PRNT_CD VARCHAR2(5 BYTE) DEFAULT 'N',
ORD_CREATN_DT DATE,
INVC_VWD_IND VARCHAR2(1 BYTE) DEFAULT 'N',
INVC_PRCS_ID VARCHAR2(15 BYTE)
TABLESPACE ECOM_ODS
PCTUSED 0
PCTFREE 10
INITRANS 5
MAXTRANS 255
LOGGING
PARTITION BY RANGE (MRKT_ID)
SUBPARTITION BY LIST (INVC_CMPGN_NR)
PARTITION CUST_INVC_US VALUES LESS THAN (76)
NOLOGGING
NOCOMPRESS
TABLESPACE ECOM_ODS
PCTFREE 10
INITRANS 5
MAXTRANS 255
STORAGE (
INITIAL 20M
BUFFER_POOL DEFAULT
( SUBPARTITION CUST_INVC_US_SP01 VALUES (200501, 200604, 200707) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP02 VALUES (200502, 200605, 200708) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP03 VALUES (200503, 200606, 200709) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP04 VALUES (200504, 200607, 200710) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP05 VALUES (200505, 200608, 200711) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP06 VALUES (200506, 200609, 200712) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP07 VALUES (200507, 200610, 200713) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP08 VALUES (200508, 200611, 200714) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP09 VALUES (200509, 200612, 200715) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP10 VALUES (200510, 200613, 200716) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP11 VALUES (200511, 200614, 200717) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP12 VALUES (200512, 200615, 200718) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP13 VALUES (200513, 200616, 200719) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP14 VALUES (200514, 200617, 200720) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP15 VALUES (200515, 200618, 200721) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP16 VALUES (200516, 200619, 200722) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP17 VALUES (200517, 200620, 200723) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP18 VALUES (200518, 200621, 200724) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP19 VALUES (200519, 200622, 200725) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP20 VALUES (200520, 200623, 200726) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP21 VALUES (200521, 200624, 200727) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP22 VALUES (200522, 200625, 200801) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP23 VALUES (200523, 200626, 200802) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP24 VALUES (200524, 200627, 200803) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP25 VALUES (200525, 200701, 200804) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP26 VALUES (200526, 200702, 200805) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP27 VALUES (200527, 200703, 200806) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP28 VALUES (200601, 200704, 200807) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP29 VALUES (200602, 200705, 200808) TABLESPACE ECOM_ODS,
SUBPARTITION CUST_INVC_US_SP30 VALUES (200603, 200706, 200809) TABLESPACE ECOM_ODS )
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING
ENABLE ROW MOVEMENT;
Say I want to truncate the Subpartiton CUST_INVC_US_SP30 Values 200603 & 200706.
Can anyone tell me syntax , how can i do that.,
Chowdary K

Similar Messages

  • ADF Desktop Integration : How to delete the table in Excel?

    Hi,
    I am using Jdev 11.1.1.3.0 and Excel 2007 for Oracle ADF DI, I had created an ADF table using pageDef file in the excel. Now I wanted to delete that table and use a different pageDef file.
    I could not find a way to delete that table.
    I deleted full row of tables and then I used different pageDef file and created a new adf table. But when I am running this version of excel, I am getting runtime exception and excel is getting corrupted.
    My question how to delete the table not corrupting the Excel.
    Thanks
    Pavan

    Pavan,,
    Welcome to OTN.
    You can delete the table by selecting the top left column (of the table) and then select delete from the ADFdi tab.
    Refer the documentation for more info.
    http://docs.oracle.com/cd/E17904_01/web.1111/e10139/get_start_dev_tools.htm#ADFDI608
    -Arun

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

  • How to create the Table of Content (TOC) in WEB

    Dear Sir
    Please help me
    How to create the Table of content (TOC) in Web Intelligence Report,
    Thanks
    Gnanasekarn.K
    Edited by: Gnanasekaran Kandasamy on Nov 20, 2008 11:12 AM

    Hi Gnanasekarn,
    You can create TOC in webi using Open Document, You can create link on the TOC and you can connect that link to open new report .
    With the help of open document you can open the specific portion of report.
    So you can achive your requirement using URL reporting or Open Document.
    Regards,
    Chaitanya Deshpande

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • How to handle the table control in bapi?

    how to handle the table control in bapi? example va01.
    i pass multiple line item what is the procedure?
    header detail same .
    eample ship to party
           sale to party.
    line item mulptiple
    10 mat1
    2o mat2
    30 mat3.
    in bapi we can pass sinle line item.
    any way to handle multiple line item pass through the bapi.
    Message was edited by:
            Karthikeyan Pandurangan

    BAPI is not going through the screen flow logic so you need not to worry about the table control. Just check in the BAPi there must be one table parameter for line items just pass one int table with your data to that table parameter it will automatically update the tables.
    Regards
    shiba dutta

  • How to check the tables we have created in JDBC??

    I have created a table called COFFEE2 in a datasource called temp which is in SQL server...How to check the table values??
    i went into administrative tools and odbc cource then i could see the data source i have created but how to see the table??
    Can anyone help??
    thanx

    Hmm.. not sure that I understand the problem.
    Call getConnection on the DataSource, and then execute the select query on the connection.
    Kaj

  • How to view the table at the application level

    Dear All,
    How to view the table in the Data Dictionary at the application level, If a table is created at the database level by using CREATE statement.
    code/
    create table zmard as select * from sapone.mard where 1 = 2
    /code
    I would like to view the table above, which is created at the Oracle database level in the Data Dictionary.
    can anyone guess the solution.
    Best wishes
    Mahesh

    Hi
    U should create a program using SQL native in order to select and show the data.
    By SE11 or directly in the program u can define a structure like your table:
    DATA: BEGIN OF W_ZMARD,
                  FIELD,
              END     OF W_ZMARD.
    EXEC.
       OPEN CURSO FOR SELECT * FROM ZMARD
    ENDEXEC.
    DO.
      EXEC.
         FETCH NEXT CURSOR INTO :W_ZMARD
      ENDEXEC.
      IF SY-SUBRC <> 0.
         EXIT.
      ENDIF.
      WRITE: / W_ZMARD-FIELD,
    ENDDO.
    EXEC.
      CLOSE CURSOR
    ENDEXEC.
    I don't know if it's possible to create a view in SE11, because it's needs a table just defined in SE11, u can create a new view ZMARD based on MARD but I don't believe it'll use your table.
    Max

  • How to find the tables in OM

    Hi All,
    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OM
    Thanks & Regards
    srikkanth.M

    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OMeTRM
    http://etrm.oracle.com
    Thanks,
    Hussein

  • How to capture the table update

    How to capture the table update.Suppose I delete a enrtry from the table or mofying any entry in a table is there way to capture that update in SAP?

    hi ,
    follow these steps:
    1. After you selecte the search help for New Responislbe person, domodify gets triggered.
    2. In the wddomodify, get the value of New Responsible person by reading the attribute binded to it.
    3. Now if Value entered is not initial, write a selecte query to fetch the name based on pernr no.
    4. Finally bind the name fetched with the attribute binded to New Responsible person name.
    Wdomodify :
    ************* *Read the New REsponsible person Pernr* ***********
      DATA lo_nd_cn_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_sflight TYPE REF TO if_wd_context_element.
      DATA ls_cn_sflight TYPE wd_this->element_cn_sflight.
      DATA lv_carrid LIKE ls_cn_sflight-carrid.
    * navigate from <CONTEXT> to <CN_SFLIGHT> via lead selection
      lo_nd_cn_sflight = wd_context->get_child_node( name = wd_this->wdctx_cn_sflight ).
    * get element via lead selection
      lo_el_cn_sflight = lo_nd_cn_sflight->get_element(  ).
    * get single attribute
      lo_el_cn_sflight->get_attribute(
        EXPORTING
          name =  `PERNR`
        IMPORTING
          value = lv_carrid ).
    ****** *Check whethre a value has been entered in PERNR* *************
    if lv_carrid is not initial.
    *************Select Name based on pernr entered* ***********
    select ename from pa001 into lv_ename where pernr = lv_carrid.
    *******Set the Name atttribute with the ename value fetched* *****
      lo_el_cn_sflight->set_attribute(
          name =  `NAME`
          value = lv_cename ).
    endif.

  • Space is not released after truncating the table

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR
    Hello,
    Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
    As per BOL if extents are more than 128 it goes in deferred drop.
    http://msdn.microsoft.com/en-us/library/ms177495.aspx
    You should wait for some time .keep checking the free space
    Below discussion will surely help you in understanding.See Jonathan's reply
    http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to view the tables/views available in Oracle

    HI,
      I am creating DB connection and importing the data from Oracle TABLES/ Views. I just want know how to view the tables/views available in Oracle. (I have the login details). Can I view thru TOAD? Pl let me know the best way and suggestions/ views / Links/ whitepagers.
    Regards,

    Hi,
    I don't remember exacly: RSA1 -> source system -> "replicate datasources". Works this also in a DB-source system. I think so.
    => you get all tables that your user has authorisation.
    This function execute for example (in oracle there are same information tables: dba_tables, user_tables ...) following select in the database:
    select TABLE_NAME from DBA_TABLES;
    Sven

  • How to see the Table Names & Field Names by other than F1 help

    Hi Experts
       How to see the Table Names & Field Names by other than F1 help, & How to see the List of MM Table Names.
    Rgds

    The only option to see the active table/ field name is through F1 --> Technical Information. Apart from this, you can use any 3rd part application like GUIex (INbuilt in SAP ECC 6.0 ... can be activated by clicking on the tri-color button on the top right), but you need technical knowledge to understand the information. As far consolidated list of MM tables is concerned, SAP don;t provide you the same at one place, it experience and knowledge which help you in this regard. For your immediate reference MM tables are as under :
    EBAN  - Purchase Requisition 
    EBKN  - Purchase Requisition Account Assignment 
    EBUB   - Index for Stock Transport Requisitions for Materi
    EINA    - Purchasing Info Record: General Data 
    EINE     - Purchasing Info Record: Purchasing Organization D
    EIPA     - Order Price History: Info Record 
    EKAB   - Release Documentation 
    EKAN   - Vendor Address: Purchasing Document 
    EKBE    - History per Purchasing Document 
    EKBEH - Removed PO History Records 
    EKBZ    - History per Purchasing Document: Delivery Costs 
    EKBZH  - History per Purchasing Document: Delivery Costs 
    EKEH    - Scheduling Agreement Release Documentation 
    EKEK    - Header Data for Scheduling Agreement Releases 
    EKES     - Vendor Confirmations 
    EKET     - Scheduling Agreement Schedule Lines 
    EKETH   - Scheduling Agreement Schedules: History Tables 
    EKKI      - Purchasing Condition Index 
    EKKN    - Account Assignment in Purchasing Document 
    EKKO    - Purchasing Document Header 
    EKPA     - Partner Roles in Purchasing 
    EKPB     - "Material Provided" Item in Purchasing Document 
    EKPO    - Purchasing Document Item 
    EKPV    - Shipping-Specific Data on Stock Tfr. for Purch. D 
    EKRS    - ERS Procedure: Goods (Merchandise) Movements to b 
    EKUB    - Index for Stock Transport Orders for Material 
    EORD    - Purchasing Source List 
    EQUK    - Quota File: Header

Maybe you are looking for