account hierarchy load using ODI

Hello

I need to load the account with the help of ODI hierarchy. The process would be to transform a flat table in query hierarchical (parent, child) by using a query similar to the one given below.

CREATE TABLE hierarchy_flat)
id_01 INTEGER,
name_01 VARCHAR (40),
id_02 INTEGER,
name_02 VARCHAR (40),
id_03 INTEGER,
name_03 VARCHAR (40),
id_04 INTEGER,
name_04 VARCHAR (40),
id_05 INTEGER,
name_05 VARCHAR (40),
id_06 INTEGER,
name_06 VARCHAR (40),
id_07 INTEGER,
name_07 VARCHAR (40),
id_08 INTEGER,
name_08 VARCHAR (40),
id_09 INTEGER,
name_09 VARCHAR (40),
ID_10 INTEGER,
name_19 VARCHAR (40)
);



SELECT DISTINCT id_01 node_id, NULL, parent_id, node_name name_01
OF hierarchy_flat
UNION
SELECT DISTINCT id_02 node_id, parent_id, node_name name_02 id_01
OF hierarchy_flat, WHERE id_02 IS NOT NULL
UNION
SELECT DISTINCT id_03 node_id, parent_id, node_name name_03 id_02
OF hierarchy_flat, WHERE id_03 IS NOT NULL
UNION
SELECT DISTINCT id_04 node_id, parent_id, node_name name_04 id_03
OF hierarchy_flat, WHERE id_04 IS NOT NULL
UNION
SELECT DISTINCT id_05 node_id, parent_id, node_name name_05 id_04
OF hierarchy_flat, WHERE id_05 IS NOT NULL
UNION
SELECT DISTINCT id_06 node_id, parent_id, node_name name_06 id_05
OF hierarchy_flat, WHERE id_06 IS NOT NULL
UNION
SELECT DISTINCT id_07 node_id, parent_id, node_name name_07 id_06
OF hierarchy_flat, WHERE id_07 IS NOT NULL
UNION
SELECT DISTINCT id_08 node_id, parent_id, node_name name_08 id_07
OF hierarchy_flat, WHERE id_08 IS NOT NULL
UNION
SELECT DISTINCT id_09 node_id, parent_id, node_name name_09 id_08
OF hierarchy_flat, WHERE id_09 IS NOT NULL
UNION
SELECT DISTINCT id_10 node_id, parent_id, node_name name_10 id_09
OF hierarchy_flat, WHERE id_10 IS NOT NULL
ORDER BY 1

Now my question is can do something like this in ODI? If yes how?
It would be more convenient to do this outside ODI? If Yes, then how can I automate creating the table and load using ODI...

The pointers will be appreciated.

Thanks in advance!

1) depends on the version of ODI. In ODI 11 g, that it could be done by using several datasets and UNION operator. Look at this link http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/
In ODI 10 g there are 2 ways to it - using multiple interfaces running one by one, or by implementing view in the UNION of database and 'hide' in this perspective.

(2) step ODI procedure to execute some SQL code, then you might add this step with the relevant code in your package

Tags: Business Intelligence

Similar Questions

  • Types of accounts of load using contour load utility

    I loaded a few accounts using contour load utility. What I didn't load right there, it was if the account type was income or expenditure (do not have the info at the time). I can load using the following csv file format:

    Accounts, accounts of Type

    1 ACCT, recipes
    ACCT 2, fresh
    ACCT 3, recipes

    etc etc?

    The excel file with accounts and the types that correspond to them and the file showing the accounts and their parents are also different. They both accounts of the list in a different order.

    The header would be the Type of account and the values can be fresh, revenue, asset, liability, equity, safe assumption

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Loading dimension using ODI

    Hi John,.

    When we load dimensions in an application of planning with ODI, dimension how can screenplay we set the properties.

    Take care of the dimension Scenario using ODI in the first place or only account and entity

    Hello

    Currently, you are unable to load the of member properties for dimensions, script, Version, year, period.
    In a planning application these usually don't change that often, so it shouldn't be too much a problem.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Cannot load data into Essbase using ODI

    Hi guys,.

    Help help. I have problem loading data into essbase using ODI. The error message is
    java.sql.SQLException: unexpected token: ACCOUNT in the statement [select C1_ACCOUNT "" account]

    I have a very simple flat file that are similar to the below:

    Account, resources, time, data
    Active, Na_Resource, Jan, 10
    Active, Na_Resource, 12, February

    With the same flat files, I am able to load data to load rules.


    I use 9.3.1.0 and ODI 10.1.3.4.0 essbase. I use the ODI to load members and data in the planning without any problem.


    Thank you

    Hello

    It seems to generate an extra set of quotation marks around the SQL, in my interface it generates.

    SQL = "" "select C1_ACCOUNT 'Account', C2_PERIOD 'Period', C3_RESOURCE 'Resource', C4_DATA 'Data' of the" C$ _0TestApp_testData "where (1 = 1) «»

    Note the single quotes around the account.

    If you go to the topology Manager, on the tab of the physical architecture, right-click 'Hyperion Planning' > 'change '.
    Select the "Langugage" tab for the "JYTHON" line, make sure that the "Object Delimiter" field has no quotes, if it's remove and apply and save.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Can I use an ORDINARY from Mac account to load a Boot Camp Partition?

    I read the following Article on loading a Boot Camp Partition to use as a Virtual Machine in VMWare Fusion:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1014618

    I understand that I need administrator privileges to load a Boot Camp Partition in VMWare Fusion.

    But can I use a REGULAR account (Non Admin), raise my admin privileges by entering a username Admin and the password and then load my Boot Camp Partition in VMWare Fusion?

    The Article seems to imply no. because it refers only to enter an Admin password.  There is no mention to enter an Admin username.

    Can someone confirm please if I can use an ORDINARY Mac account and load a Boot Camp partition in VMWare Fusion after entering a username Admin and the password.

    Or am I have to use MAC Admin account in the first place?

    When a non-administrator user accesses an Admin-level feature in OS x, the user is presented with a combination of user name and password to authenticate.

    Then, indeed, as long as you can type the user and passes an admin user, you should be able to use BootCamp with Fusion.

  • Loading metadata using ODI

    Hello

    I am trying to load new employees using ODI. Our employees are in alphabetical order. Is there a way I can load new employees in alphabetical order.

    Please suggest,

    Thank you

    Good reading- order ODI by statement
    It goes through the way in which you can customize planning KM with ORDER BY

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • SOS! -Error to load data from Oracle 11 g to Essbase using ODI

    Hi all.

    I want to load data from oracle database to essbase using ODI.
    I have set up correctly the Hyperion essbase physical and logical topology manager and got the structure ESSBASE BASIC app DEMO.
    The problem is.
    1. when I try see data right click on the table of essbase.
    va.sql.SQLException: driver must be specified
    at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.graphical.frame.b.jc.bE (jc.java)
    at com.sunopsis.graphical.frame.bo.bA (bo.java)
    at com.sunopsis.graphical.frame.b.ja.dl (ja.java)
    to com.sunopsis.graphical.frame.b.ja. < init > (ja.java)
    to com.sunopsis.graphical.frame.b.jc. < init > (jc.java)
    I got the answer of partisan Oracle it's ok, just omit it. The second problem will appear.
    2 create an interface between the oracle and essbase database, click on the option ' staging of deffirent from the area of the "(ce qui signifie que la mise en scène est créé à la base de données oracle) target, and using IKM SQL for Hyperion Essbase (metadata), run this interface".

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 61, in there?
    com.hyperion.odi.essbase.ODIEssbaseException: invalid value specified [RULES_FILE] for the load option [null]

    at com.hyperion.odi.essbase.ODIEssbaseMetaWriter.validateLoadOptions (unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)

    at org.python.core.PyMethod.__call__ (PyMethod.java)

    at org.python.core.PyObject.__call__ (PyObject.java)

    at org.python.core.PyInstance.invoke (PyInstance.java)

    to org.python.pycode._pyx1.f$ 0 (< string >: 61)

    to org.python.pycode._pyx1.call_function (< string >)

    at org.python.core.PyTableCode.call (PyTableCode.java)

    at org.python.core.PyCode.call (PyCode.java)

    at org.python.core.Py.runCode (Py.java)

    at org.python.core.Py.exec (Py.java)



    I am very confused by it. Someone give me a solution or other docs.

    Ethan.

    Hello

    You say that you are loading, but you chose the KM for the loading of metadata?
    If you load metadata then you must provide a rules file, if you are loading and then choose the KM - IKM SQL for Hyperion Essbase (DATA)

    Ok?

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Can load metadata using ODI in classisc applcn and upgraded to epma

    Hi John,.

    As it is not compatible with EPMA, cane we load metadata in classic using ODI and then move the applcns to EPMA ODI?

    This method is suggestible? What are the maps for planning to connect epma will come out. any idea?

    Hello

    It is perfectly acceptable to build a classic application, fill it with ODI and then convert the EPMA, if after that you will not be able to use ODI with the planning application.
    I'm not sure when the EPMA adapters comes out for ODI.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • should we empty loading data ODI and move to "Load rules" of Essbase?

    Hello
    We use to load data in planning 11.1.1.3's ODI Essbase cubes.
    Should move us data loading ODI on "Load rules" of Essbase?
    We see no advantage to ODI over aid maxl Essbase calls script loading rules and calc scripts.
    One thing he has the advantage on Essbase, is that it can refresh planning. Can you load supporting details and the text in the cell?

    You have data from multiple sources, say some data sets are file bases, some are stored in warehouses or books of accounts, you want to collect these data, transform and apply the mapping, to load that data into essbase, you can add Automation around her then that is an example to use ODI to load data into essbase There are many others.
    Yes you can do it with maxl, but must eventually bring about more strive to add automation, mappings, error handling etc. as you would if you have walked the path of ODI.
    I do not say that you must use it, if you don't see any profit is meaningless.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Data extracted from planning to DWH classic planning license using ODI

    We can extract data from the data warehouse planning with Classic planning application license using ODI?

    We currently use ODI to load data into the planning.


    Thanks in advance

    You will need to check with your Oracle account manager to see which adapters that you are approved for the.
    If you have a license for the essbase adapter which I believe you should be, then, you will be able to extract data

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • New Member charge tables sources to target Essbase using ODI.

    Hello Experts!

    There is a daily load of data from oracle to HP (Essbase cube) 11.1.2 table. Sometimes, they add a new Member in the table to load data that is not existing in Essbase cube.

    We want to add or map this new Member-to-Member Essbase called members unmapped itself to load data and load data? using ODI. ?

    Can you please suggest any options for this?


    Thanks in advance!
    Alex keny

    If you keep a list of essbase members in an array then compare that list with the table data loading and load the Member in essbase.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Extraction of members in text using ODI files

    Hello

    We can use Outline Extractor to extract the Member Essbase or planning.

    Similarly, can we use ODI to extract members in Essbase or planning in a text file.

    E.M.P. version 111.1.2.0

    Thank you
    Sourabh.

    Hello

    Yes.

    Refer

    Extract data from Hyperion Planning
    ODI - adapter SUN: loading of the text data in the planning your application

    Thank you
    Fati

  • Is this Possible using ODI / ODQ?

    Hi all

    Is below possible requirement with ODI / ODQ?
    (now I do it manually and it's like a process monthly/weekly)

    If we can do the same thing using ODQ how I need to start and move forward?

    My requirement is something like that. I have two columns

    Address1 (mailing address)
    Address2 (additional information)

    In some cases the address isn't in the right format. So I need to do some data cleaning (washing) before loading with ODI

    If address2 Address1 is C.p., building name or any info other than a street address. The only address column is necessary in the output (Address1)

    For example:

    ENTRY

    -----

    ADDRESS1 - ADDRESS2

    -----

    HIGHWAY #---5010944 MARSH RD
    PO BOX 40964 - 1100 AA CORP PARKWAY
    S/N VANTAGE PP - 11031 PERRY HIGHWAY
    HOME - 11031 PERRY HIGHWAY INFUSION THERAPY SERVICES
    7275 BUFFALO ROAD-(6855 BUFFALO ROAD WAS)
    7601 N FEDERAL HWY - #2506
    MCAS-(MARINE CORPS AIR STATION)
    BRADDOCK AVENUE 212-
    212 NINTH STREET-
    2138 JONATHON DRIVE-

    -----

    OUTPUT (Note: we don & rsquo; t need the address2 column in the output)

    -----

    ADDRESS1 - ADDRESS2

    -----

    10944 MARSH RD - 10944 MARSH RD
    1100, PROMENADE OF THE AA - 1100 AA CORP PARKWAY CORP.
    11031 PERRY - 11031 PERRY HIGHWAY
    11031 PERRY - 11031 PERRY HIGHWAY
    7275 BUFFALO ROAD-(6855 BUFFALO ROAD WAS)
    7601 N FEDERAL HWY - #2506
    MCAS-(MARINE CORPS AIR STATION)
    BRADDOCK AVENUE 212-
    212 NINTH STREET-
    2138 JONATHON DRIVE-

    -----


    I posted a similar question in the forum of the quality of the DATA (ODQ)
    Home forum & raquo; Master Data Management (MDM) & raquo; Quality of the data

    ADDRESSING the ODQ HELP CLEANING (US)
    Discussion: ADDRESS CLEANING (US) with the HELP of ODQ

    If any body working on address cleaning using ODQ, please guide me to start working on it.


    Are there specific documents to ADDRESS that gives more information about the flow of processes such as CLEANING
    Transformer, monitor customer data, Postal sorting Matcher, Matcher Postal, key generator window, sort to link, Linker, Commonizer and Reconstructor data relationship.




    Thanks in advance,

    Its

    Hi Alex,

    I was building the java code, but I had another idea to make easier.

    (1) load the values into a temporary table with a column for each address (means 2 columns per line) 2 other columns to the control.

    Something like:

    table temp_data
    columns: add_1, control_1, add_2, control_2

    You can make it through an interface. Leave the fields 'control' worthless loading

    (2) create a table to store the values that you have sent to me (Avenue, street...)

    table street_names
    columns: street_name, country (for future use)

    (3) create an ODI procedure (or you can customize a KM with the same technical)

    3.1) step 1 on the target tab, javaScript technology
    Code:

    <@String vu=" " ;@="">

    3.2.1) step 2 - Source - technology 'your database' tab and the logic diagram where the "street_names" table created

    Select street_name
    of street_names
    WHERE country = "US".

    3.2.2) step 3 - target - tecnology javaScript tab

    <@vU+="or instr(upper(add_1),upper('#street_name'))="">0 ";@>

    3.3) step 3 - target - technology 'your database' tab and the logic diagram where the "temp_data" table created

    <@vU=vU.substring(3);@>
    Update temp_data
    Set control_1 = 'Y '.
    where<@=vU@>

    3.4) step 4 step 3 - target - technology 'your database' tab and the logic diagram where the "temp_data" table created

    <@vU=vU.replaceAll("add_1","add_2")@>
    Update temp_data
    Set control_2 = 'Y '.
    where<@=vU@>

    (4) now, you have a table (temp_data) with a flag 'Y' where there is a street where the name and 'null' does not exist. Just build your file by an interface or an odiSqlUnload free of charge.
    Put them all together in a package, and you'll have your process.

    I have create this way to minimize access to the insert_table, just 2 updates.
    can be used some alternatives of tunning the hole process if the time is not what you need.

    This is a quick fix. Something more elaborate can be done if necessary.

    This help you?

    Cezar Santos

  • I have a sync account that I use on several machines, but when I try to add on a new machine synchronization tells me there is an account associated with my email address

    I use successfully sync on my work PC, a laptop at home and my iPhone. But I can't seem to set up on a new PC. I always get an error of unknown account, if I try to send my password or request a password reset.

    Mozilla has dropped support for "FirefoxHome" on some time iOS devices there.

    If you have a sync account when you have an iPhone connected to this account, you probably use the version pre-Firefox sync with a 3rd party app 29 [bookmarks-On-The-Go] -? on the iPhone - as well as older versions of Firefox on the working PC and the laptop at home.

    Please check that your other installations of Firefox are up-to-date.

  • There is a problem with Firefox 'remembering' my Verizon residential account password. Using Firefox, I have to enter my username and password each time.

    There is a problem with Firefox 'remembering' my Verizon residential account password. Using Firefox, I am obliged to enter my ID and password every time I closed my browser and then restart or close my e-mail for a while, even though I checked the option "keep me connected" significant given by Verizon. I spent a lot of time today working with the technical support of Verizon and they (and I) can verify that it's specific to Firefox and IE is not the case. So far, this seems to be limited to the connection from Verizon, but there may be other affected accounts protected online. If it helps, I run Firefox under Windows 7 with Norton Security and the active Norton toolbar. It is a real pain and needs to be repaired.

    With the modules form filling;

    Go to the web site. After you enter data in a form, tell you the
    fill in form to remember what has been entered, save him form fill
    information based on the address of the site and the name of the
    field of that information was concluded. If the same field shows
    upward on a different page for the same site, or when you return to
    This page, the stored information is entered automatically
    For you. So far, I have not found a web page that prevents them from working.

Maybe you are looking for