How to Use Partitioning in Mappings

Hello All.
Please could you you help me on this one.
I am using OWB9.2, and would like to use partitioning in one of the mappings.
It is a simple mapping which maps from one table into another going through transformations and aggregations on the way
I would like to use the partitioning capabilities of owb so that it uses the partitioned table which is acting as the source.
I have checked all the options in the configuration for the mapping, but which option should I use!
Please Help!
Thanks again.
Kind Regards
Saif
from a very wonderfully wet Sydney, OZ
(We need the Rain!)

OWB currently supports hash and range partitions. Use hash partitions if you want the database to partition your data automatically (by generating and managing hash keys based on the partition key column you define). Use range partition if you want to control how data is partitioned in the table (partitions will be created that contain a range of values in the partition key column, for example if the partition key is date_created, you can decide that partition 1 contains records where date created is between january 1 and march 31, p2 dates between april 1 and june 30 etc.).
The partition parameters can be found in the configuration pannel of the object - right-click on the object and select configuration. There you will find the partition keys, hash partitions and range partitions entries. Click on the white space to create partitions (this is kind of unintuitive...).
For more details, take a look at the users guide, chapter 5 - Configuring Objects (http://download-west.oracle.com/docs/html/B10996_01/05config.htm#1124708).
Regards:
Igor

Similar Messages

  • How to use partition by instead of group by?

    Hi,
    I am having trouble using partition by clause in following case,
    column other_number with null values contains 10 records in 'some_table'
    5 records with date 11-01-2009, item_code = 1
    5 records with date 10-01-2009, item_code = 2
    This query returns all 10 records, (which suppose to return 2)
    SELECT count (a.anumber) over (partition by TO_char(a.some_date,'MM'), a.item_code) AS i_count, a.item_code,
    TO_char(a.some_date,'MM')
         FROM some_table
         WHERE to_char(a.some_date,'yyyy') = 2009
         AND a.other_number IS NULL
    Works fine if I wrote like this,
    SELECT count (a.anumber) AS i_count, a.item_code,
    TO_char(a.some_date,'MM')
         FROM some_table
         WHERE to_char(a.some_date,'yyyy') = 2009
         AND a.other_number IS NULL
    group by TO_char(a.some_date,'MM'), a.item_code
    How to use partition by in this case?

    Hi,
    Almost all of the aggregate functions (the ones you use in a GROUP BY query) have analytic counterparts.
    You seem to have already discovered that whatever values are returned by
    an aggregate funcition using "GROUP BY x, y, z" can also be found with
    an analytic function using "PARTITION BY x, y. z".
    Aggregate queries collapse the result set.
    The aggregate COUNT function:
    SELECT    deptno
    ,         COUNT (*)   AS cnt
    FROM       scott.emp
    GROUP BY  deptno
    ;tells how many of the 14 employees are in each of the 3 departments.
    So does the analytic COUNT function:
    SELECT    deptno
    ,         COUNT (*) OVER (PARTITION BY deptno)   AS cnt
    FROM       scott.emp
    ;but the first query produces 3 rows of output, the second query produces 14.
    You could get 3 rows of output using the analytic function and SELECT DISTINCT , but it's inefficient.
    Which should you use? Like so many other things, the answer depends on what data you have, and what results you want from that data.
    If you want collapsed results (one row per group), that's a striong indication that you'll want aggregate, not analytic functions.
    If you want one row of output for every row in the table, that's a strong indication that you'll want analytic functions.
    If you have a particular question, ask it. Post some sample data and the results you want from that data, as Rob said.
    There is another important difference between aggreate and analytic functions: analytic functions can easily be restricted to a window , or subset, of the data set. This is something like a WHERE clause, but a WHERE clause applies to the whole query: a wondowing condition applies only to an individual row.
    If you need to compute a SUM of rows with an earlier order_date than this row or an average of the last 5 rows, then you proabably want to use analytic function.

  • How to use Partitioning in SAP BW 7.0 on infocubes

    Hi ,
    I want to do partioning on my infocube but i have already loaded a data incube
    So is it possible to perform partioning  on that cube?
    Is it mandatory to have infoobject as time dependent to perform partioning?
    Thanks
    Ajit

    Hi Ajit:
      Take a look at the PowerPoint Presentation and Transcript by Ron Silberstein.
    "Partitioning and Multi-Cubes in BW 2.0B"
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a22eb490-0201-0010-3eb4-8ed350347cbb
    Regards,
    Francisco Milán.

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • How do i partition external hard drive using mac

    how do i partition my external hard drive on mac? can i use it as time machine disk as well as external drive?

    You can use an external disk for store files and for Time Machine, but you have to create a second volume.
    To create volumes on the external disk, use Disk Utility. See > http://pondini.org/OSX/DU3.html I recommend you to put as much space as you can for the Time Machine volume, because backups consume a lot and Time Machine starts deleting backups when the external disk is full

  • How to use SQL OVER and PARTITION BY in OBIEE Expression Builder??

    Hi there,
    I want to create a new logical coulmn with the following SQL query.
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )
    How to use the OVER and PARTITION BY in OBIEE Expression Builder??
    Thanks in Advance

    hi bipin,
    We cant use by in Expression builder(rpd) .But use the same formula like this in Fx of answers
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) >OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )SUM(Inventory Detail.Qty by Detail,ITEM,Mydate)/SUM(qty by detail,item)
    First check the numerator whether it was giving correct results or not then go with denominator
    compare the results with sql that u have
    Let me know if that does work
    thanks,
    saichand.v
    Edited by: Saichand Varanasi on Jul 27, 2010 9:27 PM
    Edited by: Saichand Varanasi on Jul 27, 2010 9:28 PM

  • How to use BootCamp if there are allready few partitions

    Hello!
    I've been using my iMac for about a year now. And I do need 3 partitions on my HDD. I cannot work with only one. Now i have to install Windows on my machine I've tried to do it with BootCamp, but it says, that i have to have only one partition. Is it the only way? Or can I somehow do it on my self. I mean, i have now 4 partitons, one of which is FAT and actually ready for installing Windows. I've got those extra-files on a USB-thumbdrive provided by the BC-Assistent and i've got the Windows-DVD. Please tell me how could i install it.

    Successful setup of OS X Lion + Data Partition + Bootcamp Win7
    https://discussions.apple.com/thread/3293948
    Yes, I have got the same problem that Windows 7 destroyed the OS X partitions. After installing on 4 Macs I found the clue why Windows destroyed the OS X partitions: You cannot have a disk with more than 4 partitions in Windows 7 because it is booted via the MBR partition table. And I had five partitions:
    Install OS X Lion on a single partition hard drive.
    Delete Recovery Disc from Lion OSX over the terminal, Boot DVD or whatever u wanna use (Partition is around 600 Mb)
    Run Bootcamp Assistant.
    Made a 100GB Bootcamp partition for Windows.
    When prompted for install disc, STOP installation and quit Bootcamp.
    Launch Disk Utility. Look at the 2 partitions.
    Shrink Mac OS X partition to 100GB.
    Click on + to create a 3rd partition in free space.
    Quit Disk Utility.
    Insert Windows 7 installer DVD and restart Mac.
    After the startup chime, hold down OPTION key.
    Wait a while until the Windows 7 DVD appears and select it.
    Mac should start up from DVD. Start installing Windows 7.
    Format the Bootcamp Partition with NTFS Fileformat (when prompted where to install Windows 7, otherwise u can't select the Drive).
    Continue until finished.
    Load Bootcamp drivers with Mac OSX Snow Leopard DVD (Bootcamp is not on the burned Lion DVD) or download them and burn them to DVD.
    When finished, restart and log into Windows 7.
    Continue installing your applications. Do activations.
    When finished, restart, holding down the OPTION key.
    You are done. You should now see your OS X Lion and Win 7 partitions.
    Install OS X Lion on a single partition hard drive.
    Run Bootcamp Assistant.
    Download drivers for Mac and burn to CD.
    Make 60GB Bootcamp partition for Windows.
    When prompted for install disc, STOP installation and quit Bootcamp.
    Launch Disk Utility. Look at the 2 partitions.
    Shrink Mac OS X partition to 100GB.
    Click on + to create a 3rd partition in free space.
    Split that partition into however many other partitions you want.
    Quit Disk Utility.
    Insert Windows 7 installer DVD and restart Mac.
    After the startup chime, hold down OPTION key.
    Wait a while until the Windows 7 DVD appears and select it.
    Mac should start up from DVD. Start installing Windows 7.
    Continue until finished. DO NOT connect to internet.
    Load Bootcamp drivers CD that you burned and install.
    When finished, restart and log into Windows 7.
    Continue installing your applications. Do activations.
    When finished, restart, holding down the OPTION key.
    You are done. You should now see your OS X Lion and Win 7 partitions.
    Again, the key is creating your extra partitions AFTER you make the Bootcamp partition but BEFORE you install Windows. And once Windows is installed you CAN NOT make any modifications to any partition.

  • How can use row_number() over partition by plz provide some doc.

    row_number() over (partition by)
    what is this and how can use it in sql query.
    if ur have any documentation of it. plz give...me..
    thanx sir
    thanx in advance.

    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions105a.htm
    SELECT empno, deptno,
    row_number() over (partition by deptno order by empno) rn
    from scott.emp
         EMPNO     DEPTNO RN                                    
          7782             10     1
          7839             10     2
          7934             10     3
          7369             20     1
          7566             20     2
          7788             20     3
          7876             20     4
          7902             20     5
          7499             30     1
          7521             30     2
          7654             30     3
          7698             30     4
          7844             30     5
          7900             30     6Regards
    Dmytro

  • Clarification on how to use Xserve Raid and Fibre Channel without xsan.

    First let me apologize for not responding earlier to your response, I tend to get busy and then forget to check back here.
    Tod, the answer to your question is No, only one computer is accessing the xserve raid files at any one time and that is via Fibre Channel. However I do have the xserve raids set up as share points via ethernet.
    Maybe I should turn that off and only access the files with the one computer that can connect via fibre channel.
    I never thought of that. I will try that while I await for your answer, thanks again.
    Todd Buhmiller
    I have the following setup:
    Xserve: 2x2Ghz Dual Core Intel Xeon, 5Gb of Ram, Running 10.5.8 Leopard Server
    Xserve Raid with firmware version 1.5.1/1.51c on both controllers, and
    Qlogic Sanbox 5600
    Apple Fibre Channel Cards in Xserve, and Mac Pro Tower; Apple 2 Port 4Gbs Fibre Channel Card
    Mac Pro Tower-Quad Core Intel Xeon 2.8Ghz, 16Gb of Ram, Running Snow Leopard 10.6.4
    Here is the problem.
    The directory for the xserve raids keep getting corrup, and I use disc warrior to rebuild them. Is there a way to keep the directories from getting corrupt? I am a few pieces of equipment before I can build an Xsan as that is the ultimate goal, but until then, I just need to be able to have the raids funciton as storage without having to rebuild the directories all of the time.
    Anybody have any suggestions?
    Thanks
    Todd Buhmiller
    Widescreen Media
    Calgary, Alberta Canada
    Tod Kuykendall
    Posts: 1,237
    From: San Diego
    Registered: Oct 11, 2000
    Re: Xserve Raid Mounts, Corrupt Directory tired of rebuilding directory
    Posted: Jun 27, 2010 1:25 PM in response to: Todd Buhmiller
    Are multiple computers accessing the same data on the RAID at the same time?
    If so then NO. This is the source of your data corruption and I'm surprised if you were able to get all your data back every time if this is how you've been running your system. Each fibre channel assumes it has full and sole control of every volume it has mounted, no data arbitration is practiced and data corruption will occur if this assumption is wrong.
    The only way this set-up will work is to use partitions or LUN masks so the volumes are accessed by one computer at any time. As long as one computer relinquishes control before another mounts it you will dodge arbitration issues but this is a dangerous game. If you screw up and mount an already mounted volume - and there is no easy way to tell if a volume is mounted - corruption will then occur. Sharing data simultaneous at fibre speeds is what XSAN does and to do this you need it.
    HTH,
    =Tod
    Intel Xserve, G5 XServes, XRAID, Promise

    +The xserve raids will mount automatically to any computer that I connect the qlogic fc switch to+
    This is source of the corruption to your data. Any computer that attaches to a drive/partition via fibre channel assumes that it alone is in control of the drive and data corruption is inevitable.
    +Is that the issue, should I disconnect the xserve from the fc switch and leave it connected via ethernet?+
    Short answer: YES. The ethernet connections are fine because the server is controlling the file arbitration through the sharing protocol. Fibre channel connections assumes complete control over the partition and no arbitration of the file access is performed. It's like two people independently driving trying to drive the same car to different locations.
    Depending on your set-up it is possible for the two machines to see and use different parts of the Xserve RAID storage but they cannot access the same areas without SAN doing the arbitration.
    Hope that's clear,
    =Tod

  • How to use BC4J with JDeveloper 9i in a Team

    Hello
    I'm not sure if I'm to stupid, but to say the truth I didn't found the clue how to share a BC4J Application between several develeopers. Maybe someone can give me a hint.
    That's my situation:
    Our team is going to develop a web application using BC4J and BC4J-JSP, nothing special I think.
    But my problem is, that BC4J and especially the wizards refer to a lot of different files. Even simple changes often result in multiple files being changed in different parts of the project.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.
    So it is not easy to find parts of code from which I can say they are owned by one developer and others which are owned by another. Most often, if you have to merge the work of different developers, you have to edit the BC4J-XML-Files using an external editor. Or did someone find a better way? Please tell me!
    So, what is the best way to share code between developers?
    Should I partition the application by packages?
    - advantage:
    it allows a fine partitioning
    - disadvantages:
    it has the great danger that BC4J makes changes in other packages which will be overseen when merging.
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.
    Thanks in advance
    Frank Brandstetter

    Hi,
    I'm not sure whether my answer is good enough for you, but it might help.
    First of all, you have to use JDev 9.0.3, because 9.0.2 has big problems with associations/view links between objects in different projects.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.This is not completely true in 9.0.3, as you may choose not to create an accessor in the imported object (and usually you don't need it neither!). As for bc4j.xcfg, there is a trick: define a "standard" database connection name to use all over your project! This will prevent modifying these files all the time!
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.I would say, projects for each application component, which by chance will be managed by a single developer at a time.
    As for the disadvantages, in 9.0.3 you are able to properly create associations and links using read-only objects. Hopefully, the release version will solve some generation inconsistencies...
    Concerning the errors that occur when modifying a library, this might be balanced by the relative independence of the components... If you are able to develop following the dependency tree, you will not meet the problem very often.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.Indeed, I do not have a SCMS really able to manage merges in the BC4J XML files... We rather try not to arrive there!
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.I really hope that my hints will help.
    Regards,
    Adrian

  • How to use a jdbc driver in caf

    Hi, all.
         I tried to make a ws to access DB with CAF, but I had no idea how to use a jdbc driver(.jar).
        Can anyone do me a favor? Thx 
        PS: my server is ce7.1
    Edited by: Louis HUANG on Jul 27, 2009 1:09 PM

    hi
    If you want to interact with db tables in caf,try like this.
    it may work..
    Using EJB call database tables using jdbc driver.
    Expose EJB as webservice.
    and using External service option of caf utilise this webservice in caf,do the necessary mappings..
    you can search in sdn,how to call DB tables in EJB..
    Regards
    sowmya.

  • HT201250 How do I partition my Time Machine back up drive (G-Drive) to back up both my IMac and my MacBook Air?

    How do I partition my Time Machine back up drive (G-Drive) to back up both my IMac and my MacBook Air?

    That's not needed, but if you want to do it, use the Disk Utility in the /Applications/Utilities/ folder to create a new partition.
    (70423)

  • How do i partition a hard drive

    How do I partition an external "my Passport" hard drive that I have already formatted for pc use so that I can use it with my MB Pro?

    Select the Desktop icon of the drive. Press COMMAND-I to open the Get Info window. In the top panel you should see displayed something like this:
    Look to see what's displayed for Format.

  • How to use an external hard drive on a MacBook Air?

    Hi there.
    Recently I bought a portable USB external hard drive for my MacBook Air due to my full startup disk. I also bought multiple disks for the hard drive. I inserted the disk, hooked up the USB, and did everything properly. When I first hooked it up, I lost all internet files that I had saved. All images, videos and downloads (such as Minecraft and other gaming downloads) from the internet were gone and unable to find.
    Now, I don't want to make the wrong move and lose all of my internet files again, so I am asking how to transfer files SAFELY to the USB without any files being deleted. I tranfered files before, but they were just short cuts to the original file, so I am also asking how to fix that as well. My Dad was a computer technician, although he didn't work for Apple, so he doesn't know how to use the USB.
    I've tried everything to find my internet files, but nothing. If there is a way to get them back, I'd be glad if you shared that with me. My dock files aren't working due to this insanely full startup disk, so I'd appreciate it if you could tell me ASAP how to use the USB, how to SAFELY transfer files without them turning into shortcuts, and how to get my internet files back.
    Thank you very much.
    P.s My OS X version is 10.8.3 (Not with Mountain Lion)

    You cannot format a drive so that files will be automatically put on that drive when you run out of room on another drive. Transferring the files must be done specifically by you. You will need to learn how to manage free space on the SSD because 64 GBs is a bit small for much more than OS X.
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?

    How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?
    I want to install the latest OS, but I already know that I will lose a lot of my software unless I can partition the hard drive and have two "bootable" drives.
    How do I retain everything I have, partition the drive, then reloa the software I own according to which OS it will work under?

    msmedia wrote:
    I do not currently own OS X ML.
    I am currently running OS X (10.6.8 Snow Leopard) on my MacBook Pro. It has a 2.8GHz Intel Core 2 Duo Processor. I want to upgrade to Mountain Lion, but many of my software titles will not operate with ML and I cannot afford to replace some of them (Adobe Creative Suite, for e.g.)
    After I back-up my HD and then partition the HD, how do I use the back-up to reinstall what I want to the SL partition, and then place the rest on the ML partition.
    I have not done what you want to do, so can only offer some general thoughts in support. Take value from the following where you can. No guarantees.
    If it was me, I would use a disk clone utility (e.g. Carbon Copy Cloner) to image the existing Snow Leopard disk to an external drive. Then verify that the external drive would boot and run Snow Leopard normally.
    I would then purchase and download the Mountain Lion upgrade installer, but not run it. Use Lion Diskmaker to make a bootable USB stick, and perform a clean install of Mountain Lion, replacing the Snow Leopard on your MBP. This way, you make absolutely certain that no third-party drivers or other SL cruft remains to make Mountain Lion unstable. Update to latest ML point release. Fix permissions. Let TimeMachine make a full backup of your ML installation to a different external drive. Then turn of Time Machine.
    In Disk Utility, use the + sign at the bottom of the ML partition to add another GUID, HFS+ Journaled partition for Snow Leopard. Resize to taste. Name it differently from your ML partition. Exhale.
    Now ideally, you would like to reverse the external clone and put it back into the new SL partition. Then fix permissions. And demonstrate that you can boot into individually stable OS X installations. This would save you alot of work. Resist copying your home directory into ML just yet.
    If you cannot successfully achieve the preceding paragraph, you will be faced with a full SL and application reinstall.
    The ~/Library contents for SL and ML are sufficiently different that you do not want to mix them. You may want to salvage Safari bookmarks.plist. And, ML created folders in the home directory may have different permissions or ACL settings than in SL. So, my rule of thumb would be to copy folders that you created in SL, and only the contents of matching named OS created folders such as Music, Pictures, Downloads, etc.
    For each operating system, you probably want the Time Machine settings to exclude the opposite OS X partition. If you use the same host name in Sharing prefs, then you will mix SL and ML backups on the same Time Machine back up drive. If you use different host names, they will be distinct folders in the Time Machine backups.backupdb and allow discrete restores per host. You may also want to gag Spotlight from indexing the opposite OS X partition.

Maybe you are looking for