Refresh a variable from several schemas

Is it possible to refresh a variable with data from multiple schemas?
If not, what are the workarounds? The only one I see (apart from dblinking) is to use two variables, refreshing one before refreshing the other.

hmm..I can think of making the schema as dynamic that is put a variable in place of the schema name in your data server. Same thing for physical schema and take a specific logical schema for this. Now in your package refresh the same variable which will hold the schema name. So in run time this value will be substituted there.
Test it and let me know.
Bhabani

Similar Messages

  • How to refresh ODI variables from file

    Hi,
    I followed the fillowing links to implement the dynamic file parameter passing in to the resource name of a datastore.
    part-1. http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value
    part-2. http://odiexperts.com/how-to-refresh-odi-variables-from-file-%e2%80%93-part-2-%e2%80%93-getting-all-lines-once-at-time
    For me first part is working fine where as in second part i made canvas looks like
    Vlinevariable(refreshing variable)------------------dyanamicfile(refereshing variable)--------------------- interface.
    Interface looks like Flatfile to db ,km's are lkm file------sql and ikm is sql incremental update
    Vlinevariable is working fine where i am getting numbers in sequence manner to assign in to code of dynamicfile variable and in dynamicfile is not taking that value in to that code and causing session failed.
    The code which i put in a refreshing code of dynamicfile is followed below
    select     samplefile1_csv     C1_SAMPLEFILE1_CSV
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=code_generationSNP$CRLOAD_FILE=C:\file/my_test_file.txtSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=1SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=samplefile1_csvSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CR$$SNPS_END_KEY*/
    For the firstrow the number has to get from vlinevariable where in my case not working .
    In session while loading the interface (load data) i am getting error like
    message-------------- ODI-1227: Task SrcSet0 (Loading) fails on the source FILE connection file_tgt.
    Caused By: java.sql.SQLException: File not found: C:\file/
         at com.sunopsis.jdbc.driver.file.FileResultSet.<init>(FileResultSet.java:160)
         at com.sunopsis.jdbc.driver.file.impl.commands.CommandSelect.execute(CommandSelect.java:57)
         at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
         at com.sunopsis.jdbc.driver.file.FilePreparedStatement.executeQuery(FilePreparedStatement.java:131)
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java:602)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeQuery(SnpSessTaskSql.java:3078)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java:571)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2815)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)
    source code is select     a     C1_A,
         b     C2_B
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=sample1SNP$CRLOAD_FILE=C:\file/#PROJECT1.FILENAMESNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x002cSNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=1SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=aSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=12SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=bSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=2SNP$CRLENGTH=50SNP$CRPRECISION=12SNP$CRACTION_ON_ERROR=0SNP$CR$$SNPS_END_KEY*/
    target code insert into STAGING.C$_0SAMPLE1
         C1_A,
         C2_B
    values
         :C1_A,
         :C2_B
    KIndly help me and thanks in advance.

    ODI is complaning it cannot locate the file. Try replacing the '/' character with a '\' after file in the designated filepath.

  • ODI - refresh a variable from a file field

    Hi,
    Is it possible to refresh directly a ODI variable from value stored in a file ? I find a workaround by loading the file into a temp table, and then make a variable refresh, but this solution is not good for me.
    Any other idea ?
    Thanks,
    JP

    http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value
    gives you the step for refreshing variable from file

  • How to unify or merge the variables from several TestStand platforms to one TestStand platform?

    Hi,
       We work with TestStand 3.5 and LabVIEW 8.0 versions.
       We work in a parallel mode with several developers and each from developers:
         1. Wrote his sequences at his TestStand station
         2. Defined his local variables/sequence File Global variables/station Global Variables at his TestStand
    I need to create the one file sequence at dedicated for it TestStand platform (target station) that will include all of sequences from these developers.
    So, the questions are:
    How i do that? What the existing tools/methods/solutions?
    How i can distribute all the variables that relate to different sequences and from different TestStand platforms?
    In other words, how i collect all related collections of variables(whatever?) from every developer of my team and unify/merge/distribute all of that
    to dedicated TestStand station that will include of all developed sequences without forgetting/losing something???
    I attached the visual presentation of my question (unify.JPG), please see the schema.
    If you have the question regards something, please let me know.
    Message Edited by Yuri_IL on 06-11-2006 10:01 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only
    Attachments:
    unify.JPG ‏26 KB

     Perhaps, i did not expressed well my question...
    1. I do need that top level sequence / sequence file needs to know or even care what variables are used by other sequence / sequence files
    2. I know how to deploy SINGLE TestStand sequence file/project to a target station.
    3. I want to know how to deploy MULTIPLE TestStand sequences from MULTIPLE TestStand stations and unify it to the SINGLE set of these multiple sequences that i deployed at my target station...
    For example:
     TestStand station #1 with sequence: init_of_xxx.seq
     TestStand station #2 with sequence: init_of_yyy.seq
     TestStand station #3 with sequence: init_of_zzz.seq
    After deploying at my target: TestStand station #4 i want to get a WORKING set of sequences:
                      init_of_xxx.seq
                      init_of_yyy.seq
                      init_of_zzz.seq
    The problem is that i know how to deploy every sequence sepately, but do not know how to deploy together
    Message Edited by Yuri_IL on 06-12-2006 02:56 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only

  • Accessing String variables from several JAVA classes

    Hi.
    I have several java classes that accesses the same String variables. Instead of putting the String declarations in every java files, how can I put these declarations in a single file source, and get each java class to get the variables data from this file ?
    Please advice.
    Thanks.

    hi, of course you can solve it by the following methods:
    Method 1. define a superclass including the common string variable, and extend other classes from the superclass.
    Method 2. define a class , and define your common string variable as a static variable in it. In your other classes, you can call the string variable.
    Method 3. define it at your each classes.

  • ORA-12008:ERR OCCCURS WHEN MATERIALIZED VIEW IS REFRESHED FROM OTHER SCHEMA

    Hi,
    ORA-12008: Error occcurs when materialized view is refreshed from another schema, Following the output of the trace file when error occured.
    /u01/app/oracle/admin/orcl92/bdump/orcl92_j000_23729.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name: Linux
    Node name: newdbserver
    Release: 2.6.9-5.ELsmp
    Version: #1 SMP Wed Jan 5 19:30:39 EST 2005
    Machine: i686
    Instance name: orcl92
    Redo thread mounted by this instance: 1
    Oracle process number: 164
    Unix process pid: 23729, image: oracle@newdbserver (J000)
    *** SERVICE NAME:(SYS$USERS) 2008-05-23 10:30:51.848
    *** SESSION ID:(462.21166) 2008-05-23 10:30:51.848
    *** 2008-05-23 10:30:51.848
    ORA-12012: error on auto execute of job 766
    ORA-12008: error in materialized view refresh path
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Regards,
    Abhishek

    Hi Damorgan,
    As i said, when refresh materialized view from another schema, mentioned error occurs.
    I have also granted accees explicitely still following error occurs.
    ORA-12008: error in materialized view refresh path
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Regards,
    Abhishek
    Message was edited by:
    AbhishekRathod(user559364)

  • How do I assign an ODI variable from an Open Tool?

    I'm writing an open tool (a custom tool to use in my ODI flows - a java class that implements oracle.odi.sdk.opentools.IOpenTool
    ). I need to perform a complex calculating in the java Open Tool and 'export' a value back into the ODI world. Idealy, it would be great if I could set a variable in ODI (from within the java world).
    Is this possible?
    If anyone knows the answer, or another way to do this (that might not be as ideal, but works all the same) please let me know.
    Matt.

    Matt
    It is not possible to directly populate an ODI variable, but what you can do is to put the result value into a memory engine table/column, and then to refresh the variable from there. As it is all in-memory, it is fast.
    Craig

  • User Entry Variable - brings back date from several months past - cache?

    Hi ,
    Please excuse this question if this has already been addressed.  I have searched sdn and could not find a posting.
    This may seem silly but in a query that is refreshed weekly, it has several variables that can be populated.
    The data - 0calday - &yrfdyo& is one.
    When I run the query, the variable entry screen appears with all the possbile varibles blank but the 0calday - single day filter - comes back with a date used back in september. 
    Why is this and where is this saved - cache somewhere?  or is this variable saved as a variant somewhere and that is why?
    Thanks for any clarification you can provide.
    Thank you,
    Lynda

    the problem was personalization checkbox.  I have been using portal and 7.0 and forgotten about the bex analyzer settings.
    To change the values to a different set of personalized values
    Step 1.After executing the query, Click on change query icon
    Step 2 Then, click on Change variable values in the drop down selection
    Step 3 You get the selection screen
    Step 4; Click on the selection icon on the right; you get the pop up with buttons for (1)Personalize variable values,(2) Load personalized values, (3) Undo personalization.
    Click Undo personalization button first
    Step 5: Then click Load Personalized Values button: the screen is now returned (with u2018?u2019 in the selected values)
    Step 6: Click on the available values: you get the screen with selection checkboxes on the left; select the desired value
    Step 7: Then click the personalization icon at the bottom
    The new values are now set.
    If you stop at Step 4, the personlaization should be undone

  • Accessing tables from different schema in CDS and AMDP

    Hi All,
    We are working on a HANA system which has several schema replicated from SAP R/3/Non SAP systems. We have BW 7.4 SP9 deployed on the same system and accessing the HANA views using latest BW virtual objects such as Open ODS , Composite providers etc.
    We are also using the BW system for few ABAP based data processing developments. We are currently accessing HANA views in ABAP programs by creating dictionary views based on external HANA views.
    We would like to however use recent possibilities of CDS and AMDP for better life cycle management of ABAP based solutions. The open SAP course on this subject was of very good help. Thanks a lot "open SAP team" for that. I would however have few open questions,
    As I understand AMDP gives us full flexibility of writing sql procedures within ABAP development environment, but can we access tables from different schema into AMDP code. If yes, then sample code would help.
    If the answer of first question is yes, then how do we manage transports between development and production systems where the schema names would be different. Currently in open HANA developments, such transport is manged using Schema mapping.
    Can I also use different schema tables in CDS views.
    We are updating few tables in ABAP dictionary after applying processing logic in ABAP program as detailed in step 1. With the new approach using AMDP, can we directly update database schema tables which will give us an optimization advantage.
    New ABAP HANA program interfaces are quite promising and we would like to use them to optimize many data intensive applications.
    Thanks & Regards,
    Anil

    Hi Anil,
    I can only answer 1. and 2. (and would be interested into 3. as well):
    1.
    Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
    Examples:
        RESULT = SELECT
        FROM
              "SAP_ECC"."T441V" AS t,
              "_SYS_BIC"."tmp.package/AFPO" AS a.
        WHERE ...
    2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
    Best regards,
    Christoph

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • Passing a variable from a movie clip to the main timeline

    Hi,
    I'm having trouble passing a variable from a movie clip in my
    flash file to the main timeline.
    I have a movieclip with the instance name IntroNav which
    contains several buttons. Clicking a button sets the variable
    "page" to a specific name, i.e. page = "home"
    However, outside of the movie clip, on the main timeline I am
    unable to call this variable, and "page" seems to have no value.
    Can anyone tell me why this is and how to solve it?
    Thanks

    Umm, yes ... declare your variables correctly.
    var page:String = new String(); //proper complete
    var page:String; //strict typing
    var page:String = "home"; //stirct typing with value
    declaration
    Do not declare the variable in your buttons, you would have
    to do so in every button and be constantly resetting the value.
    Declare it on the main timeline at the lowest level. You do not
    need to use it as a _global, you just need to resolve your path
    issues. You can 'set' the variable value from a button, without any
    problem, but you have to call to the variable correctly.
    You do not 'name' a variable as "_root.page" , the '_root'
    refers to the lowest level of the SWF or the main timeline, as does
    a call to ' _level0' (that's a zero). If the variable is declared
    on the main timeline, and you're calling from the MC/button or
    anywhere you can refer to the variable by calling to it by
    the proper path of '_root.page'
    To set the variable from any of your button/MC instances
    call:
    _root.page = "value"; OR _level0.page = "value";
    But you must have the varibale declared on the main timeline,
    and only once and the playhead should be stopped or it will reset
    the value to the default upon looping.

  • How to refresh a variable in a procedure

    Can I refresh a variable in a procedure so the variable can be used in a next step in the package?
    Thanks

    Hi,
    Create a package with the variable in refresh mode, create a scenario from it and call it from procedure step.
    Does it help you?

  • Unable to create variables referencing external schema

    I'm stumped with this one. Any help will be appreciated.
    I'm trying to create a variable to hold the wsse:Security element and not having any luck.
    I imported the WS-Security schema from http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd into my project schemas.
    Next, under process variables I created a new variable called WSSecurityHeader and set it to type Element, clicked the Browse Elements icon next to it, and picked the Security element from the imported project schema. So far so good.
    Now, when I try to expand the newly created variable I get Exception: Problem building schema! http://docs.oasis-open.org/wss/2004/01/XMLSchema.dtd
    No clue where it is picking up the URL for XMLSchema.dtd and incidentally this URL does not exist.
    I've tried using other elements from the schema such as UsernameToken and nothing seems to work.

    Hi Nizam,
    I have forwardes the issue to the concerned persion and will soon update you on the same.
    Dhaval

  • No Easy Way to Join on Tables from Different Schemas

    Hi,
    The company policy does not allow to join on tables from different schemas or use db links...
    I'm tasked to come up with a Perl script that does exactly that - allows for the SELECT statement to do several joins on 3 different schemas. In addition 1 of the schemas is on the different host altogether.
    Upping the privileges for my user and allowing db links is not an option...Can someone, please help me to understand on a conceptual level how would I use Perl and what logic would it have and what would it (perl) do?
    Thank you,

    Court in the wrong job... ;)
    It's like a librarian who is a hard rock artist maintaining the silence in the premises. ;)
    My dear friend, i don't think this is the right place for your requirement. This is the PL/SQL forum. If you have any problem related PL/SQL or SQL you can place that here.
    Regards.
    Satyaki De.

  • Variables in physical schema of File data server

    I want to avoid hard coding of folder name where source files used to kept as it could be vary from environment to environment like dev to production
    Can you please suggest best way to implement it?
    How we can store it into parameter table ans how it could fetched on production enviormnet.
    Please advice.
    Thanks in advance.
    Regards,
    Dinesh.

    Hi Dinesh,
    I believe you can substitute a variable in physical schema aswell..But you cannot test it by clicking the test button there.
    This will work only when you have defined a variable in package at the beginning of the step.That phycal path will be resolved during run time.
    Hope you got it now.
    Same thing will work for the password field in any oracle dataserevr as well.
    Thanks.
    http://bhabaniranjan.com/

Maybe you are looking for

  • How to Call Image Viewer from Form application

    Hi, how to call Image viewer using host command on oracle form 6i. i trying using host command on local/client application .. and it is working ... but when i try on server application (EBS - UNIX) it does not working ... thanks .. regards, safar

  • File Input can't get full file path when user choose to upload it

    i saw the solution which many used it to return the file path, at this link: https://bugzilla.mozilla.org/show_bug.cgi?id=143220 comment#40 and #50 but they don't want to hold it to use it later, i want that, i can't hold the full file path in my han

  • Error : Reverse an AR invoice having downpayment linked to it.

    Hi, I am facing a problem in reversing a AR Invoice having a downpayment through AR credit Memo. System displays a message as - Copying an invoice which includes a down payment is not currently supported [Message 3703-18] I am opening the AR invoice

  • Does not appear in itunes

    iTunes 7.7.1 The troubleshooting assistant did not help. The only way I can get it to appear is by repeatedly downloading iTunes 7.7.1 and restarting. Once I quit itunes and reopen it is once again gone. A corrupt preference perhaps?

  • Domain Users are allowed by default to join domain

    Hi everyone ! Recently i install Windows Server 2012 Standard Configure Active Directory Domain Services Create simple user "test1" then i go to windows 7 client and join domain with this "test1" user. and i shocked how is it possible that a simple d