Sort of a store of data in ODI

OK - have a question; It can be ridiculously simple to do, but I got a "can't see the wood for the trees day."

We have a table in SQL Server that contains the metadata for the planning, but generations of Parent-child dimensions are not in order (and Yes, I tried the option in the IKM telling to sort data), but he's still looking at some lower level in charge until the parent has loaded (and therefore children lines get rejected). A column has been added to the source table that identifies which generation of the dimension is the Member and so I want to sort by this column in the part of the source of the interface before the metadata are loaded into the planning.

In the SQL that is issued on the SQL source, the query has a WHERE 1 = 1 at the end and so I can't create a filter to add an ORDER BY clause (another question for which uses a filter the best way to ORDER a data store in the process of charge and integration).

Someone encountered this or can point me to somewhere that shows how ODI deals with sorting of data.

Thank you

G

G
It is a question that I've met before. ODI relies on the database to be smart enough to classify the data, but it sometimes need help.
To do this, I've modified SELECT it on stage KM, making the insertion by adding an option: ORDER_OUTPUT, and then when I use the KM, in mapping, I mark the columns that I want the sorted data by with UD!... UD3 flags. Here's the code I added the select statement:

<% if (snpRef.getOption( "ORDER_OUTPUT").equals("1")) { %>
/ * Command output from the fields of UD1 UD2, UD3. */
ORDER BY< %="snpRef.getColList" ("","[cx_col_name]",="" ",",="" "",="" "ud1")="" %="">
     <%=snpRef.getColList(",", " [CX_COL_NAME]", ", ", "", "UD2") %>
     <%=snpRef.getColList(",", " [CX_COL_NAME]", ", ", "", "UD3") %>
<% } %>

Hope this helps
C

Tags: Business Intelligence

Similar Questions

  • How to use odiRef.getJDBCConnection ("WORKREP") to store the data in ODI Vars

    [blog | http://bahchis.com/2011/03/03/odi-repositories/] Sergei Bahchissaraitsev

    Hello world

    In this blog, I saw the new 11g feature to get the JDBC connection to the working repository object. I really want to use it in an ODI variable. Specifically, I want to read the current operator logs in the repository of work and store that value in a Variable ODI.

    Previously I used the topology to guide me to the correct working repository, but it's heavy. I want to go directly to the repository of current work for my connection, and the new "WORKREP" setting allows this.

    Here is my old code in a variable of ODI. This code requires a schema be installed.

    Select count (*)
    of snp_sess_task_log
    where sess_no = < % = odiRef.getSession ("SESS_NO") % >

    How can I get the same result in an ODI variable by using the odiRef.getJDBCConnection("WORKREP") function to direct me to the correct working repository? Using it would be a huge improvement to how to recover data from the operator in ODI. Appreciate your thoughts.

    Sincerely,

    Chris Rothermel

    Hi Chris,
    Thank you for interest in my blog post on [url http://bahchis.com/2011/03/03/odi-repositories/] repository ODI

    As a short response, there is no native way to do what you ask, that I am aware of the case.
    I also answered in more detail to your comment on my blog, which suggests another method using a link DB, you can follow the link to read it.

    On the procedure of Jython you write, my suggestion would be to avoid it.
    Engine in memory is a little less accessible since apart from ODI, it is harder to monitor what is happening exactly in there. I've lived and seen very bad practices involving Jython and the In-Memory engine.
    For example, the table could continue to grow at each execution of the script, probably without notice, given that this is not something that you look at every day.

    Sergey.

  • Find the store of data with more free space.

    So I'm trying to build a script to configure the virtual machine.

    I'll have it retrieve the node to keep newly available vm out based on the cluster, I said to use. I'm just using the Random function to do that then I select a node in the cluster.

    Where I have questions, how can I

    find the data store less used, based on a particular data store naming scheme.

    I want to say is:

    Hypathetically, I for example named data warehouses:

    store data-prod-01 200 GB free

    store data-prod-02 500 GB free

    free data-prod-03 10 GB store

    free data-qa-01 200 GB store

    free data-qa-02 1000 GB store

    I want to throw in a piece of code to tell him to watch data warehouses "datastore-prod *" and place the virtual machine on the store of data with the most space. (that's assuming that the vm will agree on the DS and let fresh generals)

    I guess I want to know if it is possible?

    I would also be concerned about scenario that perhaps the vm should I build just will not match on any of my other data store. I guess I need a logic to check if it is still possible.

    This is more than a wish rather than a necessity. I'm thinking if I just read the info, or use a cvs file after running the script. Any recommendations would be greatly appreacted.

    Hello, drivera01-

    You should be able to do this with a very small amount of code.  Download all data warehouses that correspond to the model name, sort free space (in descending order) and select the top one.  As:

    ## get the datastore matching datastore-prod* that has the most freespace$oDatastoreWithMostFree = Get-Datastore datastore-prod* | Sort-Object -Property FreespaceGB -Descending:$true | Select-Object -First 1
    
    ## if the freespace plus a bit of buffer space is greater than the size needed for the new VMif (($oDatastoreWithMostFree.FreespaceGB + 20) -gt $intNewVMDiskSize) {<# do the provisioning to this datastore #>}else {"oh, no -- not enough freespace on datastore '$($oDatastoreWithMostFree.Name)' to provision new VM"}
    

    The second part, where it checks for sufficient freespace on the data store that has the most free, can be updated to behave as you need, but that should be the basis.  How does this look?

  • AT100 - impossible to get my calendar to store the dates of the annual events

    Hello.

    Cannot get my calendar to store the dates of the annual events birthdays for example.
    Option gives (annual 27 July 2012), but would it be fair (27 July each year). No way to remove year so presumably won't wait that 2012 will come along! All the other choices for weekly and monthly do not specify the year.

    Annual option should I think be the same. Tried to enter next year, but comes with (year July 27, 2013) so it looks that have to enter every year which is a pain. Someone at - it ideas.

    It's my first post he hopes in the right place.

    Thank you

    Hello

    Why you n t try another Android app like for example calendar of birthday or anniversary Assistant

  • Camcorder Camileo P100 store the date and time

    My recently purchased camcorder camileo P100 store the date and time.
    Whenever it starts it must be reset because it refers to the default date.

    Has anyone else had this problem

    It looks like a camera malfunction don t think you can fix it.
    I suggest you to get in touch with the dealer and replace the cam

  • Store decimal data in table

    I have a set of data

    lets say

    "3.45, 1.21, 3.67, 1.23, 4.78.

    I want to store these data in a table. So, how would I be able to store them in table form and yet be able to view the data?


  • How to store/retrieve 'Date' using persistent data?

    Hello everyone - this is my first post on the BlackBerry Support Forums. I'm trying to provide a lot of relevant information as possible, but if I miss anytihng or I did not understand by asking what I want, please let me know.

    Background:

    I use Eclipse IDE ver 3.5.0 and BlackBerry Java plug-in for Eclipse 1.1. I build my application for BlackBerry JRE 5.0.0.

    Question:

    I want to save a "Date" field for persistent data so that I can recover and display in the format of Date once again (no chain). Here's a more detailed explanation.

    My application has three fields on the main screen. They are

    'Name' - AutoTextEditField

    "Gender" - ObjectChoiceField

    "Date of birth" - DateField

    Using persistent data to store the data entered into these fields, as described in the BlackBerry tutorials (http://na.blackberry.com/developers/resources/A13_Storing_Persistent_Data_V2.pdf), I am able to save and retrieve all of these areas, but only in 'Chain' format.

    Unfortunately, this won't work for me for the following reason.

    I create the Date of birth as follows

    "dateOfBirthField = new DateField (" BirthDate: ", System.currentTimeMillis (), DateField.DATE" ");"

    This creates an interface evolved for Date of birth, where the user can select and edit fields month, Date and year separately. When the user saves the information entered and wants to retirve it again, I want to display the date recorded in the same format so that the user can change again in exactly the same way as described above. But if I save it as a string, I can't fill in the field "Date" with the "chain" recovered. That is, I can't do something like

    dateOfBirthField.setDate (info.getElement (StoreInfo.DOB));

    Where "info.getElement (StoreInfo.DOB)" is similar to what is described in the tutorial.

    I searched the web for a possible solution, but never found any. All I found to date stored as a string and recovered just to see what was saved, but not for the changes resulting.

    Someone please let me know if what I am asking is possible. If Yes, can you please suggest a way to do it?

    Thanks in advance.

    Or it can store any object extra Long, no need to create garbage in chains.

    Long I = new Long (1234556);

    long x = i.longValue)

  • How to store/Pull date in HFM using rules

    Hi all

    Could you please suggest how to store/pull date into account server using rules HFM? I thought using the VB/excel function now() but not got the correct results.

    It would be really appreciated if you can help me with this.

    Kind regards

    Yes, I was able to get the day of the month using the day and now work (Day (Now ()). Initially I was using only NOW() but day and now all help.

    Thank you

  • Using Oracle Partition Exchange with Oracle Data Integrator (ODI) 11g

    Hello

    I'm trying to follow http://www.ateam-oracle.com/configuring-oracle-data-integrator-odi-with-oracle-partition-exchange/

    But impossible to get the same options in 11g.

    Can I use the Exchange Partition Oracle 11g ODI.

    Thank you.

    Yes, exchange of partition is certainly possible in ODI 11 g

  • The current block size for a store of data in VMFS3 is 4 MB. Must upgrade thedatastore to VMFS5 and wants to change the block size of 1 MB

    The current block size for a store of data in VMFS3 is 4 MB. Must upgrade thedatastore to VMFS5 and wants to change the block size of 1 MB

    help me on this

    Create a new data store VMFS5 with a block size of 1 MB. Migrate all virtual machines store data to the new data store, and then delete the VMFS3 data store.

  • Download the virtual machine in a store of data with powercli

    Hello

    How to list the files of virtual machine on a store of data with PowerCLI

    I have a virtual machine and I want to see all the files in a data store (such as hard,.-flst.vmdk, .log, .nvram) using powercli. Is this possible?

    TKS.

    Try the following, it uses a function of my position of friendly units .

    Function Get-FriendlyUnit {}

    <>

    . Numbers converted small binary multiples SYNOPSIS

    . DESCRIPTION the function accepts a value and him will convert

    in the largest available binary unit.

    . Author NOTES: Luc relaxing

    . Value of the PARAMETER

    The value to convert.

    This number must be positive.

    . IEC PARAMETER

    A switch to indicate whether the function should return the CIS

    Unit, or the names of the units most commonly used names.

    The default is to use the commonly used unit names.

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456

    . EXAMPLE OF

    PS > 123456 | Get-FriendlyUnit - CIS

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456,789123, 45678

    #>

    (param

    [CmdletBinding()]

    [parameter (mandatory = $true, ValueFromPipeline = $true)]

    [double []] $Value,.

    [switch] $IEC

    )

    Begin {}

    $OldUnits = "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB".

    $IecUnits = 'B', 'KiB', 'MiB', "GiB", "TiB", "PIF", "BANK", "ZiB", "YiB".

    If ($IEC) {$units = $IecUnits} else {$units = $OldUnits}

    }

    {in process

    $Value | %{

    If ($_ - lt 0) {}

    Write-Error "Numbers must be positive."

    breaking

    }

    If ($value - gt 0) {}

    $modifier = [math]: Floor([Math]::Log($_,1KB)))

    }

    else {}

    $modifier = 0

    }

    New-object PSObject-property @ {}

    Value = $_ / [math]: Pow(1KB,$modifier)

    Unit = & {if ($modifier - lt $units. {Count) {$units [$modifier]} else {'1KO E {0}' f $modifier}}

    }

    }

    }

    }

    foreach ($vm in (Get-View - ViewType VirtualMachine - property Name, 'LayoutEx.File')) {}

    $vm. LayoutEx.File |

    Select @{N = "VM"; E = {$vm. Name}},

    @{N = 'Name'; E={$_. Name.Split(' ') [1]. "Split('/') [1]}},"

    @{N = "Path"; E={$_. Name}},

    @{N = 'FileType'; E={$_. Type}},

    @{N = "Datastore"; E={$_. Name.Split(']') [0]. TrimStart('[')}},

    @{N = "size"; E = {}

    $val = get-FriendlyUnit-value of $_. Size

    "{0:n2} {1}" f $val. Value, $val. Unit

    }}

    }

  • Data store 'datastore1' is in conflict with a store of data that exists in the data center which has the same URL (.), but is back different physical storage

    Hello

    I am new to vCenter Server, so you can assume that I'm missing something obvious.

    I installed vCenter Server 5.5 and one of the two hosts of re-usable ESXi 5.0.0 connected correctly. When I try to connect to the second 5.0.0 ESXi host, I get the error message:

    Data store 'datastore1' is in conflict with a store of data that exists in the data center which has the same URL (.), but is supported by different physical storage

    I Googled it and found what I think are the best answers that are successful, but they all seem pretty unique in their situation (they have a cluster, I do not have) etc. Some solutions involve disconnecting the store of data and reconstruction of things. I would not make things worse and can live without doubt with the help of vSphere client (and not the web client) until maybe I can start again with a 5.5 installation to a new host once I have back up everything from the host unconnectable. I closed all the VM on the host of the second. I have put in maintenance mode. I've renamed the data store, all to nothing does not.

    Thanks in advance

    The problem is that a whole army could not be connected to vCenter due to the problem, the solution involving disconnection of the host apply.

    Here is how I solved the problem:

    1 use the client vSphere client heavy, connect you to the host that cannot not be connected to vCenter Server.

    2. click on the host computer, and then click the Configuration tab.

    3. click on "storage".

    4. find the offending on the right data store.

    5. right click on the data store incriminated and click 'remove '.

    6. click on 'Add storage' in the top right.

    7. follow the steps to find this data not mounted store. I gave him a new name just to be sure, even if it's probably not necessary.

  • Disassembly of a store of data in ESX5.0

    Dear friends,

    Y at - it any better I should follow to dismount a store of data from a cluster of ESXI 5.0?

    Is it as simple as rightclick the data store and select-> from?

    PS: I have already ensured that there are data store is empty. Except that this is what I should disable or worried?

    Rahul-

    Is there anyway that I can change the datastore heatbeat for new data storage?

    Yes, you can change: right-click on the cluster > change settings > > once you click on ': "Datastore pulsations", you will get ticked datastore of pulsations.» > Now you can uncheck the data store you want to remove and select another new data store that is in the list.

  • Need a PowerShell Script to list all my stores of data, capacity and VMFS format.

    All,

    I need a script to list all my stores of data, capacity and VMFS format.

    That's what I have so far but its does not give me the results I need.

    Get-Datastore - Datacenter MN_PROD | where {$_.} Type - eq "VMFS"} | Select-Object Name,@{N="VMFS version. {E = {$_.Info.Vmfs.Version}}

    Try like this

    Get-Datastore -Datacenter MN_PROD | where {$_.Type -eq "VMFS"} | Select-Object Name,CapacityGB,    @{N="VMFS version";E={$_.FileSystemVersion}}
    
  • Store of data deleted from the host, always present in vCenter?

    I had some performance issues with my iSCSI connection on my QNAP SAN, so I decided to go NFS instead. Much better now, but the old store of iSCSI ("store 1") data is still present in vCenter, even though I removed from the host.

    http://i.snag.gy/6uQs9.jpg

    I do not know I did something wrong, but what can I do about it?

    Your virtual machine has snapshots active and/or .iso or .flp mapped images to their readers of disc-CD-ROM CD / floppy drive virtual, that were on the old data store?

    André

Maybe you are looking for

  • Jughead67

    How can I stop cela my Mac to close during the download of updates? This message appears saying closing in 1 minute. Thanks for any help you could offer.

  • 140 21 Pavilion - t All in One: SSD drive expansion slot

    Lavender U motherboard has a "half-length card mini" Jack. What is a PCIe compatible location? This slot allows you to add an SSD PCIe drive to increase the capacity of drive? I was told by one person in support of HP that it would be another told me

  • Does anyone know what means AODM?

    AODM Hello Does anyone know what it means AODM. The only answer I get from google does not relate to computers. I was sent to this statement of the MYOB population. We have identified that the issue to install AODM can be resolved by applying the fol

  • Printer HP Officejet Pro 8100

    I am completely of yellow ink, so every time I also try smething rint, I get: I have a lot of black ink, but when well even I put it to print in black only... .. .he still does not print. I would use black ink B4 having to buy more cartridges.  Is it

  • Unable to connect to OnPlus 100

    Unit was working fine for a few months, but other factors, at least 2 of the resets of material were performed on this device.  The device becomes apparently an IP address from the DHCP server because I am able to ping and it appears in my DHCP reser