Changing phisycal attribute for a sub partition

Hi
oracle version : 10.2.0.4 on Solaris
I have a table with subpartitions and I need to reduce the initial extent of the subpartition without dropping and recreating .
I can do that on a table level and on a partition level using :
alter table xxx move storage (initial 65k);
alter table XXX move partition YYY storage (initial 65k);
But I cannot do a similar thing for subpartition
alter table xxx move subpartition yyy storage (initial 65k);
ORA-14160: this physical attribute may not be specified for a table subpartition
Any way to accpmplish this without dropping and recreating the table ?
This is needed as part of a huge data structure copy .
I get the structure from a production DB and I am importing them ( using datapump ) to development.
I need to "shrink" the tables because the initial extents defined are big and there are so many of them that the copied schema, thoufght empty of data is taking many GB of space.
I managed to "shrink " everything , only subpartitioned tables are still occupying a lot of space
Any advise ?
Thanks
Orna

Some more info :
I am using LMT in both production and test
but when I export and import ( datapump ) - the initial extents are not 'adjusting' themselves to the new tablespace in test.
So the original tablespace in production have a 100MG initial and next extent and the target tablespace to which I remap during the import has 65k initial/next extent - but nevertheless - the tables are getting created with the old extent sizes of 100MG.
The only way I found to fix this is to actually run alter table commands on the empty tables after import, and that works fine for everything other then subpartitions.
thanks
Orna

Similar Messages

  • Change input attribute for CL_PT_REQ_WF_ATTRIBS

    Hi,
    I would like to change the input attribute value from class CL_PT_REQ_WF_ATTRIBS in BADI PT_GEN_REQ~START_WF for multilevel leave approval.
    May I know how to do this ?
    Regards,
    Eric

    Resolved myself

  • Is it possibly to change file attributes for files in the Program Files directory?

    Hi,
    I wonder if it is possible to change file time atributes for a file that is in the same folder as the exe file inside the Program File folder. I have the following code that gives System Error Code 5.
    SHGetFolderPath(0, CSIDL_PROGRAM_FILES, 0, SHGFP_TYPE_CURRENT, programpath);
    PathAppend (programpath, TEXT("Testprogram/gnsh.dat"));
    hFile = CreateFile(programpath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    If this had worked, I would for instance have done like this
    GetSystemTime(&st); SystemTimeToFileTime(&st, &ft);
    timeresult = SetFileTime(hFile2, NULL, NULL, &ft);
    I am programming in C with WIndows Api.
    Thanks in advance for answer.
    Best regards

    Hi Vahmat,
    System error code 5 :
    ERROR_ACCESS_DENIED
    5 (0x5)
    Access is denied.
    I have tested your code on my side, it will get a error code 5 if you have no permission to access a file. Please try to run VS as a administrator and rebuild your project, after this , you code works well on my side.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?

    How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?  I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).

    Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.

  • Master data maintenance and attributes for GTIN/EAN

    A review of the SAP documentation indicates that  "You can use the consistency report to change the attributes (for example, quantity, length, height, and so on) of certain materials". The "and so on" seems to imply that the attributes can be user defined. If this correct, where is this data kept? Or do the attributes only include the fields from the Basic data 1 Dimensions/EAN data and Plant Data storage General data?
    I would expect we can use LSWM to mass update the GTIN for our existing material numbers. However, for new material master creation is there a function module that would be able to pull the next available GTIN number from the internal number range? Please note that we use LSWM to create all our material numbers. We would like to have the LSWM insert the next available GTIN number.
    Thank you for your response
    Brian

    Hi
    I had tried all sorts - attribute change run and manually activating the master data.  Still doesnt work.
    Anthony

  • Reg: CRM Marketing attributes for CRM 7.0

    Hi Gurus,
    We are using function module CRM_MKTBP_CHANGE_BP to change marketing attributes for a business partner in which the marketing attributes are coming from another interface.
    We get the marketing attributes created all the time, but the problem is when theres is a change in marketing attributes, these changes are also reflected, but the changed by and time stamp is not changed, though we pass it explicitly via the internal table IT_IMP_SELTAB when passing the fields CHANGED_AT and CHANGED_BY.
    Requesting if anyone knows another FM or BAPI or OSS noted available for this as this particular FM is not released yet too.

    Hi ,
    Check that the Flag Run in the table CRM_MKTBP_CHECK for function module CRM_MKTBP_UPDATE_AUSP_EX_DB is set to X. This is for recording the history for any changes in the attributes. If not then set this flag to X. After that just change the value of one of the attributes and check the 'CHANGED AT' and 'CHANGED BY' fields for that attibute.
    Hope this helps.
    Regards,
    Gervase

  • How to change the attribute name for a relation

    When the Data Modeler engineers a logical model into a relational model it create table columns for the relations. The names of the generated columns are listed in the attributes list in the properties dialog of the relation. The actual name of the attribute gets calculated by the attribute name of the entity which is part of the relation. This is okay, if there is only one relation between two entities. But when there are two relations between two entities the second attribute gets a stupid number suffix. This makes it impossible to give the attribute a useful semantic meaning.
    When I engineer the model into a relational model I can change the column name in the relational model. Changing the column name in the relational model is not perfect but it would be okay for me, if it would not be overwritten during the next engineering run.
    So I have two questions:
    How can I change the attribute name in the attributes section of the properties dialog of a relation? See here for screen shot:
    http://public.ceving.de/2012050300/relationattribute.png
    And if it is not possible:
    How can I preserve any changes on column names in the relational model during a re-engineering run?
    Edited by: 931739 on 03.05.2012 08:07

    Hi,
    I've logged an Enhancement request on this.
    I don't believe it's possible to change it from the Entity or Relationship dialog, as it's not updatable in these dialogs.
    What you can do is change it in the Relational Model, and then reverse engineer the change back to the Logical Model.
    David

  • HT1766 I have made the C drive on my computer very small, with the intention that all data would be stored on the D partition. Can I change the destination for my iPad backup to the D drive?

    I have made the C drive on my computer very small and try to put all the data on the D partition. Can I change the destination for my iPad backup to the D drive?

    See if this post from turingtest2 helps : https://discussions.apple.com/message/24351688
    If not then you might be better off asking in the iTunes For Windows forum, you may be more likely to get better help there.

  • How does attribute change run works for Aggregates and Master data?

    Hi
    Can anybody xplain how does the attribute change run works for Master data ?
    For e.g.
    There is 0spelling and it has master data
    On Day 1 there are 10 records
    day 2 it has 12 records
    so with attribute change run this 2 new records will get added....
    The values for this  12 records will added seperately in Data load
    Is this how it workss
    So how about Aggregates which has Master data.????

    for e.g.
    u have 0spelling whicha has attributes x,y and z on day 1 with 10 records
    so do ur aggregates on day1 with same values
    now on day2 u had new values of attributes y,z,s,d and new hierarchies and so u add new records
    with data load u will load the data with version M of modified and is not available for reporting
    If u do attribute change run then this modified version is activated to A i.e. active version .
    It will also do the change run alignment for Aggregate for new attribute values and new hierarchy values for aggregate.
    now in order for this data to be available for reporting u will need to do the roll up of aggregate.....
    if u roll up aggregate before attribute change run , new data is not avaialable for reporting
    if u roll up aggregate after attribute change run, then data is available for reporting
    if u dont roll up aggregate eventhough new data is in dataprovider, still new data will not be available for reporting.
    this is how it works

  • Can we change the Super class attribute scope in Sub class

    Hi.
    I created a super class. In that i have 4 attributes. That attributes are PUBLIC.
    I created a sub class. In that i got all super class attributes. I want to change that attributes as a Private. Is it possible.
    If it is possible.Give me an Example with code or Pseudo code.
    Regards.
    Krishna.

    Hi Krishna,
    It is not possible... If you declare the Attributes again in Subclass of the same name as that of Super class
    then the way of accessing them would be different from that of attributes in the main class.
    Hope this would help you
    Good luck
    Narin

  • BAPI for to change two attributes of a bupa

    Hi!
    Someone knows the best BAPI for to change this attributes of a business partner?
    The SEND MEDIUM and Supplier Purchasing Data, where have the field of PO CURRENCY.
    I'v try to use some bapis, but no sucess.
    Tnx!

    Hi
    Seems like a bug in the system.
    <u>Please go through the SAP OSS Notes as well.</u>
    Note 667327 - BBPGETVD/BBPUPDVD: Transmission medium fax not transferred
    Note 790546 - ROS: Supplier currency is not updated
    Note 885458 - SRM partner maintenance: 'Add to invoicing party' is missing
    Note 799072 ROS: Releasing a supplier fails
    Note 916702 - ROS: Using the supplier directory to create a supplier
    Note 918510 Time dependency of the business partner as of SRM_SERVER 550
    Do let me know.
    Regards
    - Atul

  • How to move partitions/sub-partitions into a different tablespace?

    Hi Uisng oracle 1..20.3 and have a range-hash partitioned table using interval partitioning - code below.
    Works fine just one problem.
    we wish to move the system geneerated partitions to different tablespaces later and also rename th epartitions.
    When try assign partition to a different tablespace get the folloiwng message
    alter table por_rt move partition SYS_P2283 tablespace bi_dw_data
    get message ora-14257 - cannot move partition other than range,list, system or hash partition.
    How can we avoid this.
    We we need to move all the subpartitions first?
    Tried this
    alter table move subpartition SYS_SUBP2269 tablespace bi_dw_data;
    but get message ora-01735 message invalid statement
    -- Create table
    create table POR_RT
      plant_issue_id    NUMBER not null,
      pf_run_num        NUMBER,
      partitioning_date DATE
    partition by range (PARTITIONING_DATE)
    subpartition by hash (PLANT_ISSUE_ID)
      partition PART_200912 values less than (TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace BI_SUPPORT_DATA
        pctfree 10
        initrans 1
        maxtrans 255
        subpartition SYS_SUBP2261 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2262 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2263 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2264 tablespace BI_SUPPORT_DATA
      partition PART_201001 values less than (TO_DATE(' 2010-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace BI_SUPPORT_DATA
        pctfree 10
        initrans 1
        maxtrans 255
        subpartition SYS_SUBP2265 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2266 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2267 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2268 tablespace BI_SUPPORT_DATA
      partition SYS_P2273 values less than (TO_DATE(' 2010-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace BI_SUPPORT_DATA
        pctfree 10
        initrans 1
        maxtrans 255
        subpartition SYS_SUBP2269 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2270 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2271 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2272 tablespace BI_SUPPORT_DATA
      partition SYS_P2283 values less than (TO_DATE(' 2010-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace BI_SUPPORT_DATA
        pctfree 10
        initrans 1
        maxtrans 255
        subpartition SYS_SUBP2279 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2280 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2281 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2282 tablespace BI_SUPPORT_DATA
      partition SYS_P2278 values less than (TO_DATE(' 2010-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace BI_SUPPORT_DATA
        pctfree 10
        initrans 1
        maxtrans 255
        subpartition SYS_SUBP2274 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2275 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2276 tablespace BI_SUPPORT_DATA,
        subpartition SYS_SUBP2277 tablespace BI_SUPPORT_DATA
    );Edited by: user5716448 on 22-Mar-2013 04:49

    you can not move composite parition directly you need to move subpartition using this statments
    alter table <tablename> move subpartition <sub partition name > tablespace <tablespace name>;
    than change partition tablespace using
    ALTER TABLE <table name> MODIFY DEFAULT ATTRIBUTES FOR PARTITION      <partition name> TABLESPACE <tablespace name>;

  • Setting screen attributes for select-option in subscreen

    Hello SDN Community,  I have researched this extensively in forums and found much helpful information in getting the select-option working in a subscreen.  Also found information that discussed using standard AT SELECTION-SCREEN statements to process the sub-screen with. 
    I encountered problems when that from the LOOP AT SCREEN within the AT SELECTION-SCREEN OUTPUT,  I set the INPUT/OUPUT attributes to zero, the field was still open for input when it displayed.  For when I do this on other fields of my screen, they are "greyed out".
    Has anyone any experience setting field attributes from within loop at screen for embedded select-option subscreen?  Would appreciate any insight you might have.
    Thank you,
    Dean Atteberry.
    P.S.- I put this thru the debugger and I can see the INPUT and OUTPUT attributes getting changed.  But when displays, it is like the change didn't happen.
    Full description of my processing below...
    I have a screen with four radio-buttons.  Under the first radio-button is my embedded subscreen with one SELECT-OPTION for AUFNR.  Under the other three radio-buttons are single fields declared regular way in main screen.
    In my PBO of main screen I have loop at screen that enables/disables INPUT and OUPTUT attributes based on which radio-button is selected.  This prevents confusion from user entering values in fields other than the one the radio-button is selected for.
    For my embedded select-option subscreen, I have an AT SELECTION-SCREEN OUTPUT statement in which I have a LOOP AT SCREEN.  Within that, based on radio-buttons, I either enable or disable the INPUT and OUTPUT attributes for the S_AUFNR-LOW and S_AUFNR-HIGH fields.
    Edited by: Dean Atteberry on Mar 25, 2009 4:39 PM

    >> I think that you are trying to change select options within main screen, whereby it should be
    >> changed in PBO of that subscreen. You said you do it in AT SELECTION-SCRREN OUTPUT which
    >>  will be only applicable for selection screen (I guess your main screen here). Do loop at screen in
    >>  PBO module of this subscreen not in PBO of the selection screen and see if that helps.
    Hi Marcin,  thank you for your reply.  My "main screen" is not my "selection screen".  Please allow me to further clarify...
    My "main screen" has four radio buttons with a subscreen area under the first one and single fields under the others.
    My "subscreen" is auto-generated by Selection-Screen and Select-Options statements which are in my TOP module.
    I call my auto-generated select-option subscreen in my PBO with...
         call subscreen sca_ordr including sy-repid scr_0121.
    and in my PAI with...
         call subscreen sca_ordr.
    In order to do LOOP AT SCREEN for my system-generated select-option subscreen, I use the AT SELECTION-SCREEN OUTPUT event in which to put my loop. 
    When I walk thru this in the debugger, I can see it setting INPUT/OUTPUT fields to zero, but when the screen displays, there are no changes to my subscreen....  Fields should be "greyed out" instead they are open for intput.
    Doing my best to accurately describe in as few words as possible.  Thank you for your ideas!
    Dean.

  • Dynamically Changing Location Attributes

    Hi All,
    Has anyone ever successfully set up a BefConsolidate event script with a dynamically changing location attribute. The FDM Admin manual says you can do this:
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup=”MyNewEntityGroup”
    It does not work for me when I sub in a new Validation Entity Group. Has anyone had luck with this? See my actual code below. The new validation group name is 281.
    Sub BefConsolidate(strLoc, strCat, strPer, strTCat, strTPer, strEntGroup)
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup="281"
    End Sub
    Thx,
    Mike

    Hello,
    Yes I am able to write to file before end if.  I also took out end if statement which to me would me FDM would fire the event for all locations without restriction.
    I have not tried the same code in other event script.  Would that work?  The RES statement specifically relates to a consolidation trigger.  I can try another event to see.
    Thanks.

  • I need help setting Win7 Advanced attributes for the USB drive connected to my EA4500 router

    I can drill down to the Permission Entry for [foldername] window for a folder on the USB drive. There I learn that user group Everyone does not have the Full Control permission box checked. When I check the box and then click Apply, I get an Error Applying Security window. If I click Continue there, I get a Windows Security window that says "Unable to save permission changes on [foldername]. Access is denied." with no way out but an OK button.
    I have Administrative authority in Win7, but maybe I need to know some Unix voodoo to come to terms with my router-mounted drive. I put the drive on the router to make always available, and I'd like to get it to work. For example, I can't turn the archive bit off for any file or folder on that drive when it's mounted on the router. Not with ATTRIB -A and not with XCOPY /M.
    Just to stuff it in my face, XCOPY /M returns a two-line error message for every sub-folder that exists in the target folder:
    Access denied
    Unable to create directory - foldername
    Help! And thanks in advance.
    :+)
    Solved!
    Go to Solution.

    Bill Dennes,
    (Solutions/Work-Arounds below this paragraph, but sets up some useful information.)
    As for the Security tab, I'm unsure of exactly why it doesn't appear on the tab itself for folders; however, clicking "Advanced -> Change Permissions -> Edit" will display the permissions; although, this doesn't appear to be a part of the problem in a sense. Additionally, “Everyone” always only has read & execute and is also not a part of the issue. To go further with this, the only users that have delete permission are “0” and “root” and since we can delete, we “should” be logged in as one of them and as such have “Full Control.”
    As for the drive type, I'm unsure of why it "changes" it from FAT32 to NTFS (probably something to do with how it handles permissions); however, this is also not a part of the issue.
    I have a flash drive formatted to FAT32, albeit only a 4GB and on an EA6500 with secure sharing enabled, that it does these both to and "xcopy testfolder Y:\ /e /m" works on it when all files and folders have the A attribute; however, disabling secure sharing makes it fail.
    I’ve looked further into this and there are three ways I know of, as of right now, to make copying files with the bat file work for you:
    The first way is to enable secure sharing and map the drives using it, once that is done you won’t need to enter the password again and your script will work as you currently have it coded. Given you have no need for the secure sharing, but it’s a simple solution. This is also the only way to be able to modify any attributes, although the only ones I know of that it will accept are R and A.
    The second way is to instead use ROBOCOPY with the options /e, /m, and /copy:dt.
    For example: "robocopy testfolder Y:\ /e /m /copy:dt"
    /e = Copy subdirectories, including empty ones. (or use /S which will not copy empty folders)
    /m = Copy only files with the Archive attribute and reset it.
    /copy:dt = Copy data and timestamps, does not copy attributes, security, owner info, or auditing info.
    The only important option to use is /copy:dt, the others can be replaced with whatever you need. Note that things like Song Author will still get copied as they are a part of the data section. I don’t believe XCOPY supports doing this, and in either case robocopy is a better solution that comes with Windows Vista and up, and can be gotten for those below Vista.
    The third way is to add a section to the script to remove attributes from all folders before using xcopy to copy to the NAS, or modify the section that is causing the folders to have the A attribute as xcopy will gladly still copy them with /E or /S enabled.
    The issue seems to be that when secure sharing is off, the server refuses attribute changing of folders, which is what is causing XCOPY to fail, as I suspect it attempts to change the attributes on the folders. Similarly, using robocopy without /copy:dt will also fail but gives you “Error 5 … changing file attributes [folder/path] Access is denied”. This is why I suspect that when XCOPY says “unable to create directory” that it is actually trying to change the attributes of the directory. Furthermore, it seems that the reason this works while secure sharing is on is that while it is on, the server pretends to accept the attributes but in reality ignores all attributes besides R. The server then adds the A attribute to all files put onto it, which you can only modify when secure sharing is enabled for some reason. The exception to this is that in either case, any file with the “H” (hidden) attribute, will not be copied, even if explicitly told to copy it. (This is true for both robocopy and xcopy; you also cannot manually add it afterwards.)
    Is there an issue with the files on the NAS having the A attribute? If so the only way I currently know of to get rid of it is to enable secure sharing and have the script remove the attribute after copying. For example, when you look at the permissions, the user "0" and “root” have full control as I've previously stated. You can tell Windows to specifically use one of them when mapping the drive, which in turn should give you full control; however, the server still refuses modifying attributes without secure sharing on for some strange unknown reason. Although, I am no "UNIX gearhead," so there may in fact be another way that I do not know of. The only time they are not listed as “Full Control” on my end is when a file was previously marked Read-Only, in which case they all share the same limited control. When I said in the beginning that the permissions are not a part of the problem in a sense, it’s more of that for the general case of what you need to do, they aren’t the problem as long as you don't need the R attribute and having the A isn't an issue, as it seems to be more of the server is refusing attributes even though we should have permission; however, they do appear to be a bit weird and are possibly displaying incorrect when secure sharing is disabled.
    I'd like to apologize in advance for any unclear, weirdly stated, or just plain odd things said in this post as I was pulled away to do a bunch of things and ended up editing, adding things, and finishing it late into the night and hope that one of the above is an acceptable resolution to your issue.

Maybe you are looking for