Row-Wise Session Variable Initialization Block (Max Rows)

Hi, we have a problem with Row-Wise Session Variable.
We'll try to implemented the security with a External Query and a Row-Wise Initialization Block. But when we'll try to open the Web Obiee and the rows of result of the query is more than 3000 rows, the browser is broken. The access is very slowly.
When the result of Query to Row-Wise Variable is more than 3000 rows and we'll try to open the Web Obiee, we have to close NQServer.EXE process of Obiee Server.
Is there a best practise or a limit rows in the Row-Wise Initialization Block?.
Thanks.

You're Right, the people can't be in 3000 groups.
Is possible I don't explain my problem correctly.
We use this Row-Wise Variable for implement Data Level Security. .
For Example :
I have a fact table with Offices and Office's Sales.
And each Obiee User can see many Offices according to their level of security.
I want filter the fact table using a external SQL table implemented in a Session Row-Wise Variable and a User can have X Offices (In the worst case, 3000 Offices).

Similar Messages

  • Multiple Row-wise session Variable in One Init Block

    Hi All,
    Can we create Multiple Row-wise session Variable in the same Init Block ?
    I need 10 session varibales with row-wise initialization in the same block otherwise i will have to create 10 initialization block .
    Any help is appreciated.
    Thanks,
    Ally

    Hi Ally,
    I'm not sure if this will work but have you tried a UNION ALL statement?
    ie.
    SELECT 'GROUP, group_id
    FROM groups
    UNION ALL
    SELECT 'DEPT',dept_id
    FROM depts
    etc....

  • Use row wise session variable in IN CLAUSE

    Hi,
    I' have a question. Suppose I have a row wise session variable named Users setted in an initialization block with following SQL query:
    SELECT 'NAMES', names from NAMES_TABLE where GROUP='Administrators'
    Suppose it returns value list 'JOHN, MARIE'.
    Can I set another row wise session variable named COUNTRY in initialization block with following SQL query:
    SELECT 'COUNTRY', country from COUNTRY_TABLE where names IN (VALUEOF(NQ_SESSION.Users))?
    so that COUNTRY variable returns for example list 'CANADA','OHIO'?
    or OBIEE returns error?
    If it's not possible can you give me a solution?
    Thanks

    Hi,
    I've resolved, but now I have another problem.
    I have a row-wise session variable called COMPANY_FILTER
    In Dashboard Prompt "Show" Section I have following query:
    SELECT Country."Company Description" from Prototype where Country."ID" = VALUEOF(NQ_SESSION.COMPANY_FILTER).
    When COMPANY_FILTER has at least one value it works fine. But COMPANY_FILTER can be even empty.
    In the latter case query fails.
    Now, when COMPANY_FILTER is null I must execute following query:
    SELECT Country."Company Description" from Prototype
    otherwise when it is filled i must execute following query:
    SELECT Country."Company Description" from Prototype where Country."ID" = VALUEOF(NQ_SESSION.COMPANY_FILTER).
    I have tried with CASE WHEN, but i don't know the exact syntax. Can you suggest me a correct query for my goals?
    Thanks

  • Prompt using SQL Results with row-wise session variable comparison

    I have a prompt on Department and I only want the departments to show that have been authorized via a session variable for that user. The session variable can return can return multiple values and is set as row-wise. The session variable is returning results and have been used successfully in an application filter.
    I'm trying to put the correct SQL statement and this syntax doesn't work:
    SELECT "Department"."Department Code" 
    FROM "UBC Financials - YTD Table"
    WHERE  "Department"."Department Code" = '@{DEPT_LIMITS}'
    Can someone give me an example that does work?
    Thanks,

    Try something like WHERE  "Department"."Department Code" = VALUEOF(NQ_SESSION."DEPT_LIMITS")
    or else filter on department and then hit on add then Session variable
    ~ http://cool-bi.com

  • Problem with Session variable initialization block

    Hi,
    I'm getting strange results when using session variables in my repository files.
    I have created session variables as specified in the document which is available at
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html
    The main problem getting with the system session variable (USER) in the select statement.
    My select statement is as follows,
    select ':USER',case when upper(':USER') = 'KUMAR' then 'APR-05' end from Dual
    The problem is while logging into the BI Answers it is allowing all the invalid users to login who does not exist.
    when i remove the quotes and simply use :USER in the select statement it is not allowing the invalid users to login but giving error while displaying the results.
    when i remove the user variable from select statement its giving correct results.
    Can i know what is causing the problem.
    Thanks,
    Kumar.

    Hi DK,
    Check out my post Rowlevel Security?? and see if it helps you.
    Cheers!
    -Joe

  • Row wise initialized variable in WHERE clause of other initialization block

    Hi,
    i've following problem.
    I've created a initialization block (called A) that initializes a row wise session variable.
    Ex: SELECT X,Y from Z
    Select statement returns 3 rows (it's a row wise initialization block!!!)
    Then i want to create another initialization block that uses in its WHERE cluase the previous row wise variable
    Ex: SELECT W,T from R where F = VALUEOF(NQ_SESSION.A)
    I have following error: DB2-UDB: SQL10104 Token ; was not valid, valid tokens: ....
    I believe that this error is caused by the fact that VALUEOF(NQ_SESSION.A) is translated by OBIEE in IN (a list of values separated by ; and not by ,).
    Can you suggest me a solution?
    Thanks
    Giancarlo
    P.S. I'm using OBIEE 10G

    You could avoid this by rewriting it as
    select w, t
    from r
    where f in (select y from z where x = 'A')
    Regards,
    Robert

  • Using session variable in init. string of session variable init. block

    hi, experts,
    is it allowed to use a loaded session variable (A) in the initialization string in the initialization block of another session variable (B).
    for example,
    in the execution precedence of initialization block of B, added the initialization block of A
    then in the initialization string in the initialization block of B,
    the sql likes:
    select yyy from a where a.xxx = 'valueof(nq_session.A)'
    what is the correct syntax?
    thank you very mucH!

    That's the correct format. If it is not working for you then you need to give more information as what's happening, how you populate your Init Blocks etc.

  • How to get a Sum of rows, when i use the property max. rows p. page ?

    Hi all.
    I've got a query and get a lot of rows (amounts) back.
    Now i want to have max. 21 rows per page.
    So, first i used the property "max. rows p. page"=21.
    But i want a have Sum-Field p.page too, which shows the sum of the amount p. page at a >fixed place (bottom, left) at the page.
    this didnt work well....
    Because when i have 30 rows, then the sum will shown at the second page (because the sum-field its after the repeating frame).
    ...Now i forgot the property and placed a function and two placeholder in the query like this:
    Function:
    :cp_row:=:cp_row +1;
    if (mod (:cp_row,21)=0)) then :CP_pagenr:=:CP_pagenr+1;
    Placeholders: cp_row, cp_pagenr
    Now i want to use :CP_pagenr to change the group - but Report Builder says: I cant... because placeholder are not allowed to change a group.
    So.. perhaps anyone can give me a hint how i can do this ?
    Thanks a lot...

    hello.
    that sound to me as you wanted a running total. check out the metalink knwoledge base and search for running total and you will find a note on how to do that.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Handling Null Row wise initialization

    Hi,
    I am creating row wise initialization block to restrict the number of records returned by a Answers.
    I am populating a session variable called, REPS_LIST. When I put the condition,
    Fact.REP_ID = VALUEOF(NQ_SESSION."REPS_LIST") the group filter works fine.
    I want to handle a situation where REPS_LIST is NULL.In that case,I would to get all the rows from my fact. For this, I put the filter like
    Fact.REP_ID = IFNULL( VALUEOF(NQ_SESSION."REPS_LIST"), "Fact".REP_ID)
    However when i run the Answers report, it says no value definition for REPS_LIST. How can I handle the null condition here?
    Thanks,
    Vivek.

    John,
    It appears that the row-wise session variables can be used only with the equality(=) sign. We can't put them in any other function in that the server convert these variables into comma separated string and replaces the = by IN operator. So if I had following filter
    Fact.REP_ID = VALUEOF(NQ_SESSION."REPS_LIST")
    then it actually gets translated into something like
    Fact.REP_ID IN (1001, 1002, 1003....)
    As you suggested, I played with the SQL than going behind the above syntax and was able to achieve what I wanted.
    Thanks,
    Vivek.

  • Internal LDAP Session Variable Population

    All,
    I can find plenty of documentation on how to populate a session varible from an external LDAP server. How do you populate a session variable from the internal LDAP server? I can't find documentation on this anywhere.
    Thanks in Advance,
    Josh

    Turribeach,
    In my .RPD I am trying to populate some of the system session variables, such as 'USER', 'DISPLAYNAME', 'GROUP', etc. from the out of the box, internal to Weblogic, DefaultAuthenticator, LDAP. I have found numerous blogs on how to connect to an external LDAP for authentication, at which point one can populate the system session variables from the external LDAP in an session variable initialization block. I can't find any documentation/blogs on how to use the internal LDAP to populate such system session variables. Any help will be greatly appreciated.
    I did find the system function 'user()' returns the user currently logged in, so that's a bit of a temporary workaround for the 'USER' system session variable.
    Thanks,
    Josh

  • Maximum size of row-wise variable

    Good day for all!
    Anybody know, what is the maximum size (in rows) of row-wise initialized variable, or, generally, what affects on the it size?

    Hi
    Use vsize fuction. like if for table containing two fields t1, t2 then
    select vsize(t1)+vsize(t2) from emp where
    t1 = x;
    U will get size in bytes.
    Raju
    null

  • Hyp FR Error: 5200 : Error executing query.  Exceed max row number 100000

    Hi,
    I am getting the error
    5200 : Error executing query. Exceed max row number 100000
    when I run the report on Financial Reporting. It gives the same error when run on Workspace.
    Have you guys encountered this error before? What are the best ways to tackle it? Help is much appreciated guys.
    -- Adi
    Edit 1 - I tried to simplify the parameters but I still get the same error making me suspect that the issue is not the 100000 row issue.
    Edited by: Aditya26 on Apr 11, 2012 9:02 AM

    Hi Adi,
    This is from My Oracle Support:
    How to Increase Row Limit to Avoid Error "Exceed Max Row Number 100000" [ID 866832.1]
    Modified 23-FEB-2012 Type HOWTO Status PUBLISHED
    In this Document
    Goal
    Solution
    Applies to:
    Hyperion BI+ - Version: 9.3.1.0.00 to 11.1.1.3.00 - Release: 9.3 to 11.1
    Information in this document applies to any platform.
    Goal
    How do you increase the maximum row limit to avoid the error "5200: Error executing query: Exceed max row number 100000"?
    Solution
    1.Edit \Hyperion\common\ADM\<version>\lib\ADM.properties as follows:
    From MAX_ROW_NUMBERS=100000 to MAX_ROW_NUMBERS=500000
    If you are running extremely large reports, you can increase the limit.
    2.Restart Reporting and Analysis services.
    For version 11.1.2.x
    The path of ADM.properties file in these versions should be located under:
    %Oracle_Home%\Middleware\EPMSystem11R1\commo\ADM\11.1.2.0\lib
    Cheers,
    Mehmet

  • Pagination disappears after setting 'max row count'

    I have a report with app. 4500 records (with the default of 15 lines per page) and a pagination scheme of 'Row Ranges 1-15 16-30 in select list (with pagination)'.
    When running the report, all is working fine and i get the information in the select list '.. of more than 500'.
    Then i inserted some values in the 'max row count'-field:
    a value of 2000: it's working as expected
    a value of 4000 (or more): the pagination disappears and won't be desplayed :-(
    Any ideas, what i have done wrong?
    Thanks
    Rainer

    Hi
    This problem - select list dissapearing when > 32k still persists in Version 3.
    A neat workaround is to use a page item to set the number of rows disaplyed.
    Where there is a large number of rows in the table and the max rows is also large, simply set the page item value for the number of rows to a larger value say 200 - then - if the select list now becomes less than 32K the select list will be shown.
    It's a matter of balancing the number of rows shown on the page with the total number of rows in the table / max rows combination.
    It's not perfect but it works.
    Hope this helps.
    Mike Mac
    Message was edited by:
    Mike Mac

  • Session Variable not producing results in answers

    Hi,
    I have a Session initialization block and I have the variable target assigned to a variable region_info. My SQL is this "select Region from SH.USER_INFO where UPPER(USER_ID)=UPPER(':USER'). It gives me the correct results in RPD.
    In answers and in the filter I say Region is equal to/is in NQ_SESSION.Region_info until this point it works great.
    How would I modify it to accept multiple rows. I tried the Row-wise initialization and I am getting an error, saying NQ_SESSION.Region_info has no value definition. How can I make it work if the initialization block returns multiple rows and in the answers if I have to pass them both in my filter?
    Please help. Thank you.

    ssk,
    No,it will not work u can't use that in answers fx
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_Variables5.html
    http://108obiee.blogspot.com/2009/10/using-multiple-values-row-wise-session.html
    Thanks,
    Saichand.v

  • DISPLAYNAME session variable

    The documentation says that I can use the DISPLAYNAME session variable. However, in the server variable initialization block, it returns no value. In fact, it is not even recognized as a bind variable.
    For example,
    The query select ':USER' from dual returns
    Variable Value
    ==== ========
    mysessvar Administrator
    However, select ':DISPLAYNAME' from dual returns
    Variable Value
    ==== ========
    mysessvar :DISPLAYNAME
    I have read other threads dealing with the GROUP session variable, so it seems like this should be possible. However, I cannot get it to work. I am using OBIEE version 10.3.3.2. Thanks.

    Sorry. Yes, usually the best thing to do is state your objective, rather than your method. I am using SSO, but I want to have the ability to filter records based on the user logging in. Here is one way I thought of doing this.
    What I need to do is filter records based on a particular ID. Let's say my report table looks like this:
    RID UID Amount
    === === =====
    1 1 10
    2 2 15
    3 1 20
    I also have a table mapping username to UID, let's call it USERS.
    UID Username
    == ========
    1 Joe
    2 Bob
    We have set up OBI to use SSO and cookies. We will authenticate the user and then redirect to OBI. However, in OBI, I only want to show the records related to the user logging in. So, if Joe logs in, I only want to show records with RID =1,3. If Bob logs in, I only want to show records with RID=2.
    Now, if I was to create 1 named user in OBI for each user in USERS, I could use an init block to query the USERS table, get the UID and set it to a session variable. I could then use this session variable to filter my records. However, even though we won't have that many users, I don't want to do it manually. I want to create one OBI user that has access to the report. To filter records, my thought was to set the DISPLAYNAME using a cookie and then use the DISPLAYNAME to retrieve the UID.
    To answer the question asked by Turribeach, OBI is only looking at users defined in the rpd. We are using SSO, but OBI is not using external authentication.
    To summarize, I am using SSO, but I want to have the ability to filter records based on the user logging in. I just want to know the best way of doing that. Thanks!

Maybe you are looking for

  • How to create a custom folder under Knowledge Management in Home Page

    Hi, We have a SAP provided standard Home Page and it has a Workset/page called Knowledge Management. Under that we have the folders called Favorites, Public Documents, Personal Documents etc., How can i create a new custom folder , say HR in that so

  • Problem exporting XREF3 to excel

    hi all, i am trying to export BSEG data to excel.all other columns are ok, but the last digit in the value of column XREF3 is getting replaced with 0. for example if the value is 200750000004930001, the value in excel is 200750000004930000. same is t

  • Manage Account is missing from the Sync tab. Unable to view my sync key to enable another device.

    1st Step: Firefox 2nd Step: Options 3rd Step: Sync After the 3rd Step, the Manage Account feature is missing so I am unable view my Sync Key to enable my Android phone.

  • Text boundaries

    Text boundaries in Word 2013 issue. I have enabled show text boudaries option in Word 2013 and instead of having the text boundaries around the page, I only get a rectangle. As I press Enter Key, it makes it bigger. The problem is that when I used Wo

  • Class- Method Pattern in CodeHints.xml

    I'm creating some custom code hints in the CodeHints.xml and I'm having trouble matching a simple 'Class->Method' pattern. It's the greater than symbol giving me trouble. For example: <menu pattern="$html-" DOCTYPES="PHP_MySQL"> works <menu pattern="