Repository initialization Blocks (OBIEE) variable

Hello

I've created a repository variable and the type of variable is dynamic, the variable called "Read_Data" and I initialized the block with this query "select FirstName from employees where idEmp =: val.

My problem is in obiee when I call the variable I need to initialize the value of idEmp

How can I do this?

I have another on the initialization blocks why when I use this query 'select FirstName from employees' and I get only the first data, even though my table contains 100 data?

Thanks for help

In addition to this Gabin says (initialization) to your first question, I assume that you have some idea of 'dynamic variable repository' a little bit.

A dynamic variable repository is not as dynamic as you imagine. The main feature compared to a static is that the value of the variable comes from a SQL instead of being entered manually in the administration tool.

SQL is a type of static query and not refresh when you call the variable and want to use it, but it is filled only once or maximum according to the calendar. For example, you use this query to store values as the period under review (and you have a query that retrieves the period max responsible for your data once per hour or something like that).

Even a session variable will not really what you expect or at least not exactly how you think that it: initialize the variable when you call it works only once if you check the box "performance" you just to delay the execution of the query until you access it for the first time , but at this point, it is defined and it will not refresh until you do not close the session to begin a new.

So for what you are trying to do, I suggest you find another way because it really does work.

Tags: Business Intelligence

Similar Questions

  • problem creating session initialization block

    Hello

    I use OBIEE11.6, I would once again a block of session initialization and I select the database as Data Source Type, select the default initialization string box, but when I select the connection pool, the there is no connection pool in the right pane, I created two pools of connections by oracle DB before ,
    but now I can't select the connection pool, the button is gray and cannot click.

    But when I again a repository initialization block, I can select the connection pool.

    so I do not know why.

    If you know it please help me.

    Thank you!

    Hello

    Try this: in the administration tool go to tools-> Options-> general tab and check "allow first connection Pool for blocks. Init option."

  • Cannot create the initialization block in OBIEE 11.1.1.9

    Hello

    I am trying to create my first block of initialization in OBIEE 11.1.1.9. After I select New Options in Menu-> Session-> initialization block, I get a window. I press the button "Edit Data Source...". "but I can't select the Connection Pool.

    Kind regards

    Nestor

    Hi Nestor,.

    Try to create a separate initialization block connection pool. Then check if the connection pool is available in the initialization block.

    OR

    Check the Tools--> Option and the first connection Pool allows to Init Block is checked or not.

    Thank you!

  • How to initialize the Java variable within pl/sql block in the ODi procedure

    I have a step in the procedure of odi that using oracle technology.

    I want to initialize the java variable inside that.

    Please help me for this.

    < @ if (odiRef.getOption ("USE_PUBADMIN_PARAM_TABLE").equals("1")) {@ >}

    DENIZ

    EH_FAILURE_MESSAGE_TEXT VARCHAR2 (4000);

    EH_FIXED_VERSION VARCHAR2 (4000);

    EH_ISSUE_TYPE VARCHAR2 (4000);

    EH_PRIORITY VARCHAR2 (4000);

    EH_SUMMARY VARCHAR2 (4000);

    EH_DESCRIPTION VARCHAR2 (4000);

    EH_PROJECT_ID VARCHAR2 (4000);

    EH_COMPONENT VARCHAR2 (4000);

    EH_AFFECTED_VERSION VARCHAR2 (4000);

    EH_CUSTOMPROPXML VARCHAR2 (4000);

    EH_LOG_JIRA VARCHAR2 (4000);

    EH_CONTINUE_ON_ERROR VARCHAR2 (4000);

    EH_SEND_MAIL_NOTIFICATION VARCHAR2 (4000);

    EH_NOTIFICATION_RECIPENTS VARCHAR2 (4000);

    EH_JIRAJARPATH VARCHAR2 (4000);

    BEGIN

    SELECT

    DECODE ('< % = odiRef.getOption ("FAILURE_MESSAGE_TEXT") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_FAILURE_MESSAGE_TEXT'),' < % = odiRef.getOption ("FAILURE_MESSAGE_TEXT") % >") IN EH_FAILURE_MESSAGE_TEXT.

    DECODE ('< % = odiRef.getOption ("FIXED_VERSION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_FIXED_VERSION'),' < % = odiRef.getOption ("FIXED_VERSION") % >") IN EH_FIXED_VERSION.

    DECODE ('< % = odiRef.getOption ("ISSUE_TYPE") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_ISSUE_TYPE'),' < % = odiRef.getOption ("ISSUE_TYPE") % >") IN EH_ISSUE_TYPE.

    DECODE ('< % = odiRef.getOption ("PRIORITY") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_PRIORITY'),' < % = odiRef.getOption ("PRIORITY") % >") IN EH_PRIORITY.

    DECODE ('< % = odiRef.getOption ("SUMMARY") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_SUMMARY'),' < % = odiRef.getOption ("SUMMARY") % >") IN EH_SUMMARY.

    DECODE ('< % = odiRef.getOption ("DESCRIPTION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_DESCRIPTION'),' < % = odiRef.getOption ('DESCRIPTION') % >") IN EH_DESCRIPTION.

    DECODE ('< % = odiRef.getOption ("project") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_PROJECT_ID'),' < % = odiRef.getOption ("project") % >") IN EH_PROJECT_ID.

    DECODE ('< % = odiRef.getOption ("ELEMENT") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_COMPONENT'),' < % = odiRef.getOption ('ELEMENT') % >") IN EH_COMPONENT.

    DECODE ('< % = odiRef.getOption ("AFFECTED_VERSION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_AFFECTED_VERSION'),' < % = odiRef.getOption ("AFFECTED_VERSION") % >") IN EH_AFFECTED_VERSION.

    DECODE ('< % = odiRef.getOption ("CUSTOMPROPXML") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_CUSTOMPROPXML'),' < % = odiRef.getOption ("CUSTOMPROPXML") % >") IN EH_CUSTOMPROPXML.

    DECODE ('< % = odiRef.getOption ("LOG_JIRA") % >', '0', PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_LOG_JIRA'),' < % = odiRef.getOption ("LOG_JIRA") % >") IN EH_LOG_JIRA.

    Decode('%=odiRef.GetOption("CONTINUE_ON_ERROR") % > ', '0', PBA_PARAM_PKG. ("GET_PARAMETER ('EH_CONTINUE_ON_ERROR'),' < % = odiRef.getOption ("CONTINUE_ON_ERROR") % >") IN EH_CONTINUE_ON_ERROR.

    DECODE ('< % = odiRef.getOption ("SEND_MAIL_NOTIFICATION") % >', '0', PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_SEND_MAIL_NOTIFICATION'),' < % = odiRef.getOption ("SEND_MAIL_NOTIFICATION") % >") IN EH_SEND_MAIL_NOTIFICATION.

    DECODE ('< % = odiRef.getOption ("NOTIFICATION_RECIPENTS") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_NOTIFICATION_RECIPENTS'),' < % = odiRef.getOption ("NOTIFICATION_RECIPENTS") % >") IN EH_NOTIFICATION_RECIPENTS.

    PBA_PARAM_PKG. GET_PARAMETER ('EH_JIRAJARPATH') IN EH_JIRAJARPATH

    Double;

    / * I want to start as it is below. idon't want to control user source and control target conecpt.

    Please help me to below concept.

    */

    < @.

    String V_EH_FAILURE_MESSAGE_TEXT = EH_FAILURE_MESSAGE_TEXT;

    String V_EH_FIXED_VERSION = EH_FIXED_VERSION;

    String V_EH_ISSUE_TYPE = EH_ISSUE_TYPE;

    String V_EH_PRIORITY = EH_PRIORITY;

    String V_EH_SUMMARY = EH_SUMMARY;

    String V_EH_DESCRIPTION = EH_DESCRIPTION;

    String V_EH_PROJECT_ID = EH_PROJECT_ID;

    String V_EH_COMPONENT = EH_COMPONENT;

    String V_EH_AFFECTED_VERSION = EH_AFFECTED_VERSION;

    String V_EH_CUSTOMPROPXML = EH_CUSTOMPROPXML;

    String V_EH_LOG_JIRA = EH_LOG_JIRA;

    String V_EH_CONTINUE_ON_ERROR = EH_CONTINUE_ON_ERROR;

    String V_EH_SEND_MAIL_NOTIFICATION = EH_SEND_MAIL_NOTIFICATION;

    String V_EH_NOTIFICATION_RECIPENTS = EH_NOTIFICATION_RECIPENTS;

    String V_EH_JIRAJARPATH = EH_JIRAJARPATH;

    @ >

    END;

    {< @} @ >

    I have corrected this problem. No need to search on that.

  • How to insert data into the initialization blocks

    I want to connect the user which connect to the obiee system. in the initialization, user blocks, we can get, but how to insert the date and user in the database is it in any way. Thanks in advance.

    The connection id is stored in the system USER session variable. You can use it to insert into the database in the initialization block.

    INSERT INTO tablename (username, date) values (': USER ', sysdate);

  • initializer, instance and static initializer blocks

    Hi guys,.

    I have read the foregoing, mentioned in the JLS and also in a book before, but I still do not understand, what is the use of these. I have sort of a rough idea, but not exactly. I mean, what is the purpose of the initializer for instance and static initializer blocks, how can be useful? I understand that I can run pieces of code that initialize instance and static variables accordingly, but what is the difference then to use a constructor to initialize these areas? Are these pieces of code executed before the execution of any manufacturer, or when otherwise?

    Sorry for my noob, I learn.

    PR.

    Static initializer blocks are executed when the class is loaded, once (a classloader). So that they have some use. Initializers for instance differ a lot of builders (I think that code in the initializers of the instance has been copied to each manufacturer), but they can be useful with anonymous inner classes for example (since you cannot define constructors it (well, you can, but you can't call them)).

    They have a limited use, but it is good to recognize them if you see them.

  • Code to skip the steps: initialization of local variables failed

    Hi all

    I'm upgrading some software LabVIEW RT I inherited LabVIEW 2011 to 2015 LabVIEW (32-bit) on a host Windows 7 Professional PC. The target is an SMU-8135. The software ran well when it is compiled under LabVIEW 2011.

    I modified the code to enable the monitoring of what is happening by looking at screen on the target outputs. The initial error that brought me here is that a local cluster variable initialized in the first window of the flat sequence described below have been appearing as the in windows later.

    The code begins with the initialization of local variables in the first window of a flat sequence and provides a quick line of text output to the display of the target (call this text #1) (using RT Debug String.vi) I send two lines of text so that a new row is created and later text does not replace it. . It then writes to the next window in the sequence flat screen two groups of text output to the target. Second text in the window 2 (#3 text) output is equipped with a wire entry from the error from the first text output in the second window (text #2). That is the second exit must wait for the first exit to complete before being sent to the screen.

    I see now some weird symptoms:

    1. when I connect to the target under a remote debugging session I see expected display outputs. Not remotely connected, text #2 is displayed. The code passes to the third window in the flat sequence, so everything in the two window should have executed.

    2. the text #1 appears on the target screen * before * I get the message "Welcome to LabVIEW Real-time 15.0." Is this normal? Whence this message? I searched my screws and subvis to this text and it is not there then it mucst come LabVIEW screws somehow.

    This all started with local variables no initialization in the first window, so apparently, I have a problem of data flow. Given that the problem disappears under the remote debugging, I'm a bit of a loss.

    Thanks in advance for any help,

    Eamonn McKernan

    EamonnMcKernan wrote:

    Text 2 appears only when remotely connected it does not appear when running at startup.

    Your "text 2" seems to be powered by a collection of nodes comments to "initialize on compile or load.  This will return once the empty string the first and therefore should not be display nothing until the code I run a second time.  That is the crux of feedback for?

  • create a pool of dedicated for the initialization blocks connection

    Hello

    I use OBIEE11.6, then I put a block of session initialization to the RPD, and this block comes from a pool of connections "" My_DB".
    "My_CP" '.

    When the consistency check it warning as follow:

    Initialization block 'Authorization' uses the Pool of connections "" My_DB".
    'My_CP' ' which is used to report queries. This can impact the performance of queries.


    but there is no table under the "My_CP" connection pool, so I don't know why they say it is used to report queries? and how to remove the warning?

    Anyone know it?

    Thank you!

    Hi Leo,

    Generally, when there is a single connection pool for a database in the physical layer, the BI server includes this is the single pool of connections for queries (I don't think that really, it checks if there is underlying tables. I think it's because there is a way to add tables to a database by right-clicking on the connection pool and choosing import metadata.).

    As a good practice, when you block init pointing to a specific database, please make sure that you create another pool of connections for use in init blocks. This would ensure that report queries and init blocks do not go on a single pool.

    So, for your case, create a second pool of connections and point your blocks to the second init. Yes, you cannot point to the first because it is bit reserved by BI server for reports. (Unless you change it in the Options menu of .rpd)

    I hope this helps.

    Thank you
    Diakité

  • Anonymous block with Variable and SELECT

    Hi guys,.
    I'm fighting to connect the material that I am learning. I read on the anonymous blocks and variable so I want to write a
    Nice and neat select with all the fancy stuff (variables, exceptions) to get it right and what I read in the book.

    DECLARE
    MYSTRING AS VARCHAR (10);
    MYSTIRNG: = 'X '.
    BEGIN
    SELECT * FROM DUAL WHERE DUMMY = MYSTRING
    END;


    but... This causes an error after another. I get the wrong concept here or is this a syntax error?

    PL/SQL, you will need to use SELECT... IN...
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/sqloperations.htm#sthref1348

    SQL> declare
      2    mystring varchar(10) := 'X';
      3    myvar varchar(10);
      4  begin
      5    select dummy into myvar
      6    from   dual
      7    where  dummy = mystring;
      8    dbms_output.put_line(myvar);
      9  end;
     10  /
    X
    
    PL/SQL procedure successfully completed.
    
  • a variable repository display in OBIEE analysis title bar

    Hi all

    I use OBIEE11.1.1.7.Recently, I imported a RPD Essbase cube that includes a variable substitution. By default are variable substitution became referential dynamic variable in RPD.

    How to display these referential dynamic variables in the title bar for the OBIEE report analysis?

    Also when I create a calculated item by using these variables, the calculated item is not displayed in the report.

    I created a variance column ("Server: app:db:variableA '-' Server: app:db:VariableB '), and this variance column is not coming in the report.

    Please suggest!

    Thank you

    GP

    Try to place @{biServer.variables ['NQ_SESSION.]} {[USERS ']} in your title exactly bar as I put it here. It's a standard predefined variable that comes with OBIEE who must return the user name of the logged-on user.

    It's the correct syntax to use, so if it works then replace ' NQ_SESSION. The USER ' with your name of the variable.

    This test will determine if the problem is in your syntax to reference to a variable, the variable itself or the bar title in which you place it.

    Let us know the result

    Thank you

    GEO

  • Initialization blocks raises the error libnqsdbgatewayoci10g.so on LINUX

    Hello
    My block of initialization "Get see period" throws error while I press the button Test Mode in online environment LINUX Red Hat. It works very well in the local SPR. I get the below error.

    * "libclntsh.so.10.1: evil class EFL: ELFCLASS64 *"
    * [nQSError:46029] unable to load the DLL /data/OracleBI/server/Bin/libnqsdbgatewayoci10g.so"*

    I have cheked the file ends in the path.

    What I need to get rid of this error.

    Call Interface connection pool a * 10 g / 11i * selected

    Please can someone help me.

    Thank you
    Amit

    Hi Amit,

    Please keep in mind that these paths are compared to my installation of OBIEE and they must be updated to your installation of OBIEE. If you're not super familiar with Linux, I recommend that you get the Linux administrator to help you configure the appropriate values.

    MNC also has a good point to make. This particular error your seeing happens a lot when a 64-bit client is used when OBIEE expects a 32-bit client. Try to make sure you have the installation of the 32-bit client program and see if that helps.

    -Joe

  • the initialization of a variable in a bpel workflow to call another web service

    Hello

    I'm fairly new development bpel. I don't have a early created myself but unfortunately, I only got to work on existing projects from now on. I am wanting to add an invocation of another web service to an existing bpel service. I added the wsdl for .bpel and composite.xml files info, and I can see the operations, so my plan is to see the service properly, and I created the necessary links.

    I just need to initialize the variables that I'm passing on this web service. Basically need to invoke the web service passing in xml format that would go into these elements:

    < ns1:dataRequest >
    < ns1:appName > < / ns1:appName >
    < ns1:progName > < / ns1:progName >
    < ns1:valueUsed > < / ns1:valueUsed >
    < ns1:setting > < / ns1:setting >
    < / ns1:dataRequest >

    Can someone just point me in the right direction on this. I think I need to create a new .wsdl file that I've read so far, but I have a lot of time looking for this problem - it is low on my priorities. So I thought that it might accelerate things to go ahead and ask here before I dive into it later.

    Thank you

    Hello

    As far as I get your situation is you want to call a web service from BPEL process existing. Here are the steps that you can follow.

    (1) create a partner link in the BPEL process that calls the external Web service.
    (2) create an activiyt to invoke in BPEL process that invokes the foregoing created partner link
    (3) create an Assign activity that initializes the variable which is an entry to invoke activity.

    Let me know if you have confusion with this approach.

    Thank you
    AJ

  • during the initialization of the variables in model

    I use for my Cairngorm application and there are hundreds of variables in my model. I need reset/initialize variables when I select another customer. Is there an easy way to do this?

    Thanks in advance.

    The simplest, most certain way is to simply call navigateToURL with the path to the wrapper html application.

    It will produce an entirely new instance of the Flash Player and the application.

  • Initialization of the variable error

    So here's what I see in my code mode:

    I am following as well as a tutorial that I found and the instructor seems so far have no problem with his code, but I get this strange error message. Please explain?

    Sounds pretty clear to me, since you do not use this value to guess, the initialization is wasted.

  • Initialization of a variable to the docOpen

    My form must create an array, sorting and put it into a variable that should be used anywhere on the form.  I want this variable to be initialized when the document is opened.  Is there a way to make a global variable from a function docOpen() for example?

    There is this level JavaScripts which can set variables or functions and this code is executed at the opening of the PDF file.

    By Thom Parker, entering in the Scripts of the Document .

    Functions entered if you need to run during the opening process should be called.

    Any script outside of a function definition will be executed.

    Script level document only run when opening the document, unlike the page open action that runs whenever the page opens.

    Global variables are very different than the document variables.

    Global variables have a scope of PDFs all open.

    Global

    It is a static JavaScript object that allows you to share data between documents and data be persistent between sessions. These data are called persistent global data. Sharing global and notification across documents is done through a subscription mechanism, which allows to monitor global data variables and report their value in all of documents changes.

Maybe you are looking for