Dynamic partitioning in 10g -

Hi,
I am on 10g and need to implement dynamic partitioning.
In a table based on a column I need to implement dynamic partitioning .
id
name
value
1
name1
val1
2
name1
val2
3
name2
val3
4
name2
val4
5
name2
val5
From the above table for each name uniquely (i.e for name1 ,name2 ) different partitions have to be created.
If a name3 is added a new partition has to be created dynamically.
If the column value is deleted (if name1 is deleted) the relevant partition should also be deleted
Please suggest on how to achieve  this .
Thanks

Dynamic partitioning isn't available in Oracle 10g. It's there starting with 11g with the name 'Interval Partitioning'.
If a name3 is added a new partition has to be created dynamically.
If you are on 10g, the only option you have is to create partitions ahead of time. Oracle won't create it for you dynamically.
If the column value is deleted (if name1 is deleted) the relevant partition should also be deleted
This too would have to be done manually. If you delete a particular row or even entire set from the partition, the partition still exists. You need to drop the partition explicitly. It can be truncated as well. And this remains same in 10g and 11g.
Having said that, partitioning in general a feature of DWH. You truncate entire partition and load it back again. Updates and deletes for a small set or a single row, in general, is not a feature that normally goes with the partitioning.
Thanks,
Ishan

Similar Messages

  • Dynamic partitioned Hard Driver cannot be accessed when connected by USB 3.0 Enclosure

    Hi Guys,
    Here is my issue.
    There is a 2TB SATA Hard Drive, formatted to NTFS with 64KB chunk size blocks. The partition type is dynamic. 
    I removed the drive from a system and brought it to another location. 
    This time is is connected via USB 3.0 enclosure, which I know it works and it was tried with different hard drives with no issue.
    The Windows is 8.1. It sees the disk but cannot Reactivate it. It shows the reactivate option, but when you select it you see a message:
    Virtual Disk Manager
    This operation is not allowed on the invalid disk pack. 
    OK   
    I understand that USB dynamic disks might not be supported, but the scenario above is valid.
    My question is how to bring the partition online using USB enclosure? 
    Is there a registry workaround or other which involves no data loss? 
    It is very pity not to allow using USB 3.0 when you have a dynamic partition. I do not see any physical limitations to do so.
    Thanks for your help!

    Hi,
    As I known, whether the USB enclosure can identify the dynamic hard drive, it depends on the USB driver and USB specification.
    But to make your computer recognize this hard drive well, we have the workaround to change it to basic disk type:
    http://windowsforum.com/threads/dynamic-disk-invalid.3906/
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on
    these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions
    you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • Dynamic Partitions + Aggregation Designs. Est rows. How to handle/does it matter?

    Hi all.
    I've created a 'template' partition with an aggregation design in my measure group (the slicer criteria is where OrderDate/100 = null so as to have 0 rows in the partition).
    I use the create XMLA from this partition (inc specifying the aggregation design) to dynamically create a new partition using SSIS based on the yyyymm of the incoming facts. This all works fine.
    I have some reservations about the metadata that i'm passing as part of the create partition xmla. Do I need to specify accurate Estimated Rows? Are these actually used by the engine similar to the distribution statistics on the db engine?
    And what about the est rows in the aggregation design? I cross joined factinternetsales in adventureworks a few times to get 200mil rows to test my dynamic partition creation ETL. But when i look @ the est rows in the agg design it shows 156 (this wouldve
    been the orig amount when i built it using the wizard). Does this matter? or do i need to maintain the full rowcount in the aggregation design specification as well? And how do I do it?
    Jakub @ Adelaide, Australia

    bump.
    I'm working on something similar again and I never got an answer to this question. Are the est row counts in the partition and aggregation XMLA of any use?
    I've also noticed that the aggregation design against my dynamically partitioned measure group shows an estimated performance gain of 0%. Again, does this matter or is it just for informational purposed only
    Jakub @ Adelaide, Australia

  • Regarding Creating Dynamic Partitioning.

    Hi all
    Can we create a Dynamic partition in oracle
    Can any one suggest a way to do , so as to get this type of functionality. ?
    create table test1231 (as_date date as_name varchar2(10))
    PARTITION BY RANGE (AS_DATE)
    PARTITION AUG2008 VALUES LESS THAN (SYSDATE - 60)
    TABLESPACE TAB,
    PARTITION SEP2008 VALUES LESS THAN (SYSDATE - 30)
    TABLESPACE TAB,
    PARTITION OCT2008 VALUES LESS THAN (SYSDATE)
    TABLESPACE TAB)
    Thanks

    Hi,
    Supose you have the following table (very simple):
    -- Create table
    create table PARTITION_TABLE
      ID_TABLE NUMBER(9),
      DT_DATE  DATE
    partition by range (DT_DATE)
      partition OCT08 values less than (TO_DATE(' 2008-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
      partition NOV08 values less than (TO_DATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
      partition ENE09 values less than (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    );The following PL/SQL block add partition one month at a time (for example):
    set serveroutput on
    DECLARE
       v_high_value user_tab_partitions.high_value%TYPE;
       v_date date;
       v_date_next date;
       v_string VARCHAR2(4000);
       v_table_name user_tables.table_name%TYPE;
    BEGIN
        v_table_name = 'PARTITION_TABLE';
        SELECT high_value
        into v_high_value
        FROM (SELECT utp.high_value
              FROM user_tab_partitions utp
             WHERE utp.table_name = v_table_name       
             ORDER BY utp.partition_position DESC) WHERE rownum <= 1;
        v_string := 'SELECT ' || v_high_value || ' FROM DUAL';
        execute immediate v_string into v_date;
        v_date_next := add_months(v_date, 1);
        v_string := 'ALTER TABLE ' || v_table_name || ' ADD PARTITION ' || to_char(v_date_next, 'MONYY') || ' VALUES LESS THAN (to_date(''' || to_char(v_date_next, 'dd/mm/yyyy') || ''',''dd/mm/yyyy''))';
        execute immediate v_string;
    END;
    /Regards,

  • Can Lion disk utility dynamically partition a drive?

    Can Lion disk utility dynamically partition a drive? I see many posts that Leopard Disk utility can but nothing about Lion.

    Yes. I'll post a link to instructions. Be sure to create a full reliable backup before you begin (don't just do the backup, test the backup to be sure it's good), and the only application that should be running until the process is complete is Disk Utility.
    http://osxdaily.com/2009/11/20/resize-partitions-in-mac-os-x-with-disk-utility/
    Some people have problems resizing partitions because of the hidden Recovery HD partition. It sometimes gets in the way because Disk Utility can move it "up" but cannot move it "down".

  • SSAS 2008R2: Dynamic partitioning via SSIS - is this logic correct?

    Hi all,
    I'm setting up dynamic partitioning on a large financial cube and implementing a 36month sliding window for the data. Just want to make sure that my logic is correct.
    Basically, is doing a process update of all the dims then a process default of my facts (after i've run the xmla to add/remove partitions) enough to have a fully processed (and performant/aggregated) and accurate cube?
    Assume I have a fact that has a 'reporting month', 'location key' and then numerous measures and dim keys. It holds the revenue for that location for the reporting month.
    The reporting month can never be backdated. subsequent runs can only overwrite the current reporting month or add the next month.
    Assume the data warehouse has been loaded successfully. The warehouse holds a 72month rolling history.
    Now, to the dynamic partitioning. The fact is partitioned by reporting month and has aggregation designs.
    My SSIS package initially does a process update on all the dimensions. My understanding is that this 'flags' which existing measure partitions need to be reindexed.
    Then in my data flow:
    I run a simple query over my fact (select 'my partition ' + str(billmonth,6) AS PartitionName, count(*) as EstCount from myFact where billmonth > 36months ago group by billmonth order by PartitionName) to get a list of all the partitions that exist
    in the data warehouse and that should be in the cube.
    I do a full outer merge on the partition name with the equivalent of that but from my cube. I use a script component as a source with the following code:
    AMO.Server amoServer;
    AMO.MeasureGroup amoMeasureGroup;
    public override void PreExecute()
    base.PreExecute();
    amoServer = new AMO.Server();
    amoServer.Connect(Connections.Cube.ConnectionString);
    amoMeasureGroup = amoServer.Databases.FindByName(amoServer.ConnectionInfo.Catalog.ToString()).Cubes.FindByName(Variables.CubeName.ToString()).MeasureGroups.FindByName(Variables.MeasureGroupName.ToString());
    amoServer.CaptureXml = true;
    public override void PostExecute()
    base.PostExecute();
    amoServer.Dispose();
    public override void CreateNewOutputRows()
    try
    foreach (AMO.Partition OLAPPartition in amoMeasureGroup.Partitions)
    Output0Buffer.AddRow();
    Output0Buffer.PartitionName = OLAPPartition.Name;
    catch(Exception e)
    bool Error = true;
    this.ComponentMetaData.FireError(-1, this.ComponentMetaData.Name, String.Format("The measure group {0} could not be found. " + e.ToString(),Variables.MeasureGroupName.ToString()), "", 0, out Error);
    throw;
    (not a c# coder, above stolen + butchered from elsewhere.. but it seems to work)
    I use a conditional split to separate the rows where datawarehouse.PartitionName is null (generate XMLA to delete from cube) and cube.PartitionName is null (generate xmla to add to cube). I dont do anything with partitions that exist in both the cube and
    data warehouse.
    I then perform a process default of the measure group.
    I'm assuming this will do a 'process full' of the new unprocessed partitions, and that it'll do a process data + process index of any partitions that were modified by the dimensions' process update. Is this correct? Or do I need to do any other explicit
    processing of my measure groups to make sure my facts are 100% accurate?
    Thanks.
    Jakub @ Adelaide, Australia

    cheers, i'll switch it to use getbyname instead
    The reprocessing of the current month includes steps in the SSIS package flow that explicitly remove the data from the relational data warehouse(delete from) and the cube (XMLA delete statement against partitions)
    Yes, I do have other measures groups in the cube.
    I have five measure groups in total. Three are dynamically partitioned while the other two have a single partition.
    What will happen to new data in the two single partition measure groups? I did some further reading and now my understanding is that a process default might not process the aggregates if there are no dimension changes and new fact data arrives.
    I'm now thinking of making my data flow:
    1. execute dynamic partitioning XMLA
    2. process update dimensions with affected objects included (this'll reprocess existing dynamic partitions that are modified by any dim changes)
    3. process default 3 dynamically partitioned measure groups (this'll process any newly added dynamic partitions)
    4. process full 2 single partition measure groups - this step might redo some of the work done in step 2., but the measure groups are only a few million rows in one case and a few hundred in the other with minimal growth expected. And what you just said about
    changing data made me realise I have the sliding window in these last two implemented via the source script, so I need to do a process full here anyway.
    Jakub @ Adelaide, Australia

  • Linux Cluster File System partitions for 10g RAC

    Hi Friends,
    I planned to install 2 Node Oracle 10g RAC on RHEL and I planned to use Linux File system itself for OCR,Voting Disk and datafiles (no OCFS2/RAW/ASM)
    I am having SAN storage.
    I would like to know how do i create shared/cluster partitions for OCR,Voting Disk and Datafiles (common storage on SAN).
    Do i need to install any Linux cluster file system for creating these shared partitions (as we have sun cluster in solaris)?
    If so let me know what versions are supported and provide the necessary Note / Link
    Regards,
    DB

    Hi ,
    Below link may be useful to you:
    ORACLE-BASE - Oracle 10g RAC On Linux Using NFS

  • Dynamic query in 10g

    i am calling a report from a 10g form. i wanna to pass a dynamic query from form to report. I am able to perform this with 6i but can't using 10g. is there any way to create a dynamic query in reports 10g
    thanks

    Actually, i am creating the whole query upon based on a condition in form, then i am passing this query to report via a data parameter. following is the some part of code, which i am using
    IF :CONTROL.VOUCHER_FORMAT='S' THEN
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvno ='''||:vno||''' AND bvrm.bvdate='''||:VDATE||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE='''||:VTYPE||''' GROUP by bvdate,bvno');
    else
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvrm.bvdate BETWEEN '''||TO_DATE(:FROMDATE,'DD/MM/YYYY')||''' AND '''||to_date(TO_DATE(:TODATE,'DD/MM/YYYY')+1)||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE = '''||:VTYPE||''' GROUP by bvdate,bvno');
    end if;
    RG_ID:=CREATE_GROUP_FROM_QUERY(RG_NAME,V_QUERY);
    NUM:=POPULATE_GROUP(RG_NAME);
    ADD_PARAMETER(PL_ID,'Q_MAIN',DATA_PARAMETER,RG_NAME);
    after this code, i am calling the run_report_object normally. this code works fine with 6i, but doesn't with 10g     
    thanks

  • Partitioning in 10g

    Hi,
    We have to projects to implement. One is upgradation to 10g from 9i and the other one is partitioning 13 of our major tables. We have already partitioned 4 of them.
    Will it be safer to complete patitioning before moving over to 10g?
    What are the new features with 10g on partitioning?
    We have some tables with hybrid partitioning on them. Anything I need to keep in mind with respect to this when I move over to 10g?
    Thanks for the help in advance.

    There are couple of new partition types were added to 10g, like,
    Composite Range-Hash Partitioning
    Composite Range-List Partitioning
    For more information, you can browse the docs.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/partiti.htm
    If you want to make avail new features of 10g partitions, you can create them in 10g, or you can do the partition in 9i before you migrate.
    Jaffar

  • Linux performance for LVM vs independent partition on 10G XE?

    Hi groups,
    I am a programmer and now requested to evaluate using Oracle 10G XE to replace MySQL for some of running web application. I remember the old experience that when playing with oracle 8i with linux, the guideline said that datafile of oracle should be placed at a independent partition. I m now testing XE with SUSE Enterprise 9, which using LVM(logical volume management).
    So far there's not seen guideline that talking about if 10G XE should using dependent partition. And the case is that SUSE using LVM that application see multiple physical partitions as one logicial partition. This is totally an opposite to what Oracle intended for using independent partition. I would like is that the 4GB datafile limit make this not a concern?
    I m not a DBA, thus hoping some gurus can give me some advise. Thanks!

    You can separate the redo logs, tablespaces etc in XE onto separate disks if you want. It's a manual exercise but there is nothing to stop you from doing it.
    But as Andrea mentioned, this is largely an exercise in futility given that XE is 4 Gb of data and a single CPU. If performance is an issue then you would probably be better to use Standard Edition or Standard Edition One that gives you greater control, and also includes advanced storage management techniques such as Automatic Storage Management.
    The default install of XE should be more than adequate for the majority of usages that XE is targeted at. With one proviso - the production release will use a defined flashback recovery area (FRA) for some of the online redo logs, archived redo logs, and backupsets.
    We would strongly recommend that if you have more than 1 disk, then the FRA should be placed on a seperate disk other than the one that holds the database.

  • No swap partition on 10g DB

    I had a doubt that is a partition with the name 'swap' needs to exist on a 10g DB server for swap space to be used. My current 10g DB server does not have a partition with the name 'swap' explicitly. It has the following kind of structure.
    [root@JispNewDB scripts]# df -kh
    Filesystem Size Used Avail Use% Mounted on
    /dev/cciss/c0d0p8 48G 12G 34G 26% /
    /dev/cciss/c0d0p3 48G 22G 24G 49% /backup
    /dev/cciss/c0d0p1 99M 12M 83M 12% /boot
    /dev/cciss/c0d0p2 191G 33G 149G 18% /crestel
    none 4.0G 0 4.0G 0% /dev/shm
    /dev/cciss/c0d0p9 24G 81M 23G 1% /home
    /dev/cciss/c0d0p5 48G 6.6G 39G 15% /indexes
    /dev/cciss/c0d0p7 48G 85M 46G 1% /tmp
    /dev/cciss/c0d0p6 48G 32G 14G 70% /u01
    Does, it mean that swap space will not be used in the system? There is 16 GB of swap space otherwise on the system.
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Is command free showing swap?
    If You have linux, then You can execute
    swapon -s - this will show all swap files or partition defined on system
    look into /etc/fstabs as well to see is there defined swap partition.
    fdisk -ls will show as well.
    If above are showing swap - then You are using swap.

  • Query for inserting into dynamic partitioned table

    i want to insert into a table which is partitioned (partition name will be obtained dynamically) based on some select statement using execute immediate statement can some one help with query

    First u create table with partition.when u will insert record it will automatically enter in right partition in dynamically.
    and when u will select that record give SELECT query with partition
    Ex:
    SELECT * FROM table_name PARTITION(partition name);

  • How to Create a Dynamic Link Oracle 10g

    Hi all,
    I have a requirement like i am using the below sql query in my application
    select * from emp@testlink;Now i have 3 users i have created the seperate link for this three users.
    ex: test and work and office
    Now if test login to pc the above code will be
    select * from emp@testlink;if work entered dynamically it will be as
    select * from emp@worklink;same as office .
    @||variable||link;
    variable i have to pass it in dynamic.
    How to achieve this??
    Can anyone suggest me thanks in advance.
    Cheers,
    San..

    Did you try dynamic SQL?
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/dynamic.htm
    Something like this.... (UnTested)
    DECLARE
    v_user VARCHAR2(50);
    BEGIN
    EXECUTE IMMEDIATE 'select * from emp@' || v_user || 'llink';
    END;In your case, the link name is based on the user, you can simplify it like this
    DECLARE
    v_user VARCHAR2(50);
    BEGIN
    EXECUTE IMMEDIATE 'select * from emp@' || LOWER(user) || 'llink';
    END;You might need to use INTO clause for the select statements.
    Regards,
    Rakesh
    Edited by: Rakesh on Apr 6, 2011 6:05 PM

  • Partitioning on 10g XML DB

    Hi, So far I can partition the root element tables. This is through the xdb:tableProps a(see end of post for context). Anyway how do i get the nested tables that it generates to be partitioned as well, the xdb:tableProps is apparently ignored for these.
    If this isn't possible how would i genearate a view containing 8 identically defined tables, to give the same apparent functionality as if only the one xml table were being queried. An xsd with the problem for 3 is listed below.
    oraxdb:tableProps="partition by range
    =====================================
    - <xs:element name="jurisdictionPOI" type="cim:jurisdictionPOIType" oraxdb:SQLName="JURISDICTIONPOI" oraxdb:SQLSchema="SCOTT" oraxdb:defaultTable="JURISDICTIONPOI" oraxdb:tableProps="partition by range (xmldata.source) (partition p1 values less than ('AFQ%') TABLESPACE MNPP_DATA1, partition p2 values less than ('NSX%') TABLESPACE MNPP_DATA2, partition p3 values less than ('NTQ%') TABLESPACE MNPP_DATA3, partition p4 values less than ('QLE%') TABLESPACE MNPP_DATA4, partition p5 values less than ('SAQ%') TABLESPACE MNPP_DATA5, partition p6 values less than ('TAQ%') TABLESPACE MNPP_DATA6, partition p7 values less than ('VID%') TABLESPACE MNPP_DATA7, partition p8 values less than (MAXVALUE) TABLESPACE MNPP_DATA8)">
    xsd
    ===
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
         <xs:element name="PurchaseOrder1" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:defaultTable="PURCHASEORDER31"/>
         <xs:element name="PurchaseOrder2" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA32" xdb:defaultTable="PURCHASEORDER32"/>
         <xs:element name="PurchaseOrder3" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA33" xdb:defaultTable="PURCHASEORDER33"/>
         <xs:complexType name="PurchaseOrderType" xdb:SQLType="PURCHASEORDER_T10">
              <xs:sequence>
                   <xs:element name="Reference" type="ReferenceType" xdb:SQLName="REFERENCE"/>
                   <xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS"/>
                   <xs:element name="Reject" type="RejectionType" minOccurs="0" xdb:tableProps="TABLESPACE CPRS_DATA21" xdb:SQLName="REJECTION" xdb:defaultTable="REJECTION"/>
                   <xs:element name="Requestor" type="RequestorType" xdb:SQLName="REQUESTOR"/>
                   <xs:element name="User" type="UserType" xdb:SQLName="USERID"/>
                   <xs:element name="CostCenter" type="CostCenterType" xdb:SQLName="COST_CENTER"/>
                   <xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:SQLName="SHIPPING_INSTRUCTIONS"/>
                   <xs:element name="SpecialInstructions" type="SpecialInstructionsType" xdb:SQLName="SPECIAL_INSTRUCTIONS"/>
                   <xs:element name="LineItems" type="LineItemsType" xdb:defaultTable="LINEITEMS" xdb:SQLName="LINEITEMS" xdb:tableProps="TABLESPACE CPRS_DATA11" />
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LineItemsType" xdb:SQLType="LINEITEMS_T10">
              <xs:sequence>
                   <xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:tableProps="TABLESPACE CPRS_DATA21" xdb:SQLCollType="LINEITEM_V"/>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="LineItemType" xdb:SQLType="LINEITEM_T10">
              <xs:sequence>
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <xs:element name="Description" type="DescriptionType" xdb:SQLName="DESCRIPTION"/>
                   <xs:element name="Part" type="PartType" xdb:tableProps="TABLESPACE CPRS_DATA11" xdb:SQLName="PART"/>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
              <xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
         </xs:complexType>
         <xs:complexType name="PartType" xdb:SQLType="PART_T10">
              <xs:attribute name="source" type="xs:string"/>
              <xs:attribute name="Id" xdb:SQLName="PART_NUMBER" xdb:SQLType="VARCHAR2">
                   <xs:simpleType>
                        <xs:restriction base="xs:string">
                             <xs:minLength value="10"/>
                             <xs:maxLength value="14"/>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="Quantity" type="moneyType" xdb:SQLName="QUANTITY"/>
              <xs:attribute name="UnitPrice" type="quantityType" xdb:SQLName="UNITPRICE"/>
         </xs:complexType>
         <xs:simpleType name="ReferenceType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="18"/>
                   <xs:maxLength value="30"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:complexType name="ActionsType" xdb:SQLType="ACTIONS_T10">
              <xs:sequence>
                   <xs:element name="Action" maxOccurs="4" xdb:SQLName="ACTION" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:SQLCollType="ACTION_V">
                        <xs:complexType xdb:SQLType="ACTION_T10">
                             <xs:sequence>
                                  <xs:element name="User" type="UserType" xdb:SQLName="ACTIONED_BY"/>
                                  <xs:element name="Date" type="DateType" minOccurs="0" xdb:SQLName="DATE_ACTIONED"/>
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="RejectionType" xdb:SQLType="REJECTION_T10">
              <xs:all>
                   <xs:element name="User" type="UserType" minOccurs="0" xdb:SQLName="REJECTED_BY"/>
                   <xs:element name="Date" type="DateType" minOccurs="0" xdb:SQLName="DATE_REJECTED"/>
                   <xs:element name="Comments" type="CommentsType" minOccurs="0" xdb:SQLName="REASON_REJECTED"/>
              </xs:all>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="ShippingInstructionsType" xdb:SQLType="SHIPPING_INSTRUCTIONS_T10">
              <xs:sequence>
                   <xs:element name="name" type="NameType" minOccurs="0" xdb:SQLName="SHIP_TO_NAME"/>
                   <xs:element name="address" type="AddressType" minOccurs="0" xdb:SQLName="SHIP_TO_ADDRESS"/>
                   <xs:element name="telephone" type="TelephoneType" minOccurs="0" xdb:SQLName="SHIP_TO_PHONE"/>
              </xs:sequence>
                   <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:simpleType name="moneyType">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="2"/>
                   <xs:totalDigits value="12"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="quantityType">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="4"/>
                   <xs:totalDigits value="8"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="UserType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="RequestorType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="128"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="CostCenterType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="4"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="VendorType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="20"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PurchaseOrderNumberType">
              <xs:restriction base="xs:integer"/>
         </xs:simpleType>
         <xs:simpleType name="SpecialInstructionsType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="2048"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="NameType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="20"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AddressType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="256"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TelephoneType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="24"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="DateType">
              <xs:restriction base="xs:date"/>
         </xs:simpleType>
         <xs:simpleType name="CommentsType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="2048"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="DescriptionType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="256"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

    The view would have to be a union all view, I'm not sure how well XPath re-write would work...
    I had writen a union all view to pick from the Parents but how do i write a general view which covers the tables and all their nested tables (and their nest tables nested tables).
    Can you help me understand the volume of data you are going to be managing
    8,000,000 records in the top tables, there will be an average of 8 nested table rows per parent row foir several items.
    the particular benefits you are looking from partitioning in this case...
    We get the data from several area sources. Some of these send in a complete refresh of data weekly as opposed to a list of changes. having all the records for an area in the same block will greatly improve times for updates even if we can't blow away and the reload a partition because of the nested tables ( i know this was unavailable with nested tables in 8i )
    The option of a clever view could enable swapping by renaming tables in the view which have last weeks data and this weeks already loaded.
    Thanks for all help
    Trev

  • What is the best way to dynamically create table partition by year and month based on a date column?

    Hi,
    I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
    data? Nothing but automatically/dynamically partition should create along with file group and partition files.
    Thanks in advance!
    Palash 

    Also this one
    http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • FI Debit Note (interest on arrears) printed immediately

    Hello all. We've activated interest calculation on arrears. We use t-code FINT. The system automatically posts a debit note and prints interest calculation detail. What we would like was the following: while running fint we'd like to obtain simultane

  • ITunes has detected an iPod that appears to be corrupted...

    Then it tells me to restore it, or disconnect it and try it again. I swear I've tried this dozens of times and after I restore it I just get the same message. It's an Ipod Classic 80 GBs, problems first started occuring when I wouldn't be able to syn

  • Lost the driver to my hp photosmart plus b209a when up grade for windows 7 was done installing

    Well a few days ago my computer did an automatic upload for windows 7...Now I have no driver for my HP Photosmart Plus B209a all-in-one printer...I lost the disk like a year ago...So I went on HP and downloaded the full driver and installed it..well

  • Collecting images from imovie/idvd project

    Though now I know I should have collected all images in a folder before using in imovie project, is there any way to collect them back from the project now. I wanted to put all images used on a disc for my records.... thanks for any suggestions.

  • SAP GRC Error CX_SY_SEND_DYNPRO_NO_RECEIVER

    Hello Experts, I am trying to create a master data like (org unit, objectives, activities ....etc) in NWBC while saving the system through an exception as in the attached details following error getting 500 SAP Internal Server Error Error : screen ou