ODI 10G getPAckage()

Hi ,
I want to write a procedure like this:
DECLARE
CURSOR C IS
SELECT table_name FROM ALL_TABLES WHERE table_name LIKE 'TMP_<%=odiRef.getPackage("PACKAGE_NAME")%> %' AND owner='STG';
R C%ROWTYPE;
BEGIN
OPEN C;
LOOP
FETCH C INTO R;
EXIT WHEN C%NOTFOUND;
BEGIN
STG.DROP_TABLE(R.TABLE_NAME);
EXCEPTION WHEN OTHERS THEN
NULL;
END;
END LOOP;
CLOSE C;
END;
But I guess it desn't exists odiRef.getPAckage("PACKAGE_NAME") method in odi 10g.How can ı get packagename ?
Thx a lot

If I understand, you've created an ODI procedure. And you have inserted this procedure as a step of an ODI package.
And you want to retrieve the name of the package that contains this procedure.
Is that right ?
If so, you can find the name of the package that use this procedure by using a query on the work repository.
Here's the query :
select pack.pack_name as PACKAGE
FROM
odi_work.SNP_PACKAGE Pack
inner join odi_work.SNP_STEP step on step.i_package = pack.i_package
inner join odi_work.snp_trt proc on proc.i_trt = etape.i_trt
WHERE proc.trt_name='enter the name of your procedure'
You can write this query on the "SQL on source" tab of your procedure. And use the result on the "SQL on target" tab.
In "target tab", you can write something like that :
SELECT table_name FROM ALL_TABLES WHERE table_name LIKE 'TMP_:PACKAGE%> %' AND owner='STG';
If you don't want to enter the name of procedure manually, I assume you can also retrieve it with "<%=odiRef.getStep("STEP_NAME")%>" method. But your step must have the same name than your procedure (this is the default behaviour)

Similar Messages

  • Query  Regarding Updation/Migration of ODI 10g To ODI 11g.

    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

    neeraj_singh wrote:
    Hi All,
    Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
    We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
    1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.You can install ODI 11.1.1.5 but you have to upgrade your repositories using upgrade assistant
    refer http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/tasklist.htm#CIHGIDFG
    2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.No need to create new repositories. You just upgrade them. But you need to takecare of certain things as you are a 10g user. Refer below link for the prerequisite
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/prevusers.htm
    3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?Not clear about the question ?
    >
    ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
    Thanks
    Edited by: neeraj_singh on May 15, 2013 9:58 PM

  • Getting Error Out Of Memory while importing the work repository in ODI 10g

    I exported the work repository from topology of ODI 10g of one DB and tried importing it in the another ODI 10g topology of another DB.While importing i got the error 'Out of Memory' .
    Can somebody suggest me ,how to solve the heap size out of memory issue while importing in ODI 10g.
    Thanks in Advance.

    Hi,
    you have to post your question in ODI forum
    Data Integrator
    Suresh

  • Implement MAX / JOIN in ODI 10g?

    What is the approach for using MAX functions in ODI 10g? I need it to filter source data:
    SELECT SRC_TAB.*       
    FROM SRC_TAB
    INNER JOIN
    (SELECT MAX(COL1) COL1, COL2  FROM SRC_TAB GROUP BY COL2) B
    ON SRC_TAB.COL1=B.COL1 AND SRC_TAB.COL2 = B.COL2
    Luckily this issue has been addressed in ODI 11g.
    Thank you.

    That's not good especially when you have large volume of data.
    In this case, in 10g it's better to rely on a underline view rather than 2 interfaces.

  • ODI 10g - session keep a table locked

    Hi,
    We have a random issue, with ODI session that keep a lock on a table, even replication is finished and session becomes inactive
    It generated dead locks as a trigger has to update the target table.
    what happened :
    - user application create rows (13)
    - ODI scenario replicate the rows (contract table)
    - 2nd scenario based on same source with another sunscriber run a stored procedure to create records in another table (around 30, positions table)
    this 2nd locked the target table, and when the run of the procedure finished, and commited, the lock was not released
    - ODI replicate another table (price) 30mn later, a trigger on target update position table with new values
    ---> trigger failed with deadlock (ora 60)
    ---> ODI failed as the trigger raised back the error
    this issue happened after 10 hours of same activity without issue, chained lot of time, but suddenly the lock become persistent (more than 4 hours)
    what can I do?
    use ODI 10g 10.1.3.5.0 - RDBMS 10.2.0.4

    Hi !
    For small tables wich are mostly accessed with full table scan you can use
    ALTER TABLE <table_name> STORAGE (BUFFER_POOL KEEP);KEEP pool should be properly sized , setting will cause once the table is read oracle will avoid flushing it out from pool.
    T

  • Problem when exporting and importing project from odi 10g to odi 11g

    Hi,
    I want to migrate my project from odi 10g to odi 11g.
    But when i am importing the interface then it is giving the error of mising references .
    I have exported the project(without its child component),models
    (including my datastore),KM's,folder (without its child component),packages(with child components),interaces(with child components),procedures(with child components),variables from odi 10g.
    After exporting all these objects i imported all the objects with import type set as "Synonym mode insert" into odi 11g but when i imported the interface it is giving the error of missing references.
    Source technolgy is Oracle and target technolgy is Postgres.
    Topologies have been made in the ODI 11g same as in ODI 10g.
    Please help.

    You dont need to migrate the complete repository. You can migrate a project at a time into ODI 11.1.1.5.x
    You have to be careful while importing. You have to follow a sequence when importing.
    Empty Project -> KMs -> Models (with DB Stores) -> Variable -> Empty Folders -> Interfaces -> Procedures -> Packages ---- All in SYNONYM mode insert (no exceptions)
    And your repository id in 11g MUST be different from the one in 10g.

  • Install ODI 10g on  64 bit Windows 2008 server

    Can we install ODI 10g on 64 bit Windows 2008 server ? if so Please provide the me the link for download
    Edited by: user1137989 on Oct 27, 2010 10:51 PM

    If you are looking for 10g then scroll down in the link (http://www.oracle.com/technetwork/middleware/data-integrator/downloads/index.html) Oracle Data Integrator 10g (10.1.3.5.0) and select for Microsoft Windows (x86) and extract and install .
    11g comes in 32 and 64 bit version .
    32 bit version is
    Oracle Data Integrator 11g (11.1.1.3.0)
    for Microsoft Windows (x86)
    64 bit version is .
    Oracle Data Integrator Companion 11g (11.1.1.3.0)
    for All Platforms
    Hope this helps .

  • ODI 10g configuration between Hyperion 9.3

    Hi,
    I have to pull the data from Hyperion Essbase, planning via ODI 10g.Please help me out how to configure between Hyperion and ODI 10g.
    If you have notes please send to my id [email protected]
    Thank You,
    Prasad

    Have a read of my blog as I have covered the steps - http://john-goodwin.blogspot.co.uk/2008/12/odi-series-extracting-data-from-essbase.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Nested query / Rank in ODI 10g?

    How can be an nested query with analytical function (RANK() OVER) can be implemented in ODI 10g without using an external view?
    SELECT field1, field2, field3, field4, field5, field6, field7
    FROM
             (SELECT
              RANK() OVER (PARTITION BY  table1.field1, table1.field2, table1.field3 ORDER BY table1.field4 , table1.field5) alias_rank,
              field1, field2, field3, field4, field5, field6, field7
                    FROM table1
              ) subset_alias   
    WHERE subset_alias.alias_rank=10)

    You should get your answers from here
    http://www.business-intelligence-quotient.com/?tag=oracle-data-integrator-subqueries

  • ODI 10g Union,Union All,Minus

    Hello,
    I have to use union,union all or minus set on ODI 10.But it doesn't have uninon,union all minus data set like in ODİ 11.How can ı use union statement in odi 10 g?For example I have to union 6 table in odi 10g.How it can be ?
    Thnx a kot

    Thx a lot Jerome .it works
    I have one more question:
    This select captured changed datas.I will delete dataas which returns from this select.And then I will insert new datas.
    I added to IKM COntrol append a new step like this:
    delete from <%=odiRef.getTable("L","TARG_NAME","A")%> T WHERE (<%=odiRef.getTargetColList("", "t.[COL_NAME]", ", ", "\n", "UK")%>) in
    SELECT PK_ID
    FROM <%=odiRef.getFrom()%>
    WHERE (1=1)
    <%=snpRef.getJoin()%>
    <%=snpRef.getFilter()%>
    <%=snpRef.getJrnFilter()%>
    <%=snpRef.getGrpBy()%>
    <%=snpRef.getHaving()%>
    /*commit*/
    I selected "UK" from target.
    But I dont know that it works true.I selected PK_ID from source but which PK_ID Will I select?When targets UK is equal to source UK(PK_ID) then these datas will be deleted.Changed datas will be inserted.How can I modify this step?İs there any solution to do this step?Can I get dynamicly PK_ID?
    Could you help me ?
    Best Regards
    Thanks

  • Exporting & Importing Contexts in ODI 10g

    Hi,
    I am using ODI 10g.
    I want to export Contexts from topology manager from my ODI test environment and import those contexts in ODI production environment.
    My requirement is that I want to export & import the contexts using some scripts and not manually.
    What steps can I follow for this?
    Thanks,
    Divya

    Hi Divya,
    Personally i feel rather than exporting individual components/objects, its suggested to export master repository as such.
    You can make use of ODI utility OdiExportMaster (under <ur package>->Tools->Oracle Data Integrator Objects) for exporting and Import Master Repository wizard (All Programs->Oracle-> Oracle Data Integrator->Repository Management-> Master Repository Import )for importing.
    Thanks,
    Guru.

  • Odi 10g installation on windows 7 ultimate 32 bit

    i am having windows7 ultimate 32 bit OS.. can i install ODI 10g on my system..

    You may check out below link how to install ODI 10g to Windows 7 platform.
    http://gurcanorhan.wordpress.com/2011/02/07/installing-odi-to-windows-7
    Cheers.

  • ODI: Is ODI 10g compatible with SOA 11g ?

    hi all,
    I have a requirement where ODI should invoke web services in SOA 11g fusion middleware.
    Is it required that i use ODI 11g?
    Or is ODI 10g compatible working with SOA 11g.
    In case if i have to use ODI 10g to invoke webservices in SOA 11g den do i have to follow any other different procedure?
    Also, Please let me know the version of ODI to be used in either case. Thanks in advance

    Thanks Kiran.
    Can u provide any docs which supports this feature(ODI 10g working/used with SOA 11g) would be very helpful.
    Thanks,
    Edwin.

  • Cannot Connect Agents created for ODI 10g

    Hi All,
    As part of installation of BI Apps 7.9.5.2, i have created two odi agents ( WORKFLOW and INTERFACE ). I can see them as part of my services in windows. I have started them. But when have set the required things in the topology manager. when i try to do a test from the topology my ODI 10g completely hangs.
    Is there anything i need to check why this is happening.
    How can i check whether the connectivity to the ODI10g agents is correct or not ?
    Thanks and Regards,
    Krishna Prasad.

    Hi Krishna Prasad,
    Normally when you setup agents as windows services, there is a log file generated in %odi%\bin\agentservice.log, that could be checked for troubleshooting.
    If i were you, Before setting them as windows services, i would try running agents as command prompt based services first
    The syntax to run the agent from command promt, for windows is given below,
    agent.bat -PORT=<portnumber> "-NAME=<agent name>"
    Once you have tested them successfully, you can run them as windows services.
    Hope this helps.
    Regards,
    Rickson Philip Lewis
    http://www.linkedin.com/in/rickson

  • ODI 10g Scheduler picking incorrect time - Issue

    When am scheduling a ODI scenario at EST time using scheduler agent, it is executing at different time. For Ex.,  lets say i scheduled my job at 5 PM EST daily. I can see their time in SCHEDULING INFORMATION window as 9 PM EST daily (i.e Current EST + 4 Hrs).
    Jobs are not getting triggered at 5 PM EST but it is executing at 9 PM EST. Whereas when i look into ODI OPERATOR, it is showing as 5 PM EST in execution log.
    Am facing this issue once i installed ODI 10g from WINDOWS 2003 server to WINDOWS 2008 R2 Server. Is it a bug in the 10g product or some other JAVA/JRE/JDK related issues.
    What might be the exact issue ? As It is really urgent problem, Can any one help me asap ?

    The master repository contains connectivity to the work repository. If you just clone the master repository the work repository connectivity in it still point to the original work rep. So running upgrade on cloned copy of master would result in upgrade of original work rep instead of cloned work rep. I guess this is what happened in your case. So you should try to restore the work rep in the original schema.

Maybe you are looking for

  • Best Buy Willowbrook Store 214

    I purchased a 13" Macbook Pro from this store on January 26, 2013. The explained to the best buy employee that I wanted the 2 year warranty with the accidental damage protection, as this is the plan we get with all of our laptops. He agreed and I che

  • Find/Change words (with GREP) and apply a style...

    I need a Script for Find/Change words with GREP, and apply a paragraph style... Thanks...

  • Need help: URGENT : N95-1...V21.0.016 BUGS! WHEN N...

    now after get my N95-1 upgraded to latest V21.0.016, i hav to on my phone without memory card insered first only can start my phone smoothly...after thst i put my memory card by way of "hotswap" into the phone...if i just on my phone with memory card

  • Apple Remote to Advance PowerPoint Slides

    Does anyone know if it's possible to use the Apple Remote to advance PowerPoint Slides during a presentation?

  • Service SystemInfo browser query ..

    Hi All, Had to browse the user roles on two MIIs 14.0.2 Build 82. (QA/DEV instances). While using: [Server][port]/XMII/Illuminator?Service=SystemInfo&Mode=RoleList&Content-Type=text/xml One server brings me the complete list, the second one misses ap