ODI Variable problem

Hi all

I'm using ODI 11 g.

So I have a requirment where

When I execute the script

Enter v_name value: test

After execution, it will create the a UNIX file called test.dat with some content in the file if possible.
---------------

Basically what I need, is the extracted file that the ODI package would create have the same name as stored in the variable.
May be something like v_Julian_date. ». DAT '.

Please suggest ideas.

Thank you
Lony

Create a refresh variable that will hold the sysdate in the required format. Then use this variable when you provide the name of file in odiSqlUnload or odiOutfile, etc.,

RefreshMode
T_DATE: Select to_char (sysdate, 'YYYYMMDD') of double

When you give to the use of file name

D:\ODI\#V_DATE.dat

Tags: Business Intelligence

Similar Questions

  • ODI variable

    HI friends,

    I just wanted to know how to make the senario below.

    I need to create a variable of the ODI in ODI
    Can I fill the variable in the PL/SQL function call, so that the value will go to variable ODI.


    Thank you
    Lony

    Hi Lony,
    You mean you want to store a value from your code to the odi variable plsql. Right? If so, it is not possible to directly. You must Access the underlying table that contains the variable and the value. Then, you can change the value in the table.

    Alternatively if you use jython or java beanshell code then stores this value to a java variable. Now, assign the value of java variavle to the variable of the odi in set mode.

    like odi_variable =<@java_variable@>

  • variable problem in odi

    Hi little problem... I keep a variable. so whenever the mapping fails, then set this variable on there or well n. How can you do with variable?

    1. you can use evaluate the variable

    initially set, then handed it

    2 use the refresh like query:

    Select case when #HYP. Var1 = 1 then... else... end

  • Shared variable problem reading after deployment

    Hello

    I tried to create an OPC client to communicate with a server KUKA. I have a project with an i/o library configuration server. When I run the project, I can perfectly read/write my variables using the Distributed System Manager. If I put all the variables, I can read the correctly updated value at the server end. However, as soon as I start a VI that contains variables (which deploys them automatically), everything stops working and I can not write them to the VI or the DSM.

    I would be very happy if anyone knows how I could handle it.

    Best,

    Glauber

    OK, so it seems that the problem was that the request from the client to the server rate was too high. I added a wait on the loop that r/w, the variables and now this works. There is no need to be a single writer, and the autodeploy option can be.

    in any case, thanks to those who responded to the message.

  • Shared variables problem

    Hello

    I'm using LabVIEW 8.5.I uses about 80 variables shared in my project using Datasocket also to write on the network

    wanted to know if I face any problem while doing the exe? What I have to follow a special procedure to generate exe?

    Help, please...

    Thank you

    GAK

    Hello

    Thanks for help.will certainly work on that.

    GAK

  • Global variable problem using as reference file

    Hi all

    This code is trivial, but illustrates the problem that I have.  I want to open a file with vi a, dynamically open vi B, pass the reference file in vi B, vi B to close, and then close the fiel with A vi.  VI B is designed for SAMPLES continuously and add it to the file.  Unfortunately I can't implement this solution because it seems that global variables do not work for the file references (!).  Thank you!

    You have a race condition in this image.  The global variable refnum to could be read the file write before the opened file has been fortunate to write a valid file for the other reference copy refnum of global variable.  You should have a thread open to write it directly.  If you want to store it in the global variable as well, then branching off there this direct wiring.

  • BIAPPS-ODI authentication problem

    Hi friends,

    IM at biapps 11g with ODI 11 g. I configured connection odi in the studio and can properly connect to see these maps std BIAPPS in ODI.

    But 2 days before, im in the face of an authentication problem by connecting the ODI studio with the user who I connected successfully forward.

    The error that I'm facing here is the

    ODI: 26130: could not connect to the repository, ODI-10190: user dev_biadmin has his account has expired.


    Im getting the error above and the user tried to connect is "dev_biadmin" in the studio of ODI.


    Therefore, to the question above, I followed the MOS score below



    IM facing the same error explained in the note above, but force helped me because it treats FUSIONAPPS BI I guess.


    Kindly advice me friends, to solve this problem.


    Brgds,

    Saro

    Hi, Saro,

    Connection to studio ODI as a SUPERVISOR user. Go to ODI--> Switch authentication mode--> give your contact information to ODIREPO and sign in.

    You will get the message properly connected. Click the Security tab. try to connect as a SUPERVISOR. Once the connection is successful. Go to the user of the cprresponding (dev_biadmin) account and change the password.

    Logout and go to ODI--> switch authentication mode. Give the details. It will change external authentication. Now you should be able to log in as dev_biadmin.

    Hope this will solve your problem...

    Kind regards

    Vanina

  • Download DataServer User/Pass/host with ODI Variable to use in the ODI tools

    Hi guys.


    I was thinking about a way to dynamically modify the ODI tool based on the parameters of a root.


    So I created a dummy DataServer with host that the IP address of the server I want to reach and define the user/pass I will use to authenticate.


    Data_Server_DMZ.png

    Then I coded a variable with odiRef.getInfo to obtain this information, but the two results return nothing because this API based on the execution of an interface works. I've not found an API to get these values from a package.

    ODIVariable_HOST.png

    Is there a way to get this base only in a logical schema, such as: odiRef.getDataServerInfo ("LS_OF_THE_DATASERVER", "DSERV_NAME") so that I can use it like this:

    ODI_PKG.png

    Thanks for the help, Giampaoli.

    I've made a few changes based on the post you sent.

    Basically, I used only the tip of the game from the source as the topology I wanted settings and coded the target with this:

    Command on the target

    Command on the Source

  • ODI 12 - problem with LKM SQL for Oracle

    Hi again,

    Three days ago, that I asked about the problem with the data types of data warehouses in models that were missing. After you apply the ideas suggested by Rita (thank you very much ) I got from their work.

    But after that, we came across a new problem. When you run a mapping (Oracle for Oracle databases), it failed on the second stage - ' "work table create. "When we checked the generated code was something like this: '(" CREATE TABLE < work_table_name >). None of the names of columns or data types have been described in parentheses and as expected, the ODI execution error was "invalid identifier". It seems that API odiRef.getColList(params)%> does not work. I tried loading using LKM Oracle Oracle (DB LINK) but once again the columns are missing in the generated script.

    I have to mention the master and work repositories are different databases from Oracle and ODI Agent is not installed because of some problems.

    We are still beginners of ODI and would appreciate any help from more experienced guy (or other beginners).

    Thank you in advance.

    Just by chance, we found the soluton today!

    The reason of missing generated code was that the description of the types of data was not entirely cofigured.

    We found that the fields "create table syntax" and "'syntax of data accessible in writing' in each type of data in the topology definition were empty." After filling them, the generation of the script is running properly.

    Before that we had problems with missing data types in models and we realized the reverse engineering of the types of data, but obviously it is insufficient.

    Thanks to all those who participated in the discussion and tried to help us!

  • ODI performance problem

    Hello world

    I have experience with a performance in ODI 12 c problem. One of my maps launched in more than 500 seconds while the response time for this request is only 14 seconds in environment of Toad. Step of the LOADING in the ODI process takes too long. The generated query is;

    SELECT / * + FULL (MUH_BUF) * /.

    ORGANIZATION_ID (ORG.ORGANIZATION_ID),

    (ORG. ATTRIBUTE10) MUH_KODU,.

    (MUH_BUF. TARIH FATURA_TARIHI),

    (SUM (DECODE (MUH_BUF. MIKTAR, 0, 0, MUH_BUF. NAKIT_CIRO))

    -IN SUMMARY (DECODE (MUH_BUF. MIKTAR, 0, MUH_BUF. NAKIT_CIRO *-1, 0)))

    NAKIT_CIRO,

    (CAT.) SEGMENT1) ANA_GRUP

    FROM APPS. TSA_MAGAZA_SATIS_MUH_TABLE_BUF MUH_BUF,

    APPS.HR_ALL_ORGANIZATION_UNITS ORG,

    APPS. MTL_ITEM_CATEGORIES_V CAT,

    APPS. MTL_SYSTEM_ITEMS_B S_ITEM

    WHERE MUH_BUF. INVENTORY_ITEM_ID = CAT. INVENTORY_ITEM_ID

    AND MUH_BUF.ORGANIZATION_ID = ORG.ORGANIZATION_ID

    AND MUH_BUF. FATURA_TARIHI > = add_months (sysdate,-3) -: GLOBAL.gv_MonthAgo

    AND CAT. INVENTORY_ITEM_ID = S_ITEM. INVENTORY_ITEM_ID

    AND CAT. CATEGORY_SET_ID = 1100000003

    AND CAT.ORGANIZATION_ID = 23

    AND S_ITEM.ORGANIZATION_ID = 23

    GROUP BY (ORG.ORGANIZATION_ID),

    (ORG. ATTRIBUTE10),

    (MUH_BUF. FATURA_TARIHI),

    (CAT.) SEGMENT1)

    What can be the problem.

    Tables source: Oracle

    Target Table: MSSQL

    Please help me.

    Thank you

    Hello

    Use the LKM ' LKM SQL FOR MSSQL (in BULK).

    Hope it will work, because it inserts data in bulk.

    Thank & best regards

    Shiv Kumar

  • ODI scheduling problem

    Hello

    My Installation:

    ===

    Windows 64 - bit

    ODI

    MS SQL 2008R2

    ====

    I got stuck on "ODI scheduling" getting on the truck. The problem is that I couldn't set up correctly (to the best of my knowledge) the agent. Well, not exectly... I could run manually the loading procedure (a bunch of interfaces)... well... when I tried to program this loading... I failed. referring to the documentation... I should install Oracle Web tier utility 11.1.1.2.0 and 11.1.1.3.0 (patch). This fine... but I could download only 11.1.1.7.0 (the latest version till now) and that's OK, since by my support, it has all the characteristics of slender and features.

    Then, another problem with odiparams.bat odi_opmn_addagent.bat and agentcreate.properties.

    For example, the docs - http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_opmn/odi_opmn.htm specifies

    odi_opmn_addagent.bat as follows:

    • ODI_HOME is the path of the directory agent under your ODI 11g, for example:
      C:\WEBTIER_HOME\Oracle_WT1\odi_standalone\oracledi\agent, etc.

    but in the 11.1.1.7.0, installation of the system (by default) created C:\Oracle_BI\Oracle_WT1\ < as < css >, < Diagnostics > subdorectories, etc.  and not to create the path 'odi_standalone\oracledi\agent '.

    In addition, I have this \oracledi\agent < ODI_HOME > and not somewhere else...

    So, please, I desparatelly need your help to solve this and I would appreciate if you could send me the sample of the < *.bat > and < *.properties > files for installation, above.

    Best regards

    AL

    Hello Anatoly,

    Set JAVA_HOME=C:\Java\jdk1.6.0_31

    You can delete the file odiparams.bat , no need to JAVA_HOME.

    In addition, uninstall ODI which is on the C:\oracle\product\11.1.1\Oracel_ODI_1\oracledi\agent\bin path (if the other ODI installed works fine)

    Set ODI_MASTER_URL = jdbc:weblogic:sqlserver://ASUS-67:1433

    As above the line in odiparams.bat, you must add the name of the data base Master repository as below:

    Set ODI_MASTER_URL = jdbc:weblogic:sqlserver://ASUS-67:1433; databaseName =

    I think that adding OPMN agent, you should try from the autonomous agent command prompt. Check if this step is successful.

    go to the path C:\Oracle_BI\Oracle_ODI1\oracledi\agent\bin to guest & type
    Agent.bat '-NAME =""-PORT 20910 = " " '.


    See if it starts your independent agent in command prompt.
    For the test ODI Scheduling, this enough as a first step.


    Thank you

    Santy.

  • Simple variable problem

    It is a really simple problem and I'll probably be a little dim but as I do not code things very often simple things tends to leave my brain.

    Summed up quite simply I have an if statement which, instead of using the current value of a variable appears to be implemented.

    More detailed description:

    I have 2 symbols, 'Olive', which is a three marked positions timeline animation, ' open, 'enabled' and 'closed' who defined the value of the variable 'positionO' as a result. I tested this little with alerts and is very well.

    When I mouse over the second symbol I want to retrieve the variable and play different parts of the animation depending on its value, well?

    I have this piece of code on the mouseover element:

    var myVariable = sym.getComposition().getStage().getSymbol("Olive").getVariable("positionO");
    if (positionO = 'open'){
    alert (positionO);
    }
    

    Now to me, this should trigger the alert if the variable is set to 'open' and do nothing if the value is something else, but what he is doing is setting the variable 'open' and shooting alert anyway.

    Thanks in advance,

    Alex.

    Try this (equal) 2 for comparison:

    if (positionO is 'open') {alert (positionO) ;}

  • JSON/Jquery Variable problem

    I have a problem in the construction of a yardsale using jquery google map card, while providing some time via a Json call yahoo weather.

    I put markers of card via a call from Json to addresses. Place the marker (if the address is found) he built the infowindow with the info I provided (from the yardsale Json call). This works. I am trying to add weather data in each information window. I can get the data I need and assign it to a variable, but when I try to enter the room that puts the information in the window, it is as undefined.

    I tried to place the variable as a global variable outside the function (under the call for loan doc)?

    Can any body show / tell me how to get the drive to work (and why so I don't make the same mistake)

    Here is the code below:

    $(document) .ready (function() {}

    var val

    var address="Boston, Mass.

    var currdate

    //weatherwidget (address)

    $('#map_canvas') .gmap ("search for", { 'address': 'Boston, Mass' }, function(results, isFound) { })

    if (isFound)

    {

    $('#map_canvas') .gmap ('you','sheet') .panTo (results [0]. geometry.location);

    $('#map_canvas') .gmap ('option', 'zoom', 10);   

    }

    });

    $.getJSON ("Yardsaleagate.json", function(yard_data)

    {

    $.each (yard_data.yardsales, function{}

    var val = thep:System.NET.Sockets.IPPacketInformation.address

    var = thiskey .stuff

    setTimeout (function() {}

    $('#map_canvas') .gmap ('search', { 'address': val}, { function(results, isFound))

    if (isFound)

    {

    $.getJSON ('http://query.yahooapis.com/v1/public/yql?q=select%20 *%20from%20weather.forecast%20where%20 %20 in %20 location (%0A%20%20select%20id%20from%20weather.search%20where%20query%3D%22'+ address +'% 22% 0a) % 20limit % 201 & format = json & diagnosis = true & env=store%3A%2F%2Fdatatables.or g % 2Falltableswithkeys & callback =?', function (data) )

    {

    currdate var = (data.query.results.channel.item.forecast [0] .date)

    Console. Journal (currdate)

    })

    $('#map_canvas') .gmap ('addMarker', { 'position': results [0]. geometry.location, 'description': key, icon: 'map-icons/pins/32/pin_ys.png','animation': google.maps.Animation.DROP, 'info': val}) .mouseover (function () {weatherlocation (val)}) ravishing (function () {}

    var infocontent = ' < div class = 'info' > '+ currdate +"< div class ="header"> < h3 > '+ val+" "< / h3 > < / div > < p > '+this.description+' <>< / div >" "

    $('#map_canvas') .gmap ('openInfoWindow', { 'content': infocontent, 'maxWidth': 300 }, this);

    });

    }

    })

    }, i*700);

    });

    });

    });

    Figured it out (or a solution that works) move the infowindow build in the infowindow will stll build call weather

  • Variable problem score

    Hello

    Having a problem with a system of rating based

    I have the first image below:

    Stop();

    var score: Number = 0;

    with a dynamic text box with the score variable

    Then, some executives with:

    _root.score += 20;

    This set works very well

    The problem is when I want a mc to go to a certain range according to the final score, I have below but does not, any suggestions would be welcome

    Stop();

    If (score == 100) {}

    options.gotoAndStop("100");

    }

    If (score == 80) {}

    options.gotoAndStop("80");

    }

    If (score == 60) {}

    options.gotoAndStop("60");

    }

    If (score == 40) {}

    options.gotoAndStop("40");

    }

    If (score == 20) {}

    options.gotoAndStop("20");

    }

    If (score == 0) {}

    options.gotoAndStop("0");

    }

    First of all, if those are numbers of images in your lines of goto, do not use quotation marks.  If they are image tags, do not use the image tag numbers.

    You should avoid using the var of a textfield property and just read the text property of the textfield object.  So all in all, by using a variable, your code would turn the numbers with the strings, as in...

    If (score.text == '100') {}

    options.gotoAndStop (100);

    }

  • Range variable problem

    Here is the snippet of my function.

    He reads the values of the XML file and get the URL of an Image file for example Abc.jpg.

    To read the URL, I create an empty movieclip to create animations. But now my problem is that I can't read one of the variables to store the XML values because it is not in the scope. I have tried to look for a workaround solution and failed again. Little help?

    private function init (): Void {}

    var polaroid_image:String;

    var myXML:XML = new XML();

    myXML.ignoreWhite = true;

    myXML.load ("content.xml");

    var myImage = myXML.firstChild.childNodes;

    myXML.onLoad = {function (success)}

    If (success) {}

    myImage = myXML.firstChild.childNodes;

    polaroid_image = myImage [1].firstChild.childNodes;

    trace (polaroid_image);

    }

    }

    trace (polaroid_image);  / / PROBLEM HERE: output 'undefined'

    This ._border = 10;

    this.initSize ();

    this.setPosition (48.35).

    this.createBackground ();

    var _mcPolaroid:MovieClip = this._mcBg.createEmptyMovieClip ("polaroid_mc", this._mcBg.getNextHighestDepth ());

    _mcPolaroid.loadMovie (polaroid_image, "polaroid_mc"); / / PROBLEM HERE: as the value is 'undefined', it cannot be used.

    _mcPolaroid._x = _border;

    _mcPolaroid._y = _border;

    var _rmcPolaroid:MovieClip = this._rmcBg.createEmptyMovieClip ("rpolaroid_mc", this._rmcBg.getNextHighestDepth ());

    _rmcPolaroid._yscale * =-1;

    _rmcPolaroid._y = _rmcPolaroid._y + _it _border;

    _rmcPolaroid._x = _border;

    }

    It is not a question of importance.  You try to deal with a value that is not yet defined.  Just because you place this code after the onload function does not mean it runs after the onload function.  The onload function sits and expected that the loading completes, but the rest of the code after it is running before loading is performed.

    You must have all the treatments that are supposed to happen once the loading is completed within the onload function.

    You can confirm that this is not a question of scope by assigning a value to polaroid_image when it is declared... you should see this value when you run...

    var polaroid_image:String = 'value before loading file ';

Maybe you are looking for

  • Horizon of Forza 2 Xbox 36 P

    Anyone who has Forza Horizon 2 on Xbox 360 4 GB; do you need to have an external hard drive to play? I ask because I get a glitch on the first race with the Huracán where it freezes my whole game and I must return to the House of xbox

  • Windows XP and IE 6...

    I use Windows XP and, Yes, I'm aware that support is over, but it serves my purposes and Firefox is my browser of choice. I initially had IE 8 installed with XP and re-installed XP Prof with Service Pack 3, but now it's dire.6 is why installed IE 6 i

  • Transfer between player window

    right now I use the boot drive for RAID 1 window 7, but I want to change to a single SSD. Is it possible for me to transfer my window from my HD to SSD or should I install new window for the SSD with the same key as the one I use on the hard drive? I

  • Not able to access photoshop

    I currently am a member and I pay 9.99 per month for photoshop and lightroom.  I can't access photoshop.ID: [email protected]

  • FrameMaker 10 - is there a way to search for missing, either open or closed parentheses?

    Is there a way to FrameMaker 10 seeking a missing opening or a closing parenthesis?Should I do a search for each opening parenthesis and see if there is a closing parenthesis?Then repeat the search for a closing parenthesis see if there is an open pa